Skip to content

feat(chart): support custom labels and annotations on controller pods - #966

Merged
arosh merged 1 commit into
cybozu-go:mainfrom
CJstate:fix/chart-pod-metadata
Nov 12, 2026
Merged

arosh merged 1 commit into
cybozu-go:mainfrom
CJstate:fix/chart-pod-metadata

Conversation

@CJstate

@CJstate CJstate commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds optional podLabels and podAnnotations values to the MOCO Helm chart so operators can attach custom metadata to the controller pods.

  • charts/moco/values.yaml: new podLabels: {} and podAnnotations: {}.
  • charts/moco/templates/deployment.yaml: merge the custom maps into the pod template metadata. Chart-defined labels and annotations keep precedence on key conflicts.
  • charts/moco/README.md and charts/moco/CHANGELOG.md: document the new values.

Closes #743.

Verification

  • helm lint charts/moco
  • helm template with custom labels/annotations confirmed they appear on the controller pod template and that chart-defined values win when keys collide.
  • Existing default rendering is unchanged when both values are empty.

Add podLabels and podAnnotations values to the Helm chart so users can attach custom metadata to moco-controller Pods. Chart-managed labels and annotations take precedence over user-supplied values.

Closes cybozu-go#743

Signed-off-by: CJstate <[email protected]>
@arosh arosh self-assigned this Nov 11, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the Helm chart’s optional controller pod labels and annotations.

No open issues 🎉

What changed in this PR

Adds optional custom labels and annotations to MOCO controller pods through the Helm chart, addressing issue #743.

Changes:

  • Introduces podLabels and podAnnotations, both defaulting to empty maps.
  • Merges custom metadata into the controller pod template while preserving chart-defined values on key conflicts.
  • Documents the new options in the README and changelog.
File Description
charts/​moco/​values.yaml Defines the optional pod metadata values and their defaults.
charts/​moco/​templates/​deployment.yaml Merges custom pod metadata with chart-defined metadata.
charts/​moco/​README.md Documents the values and conflict precedence.
charts/​moco/​CHANGELOG.md Records the feature and links issue #743.

Review effort: Balanced

@arosh
arosh merged commit 920a350 into cybozu-go:main Nov 12, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add ability to specify your own labels and annotations on operator controller's

3 participants