Skip to content

Conversation

@pcbailey
Copy link
Contributor

@pcbailey pcbailey commented Nov 1, 2019

This PR hides the "Linux bridge" Network Type option in the network attachment definitions creation form if the HyperConverged Cluster Operator isn't installed. It also disables the Network Type dropdown if no types are available.

@phoracek

@openshift-ci-robot openshift-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Nov 1, 2019
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing types

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why changing this to any ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The NetworkAttachmentDefinitionConfig type didn't really fit anymore. I added more specific types. I'm planning on a follow-up to increase the type support throughout the plugin, as well.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please create enum out of these keys so you dont have to use strings in the rest of the code

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dont we want to create model for HyperConverged CRD ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're not actually using the HyperConverged CRD aside from testing that it exists, so I wasn't sure if I should create one. I went ahead and made it. It's easy enough to remove if we decide it's unnecessary.

@pcbailey pcbailey force-pushed the hide-linux-bridge-if-hco-not-installed branch from ad28334 to 2bc7c67 Compare November 1, 2019 11:35
@openshift-ci-robot openshift-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 1, 2019
@pcbailey pcbailey force-pushed the hide-linux-bridge-if-hco-not-installed branch from 2bc7c67 to d840b65 Compare November 1, 2019 11:56
@rawagner
Copy link
Contributor

rawagner commented Nov 1, 2019

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Nov 1, 2019
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: pcbailey, rawagner

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@pcbailey
Copy link
Contributor Author

pcbailey commented Nov 1, 2019

/retest

@spadgett spadgett added this to the v4.3 milestone Nov 1, 2019
@openshift-merge-robot openshift-merge-robot merged commit 8b4d2e7 into openshift:master Nov 1, 2019
@pcbailey pcbailey deleted the hide-linux-bridge-if-hco-not-installed branch October 26, 2022 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants