File tree Expand file tree Collapse file tree 7 files changed +30
-20
lines changed
deployment/helm/node-feature-discovery/templates Expand file tree Collapse file tree 7 files changed +30
-20
lines changed Original file line number Diff line number Diff line change @@ -105,3 +105,22 @@ Create the name of the service account which nfd-gc will use
105
105
{ { default " default" .Values.gc.serviceAccount.name } }
106
106
{ {- end -} }
107
107
{ {- end -} }
108
+
109
+ { {/*
110
+ imagePullSecrets helper - uses local values or falls back to global values
111
+ */} }
112
+ { {- define " node-feature-discovery.imagePullSecrets" -} }
113
+ { {- $imagePullSecrets := list -} }
114
+ { {- if .Values.imagePullSecrets -} }
115
+ { {- range .Values.imagePullSecrets -} }
116
+ { {- $imagePullSecrets = append $imagePullSecrets . -} }
117
+ { {- end -} }
118
+ { {- else if and .Values.global .Values.global.imagePullSecrets -} }
119
+ { {- range .Values.global.imagePullSecrets -} }
120
+ { {- $imagePullSecrets = append $imagePullSecrets . -} }
121
+ { {- end -} }
122
+ { {- end -} }
123
+ { {- if $imagePullSecrets -} }
124
+ { {- $imagePullSecrets | toJson } }
125
+ { {- end -} }
126
+ { {- end -} }
Original file line number Diff line number Diff line change 33
33
{{- with .Values.priorityClassName }}
34
34
priorityClassName : {{ . }}
35
35
{{- end }}
36
- {{- with .Values.imagePullSecrets }}
37
- imagePullSecrets :
38
- {{- toYaml . | nindent 8 }}
39
- {{- end }}
36
+ imagePullSecrets : {{ include "node-feature-discovery.imagePullSecrets" . }}
40
37
serviceAccountName : {{ include "node-feature-discovery.master.serviceAccountName" . }}
41
38
enableServiceLinks : false
42
39
securityContext :
Original file line number Diff line number Diff line change 33
33
{{- with .Values.priorityClassName }}
34
34
priorityClassName : {{ . }}
35
35
{{- end }}
36
- {{- with .Values.imagePullSecrets }}
37
- imagePullSecrets :
38
- {{- toYaml . | nindent 8 }}
39
- {{- end }}
36
+ imagePullSecrets : {{ include "node-feature-discovery.imagePullSecrets" . }}
40
37
securityContext :
41
38
{{- toYaml .Values.gc.podSecurityContext | nindent 8 }}
42
39
hostNetwork : {{ .Values.gc.hostNetwork }}
Original file line number Diff line number Diff line change 67
67
role : prune
68
68
spec :
69
69
serviceAccountName : {{ include "node-feature-discovery.fullname" . }}-prune
70
- {{- with .Values.imagePullSecrets }}
71
- imagePullSecrets :
72
- {{- toYaml . | nindent 8 }}
73
- {{- end }}
70
+ imagePullSecrets : {{ include "node-feature-discovery.imagePullSecrets" . }}
74
71
containers :
75
72
- name : nfd-master
76
73
securityContext :
Original file line number Diff line number Diff line change 33
33
{{- with .Values.priorityClassName }}
34
34
priorityClassName : {{ . }}
35
35
{{- end }}
36
- {{- with .Values.imagePullSecrets }}
37
- imagePullSecrets :
38
- {{- toYaml . | nindent 8 }}
39
- {{- end }}
36
+ imagePullSecrets : {{ include "node-feature-discovery.imagePullSecrets" . }}
40
37
securityContext :
41
38
{{- toYaml .Values.topologyUpdater.podSecurityContext | nindent 8 }}
42
39
hostNetwork : {{ .Values.topologyUpdater.hostNetwork }}
Original file line number Diff line number Diff line change 36
36
{{- with .Values.priorityClassName }}
37
37
priorityClassName : {{ . }}
38
38
{{- end }}
39
- {{- with .Values.imagePullSecrets }}
40
- imagePullSecrets :
41
- {{- toYaml . | nindent 8 }}
42
- {{- end }}
39
+ imagePullSecrets : {{ include "node-feature-discovery.imagePullSecrets" . }}
43
40
serviceAccountName : {{ include "node-feature-discovery.worker.serviceAccountName" . }}
44
41
securityContext :
45
42
{{- toYaml .Values.worker.podSecurityContext | nindent 8 }}
Original file line number Diff line number Diff line change @@ -170,6 +170,12 @@ Metrics are configured to be exposed using prometheus operator API's by
170
170
default. If you want to expose metrics using the prometheus operator
171
171
API's you need to install the prometheus operator in your cluster.
172
172
173
+ ### Global parameters
174
+
175
+ | Name | Type | Default | Description |
176
+ | ---------------------------------------------| ---------| ----------------------------------| ----------------------------------------------------------------------------------------------------------------------------|
177
+ | ` global.imagePullSecrets ` | array | [ ] | An optional list of references to secrets with the same meaning as ` imagePullSecrets ` . If ` imagePullSecrets ` is specified, it takes precedence over ` global.imagePullSecrets ` . |
178
+
173
179
### Master pod parameters
174
180
175
181
| Name | Type | Default | Description |
You can’t perform that action at this time.
0 commit comments