diff --git a/apis/composition.yaml b/apis/composition.yaml index 7e5468a..b4d4e52 100644 --- a/apis/composition.yaml +++ b/apis/composition.yaml @@ -52,6 +52,7 @@ spec: enabled: false persistence: enabled: false + wait: true rollbackLimit: 3 patches: - type: FromCompositeFieldPath @@ -69,6 +70,9 @@ spec: - type: FromCompositeFieldPath fromFieldPath: spec.parameters.helm.chart.version toFieldPath: spec.forProvider.chart.version + - type: FromCompositeFieldPath + fromFieldPath: spec.parameters.helm.wait + toFieldPath: spec.forProvider.wait - type: FromCompositeFieldPath fromFieldPath: spec.parameters.passwordSecretRef.namespace toFieldPath: spec.forProvider.set[0].valueFrom.secretKeyRef.namespace diff --git a/apis/definition.yaml b/apis/definition.yaml index 6d1276e..132724a 100644 --- a/apis/definition.yaml +++ b/apis/definition.yaml @@ -53,6 +53,11 @@ spec: version: type: string description: chart version + wait: + type: boolean + decription: | + Whether to wait or not for resources to be healthy or deletd when installing + or deleting the chart passwordSecretRef: type: object description: "A reference to the Secret object containing database credentials" diff --git a/examples/app-claim.yaml b/examples/app-claim.yaml index ba5aeb5..9eb6285 100644 --- a/examples/app-claim.yaml +++ b/examples/app-claim.yaml @@ -9,6 +9,8 @@ metadata: spec: compositeDeletePolicy: Foreground parameters: + helm: + wait: false providerConfigName: uptest passwordSecretRef: namespace: default