Remove default value from suspend field
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
parent
6a55d5db72
commit
53e31d663f
|
@ -78,10 +78,8 @@ type KustomizationSpec struct {
|
|||
|
||||
// This flag tells the controller to suspend subsequent kustomize executions,
|
||||
// it does not apply to already started executions. Defaults to false.
|
||||
// +kubebuilder:default:=false
|
||||
// +kubebuilder:validation:Optional
|
||||
// +optional
|
||||
Suspend bool `json:"suspend"`
|
||||
Suspend bool `json:"suspend,omitempty"`
|
||||
|
||||
// TargetNamespace sets or overrides the namespace in the
|
||||
// kustomization.yaml file.
|
||||
|
@ -235,7 +233,6 @@ const (
|
|||
// +kubebuilder:subresource:status
|
||||
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].status",description=""
|
||||
// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].message",description=""
|
||||
// +kubebuilder:printcolumn:name="Suspended",type="boolean",JSONPath=".spec.suspend",description=""
|
||||
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description=""
|
||||
|
||||
// Kustomization is the Schema for the kustomizations API.
|
||||
|
|
|
@ -25,9 +25,6 @@ spec:
|
|||
- jsonPath: .status.conditions[?(@.type=="Ready")].message
|
||||
name: Status
|
||||
type: string
|
||||
- jsonPath: .spec.suspend
|
||||
name: Suspended
|
||||
type: boolean
|
||||
- jsonPath: .metadata.creationTimestamp
|
||||
name: Age
|
||||
type: date
|
||||
|
@ -173,7 +170,6 @@ spec:
|
|||
- name
|
||||
type: object
|
||||
suspend:
|
||||
default: false
|
||||
description: This flag tells the controller to suspend subsequent
|
||||
kustomize executions, it does not apply to already started executions.
|
||||
Defaults to false.
|
||||
|
|
Loading…
Reference in New Issue