Skip to content

Commit

Permalink
Add docstring and enum validation for credentials secret source
Browse files Browse the repository at this point in the history
Signed-off-by: Nic Cope <[email protected]>
  • Loading branch information
negz committed Oct 7, 2020
1 parent a0ec116 commit ab7ab7c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apis/core/v1alpha1/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ab7ab7c

Please sign in to comment.