Skip to content

Commit

Permalink
fix(controller): add boolean defaults
Browse files Browse the repository at this point in the history
Signed-off-by: Oliver Bähler <[email protected]>
  • Loading branch information
oliverbaehler committed Apr 27, 2024
1 parent a8dbd0c commit a5ba0b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/v1beta2/tenant_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,11 @@ type TenantSpec struct {
// Optional.
PriorityClasses *api.DefaultAllowedListSpec `json:"priorityClasses,omitempty"`
// Toggling the Tenant resources cordoning, when enable resources cannot be deleted.
//+kubebuilder:default:=false
Cordoned bool `json:"cordoned,omitempty"`
// Prevent accidental deletion of the Tenant.
// When enabled, the deletion request will be declined.
//+kubebuilder:default:=false
PreventDeletion bool `json:"preventDeletion,omitempty"`
}

Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/capsule.clastix.io_tenants.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1188,6 +1188,7 @@ spec:
type: string
type: object
cordoned:
default: false
description: Toggling the Tenant resources cordoning, when enable
resources cannot be deleted.
type: boolean
Expand Down Expand Up @@ -2046,6 +2047,7 @@ spec:
type: object
type: object
preventDeletion:
default: false
description: Prevent accidental deletion of the Tenant. When enabled,
the deletion request will be declined.
type: boolean
Expand Down

0 comments on commit a5ba0b5

Please sign in to comment.