Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We encountered a problem with the last InAccel FPGA Operator downstream release. The issue is related to the way rancher/charts-build-scripts handles chart dependencies and the produced downstream chart.
More specifically
make prepare
replaces alldependency.repository
URLs with local paths but also removes thedependency.version
fields. For example in our case:But it seems that Helm ignores dependencies without a version field and instead just deploys everything under
charts
directory as a subchart (and not as a dependency), which means two things:dependency.alias
field is not taken into account, which is problematic if configuration is passed throughvalues.yaml
dependency.condition
is also ignored, which makes it impossible to disable the dependency (if needed, in a use-case)As a workaround in this fix we restore the
dependency.version
field through theChart.yaml.patch
, but I believe that this should eventually be fixed in thecharts-build-scripts
. Do you want me to open a related issue there, too?To replicate the issue run the following command and you will notice that every
fpga-discovery
related template appears although we disabled the dependency.Then run the same command but this time using the new chart package that just has the
dependency.version
field restored:Now the condition works but also the
fpga-discovery
configuration is applied by Helm.