Skip to content

Commit

Permalink
Fix the Helm charts directory name for the admission application
Browse files Browse the repository at this point in the history
  • Loading branch information
NotTheEvilOne committed Jan 31, 2022
1 parent f700d25 commit 988f25f
Show file tree
Hide file tree
Showing 20 changed files with 31 additions and 52 deletions.
5 changes: 5 additions & 0 deletions charts/gardener-extension-admission-ionos/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: v1
appVersion: "1.0"
description: A Helm chart for the Gardener ionos admission
name: gardener-extension-admission-ionos
version: 0.1.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v1
description: A Helm chart to deploy the gardener-extension-admission-ionos application related resources
name: application
version: 0.1.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v1
description: A Helm chart to deploy the gardener-extension-admission-ionos runtime related resources
name: runtime
version: 0.1.0
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ spec:
template:
metadata:
annotations:
checksum/secret-gardener-extension-validator-ionos-cert: {{ include (print $.Template.BasePath "/secret-cert.yaml") . | sha256sum }}
checksum/secret-gardener-extension-admission-ionos-cert: {{ include (print $.Template.BasePath "/secret-cert.yaml") . | sha256sum }}
{{- if .Values.global.kubeconfig }}
checksum/gardener-extension-validator-ionos-kubeconfig: {{ include (print $.Template.BasePath "/secret-kubeconfig.yaml") . | sha256sum }}
checksum/gardener-extension-admission-ionos-kubeconfig: {{ include (print $.Template.BasePath "/secret-kubeconfig.yaml") . | sha256sum }}
{{- end }}
labels:
{{ include "labels" . | indent 8 }}
Expand All @@ -31,11 +31,11 @@ spec:
image: {{ include "image" .Values.global.image }}
imagePullPolicy: {{ .Values.global.image.pullPolicy }}
command:
- /gardener-extension-validator-ionos
- /gardener-extension-admission-ionos
- --webhook-config-server-port={{ .Values.global.webhookConfig.serverPort }}
- --webhook-config-cert-dir=/etc/gardener-extension-validator-ionos/srv
- --webhook-config-cert-dir=/etc/gardener-extension-admission-ionos/srv
{{- if .Values.global.kubeconfig }}
- --kubeconfig=/etc/gardener-extension-validator-ionos/kubeconfig/kubeconfig
- --kubeconfig=/etc/gardener-extension-admission-ionos/kubeconfig/kubeconfig
{{- end }}
ports:
- name: webhook-server
Expand All @@ -46,22 +46,22 @@ spec:
{{ toYaml .Values.global.resources | nindent 10 }}
{{- end }}
volumeMounts:
- name: gardener-extension-validator-ionos-cert
mountPath: /etc/gardener-extension-validator-ionos/srv
- name: gardener-extension-admission-ionos-cert
mountPath: /etc/gardener-extension-admission-ionos/srv
readOnly: true
{{- if .Values.global.kubeconfig }}
- name: gardener-extension-validator-ionos-kubeconfig
mountPath: /etc/gardener-extension-validator-ionos/kubeconfig
- name: gardener-extension-admission-ionos-kubeconfig
mountPath: /etc/gardener-extension-admission-ionos/kubeconfig
readOnly: true
{{- end }}
volumes:
- name: gardener-extension-validator-ionos-cert
- name: gardener-extension-admission-ionos-cert
secret:
secretName: gardener-extension-validator-ionos-cert
secretName: gardener-extension-admission-ionos-cert
defaultMode: 420
{{- if .Values.global.kubeconfig }}
- name: gardener-extension-validator-ionos-kubeconfig
- name: gardener-extension-admission-ionos-kubeconfig
secret:
secretName: gardener-extension-validator-ionos-kubeconfig
secretName: gardener-extension-admission-ionos-kubeconfig
defaultMode: 420
{{- end }}
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
apiVersion: v1
kind: Secret
metadata:
name: gardener-extension-validator-ionos-cert
name: gardener-extension-admission-ionos-cert
namespace: {{ .Release.Namespace }}
labels:
app: gardener
role: validator-vsphere
role: admission-vsphere
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: v1
kind: Secret
metadata:
name: gardener-extension-validator-ionos-kubeconfig
name: gardener-extension-admission-ionos-kubeconfig
namespace: "{{ .Release.Namespace }}"
labels:
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- define "name" -}}
gardener-extension-validator-ionos
gardener-extension-admission-ionos
{{- end -}}

{{- define "labels.app.key" -}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ global:
virtualGarden:
enabled: false
image:
repository: eu.gcr.io/gardener-project/gardener/extensions/validator-ionos
repository: ghcr.io/23technologies/gardener-extension-provider-ionos
tag: latest
pullPolicy: IfNotPresent
replicaCount: 0
Expand Down
21 changes: 0 additions & 21 deletions charts/gardener-extension-validator-ionos/.helmignore

This file was deleted.

5 changes: 0 additions & 5 deletions charts/gardener-extension-validator-ionos/Chart.yaml

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 988f25f

Please sign in to comment.