From 92682e3e99e6ea8b15ce53ba22d6c4f5ac7ef300 Mon Sep 17 00:00:00 2001 From: bsctl Date: Sat, 13 Feb 2021 15:50:12 +0100 Subject: [PATCH] make installer image configurable --- helm/Chart.yaml | 2 +- helm/templates/keepalived-installer.yaml | 4 ++-- helm/templates/keepalived-manifest.yaml | 2 +- helm/values.yaml | 5 +++++ 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/helm/Chart.yaml b/helm/Chart.yaml index 3a30615..6f716ef 100644 --- a/helm/Chart.yaml +++ b/helm/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.1.0 +version: 0.1.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/helm/templates/keepalived-installer.yaml b/helm/templates/keepalived-installer.yaml index a0531dd..dc37ec4 100644 --- a/helm/templates/keepalived-installer.yaml +++ b/helm/templates/keepalived-installer.yaml @@ -30,8 +30,8 @@ spec: - name: installer securityContext: privileged: true - image: busybox - imagePullPolicy: IfNotPresent + image: {{ .Values.installer.repository }}:{{ .Values.installer.tag | default "latest" }} + imagePullPolicy: {{ .Values.installer.pullPolicy }} command: ["./scripts/install.sh"] lifecycle: preStop: diff --git a/helm/templates/keepalived-manifest.yaml b/helm/templates/keepalived-manifest.yaml index 444d3ec..cf86f3d 100644 --- a/helm/templates/keepalived-manifest.yaml +++ b/helm/templates/keepalived-manifest.yaml @@ -21,7 +21,7 @@ data: containers: - name: keepalived image: {{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }} - imagePullPolicy: Always + imagePullPolicy: {{ .Values.image.pullPolicy }} args: # override options in the Dockerfile - --vrrp - --log-detail diff --git a/helm/values.yaml b/helm/values.yaml index db7fa65..cd6d4fb 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -7,6 +7,11 @@ image: pullPolicy: IfNotPresent tag: '' +installer: + repository: busybox + pullPolicy: IfNotPresent + tag: latest + serviceAccount: create: false annotations: {}