Add support for custom annotations in JobSet controller#1148
Add support for custom annotations in JobSet controller#1148k8s-ci-robot merged 4 commits intokubernetes-sigs:mainfrom
JobSet controller#1148Conversation
✅ Deploy Preview for kubernetes-sigs-jobset canceled.
|
|
Welcome @dabico! |
|
Hi @dabico. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
There was a problem hiding this comment.
Pull request overview
This PR adds support for custom annotations on the JobSet controller pods, enabling users to configure pod-level annotations such as those needed for Prometheus metric scraping. The change introduces a new controller.annotations field in the Helm chart values that gets applied to the Pod template.
Changes:
- Added
controller.annotationsconfiguration field in values.yaml with empty object default - Updated deployment template to include custom annotations in the Pod template metadata
- Updated README.md documentation to reflect the new configuration option
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| charts/jobset/values.yaml | Adds controller.annotations field with documentation and default empty object value |
| charts/jobset/templates/controller/deployment.yaml | Applies custom annotations to Pod template metadata alongside existing config-hash annotation |
| charts/jobset/README.md | Documents the new controller.annotations configuration option in the values table |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
kannon92
left a comment
There was a problem hiding this comment.
Can you add some helm unit tests for this also?
|
/ok-to-test |
JobSet controller DeploymentJobSet controller
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dabico, kannon92 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/hold Can you add a release note for this actually? |
Done! Updated the PR description. |
|
/hold cancel Thank you for this! |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Allow users to specify custom
annotationsfor the JobSet controller deployment and individual pods. This is useful, for example, when you already have Prometheus deployed to your cluster and would like to scrape metrics.Does this PR introduce a user-facing change?