-
Notifications
You must be signed in to change notification settings - Fork 2
[LFXV2-1211] Add pod annotations and labels support #45
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -104,6 +104,18 @@ app: | |||||||||||||||||||||||||||||
| # (default: "tracecontext,baggage") | ||||||||||||||||||||||||||||||
| propagators: "tracecontext,baggage,jaeger" | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| # podAnnotations are additional annotations applied to the pod template. | ||||||||||||||||||||||||||||||
| # Example: | ||||||||||||||||||||||||||||||
| # prometheus.io/scrape: "true" | ||||||||||||||||||||||||||||||
| # prometheus.io/port: "8080" | ||||||||||||||||||||||||||||||
| podAnnotations: {} | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
|
Comment on lines
106
to
+112
|
||||||||||||||||||||||||||||||
| podAnnotations: {} | |
| # podAnnotations are applied to the Pod template metadata | |
| # Example: | |
| # podAnnotations: | |
| # prometheus.io/scrape: "true" | |
| podAnnotations: {} | |
| # podLabels are extra labels applied to the Pod template metadata | |
| # Avoid labels that are used in selectors (e.g. "app") to prevent rollout issues | |
| # Example: | |
| # podLabels: | |
| # role: "indexer-worker" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
podLabelsare rendered after the requiredapp: lfx-v2-indexer-servicelabel. If a user setspodLabels.app, the rendered YAML will contain duplicateappkeys and can override/break the pod label so it no longer matchesspec.selector.matchLabels, causing the Deployment to stop managing its Pods. Consider preventing overrides of selector-critical labels (e.g., omit/ignore reserved keys likeapp, or explicitly merge labels giving precedence to the chart’s required labels and/or fail template rendering when a reserved key is provided).