From c55240a2a2e51a941f827895dcd9f1f190f7e46b Mon Sep 17 00:00:00 2001 From: Hasan Turken Date: Fri, 4 Mar 2022 17:42:09 +0300 Subject: [PATCH] Add PublishConnectionDetailsTo to Managed resource spec Signed-off-by: Hasan Turken --- apis/common/v1/resource.go | 8 ++++++++ apis/common/v1/zz_generated.deepcopy.go | 5 +++++ 2 files changed, 13 insertions(+) diff --git a/apis/common/v1/resource.go b/apis/common/v1/resource.go index 0ee323d..1b3b39d 100644 --- a/apis/common/v1/resource.go +++ b/apis/common/v1/resource.go @@ -136,6 +136,14 @@ type ResourceSpec struct { // +optional WriteConnectionSecretToReference *SecretReference `json:"writeConnectionSecretToRef,omitempty"` + // PublishConnectionDetailsTo specifies the connection secret config which + // contains a name, metadata and a reference to secret store config to + // which any connection details for this managed resource should be written. + // Connection details frequently include the endpoint, username, + // and password required to connect to the managed resource. + // +optional + PublishConnectionDetailsTo *PublishConnectionDetailsTo `json:"publishConnectionDetailsTo,omitempty"` + // ProviderConfigReference specifies how the provider that will be used to // create, observe, update, and delete this managed resource should be // configured. diff --git a/apis/common/v1/zz_generated.deepcopy.go b/apis/common/v1/zz_generated.deepcopy.go index 9ed477c..d7cae60 100644 --- a/apis/common/v1/zz_generated.deepcopy.go +++ b/apis/common/v1/zz_generated.deepcopy.go @@ -310,6 +310,11 @@ func (in *ResourceSpec) DeepCopyInto(out *ResourceSpec) { *out = new(SecretReference) **out = **in } + if in.PublishConnectionDetailsTo != nil { + in, out := &in.PublishConnectionDetailsTo, &out.PublishConnectionDetailsTo + *out = new(PublishConnectionDetailsTo) + (*in).DeepCopyInto(*out) + } if in.ProviderConfigReference != nil { in, out := &in.ProviderConfigReference, &out.ProviderConfigReference *out = new(Reference)