Open MAHDTech opened 10 months ago
It makes more sense now, not only does this issue apply to the helm + ytt combo but any multi-template package
Given this PackageInstall
snippet example
spec:
packageRef:
refName: my-package
versionSelection:
constraints: 0.0.1
serviceAccountName: kapp-controller-sa
values:
- secretRef:
name: my-package-values
In the App
spec of a multi-stage ytt
template results in
template:
- ytt:
paths:
- config/kapp/Config.yaml
- config/ytt/common
- config/ytt/my-folder-1
valuesFrom:
- secretRef:
name: my-package-values
- ytt:
paths:
- config/kapp/Config.yaml
- config/ytt/common
- config/ytt/my-folder-2
- kbld:
paths:
- '-'
- .imgpkg/images.yml
Unfortunately only the first template step has the values from the secret applied.
Is this something planned to be fixed as it really makes it not very usable when you need to customise values.
Hi @MAHDTech, apologies for not being able to reply for a while. You are right, as of now only the first templating step has access to the data values secret. We do want to enhance this, but unfortunately the maintainers don't have enough bandwidth to work on it at this time. Would you like to create a proposal (and then make the change in kapp-controller)? I would be really happy to assist you with both, and we will definitely prioritise reviews.
Hi,
I'm seeking clarification on the way to pass a
PackageInstall
customized values.I have a package that has a 2-step template.
I am trying to figure out how I can have one set of values held in a Secret where I can provide configuration options to both helm and ytt.
I believe the issue I am hitting is described in this below note from the docs, but wanting to clarify my understanding and determine if there are any known workarounds or suggestions how I might proceed?
Example
The goal with this example is to get the
namespace
value passed to both the helm chart during templating and also the ytt templating as if you were either using the--data-values-file
flag to ytt or using thevaluesFrom
part of the App spec.When testing, I found that the helm template correctly uses the updated value but ytt does not continuing to use the default.
config/ytt/defaults.yaml
PackageInstall
Related
122
129