Skip to content

Commit d17f11d

Browse files
author
Craig Furman
authored
fix(appliance): chart version interpolation (#521)
You can't interpolate in values.yaml, even with things set in Chart.yaml. The old code causes a literal `{{ .Chart.AppVersion }}` to appear in image tags, which is invalid.
1 parent 890f90a commit d17f11d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

charts/sourcegraph-appliance/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ In addition to the documented values, all services also support the following va
3030
|-----|------|---------|-------------|
3131
| affinity | object | `{}` | |
3232
| frontend.image.image | string | `"appliance-frontend"` | |
33-
| frontend.image.tag | string | `"{{ .Chart.AppVersion }}"` | |
33+
| frontend.image.tag | string | `"5.5.3738"` | |
3434
| fullnameOverride | string | `""` | |
3535
| image.image | string | `"appliance"` | |
3636
| image.pullPolicy | string | `"IfNotPresent"` | |
3737
| image.repository | string | `"index.docker.io/sourcegraph"` | |
38-
| image.tag | string | `"{{ .Chart.AppVersion }}"` | |
38+
| image.tag | string | `"5.5.3738"` | |
3939
| imagePullSecrets | list | `[]` | |
4040
| ingress.annotations | object | `{}` | |
4141
| ingress.className | string | `""` | |

charts/sourcegraph-appliance/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ image:
88
image: appliance
99
pullPolicy: IfNotPresent
1010
# Overrides the image tag whose default is the chart appVersion.
11-
tag: "{{ .Chart.AppVersion }}"
11+
tag: &version "5.5.3738"
1212
# Version and Tag (above) are subtley different
1313
# Tag is the docker container tag
1414
# Version is the internal version number as understood by appliance
@@ -115,7 +115,7 @@ frontend:
115115
image:
116116
image: appliance-frontend
117117
# Overrides the image tag whose default is the chart appVersion.
118-
tag: "{{ .Chart.AppVersion }}"
118+
tag: *version
119119

120120
selfUpdate:
121121
enabled: true

0 commit comments

Comments
 (0)