-
Notifications
You must be signed in to change notification settings - Fork 26
feat(info): display workflow image vetting settings #182
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| [tools] | ||
| go = "1.25.10" | ||
| go = "1.25.11" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -202,6 +202,16 @@ func (o *infoOptions) run(cmd *cobra.Command) error { | |
| if p.SupportedWorkflowEngines != nil { | ||
| displayInfoSliceItem(cmd, p.SupportedWorkflowEngines.Title, p.SupportedWorkflowEngines.Value) | ||
| } | ||
| if p.VettedContainerImagesAllowlist != nil { | ||
| displayInfoSliceItem(cmd, p.VettedContainerImagesAllowlist.Title, p.VettedContainerImagesAllowlist.Value) | ||
| } | ||
| if p.VettedContainerImagesEnabled != nil { | ||
| value := "False" | ||
| if p.VettedContainerImagesEnabled.Value { | ||
| value = "True" | ||
| } | ||
| cmd.Printf("%s: %s\n", p.VettedContainerImagesEnabled.Title, value) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🤖
Suggested fix — raise on reanahub/reana-server#739 (e.g. converge older toggles on |
||
| } | ||
| if p.WorkspacesAvailable != nil { | ||
| displayInfoSliceItem(cmd, p.WorkspacesAvailable.Title, p.WorkspacesAvailable.Value) | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| module reanahub/reana-client-go | ||
|
|
||
| go 1.25.10 | ||
| go 1.25.11 | ||
|
|
||
| require ( | ||
| github.com/go-gota/gota v0.12.0 | ||
|
|
||
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.
🤖 Could add a false-valued fixture for
vetted_container_images_enabled(NIT)The current info fixture covers the
Trueoutput. Since this is the first boolean-valued/infofield handled by a one-off formatter, it would be useful to also assert theFalserendering, e.g. in the missing-fields/small fixture or a tiny dedicated case.Suggested fix — extend
testdata/inputs/info_small.jsonwith"vetted_container_images_enabled": {"value": false, "title": "Whether container image vetting is enabled"}and add"Whether container image vetting is enabled: False"to themissing fieldsexpectations incmd/info_test.go.