@@ -35,7 +35,6 @@ import (
35
35
"k8s.io/kubernetes/pkg/apis/core"
36
36
"k8s.io/kubernetes/pkg/capabilities"
37
37
"k8s.io/kubernetes/pkg/features"
38
- "k8s.io/kubernetes/pkg/security/apparmor"
39
38
utilpointer "k8s.io/utils/pointer"
40
39
)
41
40
@@ -7293,7 +7292,7 @@ func TestValidatePod(t *testing.T) {
7293
7292
Name : "123" ,
7294
7293
Namespace : "ns" ,
7295
7294
Annotations : map [string ]string {
7296
- apparmor . ContainerAnnotationKeyPrefix + "ctr" : apparmor . ProfileRuntimeDefault ,
7295
+ v1 . AppArmorBetaContainerAnnotationKeyPrefix + "ctr" : v1 . AppArmorBetaProfileRuntimeDefault ,
7297
7296
},
7298
7297
},
7299
7298
Spec : validPodSpec (nil ),
@@ -7303,7 +7302,7 @@ func TestValidatePod(t *testing.T) {
7303
7302
Name : "123" ,
7304
7303
Namespace : "ns" ,
7305
7304
Annotations : map [string ]string {
7306
- apparmor . ContainerAnnotationKeyPrefix + "init-ctr" : apparmor . ProfileRuntimeDefault ,
7305
+ v1 . AppArmorBetaContainerAnnotationKeyPrefix + "init-ctr" : v1 . AppArmorBetaProfileRuntimeDefault ,
7307
7306
},
7308
7307
},
7309
7308
Spec : core.PodSpec {
@@ -7318,7 +7317,7 @@ func TestValidatePod(t *testing.T) {
7318
7317
Name : "123" ,
7319
7318
Namespace : "ns" ,
7320
7319
Annotations : map [string ]string {
7321
- apparmor . ContainerAnnotationKeyPrefix + "ctr" : apparmor . ProfileNamePrefix + "foo" ,
7320
+ v1 . AppArmorBetaContainerAnnotationKeyPrefix + "ctr" : v1 . AppArmorBetaProfileNamePrefix + "foo" ,
7322
7321
},
7323
7322
},
7324
7323
Spec : validPodSpec (nil ),
@@ -8017,9 +8016,9 @@ func TestValidatePod(t *testing.T) {
8017
8016
Name : "123" ,
8018
8017
Namespace : "ns" ,
8019
8018
Annotations : map [string ]string {
8020
- apparmor . ContainerAnnotationKeyPrefix + "ctr" : apparmor . ProfileRuntimeDefault ,
8021
- apparmor . ContainerAnnotationKeyPrefix + "init-ctr" : apparmor . ProfileRuntimeDefault ,
8022
- apparmor . ContainerAnnotationKeyPrefix + "fake-ctr" : apparmor . ProfileRuntimeDefault ,
8019
+ v1 . AppArmorBetaContainerAnnotationKeyPrefix + "ctr" : v1 . AppArmorBetaProfileRuntimeDefault ,
8020
+ v1 . AppArmorBetaContainerAnnotationKeyPrefix + "init-ctr" : v1 . AppArmorBetaProfileRuntimeDefault ,
8021
+ v1 . AppArmorBetaContainerAnnotationKeyPrefix + "fake-ctr" : v1 . AppArmorBetaProfileRuntimeDefault ,
8023
8022
},
8024
8023
},
8025
8024
Spec : core.PodSpec {
@@ -8037,7 +8036,7 @@ func TestValidatePod(t *testing.T) {
8037
8036
Name : "123" ,
8038
8037
Namespace : "ns" ,
8039
8038
Annotations : map [string ]string {
8040
- apparmor . ContainerAnnotationKeyPrefix + "ctr" : "bad-name" ,
8039
+ v1 . AppArmorBetaContainerAnnotationKeyPrefix + "ctr" : "bad-name" ,
8041
8040
},
8042
8041
},
8043
8042
Spec : validPodSpec (nil ),
@@ -8050,7 +8049,7 @@ func TestValidatePod(t *testing.T) {
8050
8049
Name : "123" ,
8051
8050
Namespace : "ns" ,
8052
8051
Annotations : map [string ]string {
8053
- apparmor . ContainerAnnotationKeyPrefix + "ctr" : "runtime/foo" ,
8052
+ v1 . AppArmorBetaContainerAnnotationKeyPrefix + "ctr" : "runtime/foo" ,
8054
8053
},
8055
8054
},
8056
8055
Spec : validPodSpec (nil ),
0 commit comments