You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Building Helm charts can fail when they have a local file:// dependency that is not built at the same time.
When the parent helm chart creates a values file from a values template as part of the build, this file will not exist if it is not build due to caching. When the child chart updates it dependencies and retrieves the parent, the values file will not be there. This can be assumed to happen for any file that's not in the chart pre-build phase.
This can happen in CI/CD instances where the workspace is pruned so the generated files during the build are not present. If the parents build is skipped because of caching and the child's is not, it will fail.
Steps to Reproduce
Delete the quarkus-chart values.yaml file - rm -rf extensions/extensions-helm/aissemble-quarkus-chart/values.yaml
Viewing the charts tars extensions/extensions-helm/aissemble-configuration-store-chart/charts/aissemble-quarkus-chart-1.0.0.tgz and /Users/cwoods/workspace/aissemble/extensions/extensions-helm/aissemble-data-access-chart/charts/aissemble-quarkus-chart-1.0.0.tgz will show no values.yaml file present
Expected Behavior
The build should succeed in pulling the quarkus dependency.
This pulled tar should contain all necessary files.
Actual Behavior
The pulled quarkus dependency does not contain the values.yaml file.
Helm chart linting fails
Additional Context
N/A
The text was updated successfully, but these errors were encountered:
Description
Building Helm charts can fail when they have a local
file://
dependency that is not built at the same time.When the parent helm chart creates a values file from a values template as part of the build, this file will not exist if it is not build due to caching. When the child chart updates it dependencies and retrieves the parent, the values file will not be there. This can be assumed to happen for any file that's not in the chart pre-build phase.
This can happen in CI/CD instances where the workspace is pruned so the generated files during the build are not present. If the parents build is skipped because of caching and the child's is not, it will fail.
Steps to Reproduce
rm -rf extensions/extensions-helm/aissemble-quarkus-chart/values.yaml
mvn clean install -Dmaven.build.cache.enabled=false -pl :aissemble-configuration-store-chart
mvn clean install -Dmaven.build.cache.enabled=false -pl :aissemble-data-access-chart
extensions/extensions-helm/aissemble-configuration-store-chart/charts/aissemble-quarkus-chart-1.0.0.tgz
and/Users/cwoods/workspace/aissemble/extensions/extensions-helm/aissemble-data-access-chart/charts/aissemble-quarkus-chart-1.0.0.tgz
will show no values.yaml file presentExpected Behavior
The build should succeed in pulling the quarkus dependency.
This pulled tar should contain all necessary files.
Actual Behavior
The pulled quarkus dependency does not contain the values.yaml file.
Helm chart linting fails
Additional Context
N/A
The text was updated successfully, but these errors were encountered: