add providerspec that will be used to satisfy Provider interface

Signed-off-by: Muvaffak Onus <onus.muvaffak@gmail.com>
This commit is contained in:
Muvaffak Onus 2019-12-19 16:38:54 +03:00
parent 075a01671b
commit fb6ac48df5
No known key found for this signature in database
GPG Key ID: 86E282DC72236827
2 changed files with 24 additions and 0 deletions

View File

@ -200,3 +200,11 @@ type ClassSpecTemplate struct {
// +kubebuilder:validation:Enum=Retain;Delete
ReclaimPolicy ReclaimPolicy `json:"reclaimPolicy,omitempty"`
}
// A ProviderSpec defines the common way to get to the necessary objects to connect
// to the provider.
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"`
}

View File

@ -113,6 +113,22 @@ func (in *LocalSecretReference) DeepCopy() *LocalSecretReference {
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ProviderSpec) DeepCopyInto(out *ProviderSpec) {
*out = *in
out.CredentialsSecretRef = in.CredentialsSecretRef
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderSpec.
func (in *ProviderSpec) DeepCopy() *ProviderSpec {
if in == nil {
return nil
}
out := new(ProviderSpec)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ResourceClaimSpec) DeepCopyInto(out *ResourceClaimSpec) {
*out = *in