mirror of
https://github.com/aquasecurity/kube-bench.git
synced 2025-08-05 13:26:17 +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
|
app: kube-bench
|
||||||
name: kube-bench-cluster-role
|
name: kube-bench-cluster-role
|
||||||
rules:
|
rules:
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- '*'
|
- '*'
|
||||||
resources:
|
resources:
|
||||||
- '*'
|
- '*'
|
||||||
verbs:
|
verbs:
|
||||||
- 'get'
|
- 'get'
|
||||||
- 'list'
|
- 'list'
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- '*'
|
- '*'
|
||||||
resources:
|
resources:
|
||||||
- 'pods/exec'
|
- 'pods/exec'
|
||||||
verbs:
|
verbs:
|
||||||
- 'create'
|
- 'create'
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- '*'
|
- '*'
|
||||||
resources:
|
resources:
|
||||||
- 'pods'
|
- 'pods'
|
||||||
@ -53,7 +53,7 @@ roleRef:
|
|||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
name: kube-bench-cluster-role
|
name: kube-bench-cluster-role
|
||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: kube-bench-sa
|
name: kube-bench-sa
|
||||||
# It is mandatory to give namespace here and it doesn't pick the one mentioned in kubeconfig file.
|
# It is mandatory to give namespace here and it doesn't pick the one mentioned in kubeconfig file.
|
||||||
namespace: kube-bench
|
namespace: kube-bench
|
||||||
@ -71,7 +71,7 @@ roleRef:
|
|||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
name: system:openshift:scc:privileged
|
name: system:openshift:scc:privileged
|
||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: kube-bench-sa
|
name: kube-bench-sa
|
||||||
namespace: kube-bench
|
namespace: kube-bench
|
||||||
---
|
---
|
||||||
|
Loading…
Reference in New Issue
Block a user