Skip to content

Commit 1a0850c

Browse files
committed
chore: fixing Helm templating for Tilt
introducing the gh-pages automation broke "helm template snyk-monitor" because it added a templated variable to the values.yaml, so "helm template" fails to render. this commit fixes it by changing our placeholder with a simple string instead of curly brackets.
1 parent 62217ce commit 1a0850c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

scripts/publish-gh-pages.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ echo overriding new yaml / chart files from master branch
2121
git checkout origin/master -- snyk-monitor snyk-monitor-cluster-permissions.yaml snyk-monitor-deployment.yaml snyk-monitor-namespaced-permissions.yaml
2222

2323
echo overriding tag placeholders with latest semantic version
24-
sed -i "s/{{IMAGE_TAG_OVERRIDE_WHEN_PUBLISHING}}/${NEW_TAG}/g" ./snyk-monitor/values.yaml
25-
sed -i "s/{{IMAGE_TAG_OVERRIDE_WHEN_PUBLISHING}}/${NEW_TAG}/g" ./snyk-monitor-deployment.yaml
24+
sed -i "s/IMAGE_TAG_OVERRIDE_WHEN_PUBLISHING/${NEW_TAG}/g" ./snyk-monitor/values.yaml
25+
sed -i "s/IMAGE_TAG_OVERRIDE_WHEN_PUBLISHING/${NEW_TAG}/g" ./snyk-monitor-deployment.yaml
2626

2727
echo building new helm release
2828
./helm init --client-only

snyk-monitor-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spec:
1515
app.kubernetes.io/name: snyk-monitor
1616
spec:
1717
containers:
18-
- image: snyk/kubernetes-monitor:{{IMAGE_TAG_OVERRIDE_WHEN_PUBLISHING}}
18+
- image: snyk/kubernetes-monitor:IMAGE_TAG_OVERRIDE_WHEN_PUBLISHING
1919
imagePullPolicy: Always
2020
name: snyk-monitor
2121
terminationMessagePath: /dev/termination-log

snyk-monitor/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ integrationApi: ""
1717
# The registry from which to pull the snyk-monitor image.
1818
image:
1919
repository: snyk/kubernetes-monitor
20-
tag: {{IMAGE_TAG_OVERRIDE_WHEN_PUBLISHING}}
20+
tag: IMAGE_TAG_OVERRIDE_WHEN_PUBLISHING
2121
pullPolicy: Always
2222

2323
# The snyk-monitor requires knowing the cluster name so that it can organise

0 commit comments

Comments
 (0)