-
Notifications
You must be signed in to change notification settings - Fork 33
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
CNV-53430: make examples compatible with s390x arch clusters #2328
Conversation
@upalatucci: This pull request references CNV-53430 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the epic to target the "4.19.0" version, but no target version was set. 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. |
@upalatucci: This pull request references CNV-53430 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the epic to target the "4.19.0" version, but no target version was set. 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. |
@upalatucci: This pull request references CNV-53430 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the epic to target the "4.19.0" version, but no target version was set. 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. |
baaad3f
to
5a7838b
Compare
5a7838b
to
1f9e306
Compare
@@ -157,3 +159,17 @@ export const removeDockerPrefix = (image: string) => image?.replace(DOCKER_PREFI | |||
|
|||
export const isAllNamespaces = (namespace: string) => | |||
!namespace || namespace === ALL_NAMESPACES || namespace === ALL_NAMESPACES_SESSION_KEY; | |||
|
|||
export const isClusterOnS390X = !isEmpty( | |||
(window as any).SERVER_FLAGS?.nodeArchitectures?.find((arch) => arch === S390X_ARCH), |
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.
It's worth noting that this isn't a public API and could change. I wouldn't anticipate it changing, but it could. I'd suggest opening a management console issue to provide a supported API (and you can fallback to SERVER_FLAGS
for older console versions).
@jhadvig @TheRealJon FYI, the kubevirt plugin is using window.SERVER_FLAGS.nodeArchitectures
, so we should avoid removing or changing that if possible.
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.
Wouldn't this issue apply to any SERVER_FLAG value? These are just available globally at runtime and could be used by any plugin, so making breaking changes to them is not very safe.
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.
Yes. SERVER_FLAGS
are internal APIs. Any use by plugins could break in a future version.
We mention that CSS classes aren't APIs in the docs. We probably need to call out JavaScript globals as well, and perhaps anything in Redux.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: metalice, upalatucci 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 |
@metalice @spadgett @TheRealJon i talked with multiple people and observed the templates in |
closing in favor of: #2329 |
📝 Description
This piece is not compatible with s390x arch clusters.
window.SERVER_FLAGS.nodeArchitectures has info on the arch in the clusters