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: avoid helm conflict with local directory #99

Merged
merged 2 commits into from
Sep 3, 2024

Conversation

abuchanan-airbyte
Copy link
Collaborator

Helm has an issue where it can confuse a local directory with a requested chart: helm/helm#7862

For example, if you have a local, empty directory path ./airbyte/airbyte and you request the airbyte/airbyte chart, abctl + helm will fail with unable to install airbyte chart: unable to fetch chart airbyte/airbyte: Chart.yaml file is missing

This change avoids that problem (currently only for the airbyte/airbyte chart when requesting the latest version) by determining the full URL of the chart and using that, which causes Helm to avoid looking at local directories.

I avoided handling the nginx chart and non-latest versions here for simplicity, but I could probably add support for those fairly easily.

@abuchanan-airbyte abuchanan-airbyte changed the title avoid helm conflict with local directory fix: avoid helm conflict with local directory Sep 3, 2024
@abuchanan-airbyte abuchanan-airbyte marked this pull request as ready for review September 3, 2024 20:28
@abuchanan-airbyte abuchanan-airbyte requested a review from a team as a code owner September 3, 2024 20:28
@abuchanan-airbyte abuchanan-airbyte force-pushed the abuch/helm-dir-conflict branch 2 times, most recently from ea0988a to 3e574d5 Compare September 3, 2024 20:29
internal/cmd/local/local/locate.go Outdated Show resolved Hide resolved
internal/cmd/local/local/locate.go Outdated Show resolved Hide resolved
@@ -39,7 +39,7 @@ func ingressRule(host string) networkingv1.IngressRule {
var pathType = networkingv1.PathType("Prefix")

return networkingv1.IngressRule{
Host: host,
// Host: host,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like an accidental commit

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bah, thanks, fixed.

@abuchanan-airbyte abuchanan-airbyte merged commit 1d2e445 into main Sep 3, 2024
2 checks passed
@abuchanan-airbyte abuchanan-airbyte deleted the abuch/helm-dir-conflict branch September 3, 2024 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants