Skip to content

Commit b75e3df

Browse files
committed
ACM-17500: Fix HostedCluster status CustomKubeconfig name
Changes required in the HC API to fix the resource name for the custom kubeconfig status field Signed-off-by: Juan Manuel Parrilla Madrid <jparrill@redhat.com>
1 parent bae0700 commit b75e3df

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

libs/ui-lib/lib/cim/components/Hypershift/DetailsPage/HypershiftKubeconfigDownload.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ const HypershiftKubeconfigDownload = ({
1515
fetchSecret,
1616
}: HypershiftKubeconfigDownloadProps) => {
1717
const { t } = useTranslation();
18-
const kubeconfigSecretName = hostedCluster.status?.customkubeconfig
19-
? hostedCluster.status.customkubeconfig?.name
18+
const kubeconfigSecretName = hostedCluster.status?.customKubeconfig
19+
? hostedCluster.status.customKubeconfig?.name
2020
: hostedCluster.status?.kubeconfig?.name;
2121
const handleKubeconfigDownload = async () => {
2222
const kubeconfigSecretNamespace = hostedCluster.metadata?.namespace;

libs/ui-lib/lib/cim/components/Hypershift/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ export type HostedClusterK8sResource = K8sResourceCommon & {
157157
kubeconfig?: {
158158
name: string;
159159
};
160-
customkubeconfig?: {
160+
customKubeconfig?: {
161161
name: string;
162162
};
163163
kubeadminPassword?: {

0 commit comments

Comments
 (0)