Console 2271: allow for configuring upstream server for air gapped envs#9957
Conversation
There was a problem hiding this comment.
@spadgett for clarification, there are three scenarios (kudos to @wking):
- spec.upstream is unset/empty (see data/manifests/bootkube/cvo-overrides: Drop the explicit upstream installer#4112)
- spec.upstream is
https://example.com/some/custom/thing - spec.upstream is explicitly set, but happens to match the CVO's internal default
This PR will treat 1 as the default case and 2/3 as custom case. The value in this constant is used for display purposes only and will never be sent to the backend.
|
/retest |
1 similar comment
|
/retest |
There was a problem hiding this comment.
@yapei done! Can you have another look and confirm you see it:

spadgett
left a comment
There was a problem hiding this comment.
Nice work 👍 Thank you for turning this around so quickly. Looks good overall, just a few comments.
frontend/public/components/cluster-settings/cluster-settings.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
"Upstream configuration" sounds odd to me. Maybe "Update server" or "Upstream update server"? @wking @megan-hall opinion?
I would use DetailsItem so that you get the API doc when you click on the label. Here's an example:
There was a problem hiding this comment.
I have switched to using a shared component that utilizes DetailsItem
There was a problem hiding this comment.
@florkbr Shall we update Upstream configuration to something else or keep as it is?
There was a problem hiding this comment.
Sorry @spadgett just seeing your comment now - honestly, I will default to you or Trevor here in terms of wording recommendation.
There was a problem hiding this comment.
@yapei We can leave it as "Upstream configuration" for now and always revisit later. Thanks!
frontend/public/components/cluster-settings/cluster-settings.tsx
Outdated
Show resolved
Hide resolved
frontend/public/components/modals/configure-cluster-upstream-modal.tsx
Outdated
Show resolved
Hide resolved
frontend/public/components/modals/configure-cluster-upstream-modal.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
@wking @alimobrem Do you know if we need to disable this for OpenShift Dedicated? I don't know if Dedicated admins can edit the ClusterVersion.
@florkbr We need to add an access review here and only show the button if the user can patch the ClusterVersion resource. Here's an example:
frontend/public/components/modals/configure-cluster-upstream-modal.tsx
Outdated
Show resolved
Hide resolved
frontend/public/components/modals/configure-cluster-upstream-modal.tsx
Outdated
Show resolved
Hide resolved
21e2bc4 to
583be53
Compare
Adds the ability to configure the upstream server for the cluster version resource from the UI via a new modal. See screenshots. I have a few open design/behavioral questions. Will work with @megan-hall. See https://issues.redhat.com/browse/CONSOLE-2271
583be53 to
76ed2f2
Compare
frontend/public/components/modals/configure-cluster-upstream-modal.tsx
Outdated
Show resolved
Hide resolved
|
/assign @opayne1 @RickJWagner @yapei |
|
/label px-approved |
|
/label docs-approved |
|
/retest |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
11 similar comments
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest |
frontend/public/components/cluster-settings/cluster-version.tsx
Outdated
Show resolved
Hide resolved
frontend/public/components/modals/configure-cluster-upstream-modal.tsx
Outdated
Show resolved
Hide resolved
55bad8f to
f528675
Compare
| clusterVersionIsEditable && configureClusterUpstreamModal({ cv: resource }); | ||
| }} | ||
| variant="link" | ||
| isDisabled={!clusterVersionIsEditable} |
There was a problem hiding this comment.
Does this still render as a link or does PF render a disabled button with variant="link" as normal text?
If not, I think this is OK for now, but something we probably want to change in a follow up.
There was a problem hiding this comment.
@spadgett it renders a disabled button with variant="link". The text is grey versus blue:

yapei
left a comment
There was a problem hiding this comment.
tested the PR on a cluster-bot cluster, updating Upstream configuration can take effect and CV's spec.upstream will be updated accordingly. We also added validation checks for null and invalid URL values. Everything seems working
/label qe-approved
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: florkbr, spadgett, yapei The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |




Adds the ability to configure the upstream server for the cluster
version resource from the UI via a new modal. See screenshots.
I have a few open design/behavioral questions. Will work with @megan-hall. Would also like some test coverage.
See https://issues.redhat.com/browse/CONSOLE-2271
Screenshots