Documentation ¶
Index ¶
- Constants
- type AppWrapperWebhook
- func (w *AppWrapperWebhook) Default(ctx context.Context, obj runtime.Object) error
- func (wh *AppWrapperWebhook) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (w *AppWrapperWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
- func (w *AppWrapperWebhook) ValidateDelete(context.Context, runtime.Object) (admission.Warnings, error)
- func (w *AppWrapperWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
Constants ¶
View Source
const ( AppWrapperUsernameLabel = "workload.codeflare.dev/user" AppWrapperUserIDLabel = "workload.codeflare.dev/userid" QueueNameLabel = "kueue.x-k8s.io/queue-name" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppWrapperWebhook ¶
type AppWrapperWebhook struct { Config *config.AppWrapperConfig SubjectAccessReviewer authClientv1.SubjectAccessReviewInterface DiscoveryClient *discovery.DiscoveryClient // contains filtered or unexported fields }
func (*AppWrapperWebhook) Default ¶
Default fills in default values when an AppWrapper is created:
- Inject default queue name
- Ensure Suspend is set appropriately
- Add labels with the user name and id
func (*AppWrapperWebhook) SetupWebhookWithManager ¶
func (wh *AppWrapperWebhook) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*AppWrapperWebhook) ValidateCreate ¶
func (w *AppWrapperWebhook) ValidateCreate(ctx context.Context, obj runtime.Object) (admission.Warnings, error)
ValidateCreate validates invariants when an AppWrapper is created
func (*AppWrapperWebhook) ValidateDelete ¶
func (w *AppWrapperWebhook) ValidateDelete(context.Context, runtime.Object) (admission.Warnings, error)
ValidateDelete is a noop for us, but is required to implement the CustomValidator interface
func (*AppWrapperWebhook) ValidateUpdate ¶
func (w *AppWrapperWebhook) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (admission.Warnings, error)
ValidateUpdate validates invariants when an AppWrapper is updated
Click to show internal directories.
Click to hide internal directories.