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 SIGSEGV when resolving charts dependencies #827

Merged
merged 1 commit into from
Jul 13, 2022

Conversation

souleb
Copy link
Member

@souleb souleb commented Jul 13, 2022

fixes #815

If implemented, this make sure that we clear only referenced downloaders.

It is also checked if the repository url is supported.

Signed-off-by: Soule BA soule@weave.works

@stefanprodan stefanprodan added the area/helm Helm related issues and pull requests label Jul 13, 2022
Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

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

LGTM

Thanks @souleb

Comment on lines 262 to 265
supported := repository.IsDepSupported(nUrl)
if !supported {
err = fmt.Errorf("unsupported chart repository URL: %s", nUrl)
return
}
Copy link
Member

Choose a reason for hiding this comment

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

Can we provide a better reason here by making IsDepSupported return e.g. a descriptive error? I think this will reduce support questions by explicitly telling the user it's due to an alias.

internal/helm/repository/utils.go Show resolved Hide resolved
internal/helm/repository/utils.go Outdated Show resolved Hide resolved
If implemented, this make sure than we clear only referenced
downloaders.

It is also checked if the repository url is supported.

Signed-off-by: Soule BA <soule@weave.works>
@stefanprodan stefanprodan merged commit 4536554 into fluxcd:main Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/helm Helm related issues and pull requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SIGSEGV when reconciling a a helm chart from git with missing dependencies
3 participants