Skip to content

Commit 941e6d6

Browse files
committed
feat: make pools cluster scoped
It doesn't make sense to have namespaced pools. This changes pools to be cluster scoped. Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
1 parent 3a7e2d2 commit 941e6d6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

api/v1alpha1/pool_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ type PoolStatus struct {
3030
}
3131

3232
// +kubebuilder:object:root=true
33+
// +kubebuilder:resource:path=pools,scope=Cluster
3334

3435
// Pool is the Schema for the pools API
3536
// See https://book.kubebuilder.io/reference/markers/crd.html

hack/config/crd/upgrade.talos.dev_pools.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ spec:
3636
listKind: PoolList
3737
plural: pools
3838
singular: pool
39-
scope: Namespaced
39+
scope: Cluster
4040
subresources: {}
4141
validation:
4242
openAPIV3Schema:

0 commit comments

Comments
 (0)