From cbe861f615b863fec382b175e040802dc2919984 Mon Sep 17 00:00:00 2001 From: Richard Hagen Date: Fri, 21 Jun 2024 14:00:33 +0200 Subject: [PATCH] Chart bugfix add v and fix default tag (#10) * Add v to appVersion to match docker image tag * remove default tag so we fallback to Chart.AppVersion instead * simplify chart --- charts/radix-oauth-guard/Chart.yaml | 4 ++-- charts/radix-oauth-guard/templates/deployment.yaml | 2 +- charts/radix-oauth-guard/values.yaml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/charts/radix-oauth-guard/Chart.yaml b/charts/radix-oauth-guard/Chart.yaml index 647f3ff..0dcf7a7 100644 --- a/charts/radix-oauth-guard/Chart.yaml +++ b/charts/radix-oauth-guard/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: radix-oauth-guard icon: https://radix.equinor.com/images/logos/logo.svg description: Forward Auth to validate, authenticate and authorize JWT tokens -appVersion: 0.5.0 -version: 0.5.0 +version: 0.5.1 +appVersion: 0.5.1 # appVersion should always be equal to version! kubeVersion: ">=1.24.0" keywords: - radix diff --git a/charts/radix-oauth-guard/templates/deployment.yaml b/charts/radix-oauth-guard/templates/deployment.yaml index c7f5a58..766bc6e 100644 --- a/charts/radix-oauth-guard/templates/deployment.yaml +++ b/charts/radix-oauth-guard/templates/deployment.yaml @@ -40,7 +40,7 @@ spec: {{- with .Values.tolerations }} tolerations: {{- toYaml . | nindent 8 }} - {{- end }} + {{- end }} containers: - name: {{ .Chart.Name }} image: "{{ .Values.image.repository }}:{{ default .Chart.AppVersion .Values.image.tag }}" diff --git a/charts/radix-oauth-guard/values.yaml b/charts/radix-oauth-guard/values.yaml index 8a6b033..52a8e54 100644 --- a/charts/radix-oauth-guard/values.yaml +++ b/charts/radix-oauth-guard/values.yaml @@ -6,7 +6,7 @@ fullnameOverride: "" image: repository: ghcr.io/equinor/radix-oauth-guard - tag: latest + tag: "" pullPolicy: Always # Annotations to add to the Deployment @@ -37,4 +37,4 @@ affinity: {} nodeSelector: {} # Tolerations for pod scheduling -tolerations: [] +tolerations: []