Skip to content
This repository has been archived by the owner on Aug 12, 2024. It is now read-only.

Commit

Permalink
remove default value for enabled and rename to disabled
Browse files Browse the repository at this point in the history
Signed-off-by: Rashmi Gottipati <chowdary.grashmi@gmail.com>
  • Loading branch information
rashmigottipati committed May 29, 2024
1 parent c7eb026 commit 7f8e509
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
6 changes: 2 additions & 4 deletions api/v1alpha2/bundledeployment_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,9 @@ type PreflightConfig struct {

// CRDUpgradeSafetyPreflightConfig is the configuration for CRD upgrade safety preflight check.
type CRDUpgradeSafetyPreflightConfig struct {
//+kubebuilder:default:=true
//+kubebuilder:Required
// Enabled represents the state of the CRD upgrade safety preflight check being enabled/disabled.
// The default value is true.
Enabled bool `json:"enabled,omitempty"`
// Disabled represents the state of the CRD upgrade safety preflight check being disabled/enabled.
Disabled bool `json:"disabled,omitempty"`
}

// BundleDeploymentStatus defines the observed state of BundleDeployment
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,9 @@ spec:
description: CRDUpgradeSafety holds necessary configuration for
the CRD Upgrade Safety preflight checks.
properties:
enabled:
default: true
description: |-
Enabled represents the state of the CRD upgrade safety preflight check being enabled/disabled.
The default value is true.
disabled:
description: Disabled represents the state of the CRD upgrade
safety preflight check being disabled/enabled.
type: boolean
type: object
type: object
Expand Down

0 comments on commit 7f8e509

Please sign in to comment.