Remove default value from suspend field

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
Stefan Prodan 2020-11-26 14:13:08 +02:00
parent 6a55d5db72
commit 53e31d663f
No known key found for this signature in database
GPG Key ID: 3299AEB0E4085BAF
2 changed files with 1 additions and 8 deletions

View File

@ -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.

View File

@ -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.