Make flux install additive when there's an existing configuration #852
-
But idempotence is not always the most useful property; for example, if I wish to add controllers to a Flux v2 configuration, I have to know the original command that was run, otherwise (if I just mention the new things) it will remove components, or (if I put the output in a new file) it will duplicate some common parts, leading to an invalid configuration. Proposal: let people provide an existing configuration to $ cat gotk-components.yaml | flux install --add --components=image-reflector-controller --export > gotk-component.yaml
# ...
$ diff gotk-components.yaml
# diff output with lines for image-reflector-controller deployment and CRD added kyaml functions work like this, so perhaps a kyaml pipeline will help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
A different solution was proposed here #304 @squaremo I don't think your solution is feasible due to:
|
Beta Was this translation helpful? Give feedback.
A different solution was proposed here #304
@squaremo I don't think your solution is feasible due to: