add providerspec that will be used to satisfy Provider interface
Signed-off-by: Muvaffak Onus <onus.muvaffak@gmail.com>
This commit is contained in:
parent
075a01671b
commit
fb6ac48df5
|
@ -200,3 +200,11 @@ type ClassSpecTemplate struct {
|
||||||
// +kubebuilder:validation:Enum=Retain;Delete
|
// +kubebuilder:validation:Enum=Retain;Delete
|
||||||
ReclaimPolicy ReclaimPolicy `json:"reclaimPolicy,omitempty"`
|
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"`
|
||||||
|
}
|
||||||
|
|
|
@ -113,6 +113,22 @@ func (in *LocalSecretReference) DeepCopy() *LocalSecretReference {
|
||||||
return out
|
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.
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||||
func (in *ResourceClaimSpec) DeepCopyInto(out *ResourceClaimSpec) {
|
func (in *ResourceClaimSpec) DeepCopyInto(out *ResourceClaimSpec) {
|
||||||
*out = *in
|
*out = *in
|
||||||
|
|
Loading…
Reference in New Issue