diff --git a/sample-cnfs/k8s-non-helm/manifests/manifest.yml b/sample-cnfs/k8s-non-helm/manifests/manifest.yml index 2226a4590..e843db7d3 100644 --- a/sample-cnfs/k8s-non-helm/manifests/manifest.yml +++ b/sample-cnfs/k8s-non-helm/manifests/manifest.yml @@ -1,3 +1,13 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: cnfspace + labels: + pod-security.kubernetes.io/enforce: privileged + +--- + apiVersion: apps/v1 kind: Deployment metadata: @@ -5,6 +15,7 @@ metadata: labels: app: nginx-webapp name: nginx-webapp + namespace: cnfspace spec: replicas: 5 selector: @@ -54,6 +65,7 @@ apiVersion: v1 kind: Service metadata: name: nginx-webapp + namespace: cnfspace labels: run: nginx-webapp spec: diff --git a/spec/workload/installability_spec.cr b/spec/workload/installability_spec.cr index 0e0bf870a..6e1ddcf62 100644 --- a/spec/workload/installability_spec.cr +++ b/spec/workload/installability_spec.cr @@ -7,7 +7,7 @@ describe CnfTestSuite do result = ShellCmd.run_testsuite("setup") end - it "'helm_deploy' should fail on a manifest CNF", tags: ["helm"] do + it "'helm_deploy' should fail on a manifest CNF", tags: ["helm"] do ShellCmd.cnf_setup("cnf-path=./sample-cnfs/k8s-non-helm") result = ShellCmd.run_testsuite("helm_deploy verbose") result[:status].success?.should be_true