diff --git a/apis/release/v1beta1/types.go b/apis/release/v1beta1/types.go index ea8d415..9322078 100644 --- a/apis/release/v1beta1/types.go +++ b/apis/release/v1beta1/types.go @@ -18,6 +18,7 @@ package v1beta1 import ( "helm.sh/helm/v3/pkg/release" + v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" @@ -85,7 +86,8 @@ type ReleaseObservation struct { // A ReleaseSpec defines the desired state of a Release. type ReleaseSpec struct { runtimev1alpha1.ResourceSpec `json:",inline"` - ForProvider ReleaseParameters `json:"forProvider"` + ConnectionDetails []ConnectionDetail `json:"connectionDetails,omitempty"` + ForProvider ReleaseParameters `json:"forProvider"` // RollbackRetriesLimit is max number of attempts to retry Helm deployment by rolling back the release. RollbackRetriesLimit *int32 `json:"rollbackLimit,omitempty"` } @@ -99,6 +101,12 @@ type ReleaseStatus struct { Synced bool `json:"synced,omitempty"` } +// ConnectionDetail todo +type ConnectionDetail struct { + v1.ObjectReference `json:",inline"` + ToConnectionSecretKey string `json:"toConnectionSecretKey,omitempty"` +} + // +kubebuilder:object:root=true // +kubebuilder:storageversion diff --git a/apis/release/v1beta1/zz_generated.deepcopy.go b/apis/release/v1beta1/zz_generated.deepcopy.go index 1a3bbbc..0065087 100644 --- a/apis/release/v1beta1/zz_generated.deepcopy.go +++ b/apis/release/v1beta1/zz_generated.deepcopy.go @@ -40,6 +40,22 @@ func (in *ChartSpec) DeepCopy() *ChartSpec { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ConnectionDetail) DeepCopyInto(out *ConnectionDetail) { + *out = *in + out.ObjectReference = in.ObjectReference +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConnectionDetail. +func (in *ConnectionDetail) DeepCopy() *ConnectionDetail { + if in == nil { + return nil + } + out := new(ConnectionDetail) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *DataKeySelector) DeepCopyInto(out *DataKeySelector) { *out = *in @@ -173,6 +189,11 @@ func (in *ReleaseParameters) DeepCopy() *ReleaseParameters { func (in *ReleaseSpec) DeepCopyInto(out *ReleaseSpec) { *out = *in in.ResourceSpec.DeepCopyInto(&out.ResourceSpec) + if in.ConnectionDetails != nil { + in, out := &in.ConnectionDetails, &out.ConnectionDetails + *out = make([]ConnectionDetail, len(*in)) + copy(*out, *in) + } in.ForProvider.DeepCopyInto(&out.ForProvider) if in.RollbackRetriesLimit != nil { in, out := &in.RollbackRetriesLimit, &out.RollbackRetriesLimit diff --git a/cluster/integration/integration_tests.sh b/cluster/integration/integration_tests.sh index 1aa3c46..ddfa85f 100755 --- a/cluster/integration/integration_tests.sh +++ b/cluster/integration/integration_tests.sh @@ -271,7 +271,7 @@ check_pods 2 echo_step "installing ${PROJECT_NAME} into \"${CROSSPLANE_NAMESPACE}\" namespace" INSTALL_YAML="$( cat <