Repository navigation
feat(helm): add podLabels for controller and UI pod templates #2237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
EItanya
merged 4 commits into
kagent-dev:main
from
elihai-risk:feat/controller-ui-pod-labels
Jul 15, 2026
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
fa6c57e
feat(helm): add podLabels for controller and UI pod templates
elihai-risk c6f0a0d
fixup: merge pod labels as a single map with selector labels last
elihai-risk f8fdff6
Merge branch 'main' into feat/controller-ui-pod-labels
EItanya 709a58b
Merge branch 'main' into feat/controller-ui-pod-labels
EItanya File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,94 @@ | ||
| suite: test controller and UI pod labels | ||
| templates: | ||
| - controller-deployment.yaml | ||
| - controller-configmap.yaml | ||
| - postgresql-secret.yaml | ||
| - ui-deployment.yaml | ||
| - ui-nginx-configmap.yaml | ||
| tests: | ||
| - it: should not add extra pod labels by default (controller) | ||
| template: controller-deployment.yaml | ||
| asserts: | ||
| - notExists: | ||
| path: spec.template.metadata.labels.team | ||
|
|
||
| - it: should merge global podLabels into the controller pod template | ||
| template: controller-deployment.yaml | ||
| set: | ||
| podLabels: | ||
| team: platform | ||
| cost-center: ai | ||
| asserts: | ||
| - equal: | ||
| path: spec.template.metadata.labels.team | ||
| value: platform | ||
| - equal: | ||
| path: spec.template.metadata.labels["cost-center"] | ||
| value: ai | ||
| # selector labels must remain intact | ||
| - equal: | ||
| path: spec.template.metadata.labels["app.kubernetes.io/name"] | ||
| value: kagent | ||
|
|
||
| - it: should let controller.podLabels override the global podLabels | ||
| template: controller-deployment.yaml | ||
| set: | ||
| podLabels: | ||
| team: platform | ||
| controller: | ||
| podLabels: | ||
| team: controller-team | ||
| asserts: | ||
| - equal: | ||
| path: spec.template.metadata.labels.team | ||
| value: controller-team | ||
|
|
||
| - it: should merge global podLabels into the UI pod template | ||
| template: ui-deployment.yaml | ||
| set: | ||
| podLabels: | ||
| team: platform | ||
| asserts: | ||
| - equal: | ||
| path: spec.template.metadata.labels.team | ||
| value: platform | ||
|
|
||
| - it: should let ui.podLabels override the global podLabels | ||
| template: ui-deployment.yaml | ||
| set: | ||
| podLabels: | ||
| team: platform | ||
| ui: | ||
| podLabels: | ||
| team: ui-team | ||
| asserts: | ||
| - equal: | ||
| path: spec.template.metadata.labels.team | ||
| value: ui-team | ||
|
|
||
| - it: should not allow podLabels to override controller selector labels | ||
| template: controller-deployment.yaml | ||
| set: | ||
| podLabels: | ||
| app.kubernetes.io/name: hijacked | ||
| controller: | ||
| podLabels: | ||
| app.kubernetes.io/instance: hijacked | ||
| asserts: | ||
| - equal: | ||
| path: spec.template.metadata.labels["app.kubernetes.io/name"] | ||
| value: kagent | ||
| - equal: | ||
| path: spec.template.metadata.labels["app.kubernetes.io/instance"] | ||
| value: RELEASE-NAME | ||
|
|
||
| - it: should not allow podLabels to override UI selector labels | ||
| template: ui-deployment.yaml | ||
| set: | ||
| ui: | ||
| podLabels: | ||
| app.kubernetes.io/name: hijacked | ||
| asserts: | ||
| - equal: | ||
| path: spec.template.metadata.labels["app.kubernetes.io/name"] | ||
| value: kagent | ||
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.