File tree Expand file tree Collapse file tree 4 files changed +11
-7
lines changed
bundle-restricted/manifests Expand file tree Collapse file tree 4 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -41,12 +41,12 @@ type NamespaceScopeSpec struct {
41
41
ManualManagement bool `json:"manualManagement,omitempty"`
42
42
43
43
// When CSVInjector is enabled, operator will inject the watch namespace list into operator csv.
44
+ // +kubebuilder:default:={enable:true}
44
45
CSVInjector CSVInjector `json:"csvInjector,omitempty"`
45
46
}
46
47
47
48
// CSVInjector manages if operator will insert labels and WATCH_NAMESPACES in CSV automatically
48
49
type CSVInjector struct {
49
- // +kubebuilder:default:=true
50
50
Enable bool `json:"enable"`
51
51
}
52
52
@@ -67,6 +67,7 @@ type NamespaceScope struct {
67
67
metav1.TypeMeta `json:",inline"`
68
68
metav1.ObjectMeta `json:"metadata,omitempty"`
69
69
70
+ // +kubebuilder:pruning:PreserveUnknownFields
70
71
Spec NamespaceScopeSpec `json:"spec,omitempty"`
71
72
Status NamespaceScopeStatus `json:"status,omitempty"`
72
73
}
Original file line number Diff line number Diff line change @@ -34,19 +34,19 @@ spec:
34
34
metadata :
35
35
type : object
36
36
spec :
37
- x-kubernetes-preserve-unknown-fields : true
38
37
description : NamespaceScopeSpec defines the desired state of NamespaceScope
39
38
properties :
40
39
configmapName :
41
40
description : ConfigMap name that will contain the list of namespaces
42
41
to be watched
43
42
type : string
44
43
csvInjector :
44
+ default :
45
+ enable : true
45
46
description : When CSVInjector is enabled, operator will inject the
46
47
watch namespace list into operator csv.
47
48
properties :
48
49
enable :
49
- default : true
50
50
type : boolean
51
51
required :
52
52
- enable
76
76
type : string
77
77
type : array
78
78
type : object
79
+ x-kubernetes-preserve-unknown-fields : true
79
80
status :
80
81
description : NamespaceScopeStatus defines the observed state of NamespaceScope
81
82
properties :
Original file line number Diff line number Diff line change @@ -34,19 +34,19 @@ spec:
34
34
metadata :
35
35
type : object
36
36
spec :
37
- x-kubernetes-preserve-unknown-fields : true
38
37
description : NamespaceScopeSpec defines the desired state of NamespaceScope
39
38
properties :
40
39
configmapName :
41
40
description : ConfigMap name that will contain the list of namespaces
42
41
to be watched
43
42
type : string
44
43
csvInjector :
44
+ default :
45
+ enable : true
45
46
description : When CSVInjector is enabled, operator will inject the
46
47
watch namespace list into operator csv.
47
48
properties :
48
49
enable :
49
- default : true
50
50
type : boolean
51
51
required :
52
52
- enable
76
76
type : string
77
77
type : array
78
78
type : object
79
+ x-kubernetes-preserve-unknown-fields : true
79
80
status :
80
81
description : NamespaceScopeStatus defines the observed state of NamespaceScope
81
82
properties :
Original file line number Diff line number Diff line change @@ -32,17 +32,17 @@ spec:
32
32
metadata :
33
33
type : object
34
34
spec :
35
- x-kubernetes-preserve-unknown-fields : true
36
35
description : NamespaceScopeSpec defines the desired state of NamespaceScope
37
36
properties :
38
37
configmapName :
39
38
description : ConfigMap name that will contain the list of namespaces to be watched
40
39
type : string
41
40
csvInjector :
41
+ default :
42
+ enable : true
42
43
description : When CSVInjector is enabled, operator will inject the watch namespace list into operator csv.
43
44
properties :
44
45
enable :
45
- default : true
46
46
type : boolean
47
47
required :
48
48
- enable
66
66
type : string
67
67
type : array
68
68
type : object
69
+ x-kubernetes-preserve-unknown-fields : true
69
70
status :
70
71
description : NamespaceScopeStatus defines the observed state of NamespaceScope
71
72
properties :
You can’t perform that action at this time.
0 commit comments