-
Notifications
You must be signed in to change notification settings - Fork 202
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
Change printer for displayParam to display with list showing values like porter param show
#2824
Change printer for displayParam to display with list showing values like porter param show
#2824
Conversation
⇒ porter parameters show porter-hello
Name: porter-hello
Created: 1 hour ago
Modified: 1 hour ago
---------------------------------------------
Name Local Source Source Type
---------------------------------------------
mysql_user fake-user env
wordpress-user faker-user env
⇒ porter parameters list porter-hello -o plaintext
-------------------------------------------------
NAME VALUE STRATEGY MODIFIED
-------------------------------------------------
mysql_user env fake-user 1 hour ago
wordpress-user env faker-user 1 hour ago
⇒ porter param list porter-hello -o plaintext
-------------------------------------------------
NAME VALUE STRATEGY MODIFIED
-------------------------------------------------
mysql_user env fake-user 1 hour ago
wordpress-user env faker-user 1 hour ago |
Hey @troy0820 I hope I am allowed to add my review to this. This looks good and fixes the bug. I just noticed we could maybe also populate the |
Yes, please any feedback is valuable. I noticed from the comment that the “strategy” could be I can change this to that |
38945b7
to
f7e961d
Compare
Updated PR with tests to show |
err := p.PrintParameters(context.Background(), opts) | ||
require.NoError(t, err, "an error should not have occurred") | ||
gotOutput := p.TestConfig.TestContext.GetOutput() | ||
test.CompareGoldenFile(t, "testdata/parameters/mypsettable.txt", gotOutput) |
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.
💯
@schristoff Here is the issue #2836 I can work on that as well. |
/azp run porter-integration |
No commit pushedDate could be found for PR 2824 in repo getporter/porter |
@AGMETEOR I think we want to talk about this in the community office hours. It's this week but I don't mind if you start with the initial implementation. |
Could you kindly send me an invitation to |
---------------------------------------------------
NAMESPACE NAME TYPE VALUE MODIFIED
---------------------------------------------------
foo secret foo_secret 1983-04-18 |
-----------------------------------------------
NAMESPACE NAME TYPE VALUE MODIFIED
-----------------------------------------------
foo secret ****** 1983-04-18 edited: No bug on the name of the secret because the value is not shown as demonstrated in the porter params show command. edited: -----------------------------------------------
NAMESPACE NAME TYPE VALUE MODIFIED
-----------------------------------------------
foo secret foo_secret 1983-04-18 |
…ike param show Signed-off-by: Troy Connor <[email protected]>
Signed-off-by: Troy Connor <[email protected]>
Signed-off-by: Troy Connor <[email protected]>
Signed-off-by: Troy Connor <[email protected]>
fc0bc4a
to
91c9797
Compare
Signed-off-by: Troy Connor <[email protected]>
91c9797
to
58f8ec6
Compare
Because issue #2836 is closed as the value of the secret is never shown but the name of the secret, there is no need to obfuscate the secret(s) when displaying the params list in json, yaml, or plaintext. |
ADO pipeline is still broken, this is an Azure issue, not a me issue. Just going to bypass and merge. :/ |
…ike `porter param show` (getporter#2824) * change printer for displayParam to display with list showing values like param show Signed-off-by: Troy Connor <[email protected]> Signed-off-by: Allan Guwatudde <[email protected]>
…ike `porter param show` (getporter#2824) * change printer for displayParam to display with list showing values like param show Signed-off-by: Troy Connor <[email protected]> Signed-off-by: Allan Guwatudde <[email protected]>
…ike `porter param show` (getporter#2824) * change printer for displayParam to display with list showing values like param show Signed-off-by: Troy Connor <[email protected]> Signed-off-by: Allan Guwatudde <[email protected]>
…ike `porter param show` (getporter#2824) * change printer for displayParam to display with list showing values like param show Signed-off-by: Troy Connor <[email protected]> Signed-off-by: Allan Guwatudde <[email protected]>
What does this change
Fixes the
param list
to show the output of the params and not just the name. The outputs foryaml
andjson
show the params when queried and providing that functionality to fix the issue is why this fix is necessary.What issue does it fix
Closes #2785
Notes for the reviewer
This can be up for discussion if we do not intend to fix this, this way
Checklist
Reviewer Checklist