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
Add feature guard for Multus #7419
Add feature guard for Multus #7419
Conversation
bipuladh
commented
Dec 4, 2020
e30ae8f
to
ef22871
Compare
frontend/packages/ceph-storage-plugin/src/components/ocs-install/attached-devices/install.tsx
Outdated
Show resolved
Hide resolved
...rc/components/ocs-install/attached-devices/create-sc/wizard-pages/review-and-create-step.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/ceph-storage-plugin/src/components/ocs-install/types.ts
Outdated
Show resolved
Hide resolved
...end/packages/ceph-storage-plugin/src/components/ocs-install/internal-mode/install-wizard.tsx
Outdated
Show resolved
Hide resolved
/retest |
ef22871
to
724a9a9
Compare
/retest |
frontend/packages/ceph-storage-plugin/src/components/ocs-install/install-page.tsx
Outdated
Show resolved
Hide resolved
...plugin/src/components/ocs-install/attached-devices/create-sc/wizard-pages/configure-step.tsx
Outdated
Show resolved
Hide resolved
...plugin/src/components/ocs-install/attached-devices/create-sc/wizard-pages/configure-step.tsx
Outdated
Show resolved
Hide resolved
...rc/components/ocs-install/attached-devices/create-sc/wizard-pages/review-and-create-step.tsx
Outdated
Show resolved
Hide resolved
724a9a9
to
4c279c9
Compare
...e-plugin/src/components/ocs-install/internal-mode/install-wizard-steps/review-and-create.tsx
Outdated
Show resolved
Hide resolved
4c279c9
to
72f8efc
Compare
72f8efc
to
fa1a9d0
Compare
}) | ||
.catch(() => setClusterServiceVersion(null)); | ||
}, [appName, ns]); | ||
const [infra, infraLoaded, infraError] = useK8sGet<any>(InfrastructureModel, 'cluster'); |
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.
any
since we don't have a type definition for InrastructureModel.
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 looks improved.
Thanks!
}) | ||
.catch(() => setClusterServiceVersion(null)); | ||
}, [appName, ns]); | ||
const [infra, infraLoaded, infraError] = useK8sGet<any>(InfrastructureModel, 'cluster'); |
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.
nit: place the use-
hooks at one place
EXTERNAL: 'EXTERNAL', | ||
MINIMAL_DEPLOYMENT: 'MINIMAL_DEPLOYMENT', | ||
ENCRYPTION: 'ENCRYPTION', | ||
MULTUS: 'MULTUS', |
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.
Can we name the flags something like OCS-MULTUS
? Just to differentiate with rest of the console flags.
03c023a
to
9b5a61c
Compare
const csvResource = useDeepCompareMemoize<WatchK8sResource>( | ||
{ | ||
kind: referenceForModel(ClusterServiceVersionModel), | ||
name: appName, | ||
namespace: ns, | ||
isList: false, | ||
}, | ||
true, | ||
); | ||
|
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.
useK8sWatchResource
already uses useDeepCompareMemoize
.
const csvResource = useDeepCompareMemoize<WatchK8sResource>( | |
{ | |
kind: referenceForModel(ClusterServiceVersionModel), | |
name: appName, | |
namespace: ns, | |
isList: false, | |
}, | |
true, | |
); | |
const csvResource = | |
{ | |
kind: referenceForModel(ClusterServiceVersionModel), | |
name: appName, | |
namespace: ns, | |
isList: false, | |
}; | |
Refactor loading of CSV and Infrastruture in Install Page
9b5a61c
to
49b36a4
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: a2batic, afreen23, bipuladh 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 |