@@ -198,14 +198,14 @@ spec:
198
198
CreateSubnamespace (nsTeamB , nsOrg )
199
199
200
200
expected := "" + // empty string make go fmt happy
201
- nsOrg + "\n " +
201
+ nsOrg + "\n " +
202
202
"├── [s] " + nsTeamA + "\n " +
203
203
"└── [s] " + nsTeamB
204
204
// The subnamespaces takes a bit of time to show up
205
205
RunShouldContain (expected , propogationTimeout , "kubectl hns tree" , nsOrg )
206
206
207
207
// create hrq in parent acme-org
208
- hrq := `# quickstart_test.go: hrq in acme-org
208
+ hrq := `# quickstart_test.go: hrq in acme-org
209
209
apiVersion: hnc.x-k8s.io/v1alpha2
210
210
kind: HierarchicalResourceQuota
211
211
metadata:
@@ -217,15 +217,15 @@ spec:
217
217
MustApplyYAML (hrq )
218
218
219
219
// create service in team-a
220
- MustRun ("kubectl create service clusterip" , nsTeamA + "-svc" , "--clusterip=None" , "-n" , nsTeamA )
220
+ MustRun ("kubectl create service clusterip" , nsTeamA + "-svc" , "--clusterip=None" , "-n" , nsTeamA )
221
221
222
222
// show that you can't use resources more than the hrq
223
- MustNotRun ("kubectl create service clusterip" , nsTeamB + "-svc" , "--clusterip=None" , "-n" , nsTeamB )
223
+ MustNotRun ("kubectl create service clusterip" , nsTeamB + "-svc" , "--clusterip=None" , "-n" , nsTeamB )
224
224
225
225
// show hrq usage
226
226
RunShouldContain ("services: 1/1" , defTimeout , "kubectl get hrq" , "-n" , nsOrg )
227
227
228
- MustRun ("kubectl delete hrq" , nsOrg + "-hrq" , "-n" , nsOrg )
228
+ MustRun ("kubectl delete hrq" , nsOrg + "-hrq" , "-n" , nsOrg )
229
229
})
230
230
231
231
It ("Should create and delete subnamespaces" , func () {
@@ -269,6 +269,10 @@ spec:
269
269
"└── [s] " + nsService2
270
270
RunShouldContain (expected , defTimeout , "kubectl hns tree" , nsTeamA )
271
271
272
+ // Describe should describe AllowCascadingDeletion flag value
273
+ MustRun ("kubectl hns describe" , nsOrg )
274
+ RunShouldContain ("Allows Cascading Deletion: false" , defTimeout , "kubectl hns describe" , nsOrg )
275
+
272
276
// cascading deletion with the kubectl-hns plugin
273
277
CreateSubnamespace (nsService1 , nsTeamA )
274
278
CreateSubnamespace (nsService4 , nsService1 )
0 commit comments