Commit 04dd3bd 1 parent de2cd6f commit 04dd3bd Copy full SHA for 04dd3bd
File tree 5 files changed +35
-24
lines changed
helm-charts/falcon-image-analyzer
5 files changed +35
-24
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ type: application
15
15
# This is the chart version. This version number should be incremented each time you make changes
16
16
# to the chart and its templates, including the app version.
17
17
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18
- version : 1.1.1
18
+ version : 1.1.2
19
19
20
20
# This is the version number of the application being deployed. This version number should be
21
21
# incremented each time you make changes to the application. Versions are not expected to
22
22
# follow Semantic Versioning. They should reflect the version the application is using.
23
23
# It is recommended to use it with quotes.
24
- appVersion : " 1.1.1 "
24
+ appVersion : " 1.1.2 "
Original file line number Diff line number Diff line change @@ -21,13 +21,18 @@ spec:
21
21
labels :
22
22
{{- include "falcon-image-analyzer.labels" . | nindent 8 }}
23
23
spec :
24
- {{- if .Values.crowdstrikeConfig.dockerAPIToken }}
25
- imagePullSecrets :
26
- - name : {{ include "falcon-image-analyzer.fullname" . }}-pull-secret
27
- {{- end }}
28
- {{- if .Values.image.pullSecret }}
24
+ {{- if or (.Values.image.pullSecret) (.Values.image.registryConfigJSON) (.Values.crowdstrikeConfig.dockerAPIToken) }}
29
25
imagePullSecrets :
26
+ {{- if and (.Values.crowdstrikeConfig.dockerAPIToken) (.Values.image.registryConfigJSON) }}
27
+ {{- fail "crowdstrikeConfig.dockerAPIToken and image.registryConfigJSON cannot be used together." }}
28
+ {{- else -}}
29
+ {{ if or (.Values.crowdstrikeConfig.dockerAPIToken) (.Values.image.registryConfigJSON) }}
30
30
- name : {{ include "falcon-image-analyzer.fullname" . }}-pull-secret
31
+ {{- end }}
32
+ {{- end }}
33
+ {{- if .Values.image.pullSecret }}
34
+ - name : {{ .Values.image.pullSecret }}
35
+ {{- end }}
31
36
{{- end }}
32
37
serviceAccountName : {{ .Values.serviceAccount.name | default ( include "falcon-image-analyzer.fullname" . ) }}
33
38
securityContext :
Original file line number Diff line number Diff line change @@ -22,13 +22,18 @@ spec:
22
22
labels :
23
23
{{- include "falcon-image-analyzer.labels" . | nindent 8 }}
24
24
spec :
25
- {{- if .Values.crowdstrikeConfig.dockerAPIToken }}
26
- imagePullSecrets :
27
- - name : {{ include "falcon-image-analyzer.fullname" . }}-pull-secret
28
- {{- end }}
29
- {{- if .Values.image.pullSecret }}
25
+ {{- if or (.Values.image.pullSecret) (.Values.image.registryConfigJSON) (.Values.crowdstrikeConfig.dockerAPIToken) }}
30
26
imagePullSecrets :
27
+ {{- if and (.Values.crowdstrikeConfig.dockerAPIToken) (.Values.image.registryConfigJSON) }}
28
+ {{- fail "crowdstrikeConfig.dockerAPIToken and image.registryConfigJSON cannot be used together." }}
29
+ {{- else -}}
30
+ {{ if or (.Values.crowdstrikeConfig.dockerAPIToken) (.Values.image.registryConfigJSON) }}
31
31
- name : {{ include "falcon-image-analyzer.fullname" . }}-pull-secret
32
+ {{- end }}
33
+ {{- end }}
34
+ {{- if .Values.image.pullSecret }}
35
+ - name : {{ .Values.image.pullSecret }}
36
+ {{- end }}
32
37
{{- end }}
33
38
serviceAccountName : {{ .Values.serviceAccount.name | default ( include "falcon-image-analyzer.fullname" . ) }}
34
39
securityContext :
Original file line number Diff line number Diff line change 1
- {{- if .Values.crowdstrikeConfig.dockerAPIToken - }}
1
+ {{ if or ( .Values.crowdstrikeConfig.dockerAPIToken) (.Values.image.registryConfigJSON) }}
2
2
apiVersion : v1
3
3
kind : Secret
4
4
metadata :
@@ -8,16 +8,10 @@ metadata:
8
8
{{- include "falcon-image-analyzer.labels" . | nindent 4 }}
9
9
type : kubernetes.io/dockerconfigjson
10
10
data :
11
+ {{- if .Values.crowdstrikeConfig.dockerAPIToken }}
11
12
.dockerconfigjson : {{ template "falcon-image-analyzer.imagePullSecret" . }}
12
13
{{- end }}
13
- {{ if .Values.image.pullSecret }}
14
- apiVersion : v1
15
- kind : Secret
16
- metadata :
17
- name : {{ include "falcon-image-analyzer.fullname" . }}-pull-secret
18
- labels :
19
- {{- include "falcon-image-analyzer.labels" . | nindent 4 }}
20
- type : kubernetes.io/dockerconfigjson
21
- data :
22
- .dockerconfigjson : {{ .Values.image.pullSecret }}
23
- {{- end}}
14
+ {{- if .Values.image.registryConfigJSON }}
15
+ .dockerconfigjson : {{ .Values.image.registryConfigJSON }}
16
+ {{- end }}
17
+ {{- end }}
Original file line number Diff line number Diff line change @@ -30,6 +30,13 @@ image:
30
30
# config json with user and pass of your own
31
31
# private repository
32
32
pullSecret :
33
+ registryConfigJSON :
34
+
35
+ # Value must be base64. This setting conflicts with image.pullSecret
36
+ # The base64 encoded string of the docker config json for the pull secret can be
37
+ # gotten through:
38
+ # $ cat ~/.docker/config.json | base64 -
39
+ registryConfigJSON :
33
40
34
41
envFrom :
35
42
- configMapRef :
You can’t perform that action at this time.
0 commit comments