fix: prevent dry-run from creating resources on consumer cluster#369
fix: prevent dry-run from creating resources on consumer cluster#369olamilekan000 wants to merge 1 commit into
Conversation
|
We need to update all the docs where we use try run. |
I haven't tested the dry-run with --template-name, but I can definitely give it a try. |
b0fc368 to
2fb1895
Compare
e88cedf to
929d207
Compare
Signed-off-by: olalekan odukoya <odukoyaonline@gmail.com>
929d207 to
333d9b9
Compare
|
We've been discussing with @xrstf that this might need a bit more thinking. Open to other suggestions on how we can change this? |
What happens when the user wants to apply the binding from the dry-run output? Will the path to the output file be specified using the same |
|
I think if file provided - dont base64 it, if not - output to the screen in base64? which could be used as input as it. |
okay. How soon will you be able to do the modelling? |
|
So been thinking about this. I think simple: KUBECONFIG=kind-consumer.kubeconfig kubectl bind --from-dry-run KUBECONFIG=kind-consumer.kubeconfig kubectl bind --dry-run --dry-run-output output.yaml # non base64 at this point |
I think option 2 is better. What happens if no path to the output file is specified? We output to stdout or write to a default file in the current working directory? And can |
|
In general I am somewhat unhappy with the current design overall. It seems like the dry run ouput is both
And without all of them, re-using the generated state is not possible. Is that correct? If so, I would much prefer if this all yielded instead 1 output thing that is self-contained, like a zip file (as an extreme example) or a big JSON file (potentially encoded to deter people from snooping and fiddling with the state). |
Yes you're correct but if you look back at the PR thread, you'll see we've already been trying to correct or simplify this. The initial implementation was built around the requirement in the issue: That’s why the dry-run flow ends up producing:
In all, I am happy to adjust the PR in any direction that works the best. |
|
|
|
lets close this for now until we get user signal if we need this or how we do it |
Summary
What Type of PR Is This?
/kind bug
Related Issue(s)
Fixes 365
Release Notes