From ab7ab7c7c2ef8353276ef7910fab8944f9c9ef09 Mon Sep 17 00:00:00 2001 From: Nic Cope Date: Wed, 7 Oct 2020 15:19:57 -0700 Subject: [PATCH] Add docstring and enum validation for credentials secret source Signed-off-by: Nic Cope --- apis/core/v1alpha1/resource.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apis/core/v1alpha1/resource.go b/apis/core/v1alpha1/resource.go index b527e09b1..fc89a3e5c 100644 --- a/apis/core/v1alpha1/resource.go +++ b/apis/core/v1alpha1/resource.go @@ -202,6 +202,8 @@ const ( // ProviderCredentials required to authenticate. type ProviderCredentials struct { + // Source of the provider credentials. + // +kubebuilder:validation:Enum=None;Secret;InjectedIdentity Source CredentialsSource `json:"source"` // A CredentialsSecretRef is a reference to a secret key that contains the