32
32
"apps/deployments/scale" ,
33
33
"apps/statefulsets/scale" ,
34
34
"services" ,
35
- "persistentvolumes" ,
36
35
"persistentvolumeclaims" ,
37
36
"configmaps" ,
38
37
}
42
41
"namespaces" ,
43
42
"rbac.authorization.k8s.io/clusterroles" ,
44
43
"storage.k8s.io/storageclasses" ,
44
+ "storage.k8s.io/persistentvolumes" ,
45
45
"apiextensions.k8s.io/customresourcedefinitions" ,
46
46
}
47
47
// a slice of "get", "list", "watch" verbs
@@ -54,11 +54,11 @@ var (
54
54
allOperations = append (readOperations , writeOperations ... )
55
55
56
56
// a slice representing all namespaces with respect to the test cases
57
- // "" represents the default namespace
57
+ // "default" is the default namespace
58
58
// "teapot" is a random namespace
59
59
// "visibility" is a namespace where collaborators will have access
60
60
// "kube-system" is a namespace where only administrators will have access
61
- allNamespaces = []string {"" , "teapot" , "visibility" , "kube-system" }
61
+ allNamespaces = []string {"default " , "teapot" , "visibility" , "kube-system" }
62
62
)
63
63
64
64
var _ = g .Describe ("Authorization [RBAC] [Zalando]" , func () {
@@ -226,7 +226,7 @@ var _ = g.Describe("Authorization [RBAC] [Zalando]", func() {
226
226
gomega .Expect (tc .output .passed ).To (gomega .BeTrue (), tc .output .String ())
227
227
})
228
228
g .It ("should allow write access in namespaces other than kube-system and visibility" , func () {
229
- tc .data .namespaces = []string {"" , "teapot" }
229
+ tc .data .namespaces = []string {"default " , "teapot" }
230
230
tc .run (context .TODO (), cs , true )
231
231
gomega .Expect (tc .output .passed ).To (gomega .BeTrue (), tc .output .String ())
232
232
})
@@ -321,7 +321,7 @@ var _ = g.Describe("Authorization [RBAC] [Zalando]", func() {
321
321
gomega .Expect (tc .output .passed ).To (gomega .BeTrue (), tc .output .String ())
322
322
})
323
323
g .It ("should allow write access in namespaces other than kube-system" , func () {
324
- tc .data .namespaces = []string {"" , "teapot" }
324
+ tc .data .namespaces = []string {"default " , "teapot" }
325
325
tc .run (context .TODO (), cs , true )
326
326
gomega .Expect (tc .output .passed ).To (gomega .BeTrue (), tc .output .String ())
327
327
})
0 commit comments