This commit is contained in:
Maidul Islam
2025-05-19 18:13:45 -07:00
parent 36c428f152
commit 565340dc50
@@ -118,7 +118,8 @@ export const registerIdentityKubernetesRouter = async (server: FastifyZodProvide
CharacterType.Hyphen CharacterType.Hyphen
])(val), ])(val),
{ {
message: "Kubernetes host must only contain alphabets, numbers, colons, periods, hyphen, and forward slashes." message:
"Kubernetes host must only contain alphabets, numbers, colons, periods, hyphen, and forward slashes."
} }
), ),
caCert: z.string().trim().default("").describe(KUBERNETES_AUTH.ATTACH.caCert), caCert: z.string().trim().default("").describe(KUBERNETES_AUTH.ATTACH.caCert),
@@ -240,7 +241,8 @@ export const registerIdentityKubernetesRouter = async (server: FastifyZodProvide
])(val); ])(val);
}, },
{ {
message: "Kubernetes host must only contain alphabets, numbers, colons, periods, hyphen, and forward slashes." message:
"Kubernetes host must only contain alphabets, numbers, colons, periods, hyphen, and forward slashes."
} }
), ),
caCert: z.string().trim().optional().describe(KUBERNETES_AUTH.UPDATE.caCert), caCert: z.string().trim().optional().describe(KUBERNETES_AUTH.UPDATE.caCert),