Skip to content

Commit

Permalink
CI Build Artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
rmocanu-ionos committed Sep 26, 2023
1 parent 19dd294 commit 9eb0f6d
Show file tree
Hide file tree
Showing 22 changed files with 258 additions and 6 deletions.
Binary file added assets/ionoscloud/ionoscloud-0.1.1.tgz
Binary file not shown.
16 changes: 16 additions & 0 deletions charts/ionoscloud/0.1.1/Chart.yaml
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.
17 changes: 17 additions & 0 deletions charts/ionoscloud/0.1.1/files/nginx.conf
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;
}
}
78 changes: 78 additions & 0 deletions charts/ionoscloud/0.1.1/templates/_helpers.tpl
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 -}}
14 changes: 14 additions & 0 deletions charts/ionoscloud/0.1.1/templates/cr.yaml
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 }}
30 changes: 30 additions & 0 deletions charts/ionoscloud/0.1.1/values.yaml
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
13 changes: 13 additions & 0 deletions extensions/ionoscloud/0.1.1/files.txt
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

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9eb0f6d

Please sign in to comment.