diff --git a/manifests/crds.yaml b/manifests/crds.yaml index ae8b391..132a873 100644 --- a/manifests/crds.yaml +++ b/manifests/crds.yaml @@ -12,7 +12,7 @@ spec: listKind: PeerList plural: peers singular: peer - scope: Namespaced + scope: Cluster versions: - name: v1alpha1 schema: diff --git a/pkg/k8s/apis/kilo/v1alpha1/types.go b/pkg/k8s/apis/kilo/v1alpha1/types.go index b7f2902..e0d29a1 100644 --- a/pkg/k8s/apis/kilo/v1alpha1/types.go +++ b/pkg/k8s/apis/kilo/v1alpha1/types.go @@ -48,6 +48,7 @@ var PeerShortNames = []string{"peer"} // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +k8s:openapi-gen=true +// +kubebuilder:resource:scope=Cluster // Peer is a WireGuard peer that should have access to the VPN. type Peer struct {