mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 19:28:09 +00:00
Fix linter issues
This commit is contained in:
@@ -8,9 +8,8 @@ export enum KubernetesAuthMethod {
|
|||||||
|
|
||||||
export type TKubernetesConnectionDetails = {
|
export type TKubernetesConnectionDetails = {
|
||||||
url: string;
|
url: string;
|
||||||
namespace: string;
|
sslRejectUnauthorized: boolean;
|
||||||
skipTLSVerify: boolean;
|
sslCertificate?: string;
|
||||||
caCertificate?: string;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export type TKubernetesServiceAccountTokenCredentials = {
|
export type TKubernetesServiceAccountTokenCredentials = {
|
||||||
|
|||||||
+1
-5
@@ -5,9 +5,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|||||||
import { FormControl, Input, Switch, TextArea, Tooltip } from "@app/components/v2";
|
import { FormControl, Input, Switch, TextArea, Tooltip } from "@app/components/v2";
|
||||||
|
|
||||||
export const KubernetesResourceFields = () => {
|
export const KubernetesResourceFields = () => {
|
||||||
const { control, watch } = useFormContext();
|
const { control } = useFormContext();
|
||||||
|
|
||||||
const skipTLSVerify = watch("connectionDetails.skipTLSVerify");
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="mb-4 rounded-sm border border-mineshaft-600 bg-mineshaft-700/70 p-3">
|
<div className="mb-4 rounded-sm border border-mineshaft-600 bg-mineshaft-700/70 p-3">
|
||||||
@@ -32,14 +30,12 @@ export const KubernetesResourceFields = () => {
|
|||||||
<FormControl
|
<FormControl
|
||||||
errorText={error?.message}
|
errorText={error?.message}
|
||||||
isError={Boolean(error?.message)}
|
isError={Boolean(error?.message)}
|
||||||
className={skipTLSVerify ? "opacity-50" : ""}
|
|
||||||
label="CA Certificate"
|
label="CA Certificate"
|
||||||
isOptional
|
isOptional
|
||||||
>
|
>
|
||||||
<TextArea
|
<TextArea
|
||||||
className="h-14 resize-none!"
|
className="h-14 resize-none!"
|
||||||
{...field}
|
{...field}
|
||||||
isDisabled={skipTLSVerify}
|
|
||||||
placeholder="-----BEGIN CERTIFICATE-----..."
|
placeholder="-----BEGIN CERTIFICATE-----..."
|
||||||
/>
|
/>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
|
|||||||
Reference in New Issue
Block a user