mirror of
https://github.com/aquasecurity/kube-bench.git
synced 2025-08-03 04:18:12 +00:00
Resolve linting issues in YAML file
This commit is contained in:
parent
4ba6a0cfda
commit
9a9adcd16d
10
job-ocp.yaml
10
job-ocp.yaml
@ -19,20 +19,20 @@ metadata:
|
||||
app: kube-bench
|
||||
name: kube-bench-cluster-role
|
||||
rules:
|
||||
- apiGroups:
|
||||
- apiGroups:
|
||||
- '*'
|
||||
resources:
|
||||
- '*'
|
||||
verbs:
|
||||
- 'get'
|
||||
- 'list'
|
||||
- apiGroups:
|
||||
- apiGroups:
|
||||
- '*'
|
||||
resources:
|
||||
- 'pods/exec'
|
||||
verbs:
|
||||
- 'create'
|
||||
- apiGroups:
|
||||
- apiGroups:
|
||||
- '*'
|
||||
resources:
|
||||
- 'pods'
|
||||
@ -53,7 +53,7 @@ roleRef:
|
||||
kind: ClusterRole
|
||||
name: kube-bench-cluster-role
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
- kind: ServiceAccount
|
||||
name: kube-bench-sa
|
||||
# It is mandatory to give namespace here and it doesn't pick the one mentioned in kubeconfig file.
|
||||
namespace: kube-bench
|
||||
@ -71,7 +71,7 @@ roleRef:
|
||||
kind: ClusterRole
|
||||
name: system:openshift:scc:privileged
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
- kind: ServiceAccount
|
||||
name: kube-bench-sa
|
||||
namespace: kube-bench
|
||||
---
|
||||
|
Loading…
Reference in New Issue
Block a user