Commit 5c1499e 1 parent 403ebf7 commit 5c1499e Copy full SHA for 5c1499e
File tree 3 files changed +11
-18
lines changed
helm-charts/cs-k8s-protection-agent
3 files changed +11
-18
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ 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.0.1 "
18
+ version : " 1.0.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
Original file line number Diff line number Diff line change @@ -22,15 +22,16 @@ spec:
22
22
spec :
23
23
{{- if or (.Values.image.pullSecrets) (.Values.image.registryConfigJSON) (.Values.crowdstrikeConfig.dockerAPIToken) }}
24
24
imagePullSecrets :
25
- {{ if .Values.crowdstrikeConfig.dockerAPIToken }}
25
+ {{- if and (.Values.crowdstrikeConfig.dockerAPIToken) (.Values.image.registryConfigJSON) }}
26
+ {{- fail "crowdstrikeConfig.dockerAPIToken and image.registryConfigJSON cannot be used together." }}
27
+ {{- else -}}
28
+ {{ if or (.Values.crowdstrikeConfig.dockerAPIToken) (.Values.image.registryConfigJSON) }}
26
29
- name : {{ include "cs-k8s-protection-agent.fullname" . }}-regsecret
27
30
{{- end }}
31
+ {{- end }}
28
32
{{ if .Values.image.pullSecrets }}
29
33
- name : {{ .Values.image.pullSecrets }}
30
34
{{- end }}
31
- {{ if .Values.image.registryConfigJSON }}
32
- - name : {{ include "cs-k8s-protection-agent.fullname" . }}-regsecret-registryconfigjson
33
- {{- end }}
34
35
{{- end }}
35
36
serviceAccountName : {{ .Values.serviceAccount.name | default ( include "cs-k8s-protection-agent.fullname" . ) }}
36
37
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,18 +8,10 @@ metadata:
8
8
{{- include "cs-k8s-protection-agent.labels" . | nindent 4 }}
9
9
type : kubernetes.io/dockerconfigjson
10
10
data :
11
+ {{- if .Values.crowdstrikeConfig.dockerAPIToken }}
11
12
.dockerconfigjson : {{ template "imagePullSecret" . }}
12
- {{- end}}
13
+ {{- end }}
13
14
{{- if .Values.image.registryConfigJSON }}
14
- {{- $registry := .Values.image.registryConfigJSON }}
15
- apiVersion : v1
16
- kind : Secret
17
- metadata :
18
- name : {{ include "cs-k8s-protection-agent.fullname" . }}-regsecret
19
- namespace : {{ .Release.Namespace }}
20
- labels :
21
- {{- include "cs-k8s-protection-agent.labels" . | nindent 4 }}
22
- data :
23
- .dockerconfigjson : {{ $registry }}
24
- type : kubernetes.io/dockerconfigjson
15
+ .dockerconfigjson : {{ .Values.image.registryConfigJSON }}
25
16
{{- end }}
17
+ {{- end}}
You can’t perform that action at this time.
0 commit comments