From 3fd7e7835a3875fdad98da1800c8b2ee0c13d28b Mon Sep 17 00:00:00 2001 From: Ryan Richard Date: Thu, 9 Jul 2020 10:16:46 -0700 Subject: [PATCH] Allow optionally using a tag instead of a digest in deployment.yaml --- deploy/deployment.yaml | 4 ++++ deploy/values.yaml | 8 +++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/deploy/deployment.yaml b/deploy/deployment.yaml index 4b16d7ac..3daf7605 100644 --- a/deploy/deployment.yaml +++ b/deploy/deployment.yaml @@ -42,7 +42,11 @@ spec: spec: containers: - name: placeholder-name + #@ if data.values.image_digest: image: #@ data.values.image_repo + "@" + data.values.image_digest + #@ else: + image: #@ data.values.image_repo + ":" + data.values.image_tag + #@ end imagePullPolicy: IfNotPresent command: - ./app diff --git a/deploy/values.yaml b/deploy/values.yaml index 801159e6..09b781d0 100644 --- a/deploy/values.yaml +++ b/deploy/values.yaml @@ -1,8 +1,14 @@ #@data/values --- + app_name: placeholder-name -namespace: + +namespace: #! e.g. placeholder-name + +#! Specify either an image_digest or an image_tag. If both are given, only image_digest will be used. image_repo: #! e.g. gcr.io/your-project-name/repo-name image_digest: #! e.g. sha256:f3c4fdfd3ef865d4b97a1fd295d94acc3f0c654c46b6f27ffad5cf80216903c8 +image_tag: #! e.g. latest + webhook_url: #! e.g., https://example.com webhook_ca_bundle: #! e.g., "-----BEGIN CERTIFICATE----- [...]"