-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs(cli): Add a long description for file render #1007
Conversation
cc. @zekth |
@zekth iirc this command also renders the files, as they would be synced to the control plane (kong or Konnect), such that it will also do substitutions etc. That is currently not in the description, should it be? including maybe a warning that secrets might be in the rendered file? |
@lena-larionova @zekth can we get this updated with the one suggestion (or something similar) and get it merged? |
How's this @Tieske @zekth : Then some questions about the rest:
Does this mean the rendered file isn't in a ready state for syncing to a control plane, as the user has to replace mocked values with their own? Or am I misunderstanding something.
What should be said about substitutions? What's the etc part? Is that something we should list out? What exactly should we add to the long description here? |
No, the goal is to validate local, so users would not edit manually, but if successful do an actual sync with actual values (not mocked ones). Deck does;
especially step 3 & 4 were a single operation, without an option to inspect the output of step 3. The new
Above I named it "other magic" because I do not know exactly what deck logic is executed here. Probably @GGabriele knows. If there is any additional logic, and if so, what it exactly is. |
I think my suggestion above covers enough of the use case here to apply it and merge this down |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
left a suggestion
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks
72c7dba
to
2e2a096
Compare
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## main #1007 +/- ##
==========================================
- Coverage 33.78% 33.74% -0.05%
==========================================
Files 101 101
Lines 12360 12375 +15
==========================================
Hits 4176 4176
- Misses 7775 7790 +15
Partials 409 409
☔ View full report in Codecov by Sentry. |
--------- Co-authored-by: Rick Spurgeon <[email protected]> Co-authored-by: Thijs Schreijer <[email protected]>
The existing description for
deck file render
doesn't currently provide any detail on what the command does or how to use it.I was trying to test it out and couldn't even figure out how it was supposed to work, since there's no input file flag or example.
Found the info I needed on Slack here, and based the update on that: https://kongstrong.slack.com/archives/C04349E4KRC/p1690921140291889
❗ I did run into one potential issue while testing: this command doesn't warn you when overwriting existing files, like
deck dump
or others do. Is that intentional?