Thanks for sharing.
Pulumi has some similar wrapper code in provider/pkg/helm.
f
faint-elephant-30784
07/18/2024, 8:27 AM
Ahh thanks!!
faint-elephant-30784
07/18/2024, 8:27 AM
Why the fake.go? lol
faint-elephant-30784
07/18/2024, 8:29 AM
This is great thinking:
Copy code
type TemplateOrInstallCommand struct {
// Install parameters.
*action.Install
// Chart is the chart specification, which can be:
// - a path to a local chart directory or archive file
// - a qualified chart reference (e.g., "stable/mariadb") based on the local repository configuration
// - a URL to a remote chart (https://, oci://, file://, etc.)
Chart string
// Values to be applied to the chart.
Values ValueOpts
tool *Tool
actionConfig *action.Configuration
}
I wish I came across this when I was trying to build and deploy a helm chart. I didn't think of doing it this way!!.
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.