feat: move to beta pulumi k8 sdk to migrate to helm releases #65
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposed changes
Currently, MARA uses helm charts within pulumi. This approach works, but has some drawbacks as pulumi is not executing helm directly but instead is using the data in the helm chart to provision resources. The new (as of SDK 3.7+) release approach uses the helm SDK, which provides a great deal more flexibility.
This change cuts all the projects that use helm.chart over to helm.release, and adds some additional logging, error checking, and cleanup around the charts. We now lint the charts before we run them, and we rollback and cleanup any failures.
This has also changed the way we pull the hostname of the ELB; this logic may need to be adjusted for environments where a hostname is not provided and an IP is returned instead.
Testing is still underway; this change may require that we install helm3 in the venv, but that is yet to be determined.
Checklist
Before creating a PR, run through this checklist and mark each as complete.