Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix chart location logic to work with compressed chart archives #2428

Merged
merged 8 commits into from
May 25, 2023

Conversation

kpitzen
Copy link
Contributor

@kpitzen kpitzen commented May 24, 2023

Proposed changes

We added more-strict validation logic around chart location in #2410 - this caused a regression for users who use compressed charts via .tar.gz etc.

This PR refactors the file checking logic and ensures that compressed chart archives are correctly handled. 2 additional test cases are also added so the following flows are tested:

  • Repository URL is specified and a local folder also has the same name as the chart [added in this PR]
  • Compressed chart archive is specified [added in this PR]
  • Repository URL is specified and no local file/folder is present
  • Local folder is specified to be used as chart

Related issues (optional)

Closes: #2426
Closes: #2409

@github-actions
Copy link

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

@rquitales rquitales changed the title Adds fallback to original chart location logic Fix chart location logic to work with compressed chart archives May 25, 2023
@rquitales rquitales marked this pull request as ready for review May 25, 2023 00:54
@rquitales rquitales requested review from lblackstone and a team May 25, 2023 01:49
@kpitzen
Copy link
Contributor Author

kpitzen commented May 25, 2023

@rquitales - I can't approve this PR since I opened the initial draft, but it looks like the changes are sound, and I appreciate the extra tests added! Consider this my ✅

@rquitales rquitales merged commit ce6c06a into master May 25, 2023
17 checks passed
@rquitales rquitales deleted the KP/2426 branch May 25, 2023 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants