Skip to content

Commit

Permalink
feat: Allow overwrite of helm values
Browse files Browse the repository at this point in the history
  • Loading branch information
kaessert committed Oct 4, 2024
1 parent 6b3cdda commit 59fe60b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apis/composition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ spec:
enabled: false
persistence:
enabled: false
wait: true
rollbackLimit: 3
patches:
- type: FromCompositeFieldPath
Expand All @@ -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
Expand Down
4 changes: 4 additions & 0 deletions apis/definition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 59fe60b

Please sign in to comment.