Add docstring and enum validation for credentials secret source

Signed-off-by: Nic Cope <negz@rk0n.org>
This commit is contained in:
Nic Cope 2020-10-07 15:19:57 -07:00
parent a0ec116066
commit ab7ab7c7c2
1 changed files with 2 additions and 0 deletions

View File

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