Add pod.labels support to all helm charts#174
Merged
Conversation
Co-authored-by: tharindu1st <6345931+tharindu1st@users.noreply.github.com>
Co-authored-by: tharindu1st <6345931+tharindu1st@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add pod labels, pod annotations, and node selectors in helm charts
Add pod.labels support to all helm charts
Mar 19, 2026
|
|
kavindasr
requested changes
Mar 21, 2026
RakhithaRR
approved these changes
Apr 10, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Purpose
Enable custom pod labels configuration in helm charts. Pod annotations and nodeSelector already exist, but pod labels were missing.
Goals
Add
wso2.deployment.pod.labelsconfiguration to all WSO2 APIM helm charts, enabling users to set custom labels for pod organization, monitoring, cost allocation, and policy enforcement.Approach
Added
pod.labels: {}to values.yaml and updated deployment templates to merge custom labels with default labels in all 5 charts:distributed/gatewaydistributed/control-plane(2 instances)distributed/key-managerdistributed/traffic-manager(2 instances)all-in-one(2 instances)Implementation follows existing
pod.annotationspattern for consistency.Template changes:
Usage example:
User stories
Release note
Added support for custom pod labels via
wso2.deployment.pod.labelsconfiguration in all helm charts.Documentation
README.md files updated for all charts with
wso2.deployment.pod.labelsparameter documentation. No additional documentation needed.Training
N/A - Configuration follows existing patterns for
pod.annotationsandnodeSelector.Certification
N/A - Internal configuration option, does not affect product functionality or certification scope.
Marketing
N/A - Internal infrastructure improvement.
Automation tests
helm lintand test rendering with custom valuesSecurity checks
Samples
N/A - Configuration is self-explanatory and documented in README files.
Related PRs
None
Migrations (if applicable)
N/A - Backward compatible. Default value is empty map
{}, producing identical output to previous versions.Test environment
Learning
Analyzed existing
pod.annotationsimplementation to maintain consistency. Verified helm template best practices for conditional YAML rendering with empty maps.📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.