Skip to content

Commit f3663de

Browse files
[release-ltsr] set value of csvInjector enable to true in nss CR (#189)
* set value of csvInjector enable to true Signed-off-by: YCShen1010 <[email protected]> * set csvInjector enable to true by default Signed-off-by: YCShen1010 <[email protected]> Signed-off-by: YCShen1010 <[email protected]> Co-authored-by: YCShen1010 <[email protected]>
1 parent b3ce209 commit f3663de

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

api/v1/namespacescope_types.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ type NamespaceScopeSpec struct {
4141
ManualManagement bool `json:"manualManagement,omitempty"`
4242

4343
// When CSVInjector is enabled, operator will inject the watch namespace list into operator csv.
44+
// +kubebuilder:default:={enable:true}
4445
CSVInjector CSVInjector `json:"csvInjector,omitempty"`
4546
}
4647

4748
// CSVInjector manages if operator will insert labels and WATCH_NAMESPACES in CSV automatically
4849
type CSVInjector struct {
49-
// +kubebuilder:default:=true
5050
Enable bool `json:"enable"`
5151
}
5252

@@ -67,6 +67,7 @@ type NamespaceScope struct {
6767
metav1.TypeMeta `json:",inline"`
6868
metav1.ObjectMeta `json:"metadata,omitempty"`
6969

70+
// +kubebuilder:pruning:PreserveUnknownFields
7071
Spec NamespaceScopeSpec `json:"spec,omitempty"`
7172
Status NamespaceScopeStatus `json:"status,omitempty"`
7273
}

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,12 @@ spec:
4141
to be watched
4242
type: string
4343
csvInjector:
44+
default:
45+
enable: true
4446
description: When CSVInjector is enabled, operator will inject the
4547
watch namespace list into operator csv.
4648
properties:
4749
enable:
48-
default: true
4950
type: boolean
5051
required:
5152
- enable
@@ -75,6 +76,7 @@ spec:
7576
type: string
7677
type: array
7778
type: object
79+
x-kubernetes-preserve-unknown-fields: true
7880
status:
7981
description: NamespaceScopeStatus defines the observed state of NamespaceScope
8082
properties:

bundle/manifests/operator.ibm.com_namespacescopes.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,12 @@ spec:
4141
to be watched
4242
type: string
4343
csvInjector:
44+
default:
45+
enable: true
4446
description: When CSVInjector is enabled, operator will inject the
4547
watch namespace list into operator csv.
4648
properties:
4749
enable:
48-
default: true
4950
type: boolean
5051
required:
5152
- enable
@@ -75,6 +76,7 @@ spec:
7576
type: string
7677
type: array
7778
type: object
79+
x-kubernetes-preserve-unknown-fields: true
7880
status:
7981
description: NamespaceScopeStatus defines the observed state of NamespaceScope
8082
properties:

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,11 @@ spec:
3838
description: ConfigMap name that will contain the list of namespaces to be watched
3939
type: string
4040
csvInjector:
41+
default:
42+
enable: true
4143
description: When CSVInjector is enabled, operator will inject the watch namespace list into operator csv.
4244
properties:
4345
enable:
44-
default: true
4546
type: boolean
4647
required:
4748
- enable
@@ -65,6 +66,7 @@ spec:
6566
type: string
6667
type: array
6768
type: object
69+
x-kubernetes-preserve-unknown-fields: true
6870
status:
6971
description: NamespaceScopeStatus defines the observed state of NamespaceScope
7072
properties:

0 commit comments

Comments
 (0)