File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
- { { if .Values.agentInjectors.enabled } }
2
- { { if .Values.agentInjectors.useClusterAgentInjectors } } # ClusterAgentInjectors
1
+ { {- if .Values.agentInjectors.enabled } }
2
+ { {- if .Values.agentInjectors.useClusterAgentInjectors } } # ClusterAgentInjectors
3
+ { {- if and .Release.IsUpgrade (not (.Capabilities.APIVersions.Has " agents.contrastsecurity.com/v1beta1/ClusterAgentInjector" )) } }
4
+ { { fail (print " ClusterAgentInjector CRD missing, please upgrade CRDs with 'kubectl apply -f https://github.com/Contrast-Security-OSS/agent-operator/releases/download/v" .Chart.AppVersion " /crds.yaml'" )} }
5
+ { {- end } } #Capabilities
3
6
{ {- range $injector := .Values.agentInjectors.injectors } }
4
7
---
5
8
apiVersion: agents.contrastsecurity.com/v1beta1
26
29
{ {- if $injector .image } }
27
30
image:
28
31
{ {- $injector .image | toYaml | nindent 8 } }
29
- { {- end} }
32
+ { {- end } }
30
33
{ {- if or $injector .selector $injector .images } }
31
34
{ { $selector := $injector .selector | default dict -} }
32
35
selector:
40
43
{ {- end } }
41
44
{ {- end } }
42
45
{ {- end } }
43
- { { else } } # AgentInjectors
46
+ { {- else } } # AgentInjectors
44
47
{ {- range $namespace := .Values.agentInjectors.namespaces } }
45
48
{ {- range $injector := $.Values.agentInjectors.injectors } }
46
49
---
You can’t perform that action at this time.
0 commit comments