From 00436b4aeebd43a56ff6e4557b66269134cf3406 Mon Sep 17 00:00:00 2001 From: Joris Coenen Date: Tue, 21 Jun 2022 14:38:48 +0200 Subject: [PATCH] Place back description in CRD This comment was placed manually and therefore disappeared when regenerating the CRDs. --- deploy/crds/onepassword.com_onepassworditems_crd.yaml | 1 + pkg/apis/onepassword/v1/onepasswordsecret_types.go | 2 ++ 2 files changed, 3 insertions(+) diff --git a/deploy/crds/onepassword.com_onepassworditems_crd.yaml b/deploy/crds/onepassword.com_onepassworditems_crd.yaml index 3515c4b..bc27b69 100644 --- a/deploy/crds/onepassword.com_onepassworditems_crd.yaml +++ b/deploy/crds/onepassword.com_onepassworditems_crd.yaml @@ -70,6 +70,7 @@ spec: - conditions type: object type: + description: 'Kubernetes secret type. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types' type: string type: object served: true diff --git a/pkg/apis/onepassword/v1/onepasswordsecret_types.go b/pkg/apis/onepassword/v1/onepasswordsecret_types.go index 3f4389e..6358c80 100644 --- a/pkg/apis/onepassword/v1/onepasswordsecret_types.go +++ b/pkg/apis/onepassword/v1/onepasswordsecret_types.go @@ -49,6 +49,8 @@ type OnePasswordItemStatus struct { type OnePasswordItem struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` + + // Kubernetes secret type. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types Type string `json:"type,omitempty"` Spec OnePasswordItemSpec `json:"spec,omitempty"`