File tree 5 files changed +8
-7
lines changed
pkg/apis/storage/v1alpha1
5 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 9
9
listKind : VolumeList
10
10
plural : volumes
11
11
singular : volume
12
- scope : Namespaced
12
+ scope : Cluster
13
13
subresources :
14
14
status : {}
15
15
validation :
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ apiVersion: apps/v1
2
2
kind : Deployment
3
3
metadata :
4
4
name : storage-operator
5
+ namespace : kube-system
5
6
spec :
6
7
replicas : 1
7
8
selector :
22
23
imagePullPolicy : Always
23
24
env :
24
25
- name : WATCH_NAMESPACE
25
- valueFrom :
26
- fieldRef :
27
- fieldPath : metadata.namespace
26
+ value : ' '
28
27
- name : POD_NAME
29
28
valueFrom :
30
29
fieldRef :
Original file line number Diff line number Diff line change 1
1
apiVersion : rbac.authorization.k8s.io/v1
2
- kind : Role
2
+ kind : ClusterRole
3
3
metadata :
4
4
creationTimestamp : null
5
5
name : storage-operator
Original file line number Diff line number Diff line change 1
- kind : RoleBinding
1
+ kind : ClusterRoleBinding
2
2
apiVersion : rbac.authorization.k8s.io/v1
3
3
metadata :
4
4
name : storage-operator
5
5
subjects :
6
6
- kind : ServiceAccount
7
7
name : storage-operator
8
+ namespace : kube-system
8
9
roleRef :
9
- kind : Role
10
+ kind : ClusterRole
10
11
name : storage-operator
11
12
apiGroup : rbac.authorization.k8s.io
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ type VolumeStatus struct {
28
28
// Volume is the Schema for the volumes API
29
29
// +k8s:openapi-gen=true
30
30
// +kubebuilder:subresource:status
31
+ // +genclient:nonNamespaced
31
32
type Volume struct {
32
33
metav1.TypeMeta `json:",inline"`
33
34
metav1.ObjectMeta `json:"metadata,omitempty"`
You can’t perform that action at this time.
0 commit comments