Skip to content

Commit 4a54c4b

Browse files
committed
remove incorrect getK8sModel call
Signed-off-by: Atif Ali <atali@redhat.com>
1 parent b2765ed commit 4a54c4b

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/gitops/utils/components/OwnerReferences/owner-references.tsx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,12 @@ import {
99
OwnerReference,
1010
ResourceLink,
1111
} from '@openshift-console/dynamic-plugin-sdk';
12-
import { getK8sModel } from '@openshift-console/dynamic-plugin-sdk/lib/utils/k8s/hooks/useK8sModel';
1312
import { Tooltip } from '@patternfly/react-core';
1413

1514
import { useGitOpsTranslation } from '../../hooks/useGitOpsTranslation';
1615

1716
const getModel = (ownerRef: OwnerReference): K8sModel | null => {
18-
// Try to get the model from the console's registry first
19-
const model = getK8sModel(ownerRef.apiVersion);
20-
if (model) {
21-
return model;
22-
}
23-
24-
// Fallback for Argo CD resources
17+
// Handle Argo CD resources
2518
const argoApiGroup = 'argoproj.io';
2619
if (ownerRef.apiVersion.includes(argoApiGroup)) {
2720
if (ownerRef.kind === 'ApplicationSet') {

0 commit comments

Comments
 (0)