Skip to content

Commit 09a218d

Browse files
authored
Revert "set value of csvInjector enable to true in nss CR (#187)" (#195)
This reverts commit 39832d0.
1 parent ee9f7ab commit 09a218d

File tree

4 files changed

+7
-11
lines changed

4 files changed

+7
-11
lines changed

api/v1/namespacescope_types.go

Lines changed: 1 addition & 2 deletions
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}
4544
CSVInjector CSVInjector `json:"csvInjector,omitempty"`
4645
}
4746

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

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

70-
// +kubebuilder:pruning:PreserveUnknownFields
7170
Spec NamespaceScopeSpec `json:"spec,omitempty"`
7271
Status NamespaceScopeStatus `json:"status,omitempty"`
7372
}

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,19 @@ spec:
3434
metadata:
3535
type: object
3636
spec:
37+
x-kubernetes-preserve-unknown-fields: true
3738
description: NamespaceScopeSpec defines the desired state of NamespaceScope
3839
properties:
3940
configmapName:
4041
description: ConfigMap name that will contain the list of namespaces
4142
to be watched
4243
type: string
4344
csvInjector:
44-
default:
45-
enable: true
4645
description: When CSVInjector is enabled, operator will inject the
4746
watch namespace list into operator csv.
4847
properties:
4948
enable:
49+
default: true
5050
type: boolean
5151
required:
5252
- enable
@@ -76,7 +76,6 @@ spec:
7676
type: string
7777
type: array
7878
type: object
79-
x-kubernetes-preserve-unknown-fields: true
8079
status:
8180
description: NamespaceScopeStatus defines the observed state of NamespaceScope
8281
properties:

bundle/manifests/operator.ibm.com_namespacescopes.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,19 @@ spec:
3434
metadata:
3535
type: object
3636
spec:
37+
x-kubernetes-preserve-unknown-fields: true
3738
description: NamespaceScopeSpec defines the desired state of NamespaceScope
3839
properties:
3940
configmapName:
4041
description: ConfigMap name that will contain the list of namespaces
4142
to be watched
4243
type: string
4344
csvInjector:
44-
default:
45-
enable: true
4645
description: When CSVInjector is enabled, operator will inject the
4746
watch namespace list into operator csv.
4847
properties:
4948
enable:
49+
default: true
5050
type: boolean
5151
required:
5252
- enable
@@ -76,7 +76,6 @@ spec:
7676
type: string
7777
type: array
7878
type: object
79-
x-kubernetes-preserve-unknown-fields: true
8079
status:
8180
description: NamespaceScopeStatus defines the observed state of NamespaceScope
8281
properties:

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,17 @@ spec:
3232
metadata:
3333
type: object
3434
spec:
35+
x-kubernetes-preserve-unknown-fields: true
3536
description: NamespaceScopeSpec defines the desired state of NamespaceScope
3637
properties:
3738
configmapName:
3839
description: ConfigMap name that will contain the list of namespaces to be watched
3940
type: string
4041
csvInjector:
41-
default:
42-
enable: true
4342
description: When CSVInjector is enabled, operator will inject the watch namespace list into operator csv.
4443
properties:
4544
enable:
45+
default: true
4646
type: boolean
4747
required:
4848
- enable
@@ -66,7 +66,6 @@ spec:
6666
type: string
6767
type: array
6868
type: object
69-
x-kubernetes-preserve-unknown-fields: true
7069
status:
7170
description: NamespaceScopeStatus defines the observed state of NamespaceScope
7271
properties:

0 commit comments

Comments
 (0)