Skip to content

Commit

Permalink
Merge pull request #115 from hasheddan/optprovcreds
Browse files Browse the repository at this point in the history
Make ProviderSpec credentialsSecretRef optional
  • Loading branch information
negz authored Feb 13, 2020
2 parents a6bb086 + 15f69fb commit e599809
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion apis/core/v1alpha1/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ type ClassSpecTemplate struct {
type ProviderSpec struct {
// CredentialsSecretRef references a specific secret's key that contains
// the credentials that are used to connect to the provider.
CredentialsSecretRef SecretKeySelector `json:"credentialsSecretRef"`
// +optional
CredentialsSecretRef *SecretKeySelector `json:"credentialsSecretRef,omitempty"`
}

// A TargetSpec defines the common fields of objects used for exposing
Expand Down
6 changes: 5 additions & 1 deletion apis/core/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e599809

Please sign in to comment.