From 59fe60b00991431257b09c64638c8a7547630fed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20K=C3=A4sser?= Date: Thu, 3 Oct 2024 19:47:04 +0200 Subject: [PATCH] feat: Allow overwrite of helm values --- apis/composition.yaml | 4 ++++ apis/definition.yaml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/apis/composition.yaml b/apis/composition.yaml index 7e5468a..c66413b 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.values + toFieldPath: spec.forProvider.values - 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..3dc8bbd 100644 --- a/apis/definition.yaml +++ b/apis/definition.yaml @@ -53,6 +53,10 @@ spec: version: type: string description: chart version + values: + type: object + description: Values for the Helm Chart + x-kubernetes-preserve-unknown-fields: true passwordSecretRef: type: object description: "A reference to the Secret object containing database credentials"