mirror of
https://github.com/projectcapsule/capsule.git
synced 2026-02-14 09:59:57 +00:00
fix(controller): add boolean defaults (#1056)
* fix(controller): add boolean defaults Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * fix(helm): add boolean defaults Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * fix(docs): add boolean defaults Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * fix(installer): add boolean defaults Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> --------- Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com>
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -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
|
||||
@@ -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
|
||||
|
||||
@@ -1341,6 +1341,7 @@ spec:
|
||||
type: string
|
||||
type: object
|
||||
cordoned:
|
||||
default: false
|
||||
description: Toggling the Tenant resources cordoning, when enable resources cannot be deleted.
|
||||
type: boolean
|
||||
imagePullPolicies:
|
||||
@@ -1873,6 +1874,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
|
||||
priorityClasses:
|
||||
|
||||
@@ -1361,6 +1361,8 @@ TenantSpec defines the desired state of Tenant.
|
||||
<td>boolean</td>
|
||||
<td>
|
||||
Toggling the Tenant resources cordoning, when enable resources cannot be deleted.<br/>
|
||||
<br/>
|
||||
<i>Default</i>: false<br/>
|
||||
</td>
|
||||
<td>false</td>
|
||||
</tr><tr>
|
||||
@@ -1417,6 +1419,8 @@ TenantSpec defines the desired state of Tenant.
|
||||
<td>boolean</td>
|
||||
<td>
|
||||
Prevent accidental deletion of the Tenant. When enabled, the deletion request will be declined.<br/>
|
||||
<br/>
|
||||
<i>Default</i>: false<br/>
|
||||
</td>
|
||||
<td>false</td>
|
||||
</tr><tr>
|
||||
|
||||
Reference in New Issue
Block a user