Skip to content

Add support for custom annotations in JobSet controller#1148

Merged
k8s-ci-robot merged 4 commits intokubernetes-sigs:mainfrom
dabico:annotations
Feb 16, 2026
Merged

Add support for custom annotations in JobSet controller#1148
k8s-ci-robot merged 4 commits intokubernetes-sigs:mainfrom
dabico:annotations

Conversation

@dabico
Copy link
Contributor

@dabico dabico commented Feb 5, 2026

What type of PR is this?

/kind feature

What this PR does / why we need it:

Allow users to specify custom annotations for 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?

Add support for specifying custom `annotations` for JobSet controller deployment and pods via `controller.annotations` and `controller.podAnnotations` Helm values respectively.

Copilot AI review requested due to automatic review settings February 5, 2026 22:48
@k8s-ci-robot k8s-ci-robot added the kind/feature Categorizes issue or PR as related to a new feature. label Feb 5, 2026
@netlify
Copy link

netlify bot commented Feb 5, 2026

Deploy Preview for kubernetes-sigs-jobset canceled.

Name Link
🔨 Latest commit db81cbd
🔍 Latest deploy log https://app.netlify.com/projects/kubernetes-sigs-jobset/deploys/699263c58ba7a70008d95175

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Feb 5, 2026
@k8s-ci-robot
Copy link
Contributor

Welcome @dabico!

It looks like this is your first PR to kubernetes-sigs/jobset 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes-sigs/jobset has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot
Copy link
Contributor

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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions 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.

@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Feb 5, 2026
@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Feb 5, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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.annotations configuration 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

@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Feb 7, 2026
@dabico dabico requested review from Copilot and kannon92 February 7, 2026 09:28
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

Copy link
Contributor

@kannon92 kannon92 left a comment

Choose a reason for hiding this comment

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

Can you add some helm unit tests for this also?

@kannon92
Copy link
Contributor

kannon92 commented Feb 7, 2026

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Feb 7, 2026
@k8s-ci-robot k8s-ci-robot removed the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Feb 16, 2026
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Feb 16, 2026
@dabico dabico requested a review from kannon92 February 16, 2026 00:38
@dabico dabico changed the title Add support for custom annotations in JobSet controller Deployment Add support for custom annotations in JobSet controller Feb 16, 2026
Copy link
Contributor

@kannon92 kannon92 left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 16, 2026
@k8s-ci-robot
Copy link
Contributor

[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

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 16, 2026
@kannon92
Copy link
Contributor

/hold

Can you add a release note for this actually?

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 16, 2026
@dabico dabico requested a review from kannon92 February 16, 2026 20:37
@dabico
Copy link
Contributor Author

dabico commented Feb 16, 2026

Can you add a release note for this actually?

Done! Updated the PR description.

@kannon92
Copy link
Contributor

/hold cancel

Thank you for this!

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 16, 2026
@k8s-ci-robot k8s-ci-robot merged commit 5d9371e into kubernetes-sigs:main Feb 16, 2026
13 checks passed
@dabico dabico deleted the annotations branch February 16, 2026 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments