-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
19dd294
commit 9eb0f6d
Showing
22 changed files
with
258 additions
and
6 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
annotations: | ||
catalog.cattle.io/certified: rancher # Any application we are adding as a helm chart | ||
catalog.cattle.io/kube-version: '>= 1.16.0-0 < 1.28.0-0' | ||
catalog.cattle.io/namespace: cattle-ui-plugin-system # Must prefix with cattle- and suffix with -system= | ||
catalog.cattle.io/os: linux | ||
catalog.cattle.io/permits-os: linux, windows | ||
catalog.cattle.io/rancher-version: '>= 2.7.0-0 < 2.8.0-0' | ||
catalog.cattle.io/scope: management | ||
catalog.cattle.io/ui-component: plugins | ||
apiVersion: v2 | ||
appVersion: "0.1.1" | ||
description: Adds Machine Config and Cloud Credeantials for the ionoscloud rancher driver | ||
name: ionoscloud | ||
type: application | ||
version: 0.1.1 | ||
icon: https://raw.githubusercontent.com/ionos-cloud/ui-extensions-ionoscloud/main/pkg/ionoscloud/ionos.svg |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
events {} | ||
http { | ||
sendfile on; | ||
server { | ||
listen {{ .Values.pluginServer.service.targetPort }}; | ||
listen [::]:{{ .Values.pluginServer.service.targetPort }}; | ||
|
||
resolver 0.0.0.0; | ||
autoindex on; | ||
|
||
server_name _; | ||
server_tokens off; | ||
|
||
root /home/plugin-server/plugin-contents; | ||
gzip_static on; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
{{/* | ||
Expand the name of the chart. | ||
*/}} | ||
{{- define "plugin-server.name" -}} | ||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} | ||
{{- end }} | ||
|
||
{{/* | ||
Create a default fully qualified app name. | ||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). | ||
If release name contains chart name it will be used as a full name. | ||
*/}} | ||
{{- define "plugin-server.fullname" -}} | ||
{{- if .Values.fullnameOverride }} | ||
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} | ||
{{- else }} | ||
{{- $name := default .Chart.Name .Values.nameOverride }} | ||
{{- if contains $name .Release.Name }} | ||
{{- .Release.Name | trunc 63 | trimSuffix "-" }} | ||
{{- else }} | ||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
|
||
{{/* | ||
Create chart name and version as used by the chart label. | ||
*/}} | ||
{{- define "plugin-server.chart" -}} | ||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} | ||
{{- end }} | ||
|
||
{{/* | ||
Common labels | ||
*/}} | ||
{{- define "plugin-server.labels" -}} | ||
helm.sh/chart: {{ include "plugin-server.chart" . }} | ||
{{ include "plugin-server.selectorLabels" . }} | ||
{{- if .Chart.AppVersion }} | ||
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} | ||
{{- end }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
{{- end }} | ||
|
||
{{/* | ||
Selector labels | ||
*/}} | ||
{{- define "plugin-server.selectorLabels" -}} | ||
app.kubernetes.io/name: {{ include "plugin-server.name" . }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
{{- end }} | ||
|
||
{{- define "system_default_registry" -}} | ||
{{- if .Values.global.cattle.systemDefaultRegistry -}} | ||
{{- printf "%s/" .Values.global.cattle.systemDefaultRegistry -}} | ||
{{- else -}} | ||
{{- "" -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
Windows cluster will add default taint for linux nodes, | ||
add below linux tolerations to workloads could be scheduled to those linux nodes | ||
*/}} | ||
{{- define "linux-node-tolerations" -}} | ||
- key: "cattle.io/os" | ||
value: "linux" | ||
effect: "NoSchedule" | ||
operator: "Equal" | ||
{{- end -}} | ||
|
||
{{- define "linux-node-selector" -}} | ||
{{- if semverCompare "<1.14-0" .Capabilities.KubeVersion.GitVersion -}} | ||
beta.kubernetes.io/os: linux | ||
{{- else -}} | ||
kubernetes.io/os: linux | ||
{{- end -}} | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{{- if .Values.plugin.enabled }} | ||
apiVersion: catalog.cattle.io/v1 | ||
kind: UIPlugin | ||
metadata: | ||
name: {{ include "plugin-server.fullname" . }} | ||
namespace: {{ .Release.Namespace }} | ||
labels: {{ include "plugin-server.labels" . | nindent 4 }} | ||
spec: | ||
plugin: # should initially follow the design of the Helm Chart.yaml fields, could discuss modifying this | ||
name: {{ include "plugin-server.fullname" . }} | ||
version: {{ (semver (default .Chart.AppVersion .Values.plugin.versionOverride)).Original }} | ||
endpoint: https://raw.githubusercontent.com/ionos-cloud/ui-extensions-ionoscloud/gh-pages/extensions/ionoscloud/0.1.1 | ||
noCache: {{ .Values.plugin.noCache }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
global: | ||
cattle: | ||
systemDefaultRegistry: "" | ||
kubectl: | ||
repository: rancher/kubectl | ||
tag: v1.20.2 | ||
pullPolicy: IfNotPresent | ||
imagePullSecrets: [] | ||
nameOverride: "" | ||
fullnameOverride: "" | ||
pluginServer: | ||
image: | ||
repository: /ui-extension-ionoscloud | ||
pullPolicy: Always | ||
tag: 0.1.1 | ||
service: | ||
type: ClusterIP | ||
port: 80 | ||
targetPort: 8080 | ||
deployment: | ||
replicas: 1 | ||
resources: {} | ||
securityContext: {} | ||
nodeSelector: {} | ||
tolerations: [] | ||
affinity: {} | ||
plugin: | ||
enabled: true | ||
versionOverride: "" | ||
noCache: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
plugin/ionoscloud-0.1.1.umd.min.5.js | ||
plugin/ionoscloud-0.1.1.umd.min.5.js.map | ||
plugin/ionoscloud-0.1.1.umd.min.cloud-credential.js | ||
plugin/ionoscloud-0.1.1.umd.min.cloud-credential.js.map | ||
plugin/ionoscloud-0.1.1.umd.min.js | ||
plugin/ionoscloud-0.1.1.umd.min.js.map | ||
plugin/ionoscloud-0.1.1.umd.min.machine-config.js | ||
plugin/ionoscloud-0.1.1.umd.min.machine-config.js.map | ||
plugin/ionoscloud-0.1.1.umd.min.vendors~cloud-credential~machine-config.js | ||
plugin/ionoscloud-0.1.1.umd.min.vendors~cloud-credential~machine-config.js.map | ||
plugin/ionoscloud-0.1.1.umd.min.vendors~machine-config.js | ||
plugin/ionoscloud-0.1.1.umd.min.vendors~machine-config.js.map | ||
plugin/package.json |
2 changes: 2 additions & 0 deletions
2
extensions/ionoscloud/0.1.1/plugin/ionoscloud-0.1.1.umd.min.5.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
extensions/ionoscloud/0.1.1/plugin/ionoscloud-0.1.1.umd.min.5.js.map
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
extensions/ionoscloud/0.1.1/plugin/ionoscloud-0.1.1.umd.min.cloud-credential.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
extensions/ionoscloud/0.1.1/plugin/ionoscloud-0.1.1.umd.min.cloud-credential.js.map
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
extensions/ionoscloud/0.1.1/plugin/ionoscloud-0.1.1.umd.min.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.