-
Notifications
You must be signed in to change notification settings - Fork 261
Debug helmrelease before committing to GitOps #15
Comments
I like this idea -- it'd give people a extra degree of confidence when moving to HelmReleases, as well as being generally helpful. To get as close as possible to what the helm-operator will do, I think the tool would have to
There's code for all of these things individually in integrations/helm, though it's not necessarily straight-forward to repurpose it. I think we can consider these as assumptions:
I'm not sure where it would live -- fluxctl is so far ignorant of Helm -- but let's leave such doctrinal questions for later. |
I would like to at least be able to provide an override for the chart location, as in my org I only can update the master chart repository with a PR to the operations team, and I would like to test the chart locally before doing that. In some environments, I don't have access to the git repo containing the production charts, either. Also, I don't always want to dry-run the chart. Sometimes I want to inspect the output directly. I'd like to provide an interface very similar to what |
An alternative approach here, maybe more composition-friendly. I wanted something that consumes yaml defining a HelmRelease object and spits out the content of I ended up trying something like (untested jsonpath, memory):
|
Small wrapper that makes use of |
Sorry if your issue remains unresolved. The Helm Operator is in maintenance mode, we recommend everybody upgrades to Flux v2 and Helm Controller. A new release of Helm Operator is out this week, 1.4.4. We will continue to support Helm Operator in maintenance mode for an indefinite period of time, and eventually archive this repository. Please be aware that Flux v2 has a vibrant and active developer community who are actively working through minor releases and delivering new features on the way to General Availability for Flux v2. In the mean time, this repo will still be monitored, but support is basically limited to migration issues only. I will have to close many issues today without reading them all in detail because of time constraints. If your issue is very important, you are welcome to reopen it, but due to staleness of all issues at this point a new report is more likely to be in order. Please open another issue if you have unresolved problems that prevent your migration in the appropriate Flux v2 repo. Helm Operator releases will continue as possible for a limited time, as a courtesy for those who still cannot migrate yet, but these are strongly not recommended for ongoing production use as our strict adherence to semver backward compatibility guarantees limit many dependencies and we can only upgrade them so far without breaking compatibility. So there are likely known CVEs that cannot be resolved. We recommend upgrading to Flux v2 which is actively maintained ASAP. I am going to go ahead and close every issue at once today, |
Feature request: Add a command to
fluxctl
that can debug a helmrelease yaml without first having to apply it to the cluster and ensure all the chart references are pushed.Say I have a
myrelease.yaml
file:I'd like something like
fluxctl helm-template ./myrelease.yaml /path/to/my/chart
to run the moral equivalent of:where the stdin (used by the
--values=-
switch), is generated like:This would make debugging flux helmreleases a lot more pleasant!
If you are willing to take a PR to implement this (or a modified proposal), let me know, and I can try to cook one up.
Thanks,
Michael.
The text was updated successfully, but these errors were encountered: