-
Notifications
You must be signed in to change notification settings - Fork 642
OCPBUGS-43792: Follow-on fix. Add new "plugins-order" flag to bridge cli args #14981
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
base: main
Are you sure you want to change the base?
Conversation
@TheRealJon: This pull request references Jira Issue OCPBUGS-43792, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: TheRealJon The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/hold |
/jira refresh |
@TheRealJon: This pull request references Jira Issue OCPBUGS-43792, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
Requesting review from QA contact: In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
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.
I'm fine with this approach. It's good to avoid breaking plugins that use the template by changing existing CLI args. Thanks, Jon.
/retest |
f4b0f26
to
da8ff10
Compare
/jira refresh |
@TheRealJon: This pull request references Jira Issue OCPBUGS-43792, which is valid. 3 validation(s) were run on this bug
Requesting review from QA contact: In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
/cherry-pick release-4.19 |
@TheRealJon: once the present PR merges, I will cherry-pick it on top of In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/retest |
…cli args since "plugins" is an undordered map. We need a way to persist plugin order from console operator config to the frontend server flag.
@TheRealJon: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
/retest |
/hold cancel |
@@ -235,6 +236,20 @@ func main() { | |||
} | |||
} | |||
|
|||
pluginsOrder := []string{} | |||
if *fPluginsOrder != "" { | |||
for _, str := range strings.Split(*fPluginsOrder, ",") { |
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.
hmm wondering if we should sort them here? Or it should be done on the operator side...
for _, str := range strings.Split(*fPluginsOrder, ",") { | |
for _, str := range slices.Sort(strings.Split(*fPluginsOrder, ",")) { |
@@ -235,6 +236,20 @@ func main() { | |||
} | |||
} | |||
|
|||
pluginsOrder := []string{} |
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.
this section feels like it should be a function on its own.
func orderPlugins()
Since "plugins" is an unordered map, we need a new way to enforce plugin resolution order from console operator config to the frontend.