@@ -24,6 +24,7 @@ import (
24
24
const (
25
25
workloadManagementAnnotation = "target.workload.openshift.io/management"
26
26
workloadManagementAnnotationValue = `{"effect": "PreferredDuringScheduling"}`
27
+ requiredSCCAnnotation = "openshift.io/required-scc"
27
28
)
28
29
29
30
func TestDefaultDeployment (t * testing.T ) {
@@ -132,6 +133,7 @@ func TestDefaultDeployment(t *testing.T) {
132
133
infrastructureConfigResourceVersionAnnotation : "" ,
133
134
consoleImageAnnotation : "" ,
134
135
workloadManagementAnnotation : workloadManagementAnnotationValue ,
136
+ requiredSCCAnnotation : "restricted-v2" ,
135
137
}
136
138
137
139
consoleDeploymentAffinity := & corev1.Affinity {
@@ -1606,6 +1608,7 @@ func TestDefaultDownloadsDeployment(t *testing.T) {
1606
1608
Labels : labels ,
1607
1609
Annotations : map [string ]string {
1608
1610
workloadManagementAnnotation : workloadManagementAnnotationValue ,
1611
+ requiredSCCAnnotation : "restricted-v2" ,
1609
1612
},
1610
1613
},
1611
1614
Spec : downloadsDeploymentPodSpecSingleReplica ,
@@ -1648,6 +1651,7 @@ func TestDefaultDownloadsDeployment(t *testing.T) {
1648
1651
Labels : labels ,
1649
1652
Annotations : map [string ]string {
1650
1653
workloadManagementAnnotation : workloadManagementAnnotationValue ,
1654
+ requiredSCCAnnotation : "restricted-v2" ,
1651
1655
},
1652
1656
},
1653
1657
Spec : * downloadsDeploymentPodSpecHighAvail ,
0 commit comments