Skip to content

fix: add pvc annotations/labels from volume claim tpl#217

Merged
k8s-ci-robot merged 1 commit into
kubernetes-sigs:mainfrom
DataDog:dhenkel/12-11-fix_add_pvc_annotations_labels_from_pvc_tpl
Apr 2, 2026
Merged

fix: add pvc annotations/labels from volume claim tpl#217
k8s-ci-robot merged 1 commit into
kubernetes-sigs:mainfrom
DataDog:dhenkel/12-11-fix_add_pvc_annotations_labels_from_pvc_tpl

Conversation

@dhenkel92

Copy link
Copy Markdown
Contributor

The Sandbox CRD lets you define volume claim templates, including metadata like labels and annotations. However, these aren’t synced to the generated PVC, so this PR fills that gap.

@netlify

netlify Bot commented Dec 17, 2025

Copy link
Copy Markdown

Deploy Preview for agent-sandbox ready!

Name Link
🔨 Latest commit ed8b8e7
🔍 Latest deploy log https://app.netlify.com/projects/agent-sandbox/deploys/69c52b98e48f7800088283c7
😎 Deploy Preview https://deploy-preview-217--agent-sandbox.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@k8s-ci-robot

Copy link
Copy Markdown
Contributor

Welcome @dhenkel92!

It looks like this is your first PR to kubernetes-sigs/agent-sandbox 🎉. 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/agent-sandbox 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 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 Dec 17, 2025
@k8s-ci-robot

Copy link
Copy Markdown
Contributor

Hi @dhenkel92. Thanks for your PR.

I'm waiting for a github.com 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 size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Dec 17, 2025
@dhenkel92 dhenkel92 force-pushed the dhenkel/12-11-fix_add_pvc_annotations_labels_from_pvc_tpl branch from 57b128b to 00fdb06 Compare December 17, 2025 08:59
@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 Dec 17, 2025
@janetkuo

Copy link
Copy Markdown
Member

/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 Dec 17, 2025
Comment thread controllers/sandbox_controller.go Outdated
@dhenkel92 dhenkel92 force-pushed the dhenkel/12-11-fix_add_pvc_annotations_labels_from_pvc_tpl branch from 00fdb06 to 20cfdf4 Compare December 18, 2025 11:20

@barney-s barney-s left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The changes look good and correctly solve the problem described. The usage of maps.Clone is appropriate and safe. I have a minor suggestion regarding the consistency of labels on the generated PVCs compared to other resources.

Comment thread controllers/sandbox_controller.go Outdated
@dhenkel92 dhenkel92 force-pushed the dhenkel/12-11-fix_add_pvc_annotations_labels_from_pvc_tpl branch from 20cfdf4 to 5c444ca Compare December 19, 2025 09:44
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Dec 19, 2025
Comment thread controllers/sandbox_controller.go Outdated

pvcLabels := map[string]string{
sandboxLabel: nameHash,
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Move this part to after maps.Copy, to prevent users from overwriting system-managed labels.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

👍 Done

@dhenkel92 dhenkel92 force-pushed the dhenkel/12-11-fix_add_pvc_annotations_labels_from_pvc_tpl branch from 5c444ca to 83a995b Compare January 5, 2026 07:29
@dhenkel92

Copy link
Copy Markdown
Contributor Author

@janetkuo could you please take another look at this PR?

@k8s-triage-robot

Copy link
Copy Markdown

The Kubernetes project currently lacks enough active contributors to adequately respond to all PRs.

This bot triages PRs according to the following rules:

  • After 30d of inactivity, lifecycle/stale is applied
  • After 15d of inactivity since lifecycle/stale was applied, the PR is closed

You can:

  • Mark this PR as fresh with /remove-lifecycle stale
  • Close this PR with /close
  • Offer to help out with Issue Triage

Please send feedback to us at Agent Sandbox.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Mar 18, 2026
@dhenkel92

Copy link
Copy Markdown
Contributor Author

/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Mar 18, 2026
@k8s-ci-robot

Copy link
Copy Markdown
Contributor

@dhenkel92: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
presubmit-agent-sandbox-lint-api 83a995b link true /test presubmit-agent-sandbox-lint-api

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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. I understand the commands that are listed here.

@dhenkel92 dhenkel92 force-pushed the dhenkel/12-11-fix_add_pvc_annotations_labels_from_pvc_tpl branch from 83a995b to ed8b8e7 Compare March 26, 2026 12:50
@dhenkel92

Copy link
Copy Markdown
Contributor Author

/retest

@aditya-shantanu

Copy link
Copy Markdown
Collaborator

/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 Apr 2, 2026
@barney-s

barney-s commented Apr 2, 2026

Copy link
Copy Markdown
Collaborator

/lgtm
/approve

@k8s-ci-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: aditya-shantanu, barney-s, dhenkel92

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 Apr 2, 2026
@k8s-ci-robot k8s-ci-robot merged commit 2bb2463 into kubernetes-sigs:main Apr 2, 2026
10 checks passed
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. 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.

6 participants