jf helm package fails to collect build-info when Chart.yaml and packaged chart archive are in different directories. - #501
jf helm package fails to collect build-info when Chart.yaml and packaged chart archive are in different directories.#501kumadee wants to merge 5 commits into
jf helm package fails to collect build-info when Chart.yaml and packaged chart archive are in different directories.#501Conversation
|
All contributors have signed the CLA ✍️ ✅ |
|
I have read the CLA Document and I hereby sign the CLA |
|
recheck |
|
PR's branch is out of sync and all cli integration tests are failing, please fix these first. |
|
I have rebased the PR branch with the default branch. Unit tests are passing on my local. Waiting for the integration tests to be executed on CI. |
|
@naveenku-jfrog Could you please let me know what else do I need to do so that this PR can move forward? Do I need to ask JFrog support to give the reviewers any additional details? |
|
@naveenku-jfrog Could you please re-review the changes? |
|
Static failure: |
naveenku-jfrog
left a comment
There was a problem hiding this comment.
static failure is present. and PR's branch is also out of sync.
@naveenku-jfrog Sorry, I was on vacation. I have fixed this now and successfully ran $ gosec -exclude G204,G301,G302,G304,G306,G602 -tests -exclude-dir \.*test\.* ./...
Summary:
Gosec : dev
Files : 789
Lines : 159575
Nosec : 144
Issues : 0 |
…n helm chart archive When `helm package /path/to/chart --destination /tmp/target` is executed, we need to filter out directories which doesn't contain Chart.yaml.
|
@naveenku-jfrog Could you please rerun the checks? It is pain to check and keep updating the branch with master. |
Original issue was raised as a part of Jfrog support ticket 426969.
Here is the problem statement:
When
jf helm packagecommand is executed with multiple options contains different paths e.g. chart directory path, chart archive destination path, keyring path and all of these path are different, then the command fails as it expects a Chart.yaml in each of these directories.In the below log the Chart.yaml is in
./target/my-app-chartand themy-app-384-SNAPSHOT.tgzis successfully created in./target/helm. For some reason, the jf cli expects the Chart.yaml to be always in the same directory as the Chart.yaml.Proposed solution: Filter out the different paths given in the
helm package CHART_DIR ....command. There can be only 1 chart directory in the command, which can be checked by the presence ofChart.yaml.Summary by CodeRabbit
Chart.yaml, while ignoring unrelated paths.