File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
src/gitops/utils/components/OwnerReferences Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff 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' ;
1312import { Tooltip } from '@patternfly/react-core' ;
1413
1514import { useGitOpsTranslation } from '../../hooks/useGitOpsTranslation' ;
1615
1716const 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' ) {
You can’t perform that action at this time.
0 commit comments