Skip to content

Conversation

@barney-s
Copy link
Contributor

@barney-s barney-s commented Sep 25, 2025

  • Add .spec.shutdownTime string that parses to a time
  • The sandbox is deleted once the current time >= shutdownAt time

pared down version of #21
implements #18 partially

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Sep 25, 2025
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Sep 25, 2025
@janetkuo
Copy link
Member

@flpanbin FYI

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Sep 26, 2025
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Sep 26, 2025
@barney-s barney-s requested a review from janetkuo September 26, 2025 06:02
@barney-s barney-s force-pushed the sandbox-expiry branch 2 times, most recently from c8abdd8 to 12e852a Compare September 28, 2025 18:21
@barney-s barney-s changed the title Add support for shutdownAt in sandbox.spec Add support for shutdownTime in sandbox.spec Sep 29, 2025
@barney-s barney-s requested a review from justinsb October 1, 2025 18:44
@barney-s barney-s force-pushed the sandbox-expiry branch 2 times, most recently from 182346c to 3b1d78b Compare October 1, 2025 18:47
@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 1, 2025
* Add .spec.shutdownTime string that parses to a time
* The child resources are deleted once the current time >= shutdownAt time
* Sandbox is not deleted
// Update status to remove Ready condition
meta.SetStatusCondition(&sandbox.Status.Conditions, metav1.Condition{
Type: string(sandboxv1alpha1.SandboxConditionReady),
Status: metav1.ConditionFalse,
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure this is not ready... The object has been reconciled and is not expected to change state. But let's see what feels natural in use

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: barney-s, justinsb

The full list of commands accepted by this bot can be found here.

The pull request process is described here

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

@justinsb
Copy link
Contributor

justinsb commented Oct 2, 2025

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 2, 2025
@k8s-ci-robot k8s-ci-robot merged commit f0d813d into kubernetes-sigs:main Oct 2, 2025
5 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. 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.

7 participants