Skip to content

Commit d9b8b0c

Browse files
yansun1996sajmera-pensando
authored andcommitted
Adding SecurityContextConstraint access to test runner role (#79)
1 parent ece522c commit d9b8b0c

File tree

6 files changed

+37
-5
lines changed

6 files changed

+37
-5
lines changed

bundle/manifests/amd-gpu-operator.clusterserviceversion.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ metadata:
3030
}
3131
]
3232
capabilities: Basic Install
33-
createdAt: "2025-03-13T11:48:39Z"
34-
operatorframework.io/suggested-namespace: kube-amd-gpu
33+
createdAt: "2025-03-18T22:58:17Z"
34+
operatorframework.io/suggested-namespace: openshift-amd-gpu
3535
operators.operatorframework.io/builder: operator-sdk-v1.32.0
3636
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
3737
repository: https://github.com/ROCm/gpu-operator
@@ -946,6 +946,14 @@ spec:
946946
- nodes
947947
verbs:
948948
- patch
949+
- apiGroups:
950+
- security.openshift.io
951+
resourceNames:
952+
- privileged
953+
resources:
954+
- securitycontextconstraints
955+
verbs:
956+
- use
949957
serviceAccountName: amd-gpu-operator-test-runner
950958
deployments:
951959
- label:

config/manifests/bases/amd-gpu-operator.clusterserviceversion.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
annotations:
55
alm-examples: '[]'
66
capabilities: Basic Install
7-
operatorframework.io/suggested-namespace: kube-amd-gpu
7+
operatorframework.io/suggested-namespace: openshift-amd-gpu
88
repository: https://github.com/ROCm/gpu-operator
99
name: amd-gpu-operator.v0.0.0
1010
namespace: placeholder

config/rbac/test_runner_role.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,12 @@ rules:
88
verbs: ["create", "list", "get", "update", "watch"]
99
- apiGroups: [""]
1010
resources: ["nodes"]
11-
verbs: ["patch"]
11+
verbs: ["patch"]
12+
- apiGroups:
13+
- security.openshift.io
14+
resourceNames:
15+
- privileged
16+
resources:
17+
- securitycontextconstraints
18+
verbs:
19+
- use

hack/openshift-patch/template-patch/test-runner-rbac.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ rules:
2323
- nodes
2424
verbs:
2525
- patch
26+
- apiGroups:
27+
- security.openshift.io
28+
resourceNames:
29+
- privileged
30+
resources:
31+
- securitycontextconstraints
32+
verbs:
33+
- use
2634
---
2735
apiVersion: rbac.authorization.k8s.io/v1
2836
kind: ClusterRoleBinding

helm-charts-openshift/Chart.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ dependencies:
66
repository: file://./charts/kmm
77
version: v1.0.0
88
digest: sha256:25200c34a5cc846a1275e5bf3fc637b19e909dc68de938189c5278d77d03f5ac
9-
generated: "2025-03-13T11:52:41.415392055Z"
9+
generated: "2025-03-18T22:58:15.38295759Z"

helm-charts-openshift/templates/test-runner-rbac.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ rules:
2323
- nodes
2424
verbs:
2525
- patch
26+
- apiGroups:
27+
- security.openshift.io
28+
resourceNames:
29+
- privileged
30+
resources:
31+
- securitycontextconstraints
32+
verbs:
33+
- use
2634
---
2735
apiVersion: rbac.authorization.k8s.io/v1
2836
kind: ClusterRoleBinding

0 commit comments

Comments
 (0)