File tree 4 files changed +18
-2
lines changed
4 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ home: https://github.com/coder/coder
5
5
6
6
# version and appVersion are injected at release and will always be shown as
7
7
# 0.1.0 in the repository.
8
+ #
9
+ # If you're installing the Helm chart directly from git it will have this
10
+ # version, which means the auto-generated image URI will be invalid. You can set
11
+ # "coder.image.tag" to the desired tag manually.
8
12
type : application
9
13
version : " 0.1.0"
10
14
appVersion : " 0.1.0"
Original file line number Diff line number Diff line change @@ -32,6 +32,16 @@ app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
32
32
app.kubernetes.io/managed-by: { { .Release.Service } }
33
33
{ {- end } }
34
34
35
+ { {/*
36
+ Coder Docker image URI
37
+ */} }
38
+ { {- define " coder.image" -} }
39
+ { {- if and (eq .Values.coder.image.tag " " ) (eq .Chart.AppVersion " 0.1.0" ) -} }
40
+ { { fail " You must specify coder.image.tag if you're installing the Helm chart directly from Git." } }
41
+ { {- end -} }
42
+ { { .Values.coder.image.repo } }:{ { .Values.coder.image.tag | default (printf " v%v" .Chart.AppVersion) } }
43
+ { {- end } }
44
+
35
45
{ {/*
36
46
Coder listen port (must be > 1024)
37
47
*/} }
Original file line number Diff line number Diff line change 29
29
terminationGracePeriodSeconds : 60
30
30
containers :
31
31
- name : coder
32
- image : " {{ .Values. coder.image.repo }}:{{ .Values.coder.image.tag | default (printf " v%v" .Chart.AppVersion) }}"
32
+ image : {{ include " coder.image" . | quote }}
33
33
imagePullPolicy : {{ .Values.coder.image.pullPolicy }}
34
34
resources :
35
35
{{- toYaml .Values.resources | nindent 12 }}
Original file line number Diff line number Diff line change 10
10
# coder.image.repo -- The repository of the image.
11
11
repo : " ghcr.io/coder/coder"
12
12
# coder.image.tag -- The tag of the image, defaults to {{.Chart.AppVersion}}
13
- # if not set.
13
+ # if not set. If you're using the chart directly from git, the default
14
+ # app version will not work and you'll need to set this value. The helm
15
+ # chart helpfully fails quickly in this case.
14
16
tag : " "
15
17
# coder.image.pullPolicy -- The pull policy to use for the image. See:
16
18
# https://kubernetes.io/docs/concepts/containers/images/#image-pull-policy
You can’t perform that action at this time.
0 commit comments