Skip to content

Commit 26cbe2a

Browse files
YCShen1010root
andauthored
set default value of csvinjector to true (#170)
Co-authored-by: root <[email protected]>
1 parent e4bad1c commit 26cbe2a

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

api/v1/namespacescope_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ type NamespaceScopeSpec struct {
4646

4747
// CSVInjector manages if operator will insert labels and WATCH_NAMESPACES in CSV automatically
4848
type CSVInjector struct {
49+
// +kubebuilder:default:=true
4950
Enable bool `json:"enable"`
5051
}
5152

bundle-restricted/manifests/operator.ibm.com_namespacescopes.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ spec:
4545
watch namespace list into operator csv.
4646
properties:
4747
enable:
48+
default: true
4849
type: boolean
4950
required:
5051
- enable

bundle/manifests/operator.ibm.com_namespacescopes.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ spec:
4545
watch namespace list into operator csv.
4646
properties:
4747
enable:
48+
default: true
4849
type: boolean
4950
required:
5051
- enable

config/crd/bases/operator.ibm.com_namespacescopes.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ spec:
4141
description: When CSVInjector is enabled, operator will inject the watch namespace list into operator csv.
4242
properties:
4343
enable:
44+
default: true
4445
type: boolean
4546
required:
4647
- enable

0 commit comments

Comments
 (0)