From ce60ff172a4a908f1eaf471743cd34815302b97f Mon Sep 17 00:00:00 2001 From: Denis Shatohin Date: Fri, 9 Sep 2022 23:24:02 +0300 Subject: [PATCH] Add 'extraEnv' 'service.annotations' and 'podAnnotations' parameters (#16) * Add 'extraEnv' 'service.annotations' and 'podAnnotations' parameters * Bump chart version --- deploy/cert-manager-webhook-selectel/Chart.yaml | 2 +- .../templates/deployment.yaml | 7 +++++++ .../cert-manager-webhook-selectel/templates/service.yaml | 4 ++++ deploy/cert-manager-webhook-selectel/values.yaml | 9 +++++++++ 4 files changed, 21 insertions(+), 1 deletion(-) diff --git a/deploy/cert-manager-webhook-selectel/Chart.yaml b/deploy/cert-manager-webhook-selectel/Chart.yaml index 1ff1832..331876c 100644 --- a/deploy/cert-manager-webhook-selectel/Chart.yaml +++ b/deploy/cert-manager-webhook-selectel/Chart.yaml @@ -7,4 +7,4 @@ maintainers: - name: andrsp email: izotikov@selectel.ru url: https://github.com/andrsp -version: 1.2.2 +version: 1.2.3 diff --git a/deploy/cert-manager-webhook-selectel/templates/deployment.yaml b/deploy/cert-manager-webhook-selectel/templates/deployment.yaml index ba3d5ae..8ea0100 100644 --- a/deploy/cert-manager-webhook-selectel/templates/deployment.yaml +++ b/deploy/cert-manager-webhook-selectel/templates/deployment.yaml @@ -16,6 +16,10 @@ spec: release: {{ .Release.Name }} template: metadata: + {{- with .Values.podAnnotations }} + annotations: + {{- toYaml . | nindent 8 }} + {{- end }} labels: app: {{ include "cert-manager-webhook-selectel.name" . }} release: {{ .Release.Name }} @@ -31,6 +35,9 @@ spec: env: - name: GROUP_NAME value: {{ .Values.groupName | quote }} + {{- with .Values.extraEnv }} + {{- toYaml . | nindent 12 }} + {{- end }} ports: - name: https containerPort: 443 diff --git a/deploy/cert-manager-webhook-selectel/templates/service.yaml b/deploy/cert-manager-webhook-selectel/templates/service.yaml index 7216223..be2c89d 100644 --- a/deploy/cert-manager-webhook-selectel/templates/service.yaml +++ b/deploy/cert-manager-webhook-selectel/templates/service.yaml @@ -3,6 +3,10 @@ apiVersion: v1 kind: Service metadata: name: {{ include "cert-manager-webhook-selectel.fullname" . }} + {{- with .Values.service.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} labels: app: {{ include "cert-manager-webhook-selectel.name" . }} chart: {{ include "cert-manager-webhook-selectel.chart" . }} diff --git a/deploy/cert-manager-webhook-selectel/values.yaml b/deploy/cert-manager-webhook-selectel/values.yaml index 24884b2..dc92b3d 100644 --- a/deploy/cert-manager-webhook-selectel/values.yaml +++ b/deploy/cert-manager-webhook-selectel/values.yaml @@ -12,6 +12,8 @@ certManager: namespace: cert-manager serviceAccountName: cert-manager +replicaCount: 1 + image: repository: ghcr.io/selectel/cert-manager-webhook-selectel tag: v1.2.0 @@ -20,9 +22,14 @@ image: nameOverride: "" fullnameOverride: "" +extraEnv: [] +# - name: SOME_VAR +# value: "some value" + service: type: ClusterIP port: 443 + annotations: {} resources: {} # limits: @@ -32,6 +39,8 @@ resources: {} # cpu: 100m # memory: 128Mi +podAnnotations: {} + nodeSelector: {} tolerations: []