New CLI command: flux template #5706
Unanswered
richardmcsong
asked this question in
Proposals
Replies: 2 comments 3 replies
-
|
Did you looked into https://github.com/allenporter/flux-local it should have similar capabilities. PS. We plan to have a plugin system for the Flux CLI similar to how kubectl & helm plugins work. This template command would be a good candidate for a plugin. |
Beta Was this translation helpful? Give feedback.
3 replies
-
|
Here is the RFC for the Flux CLI plugin system #5795 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Would anyone be interested in a template command? I actually already have this created in my fork, and am actively using this, but I wasn't sure if there was any interest upstream.
Spec
Use case
I work in a regulated, airgapped company, which means before flux can hit the ground running, I need to bootstrap the cluster with a bunch of controllers and tooling. However, on day 2, I also want flux to manage these same bootstrapped controllers and tooling. This created a problem for me: I had to write a bunch of kustomize/helm commands before i can use flux, then I have to duplicate those same definitions in the flux CRD form. I didn't want drift to exist between the two forms. There were two options I could choose:
Hence, I created the
flux templatecommand; the-ris especially useful to template those nested resources out into raw manifests. The code is on main in my fork: http://github.com/richardmsong/flux2Beta Was this translation helpful? Give feedback.
All reactions