diff --git a/frontend/src/hooks/api/pam/types/kubernetes-resource.ts b/frontend/src/hooks/api/pam/types/kubernetes-resource.ts index cb7670917..f166aa34f 100644 --- a/frontend/src/hooks/api/pam/types/kubernetes-resource.ts +++ b/frontend/src/hooks/api/pam/types/kubernetes-resource.ts @@ -8,9 +8,8 @@ export enum KubernetesAuthMethod { export type TKubernetesConnectionDetails = { url: string; - namespace: string; - skipTLSVerify: boolean; - caCertificate?: string; + sslRejectUnauthorized: boolean; + sslCertificate?: string; }; export type TKubernetesServiceAccountTokenCredentials = { diff --git a/frontend/src/pages/pam/PamResourcesPage/components/PamResourceForm/shared/KubernetesResourceFields.tsx b/frontend/src/pages/pam/PamResourcesPage/components/PamResourceForm/shared/KubernetesResourceFields.tsx index 4019355d5..de255f162 100644 --- a/frontend/src/pages/pam/PamResourcesPage/components/PamResourceForm/shared/KubernetesResourceFields.tsx +++ b/frontend/src/pages/pam/PamResourcesPage/components/PamResourceForm/shared/KubernetesResourceFields.tsx @@ -5,9 +5,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { FormControl, Input, Switch, TextArea, Tooltip } from "@app/components/v2"; export const KubernetesResourceFields = () => { - const { control, watch } = useFormContext(); - - const skipTLSVerify = watch("connectionDetails.skipTLSVerify"); + const { control } = useFormContext(); return (