diff --git a/stable/sidecar-terminator/Chart.yaml b/stable/sidecar-terminator/Chart.yaml index 735ad939..992955dc 100644 --- a/stable/sidecar-terminator/Chart.yaml +++ b/stable/sidecar-terminator/Chart.yaml @@ -3,12 +3,13 @@ appVersion: "1.0.0" description: |- A chart used for easily configuring kubernetes-sidecar-terminator in a cluster. name: sidecar-terminator -version: 1.2.1 +version: 1.2.2 keywords: - sidecar-terminator sources: -- https://gitlab.k8s.cloud.statcan.ca/cloudnative/terraform/modules/terraform-kubernetes-sidecar-terminator +- https://github.com/statcan/kubernetes-sidecar-terminator maintainers: - name: Mohamed Dahrouj email: mohamed.dahrouj@statcan.gc.ca home: https://www.statcan.gc.ca +kubeVersion: ">= 1.23" diff --git a/stable/sidecar-terminator/templates/deployment.yaml b/stable/sidecar-terminator/templates/deployment.yaml index d294512e..b31b2df4 100644 --- a/stable/sidecar-terminator/templates/deployment.yaml +++ b/stable/sidecar-terminator/templates/deployment.yaml @@ -12,8 +12,15 @@ spec: strategy: {} template: metadata: + {{- with .Values.podAnnotations }} + annotations: + {{- toYaml . | nindent 8 }} + {{- end }} labels: - app.kubernetes.io/name: {{ include "sidecar-terminator.fullname" . }} + {{- include "sidecar-terminator.labels" . | nindent 8 }} + {{- with .Values.podLabels }} + {{- toYaml . | nindent 8 }} + {{- end }} spec: {{- with .Values.imagePullSecrets }} imagePullSecrets: @@ -24,7 +31,7 @@ spec: priorityClassName: {{ .Values.priorityClassName }} {{- end }} containers: - - image: {{ .Values.image.repository }} + - image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" name: sidecar-terminator args: - '--lock-namespace' diff --git a/stable/sidecar-terminator/values.yaml b/stable/sidecar-terminator/values.yaml index 817a3ccf..619e12d1 100644 --- a/stable/sidecar-terminator/values.yaml +++ b/stable/sidecar-terminator/values.yaml @@ -4,8 +4,13 @@ replicaCount: 1 +# Annotations to add to the Pod +podAnnotations: {} +# Labels to add to the Pod +podLabels: {} + image: - repository: zachomedia/kubernetes-sidecar-terminator + repository: statcan/kubernetes-sidecar-terminator pullPolicy: IfNotPresent # Overrides the image tag whose default is the chart appVersion. tag: ""