From 5eef9ae96741a794887ca12655b47cf6bc595e05 Mon Sep 17 00:00:00 2001 From: John Doe Date: Sun, 14 Jul 2024 21:43:20 +0100 Subject: [PATCH] fix manifest case --- ....wireguard-operator.io_wireguardpeers.yaml | 54 +++++++++---------- pkg/api/v1alpha1/wireguardpeer_types.go | 2 +- 2 files changed, 28 insertions(+), 28 deletions(-) diff --git a/config/crd/bases/vpn.wireguard-operator.io_wireguardpeers.yaml b/config/crd/bases/vpn.wireguard-operator.io_wireguardpeers.yaml index dd4672c5..b5e5c87a 100644 --- a/config/crd/bases/vpn.wireguard-operator.io_wireguardpeers.yaml +++ b/config/crd/bases/vpn.wireguard-operator.io_wireguardpeers.yaml @@ -39,33 +39,6 @@ spec: spec: description: The desired state of the peer. properties: - PrivateKeyRef: - description: The private key of the peer - properties: - secretKeyRef: - description: SecretKeySelector selects a key of a Secret. - properties: - key: - description: The key of the secret to select from. Must be - a valid secret key. - type: string - name: - description: |- - Name of the referent. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - TODO: Add other useful fields. apiVersion, kind, uid? - type: string - optional: - description: Specify whether the Secret or its key must be - defined - type: boolean - required: - - key - type: object - x-kubernetes-map-type: atomic - required: - - secretKeyRef - type: object address: description: |- INSERT ADDITIONAL SPEC FIELDS - desired state of cluster @@ -127,6 +100,33 @@ spec: type: object type: object type: array + privateKeyRef: + description: The private key of the peer + properties: + secretKeyRef: + description: SecretKeySelector selects a key of a Secret. + properties: + key: + description: The key of the secret to select from. Must be + a valid secret key. + type: string + name: + description: |- + Name of the referent. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + TODO: Add other useful fields. apiVersion, kind, uid? + type: string + optional: + description: Specify whether the Secret or its key must be + defined + type: boolean + required: + - key + type: object + x-kubernetes-map-type: atomic + required: + - secretKeyRef + type: object publicKey: description: The key used by the peer to authenticate with the wg server. diff --git a/pkg/api/v1alpha1/wireguardpeer_types.go b/pkg/api/v1alpha1/wireguardpeer_types.go index ff5a9950..ff8a443e 100644 --- a/pkg/api/v1alpha1/wireguardpeer_types.go +++ b/pkg/api/v1alpha1/wireguardpeer_types.go @@ -42,7 +42,7 @@ type WireguardPeerSpec struct { // The DNS configuration for the peer. Dns string `json:"dns,omitempty"` // The private key of the peer - PrivateKey PrivateKey `json:"PrivateKeyRef,omitempty"` + PrivateKey PrivateKey `json:"privateKeyRef,omitempty"` // The key used by the peer to authenticate with the wg server. PublicKey string `json:"publicKey,omitempty"` // The name of the Wireguard instance in k8s that the peer belongs to. The wg instance should be in the same namespace as the peer.