@@ -25,6 +25,7 @@ import (
25
25
const (
26
26
workloadManagementAnnotation = "target.workload.openshift.io/management"
27
27
workloadManagementAnnotationValue = `{"effect": "PreferredDuringScheduling"}`
28
+ requiredSCCAnnotation = "openshift.io/required-scc"
28
29
)
29
30
30
31
func TestDefaultDeployment (t * testing.T ) {
@@ -137,6 +138,7 @@ func TestDefaultDeployment(t *testing.T) {
137
138
infrastructureConfigResourceVersionAnnotation : "" ,
138
139
consoleImageAnnotation : "" ,
139
140
workloadManagementAnnotation : workloadManagementAnnotationValue ,
141
+ requiredSCCAnnotation : "restricted-v2" ,
140
142
}
141
143
142
144
consoleDeploymentAffinity := & corev1.Affinity {
@@ -1615,6 +1617,7 @@ func TestDefaultDownloadsDeployment(t *testing.T) {
1615
1617
Labels : labels ,
1616
1618
Annotations : map [string ]string {
1617
1619
workloadManagementAnnotation : workloadManagementAnnotationValue ,
1620
+ requiredSCCAnnotation : "restricted-v2" ,
1618
1621
},
1619
1622
},
1620
1623
Spec : downloadsDeploymentPodSpecSingleReplica ,
@@ -1657,6 +1660,7 @@ func TestDefaultDownloadsDeployment(t *testing.T) {
1657
1660
Labels : labels ,
1658
1661
Annotations : map [string ]string {
1659
1662
workloadManagementAnnotation : workloadManagementAnnotationValue ,
1663
+ requiredSCCAnnotation : "restricted-v2" ,
1660
1664
},
1661
1665
},
1662
1666
Spec : * downloadsDeploymentPodSpecHighAvail ,
0 commit comments