-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# What this PR does Add option to add additional pod labels. ## Checklist - [ ] Unit, integration, and e2e (if applicable) tests updated - [ ] Documentation added (or `pr:no public docs` PR label added if not required) - [ ] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not required) - [x] It is manually tested in the internal environment --------- Co-authored-by: Marius Ensrud <[email protected]> Co-authored-by: Joey Orlando <[email protected]> Co-authored-by: Joey Orlando <[email protected]> Co-authored-by: Ildar Iskhakov <[email protected]>
- Loading branch information
1 parent
609da80
commit 719765a
Showing
5 changed files
with
50 additions
and
0 deletions.
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,32 @@ | ||
suite: test podlabels for deployments | ||
templates: | ||
- celery/deployment.yaml | ||
- engine/deployment.yaml | ||
- telegram-polling/deployment.yaml | ||
release: | ||
name: oncall | ||
tests: | ||
- it: podLabels={} -> should exclude podLabels | ||
set: | ||
telegramPolling: | ||
enabled: true | ||
asserts: | ||
- notExists: | ||
path: spec.template.metadata.labels.some-key | ||
|
||
- it: podLabels -> should use custom podLabels | ||
set: | ||
engine: | ||
podLabels: | ||
some-key: some-value | ||
celery: | ||
podLabels: | ||
some-key: some-value | ||
telegramPolling: | ||
enabled: true | ||
podLabels: | ||
some-key: some-value | ||
asserts: | ||
- equal: | ||
path: spec.template.metadata.labels.some-key | ||
value: some-value |
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