Skip to content

Commit

Permalink
Add namespace labels for k8s-non-helm
Browse files Browse the repository at this point in the history
Signed-off-by: Cédric Ollivier <[email protected]>
  • Loading branch information
collivier committed Dec 2, 2024
1 parent dbcd2a1 commit b1b3aef
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions sample-cnfs/k8s-non-helm/manifests/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: cnfspace
labels:
pod-security.kubernetes.io/enforce: privileged

---

apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: nginx-webapp
name: nginx-webapp
namespace: cnfspace
spec:
replicas: 5
selector:
Expand Down Expand Up @@ -54,6 +65,7 @@ apiVersion: v1
kind: Service
metadata:
name: nginx-webapp
namespace: cnfspace
labels:
run: nginx-webapp
spec:
Expand Down
2 changes: 1 addition & 1 deletion spec/workload/installability_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b1b3aef

Please sign in to comment.