Skip to content

Commit

Permalink
test for label added
Browse files Browse the repository at this point in the history
Signed-off-by: siddhikhapare <[email protected]>
  • Loading branch information
siddhikhapare committed May 8, 2024
1 parent 3c34731 commit 8e0c549
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
25 changes: 24 additions & 1 deletion other/copy-namespace-labels/.chainsaw-test/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,27 @@ spec:
- apply:
file: resource.yaml
- assert:
file: patchresource.yaml
file: patchresource.yaml
- error:
resource:
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: within-ns
name: my-deployment-2
labels:
kubernetes.io/metadata.name: within-ns
app: my-app02
spec:
replicas: 1
selector:
matchLabels:
app: my-app02
template:
metadata:
labels:
app: my-app02
spec:
containers:
- name: my-app02-deploy
image: nginx:1.25
2 changes: 1 addition & 1 deletion other/copy-namespace-labels/.chainsaw-test/resource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ metadata:
name: my-deployment-2
namespace: within-ns
labels:
kubernetes.io/metadata.name: "my-deployment-2"
app: my-app02
spec:
replicas: 1
selector:
Expand Down

0 comments on commit 8e0c549

Please sign in to comment.