From c7d02cb3503dc726c2786d3ffdd94ff79cee97ab Mon Sep 17 00:00:00 2001 From: Kevin Schu Date: Fri, 22 Apr 2022 16:07:12 +0200 Subject: [PATCH] use app version and make repo configurable --- charts/sidecar-cleaner/Chart.yaml | 2 +- charts/sidecar-cleaner/templates/deployment.yaml | 2 +- charts/sidecar-cleaner/values.yaml | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/charts/sidecar-cleaner/Chart.yaml b/charts/sidecar-cleaner/Chart.yaml index 8dca107..84dc828 100755 --- a/charts/sidecar-cleaner/Chart.yaml +++ b/charts/sidecar-cleaner/Chart.yaml @@ -21,4 +21,4 @@ version: 0.1.0 # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "1.16.0" +appVersion: "v0.1.0" diff --git a/charts/sidecar-cleaner/templates/deployment.yaml b/charts/sidecar-cleaner/templates/deployment.yaml index 296b29c..27557f7 100755 --- a/charts/sidecar-cleaner/templates/deployment.yaml +++ b/charts/sidecar-cleaner/templates/deployment.yaml @@ -29,7 +29,7 @@ spec: - name: {{ .Chart.Name }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} - image: {{ .Values.image | quote }} + image: "{{ .Values.image.repository }}:{{ default .Chart.AppVersion .Values.image.tag }}" resources: {{- toYaml .Values.resources | nindent 12 }} {{- with .Values.nodeSelector }} diff --git a/charts/sidecar-cleaner/values.yaml b/charts/sidecar-cleaner/values.yaml index d09bad8..7cf6a85 100755 --- a/charts/sidecar-cleaner/values.yaml +++ b/charts/sidecar-cleaner/values.yaml @@ -4,7 +4,9 @@ replicaCount: 1 -image: "" +image: + repository: "ghcr.io/aoepeople/kubernetes-sidecar-cleaner" + tag: "" imagePullSecrets: - name: aws-eks