Merge pull request #225 from squat/fix_scope

pkg/k8s: fix resource scope of Kilo CRD
This commit is contained in:
Lucas Servén Marín 2021-08-19 23:43:28 +02:00 committed by GitHub
commit acc3696057
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -12,7 +12,7 @@ spec:
listKind: PeerList
plural: peers
singular: peer
scope: Namespaced
scope: Cluster
versions:
- name: v1alpha1
schema:

View File

@ -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 {