Skip to content

Commit f5e3a11

Browse files
committed
1 parent 33e80c7 commit f5e3a11

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

storage-operator/deploy/crds/storage_v1alpha1_volume_crd.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ spec:
99
listKind: VolumeList
1010
plural: volumes
1111
singular: volume
12-
scope: Namespaced
12+
scope: Cluster
1313
subresources:
1414
status: {}
1515
validation:

storage-operator/deploy/operator.yaml

+2-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ apiVersion: apps/v1
22
kind: Deployment
33
metadata:
44
name: storage-operator
5+
namespace: kube-system
56
spec:
67
replicas: 1
78
selector:
@@ -22,9 +23,7 @@ spec:
2223
imagePullPolicy: Always
2324
env:
2425
- name: WATCH_NAMESPACE
25-
valueFrom:
26-
fieldRef:
27-
fieldPath: metadata.namespace
26+
value: ''
2827
- name: POD_NAME
2928
valueFrom:
3029
fieldRef:

storage-operator/deploy/role.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apiVersion: rbac.authorization.k8s.io/v1
2-
kind: Role
2+
kind: ClusterRole
33
metadata:
44
creationTimestamp: null
55
name: storage-operator
+3-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
kind: RoleBinding
1+
kind: ClusterRoleBinding
22
apiVersion: rbac.authorization.k8s.io/v1
33
metadata:
44
name: storage-operator
55
subjects:
66
- kind: ServiceAccount
77
name: storage-operator
8+
namespace: kube-system
89
roleRef:
9-
kind: Role
10+
kind: ClusterRole
1011
name: storage-operator
1112
apiGroup: rbac.authorization.k8s.io

storage-operator/pkg/apis/storage/v1alpha1/volume_types.go

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ type VolumeStatus struct {
2828
// Volume is the Schema for the volumes API
2929
// +k8s:openapi-gen=true
3030
// +kubebuilder:subresource:status
31+
// +genclient:nonNamespaced
3132
type Volume struct {
3233
metav1.TypeMeta `json:",inline"`
3334
metav1.ObjectMeta `json:"metadata,omitempty"`

0 commit comments

Comments
 (0)