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

Improved search functionality for Helm Import #2610

Merged
merged 3 commits into from
Oct 20, 2023

Conversation

EronWright
Copy link
Contributor

@EronWright EronWright commented Oct 16, 2023

Proposed changes

This PR enhances the Release resource to search harder for a matching chart when importing a release. When Helm installs a chart, it doesn't record any information about the chart location, simply its name. Pulumi attempts to locate a chart:

  1. (existing) by looking for an expanded chart directory (e.g. nginx/) in the program directory.
  2. (new) by looking for a chart archive in the program directory, with or without the version info (e.g. nginx-15.3.4.tgz).
  3. (new) by looking in the local Helm repositories for a chart, matching the name and version.

Related issues (optional)

CHANGELOG.md Outdated
@@ -4,6 +4,7 @@
- helm.v3.Release: Improved cancellation support (https://github.com/pulumi/pulumi-kubernetes/pull/2579)
- Update Kubernetes client library to v0.28.2 (https://github.com/pulumi/pulumi-kubernetes/pull/2585)
- Fix for Helm Import regression (https://github.com/pulumi/pulumi-kubernetes/pull/2605)
- Improved search functionality for Helm Import (https://github.com/pulumi/pulumi-kubernetes/pull/2610)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you rebase this PR on top of the latest master? This line might end up in the wrong place if we don't rebase correctly.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I will rebase carefully after #2596 is merged.

provider/pkg/provider/helm_release.go Show resolved Hide resolved
provider/pkg/provider/helm_release.go Outdated Show resolved Hide resolved
provider/pkg/provider/helm_release.go Outdated Show resolved Hide resolved
Base automatically changed from eronwright/issue-2596 to master October 20, 2023 00:06
@EronWright EronWright marked this pull request as ready for review October 20, 2023 00:36
@github-actions
Copy link

Does the PR have any schema changes?

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

@EronWright EronWright merged commit 727aa1c into master Oct 20, 2023
18 checks passed
@EronWright EronWright deleted the eronwright/issue-2596-search branch October 20, 2023 04:13
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.

None yet

3 participants