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

Switch Helm v3 support to use the native libs #1263

Merged
merged 10 commits into from
Aug 26, 2020
Merged

Conversation

lblackstone
Copy link
Member

@lblackstone lblackstone commented Aug 19, 2020

Proposed changes

Rather than shelling out to the Helm v3 CLI, use
the upstream Go packages to implement Helm v3
support in the provider.

TODO:

  • Pull dryRun changes out into a separate PR (Helm module required a more recent version of the k8s deps)
  • Plumb all SDK options through to the relevant package options
  • Update SDKs to invoke the provider's Helm code rather than shelling out to the CLI
  • Update Python SDK
  • Verify that this implementation produces identical results to the previous implementation

Note: I decided to split the other SDK changes into separate PRs to make it easier to review. This PR includes the core library updates and the Python SDK to make sure it works properly. The v3 URN has been updated to be kubernetes:helm.sh/v3. Aliases are used to avoid replacements for existing resources. The v2 API will be deprecated in a later update.

Related issues (optional)

Part of #920

@lblackstone lblackstone marked this pull request as draft August 19, 2020 21:30
@lblackstone lblackstone force-pushed the lblackstone/helm-lib branch 2 times, most recently from 894da9e to 17f62d1 Compare August 25, 2020 17:09
@lblackstone lblackstone marked this pull request as ready for review August 25, 2020 22:35
Copy link
Contributor

@jaxxstorm jaxxstorm left a comment

Choose a reason for hiding this comment

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

looks great to me!

Copy link
Contributor

@metral metral left a comment

Choose a reason for hiding this comment

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

LGTM.

Seems that we reverted the changes to Helm v2 to isolate support for v3 using the libs -- this SGTM. Wanted to confirm that in this PR v2 has been untouched and will not see any breaking changes. Is this correct?

@lblackstone
Copy link
Member Author

Wanted to confirm that in this PR v2 has been untouched and will not see any breaking changes. Is this correct?

Yes, that's right. I updated the Python tests to create the Chart with v2 and then update to v3, and confirmed no changes.

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

4 participants