This commit is contained in:
Daniel Hougaard
2025-06-05 04:45:57 +04:00
parent 07902f7db9
commit 36f1559e5e
2 changed files with 3 additions and 4 deletions
@@ -31,8 +31,9 @@ export const IdentityKubernetesAuthsSchema = z.object({
encryptedKubernetesTokenReviewerJwt: zodBuffer.nullable().optional(), encryptedKubernetesTokenReviewerJwt: zodBuffer.nullable().optional(),
encryptedKubernetesCaCertificate: zodBuffer.nullable().optional(), encryptedKubernetesCaCertificate: zodBuffer.nullable().optional(),
gatewayId: z.string().uuid().nullable().optional(), gatewayId: z.string().uuid().nullable().optional(),
tokenReviewMode: z.string().default("api"), accessTokenPeriod: z.coerce.number().default(0),
accessTokenPeriod: z.coerce.number().default(0) useGatewayAsReviewer: z.boolean().default(false),
tokenReviewMode: z.string().default("api")
}); });
export type TIdentityKubernetesAuths = z.infer<typeof IdentityKubernetesAuthsSchema>; export type TIdentityKubernetesAuths = z.infer<typeof IdentityKubernetesAuthsSchema>;
@@ -164,8 +164,6 @@ export const identityKubernetesAuthServiceFactory = ({
servername = servername.substring(0, lastColonIndex); servername = servername.substring(0, lastColonIndex);
} }
console.log("servername", servername);
const baseUrl = port ? `${host}:${port}` : host; const baseUrl = port ? `${host}:${port}` : host;
const res = await axios const res = await axios