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
Fetch knative resources and updated sidebar resources for Overview via extension #1800
Fetch knative resources and updated sidebar resources for Overview via extension #1800
Conversation
Hi @invincibleJai. Thanks for your PR. I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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/test-infra repository. |
/ok-to-test |
@invincibleJai: Cannot trigger testing until a trusted user reviews the PR and leaves an 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/test-infra repository. |
@invincibleJai A general comment is we want to be able to contain our extensions to console in the dev console plugin. Quite possibly creating a knative plugin in the future. Often changes will be required to be able to extend an existing component in which case you should try to make the component extensible without leaking the dev console or knative domain logic into the base components. Since the resource details component is shared and we want the revisions to show up in all instances of the overview component, we'll need a plugin extension for contributing to this component. |
@@ -91,6 +98,30 @@ const TopologyDataController: React.FC<TopologyDataControllerProps> = ({ | |||
namespace, | |||
prop: 'buildconfigs', | |||
}, | |||
{ | |||
isList: true, | |||
kind: referenceForModel(RevisionModel), |
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.
What happens to topology when knative CRDs aren't available?
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.
What happens to topology when knative CRDs aren't available?
+1, this needs a feature flag based on the presence of the CRDs. Then we only try to watch resources that exist. Otherwise it's an error.
*/ | ||
private getKSRoute(dc: ResourceProps): ResourceProps { | ||
// get the knative route | ||
const IS_KNATIVE = 'serving.knative.dev/service'; |
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.
move constant to top of file
frontend/public/models/index.ts
Outdated
@@ -889,3 +889,54 @@ export const InfrastructureModel: K8sKind = { | |||
crd: true, | |||
}; | |||
|
|||
export const RevisionModel: K8sKind = { |
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.
If we can plug into the console for knative, then these models should be defined in dev-console package.
<BuildOverview buildConfigs={buildConfigs} /> | ||
<NetworkingOverview services={services} routes={routes} /> | ||
</React.Fragment> | ||
) : <KnativeOverview ksroutes={ksroutes} configurations={configurations} revisions={revisions} />} |
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.
We need to find a way to plug into the console without adding knative specific branching logic.
/ok-to-test |
@vojtechszocs does kubevirt need to extend the resource details panel? fyi @spadgett |
5f4963e
to
c7bb834
Compare
c7bb834
to
77c6dd1
Compare
/retest |
e1cc4a5
to
d9880c9
Compare
/hold |
d9880c9
to
bc5107e
Compare
7e7b829
to
7dc29f6
Compare
abd43ff
to
4a3be6f
Compare
/test e2e-aws |
4a3be6f
to
2555afc
Compare
/test e2e-aws-console-olm |
/test e2e-aws |
@christianvogt @vojtechszocs have handled review comments, pls take a look and let me know. Thanks :) |
@@ -9,3 +9,4 @@ export * from './nav-items'; | |||
export * from './pages'; | |||
export * from './perspectives'; | |||
export * from './yaml-templates'; | |||
export * from './overview'; |
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.
please put in alphabetical order
@@ -8,10 +8,10 @@ import { | |||
} from '@console/internal/models'; | |||
import { k8sCreate, K8sResourceKind } from '@console/internal/module/k8s'; | |||
import { SelectorInput } from '@console/internal/components/utils'; | |||
import { createKnativeService } from '@console/knative-plugin/src/utils/create-knative-utils'; |
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.
Why move this? It just adds one more thing to be reviewed.
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.
had discussed with @christianvogt and IMO it would make more sense to add knative specific utils in knative-plugin as we have now
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.
ok
826dcab
to
280241c
Compare
/lgtm |
/approve |
/retest Please review the full test history for this PR and help us cut down flakes. |
/test e2e-aws |
280241c
to
a4c87b5
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: christianvogt, invincibleJai, joshuawilson 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 |
/test e2e-aws-console-olm |
/test e2e-aws |
1 similar comment
/test e2e-aws |
/retest |
Fetch knative resources and updated sidebar resources
Revisions
,Routes
andConfigurations
in side bar under resourcesroute
andservice
Jira #Console-1550Jira link
Gif
Overview
Added extension to fetch resources for CRDs and handled Resource tab update across.