Skip to content

Commit 4982445

Browse files
authored
Merge pull request #385 from chaitanya1731/tests
tests: Decouple DSA workload artifacts
2 parents b2415c2 + e3912ac commit 4982445

File tree

7 files changed

+53
-46
lines changed

7 files changed

+53
-46
lines changed

security/dsa_rbac.yaml

Lines changed: 0 additions & 36 deletions
This file was deleted.

security/dsa_role.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Copyright (c) 2025 Intel Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
apiVersion: rbac.authorization.k8s.io/v1
5+
kind: Role
6+
metadata:
7+
name: intel-dsa
8+
namespace: intel-dsa
9+
rules:
10+
- apiGroups:
11+
- security.openshift.io
12+
resources:
13+
- securitycontextconstraints
14+
resourceNames:
15+
- intel-dsa-scc
16+
verbs:
17+
- use

security/dsa_roleBinding.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Copyright (c) 2025 Intel Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
apiVersion: rbac.authorization.k8s.io/v1
5+
kind: RoleBinding
6+
metadata:
7+
name: intel-dsa
8+
roleRef:
9+
apiGroup: rbac.authorization.k8s.io
10+
kind: Role
11+
name: intel-dsa
12+
subjects:
13+
- kind: ServiceAccount
14+
name: intel-dsa
15+
namespace: intel-dsa

security/dsa_serviceAccount.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Copyright (c) 2025 Intel Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
apiVersion: v1
5+
kind: ServiceAccount
6+
metadata:
7+
name: intel-dsa
8+
namespace: intel-dsa

tests/l2/dsa/README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ This workload runs [accel-config](https://github.com/intel/idxd-config) sample t
66
Please replace the credentials in buildconfig yaml with your RedHat account login credentials.
77

88
```
9+
$ oc apply -f https://raw.githubusercontent.com/intel/intel-technology-enabling-for-openshift/main/tests/l2/dsa/dsa_imagestream.yaml
910
$ oc apply -f https://raw.githubusercontent.com/intel/intel-technology-enabling-for-openshift/main/tests/l2/dsa/dsa_build.yaml
1011
```
1112

@@ -15,10 +16,12 @@ $ oc apply -f https://raw.githubusercontent.com/intel/intel-technology-enabling-
1516
$ oc apply -f https://raw.githubusercontent.com/intel/intel-technology-enabling-for-openshift/main/security/dsa_scc.yaml
1617
```
1718
18-
* Create the intel-dsa service account to use intel-dsa-scc
19+
* Create the intel-dsa serviceAccount, role and roleBinding to use intel-dsa-scc
1920

2021
```
21-
$ oc apply -f https://raw.githubusercontent.com/intel/intel-technology-enabling-for-openshift/main/security/dsa_rbac.yaml
22+
$ oc apply -f https://raw.githubusercontent.com/intel/intel-technology-enabling-for-openshift/main/security/dsa_serviceAccount.yaml
23+
$ oc apply -f https://raw.githubusercontent.com/intel/intel-technology-enabling-for-openshift/main/security/dsa_role.yaml
24+
$ oc apply -f https://raw.githubusercontent.com/intel/intel-technology-enabling-for-openshift/main/security/dsa_roleBinding.yaml
2225
```
2326

2427
* Deploy the accel-config workload job with intel-dsa service account

tests/l2/dsa/dsa_build.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
# Copyright (c) 2024 Intel Corporation
22
# SPDX-License-Identifier: Apache-2.0
33

4-
apiVersion: image.openshift.io/v1
5-
kind: ImageStream
6-
metadata:
7-
name: intel-dsa-workload
8-
namespace: intel-dsa
9-
spec: {}
10-
---
114
apiVersion: build.openshift.io/v1
125
kind: BuildConfig
136
metadata:
@@ -53,7 +46,6 @@ spec:
5346
secretKeyRef:
5447
key: password
5548
name: rh-auth
56-
5749
output:
5850
to:
5951
kind: ImageStreamTag

tests/l2/dsa/dsa_imagestream.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Copyright (c) 2025 Intel Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
apiVersion: image.openshift.io/v1
5+
kind: ImageStream
6+
metadata:
7+
name: intel-dsa-workload
8+
namespace: intel-dsa

0 commit comments

Comments
 (0)