- 
                Notifications
    You must be signed in to change notification settings 
- Fork 31
Adding SandboxTemplate and SandboxClaim CRDs #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
left a TTL related comment
a789265    to
    99c7d66      
    Compare
  
    | Sandbox template should also include the ttl field to be copied by the controller to the Sandbox? | 
| Is there some background info on these new two CRDs? | 
| 
 #17 created for this. | 
| 
 #18 created to track this | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How do we expect a user to delete a sandbox? Is it via deleting the corresponding sandboxClaim?
What if a user kubectl delete sandbox directly, since sandbox is still a visible object to user. In this case, will the sandboxClaim controller try to create a new sandbox for this sandboxClaim?
| When using claims, the user only interacts with claim. | 
bd7b7d2    to
    941fe52      
    Compare
  
    | 
 I do agree with @matzew - it should be clear why we are doing these things (or at least what we are investigating - we are only in alpha).  If they are going into  I added a comment on #17, thank you for opening that @barney-s, and let's continue the discussion there? | 
72ac518    to
    fe60e98      
    Compare
  
    fe60e98    to
    c1c180c      
    Compare
  
    SanboxTemplate: * Config object no controller expected for this * Created by administrator to specify common parameters for a sandbox * example names: py3, java8, conda-teamA, ... * We use claims to create a Sandbox instance from the template * template is cluster scoped SandboxClaim: * Create an instance of sandbox from a given claim * ttl determines after how long the sandboxClaim is auto-deleted, thereby deleting the sandbox * Seperation of concerns. User can be given access to create only claims.
c1c180c    to
    e3ec105      
    Compare
  
    | @@ -0,0 +1,89 @@ | |||
| // Copyright 2025 The Kubernetes Authors. | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like I need to improve my copyright checking script - two copyrights in this file :-)
| As this is not on the same path as our "primary" API, I think putting it in extensions and iterating quickly sgtm! /approve | 
| [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  | 
For #17
Adding and extensions folder and creating the CRDs there.
Goal is to indicate this is not
corepart of sandbox but a useful pattern.SandboxTemplate:
SandboxClaim: