Skip to content

Commit e2d2036

Browse files
committed
Update kubectl image
Signed-off-by: Sergio Castaño Arteaga <tegioz@icloud.com>
1 parent ffa2714 commit e2d2036

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

charts/gitvote/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: gitvote
33
description: GitVote is a GitHub application that allows holding a vote on issues and pull requests
44
type: application
5-
version: 1.4.1
5+
version: 1.4.2-0
66
appVersion: 1.4.0
77
kubeVersion: ">= 1.19.0-0"
88
home: https://gitvote.dev

charts/gitvote/templates/gitvote_deployment.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ spec:
2828
- {{- include "chart.checkDbIsReadyInitContainer" . | nindent 10 }}
2929
{{- if .Release.IsInstall }}
3030
- name: check-dbmigrator-run
31-
image: "bitnami/kubectl:{{ template "chart.KubernetesVersion" . }}"
31+
{{ $kubeVersion := include "chart.KubernetesVersion" . }}
32+
{{ $kubectlImageVersion := ternary "1.33" $kubeVersion (semverCompare ">=1.34.0-0" (printf "%s.0" $kubeVersion)) }}
33+
image: "docker.io/bitnamilegacy/kubectl:{{ $kubectlImageVersion }}"
3234
imagePullPolicy: IfNotPresent
3335
command: ['kubectl', 'wait', '--namespace={{ .Release.Namespace }}', '--for=condition=complete', 'job/{{ include "chart.resourceNamePrefix" . }}dbmigrator-install', '--timeout=60s']
3436
{{- end }}

0 commit comments

Comments
 (0)