-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(kspm-collector): Enable annotations on kspm collector deployment…
… pods (#1346) Co-authored-by: Marco Vito Moscaritolo <[email protected]>
- Loading branch information
1 parent
f068f72
commit 4bf9758
Showing
5 changed files
with
45 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
suite: Pod annotation test | ||
templates: | ||
- deployment.yaml | ||
tests: | ||
- it: check that the deployment do not have any custom annotation in the pod if not specified | ||
set: | ||
sysdig: | ||
accessKey: AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE | ||
asserts: | ||
- isNull: | ||
path: spec.template.metadata.annotations | ||
|
||
- it: check that the deployment include the pod annotation | ||
set: | ||
sysdig: | ||
accessKey: AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE | ||
podAnnotations: | ||
my-annotation: my-value | ||
asserts: | ||
- exists: | ||
path: spec.template.metadata.annotations | ||
|
||
- it: check that the deployment include the pod annotation match the value we specified | ||
set: | ||
sysdig: | ||
accessKey: AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE | ||
podAnnotations: | ||
my-annotation-1: my-value-1 | ||
my-annotation-2: my-value-2 | ||
asserts: | ||
- equal: | ||
path: spec.template.metadata.annotations['my-annotation-1'] | ||
value: my-value-1 | ||
|
||
- equal: | ||
path: spec.template.metadata.annotations['my-annotation-2'] | ||
value: my-value-2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters