Skip to content
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 knative event source, channels and brokers to topology application dropdown #5949

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@ import { Firehose } from '@console/internal/components/utils';
import { referenceForModel } from '@console/internal/module/k8s';
import { ServiceModel } from '@console/knative-plugin';
import { VirtualMachineModel } from '@console/kubevirt-plugin/src/models';
import { PodModel, JobModel, CronJobModel } from '@console/internal/models';
import { ResourceDropdown } from '@console/shared';
import {
getDynamicChannelResourceList,
getDynamicEventSourcesResourceList,
} from '@console/knative-plugin/src/utils/fetch-dynamic-eventsources-utils';
import { knativeEventingResourcesBroker } from '@console/knative-plugin/src/utils/get-knative-resources';

interface ApplicationDropdownProps {
id?: string;
Expand Down Expand Up @@ -77,6 +83,30 @@ const ApplicationDropdown: React.FC<ApplicationDropdownProps> = ({ namespace, ..
prop: 'virtualMachines',
optional: true,
},
{
isList: true,
kind: CronJobModel.kind,
namespace,
prop: 'cronjobs',
optional: true,
},
{
isList: true,
kind: JobModel.kind,
namespace,
prop: 'jobs',
optional: true,
},
{
isList: true,
kind: PodModel.kind,
namespace,
prop: 'pods',
optional: true,
},
...getDynamicChannelResourceList(namespace),
...getDynamicEventSourcesResourceList(namespace),
...knativeEventingResourcesBroker(namespace),
];
return (
<Firehose resources={resources}>
Expand Down