Skip to content

Commit edece37

Browse files
authored
make Operator API cluster-scoped (#82)
Signed-off-by: Joe Lanford <[email protected]>
1 parent 3ddf6b6 commit edece37

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

api/v1alpha1/operator_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ type OperatorSpec struct {
3131
type OperatorStatus struct{}
3232

3333
//+kubebuilder:object:root=true
34+
//+kubebuilder:resource:scope=Cluster
3435
//+kubebuilder:subresource:status
3536

3637
// Operator is the Schema for the operators API

config/crd/bases/operators.operatorframework.io_operators.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ spec:
1313
listKind: OperatorList
1414
plural: operators
1515
singular: operator
16-
scope: Namespaced
16+
scope: Cluster
1717
versions:
1818
- name: v1alpha1
1919
schema:

0 commit comments

Comments
 (0)