Skip to content

Commit a343e4b

Browse files
Reet00J12934
authored andcommitted
#2938 Change argument to uppercase for compatibility with other tools
Signed-off-by: Samreet Singh <samreet.singh@iteratec.com>
1 parent ed5e00a commit a343e4b

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

operator/controllers/execution/scans/hook_reconciler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ func generateJobForHook(hookName string, hookSpec *executionv1.ScanCompletionHoo
388388
ReadOnlyRootFilesystem: &truePointer,
389389
Privileged: &falsePointer,
390390
Capabilities: &corev1.Capabilities{
391-
Drop: []corev1.Capability{"all"},
391+
Drop: []corev1.Capability{"ALL"},
392392
},
393393
},
394394
},

operator/controllers/execution/scans/parse_reconciler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ func (r *ScanReconciler) startParser(scan *executionv1.Scan) error {
191191
ReadOnlyRootFilesystem: &truePointer,
192192
Privileged: &falsePointer,
193193
Capabilities: &corev1.Capabilities{
194-
Drop: []corev1.Capability{"all"},
194+
Drop: []corev1.Capability{"ALL"},
195195
},
196196
},
197197
},

operator/controllers/execution/scans/scan_reconciler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ func (r *ScanReconciler) constructJobForScan(scan *executionv1.Scan, scanTypeSpe
336336
ReadOnlyRootFilesystem: &truePointer,
337337
Privileged: &falsePointer,
338338
Capabilities: &corev1.Capabilities{
339-
Drop: []corev1.Capability{"all"},
339+
Drop: []corev1.Capability{"ALL"},
340340
},
341341
},
342342
}

operator/tests/__snapshot__/operator_test.yaml.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ matches the snapshot:
111111
allowPrivilegeEscalation: false
112112
capabilities:
113113
drop:
114-
- all
114+
- ALL
115115
privileged: false
116116
readOnlyRootFilesystem: true
117117
runAsNonRoot: true
@@ -688,7 +688,7 @@ properly-renders-the-service-monitor-when-enabled:
688688
allowPrivilegeEscalation: false
689689
capabilities:
690690
drop:
691-
- all
691+
- ALL
692692
privileged: false
693693
readOnlyRootFilesystem: true
694694
runAsNonRoot: true

operator/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ securityContext:
5050
capabilities:
5151
drop:
5252
# securityContext.capabilities.drop[0] -- This drops all linux privileges from the operator container. They are not required
53-
- all
53+
- ALL
5454

5555
# -- Sets the securityContext on the operators pod level. See: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
5656
podSecurityContext: {}

0 commit comments

Comments
 (0)