mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 16:27:46 +00:00
Merge pull request #3627 from Infisical/fix-breaking-schema-changes--for-k8s
Allow Hyphens in k8s
This commit is contained in:
@@ -114,10 +114,12 @@ export const registerIdentityKubernetesRouter = async (server: FastifyZodProvide
|
|||||||
CharacterType.Numbers,
|
CharacterType.Numbers,
|
||||||
CharacterType.Colon,
|
CharacterType.Colon,
|
||||||
CharacterType.Period,
|
CharacterType.Period,
|
||||||
CharacterType.ForwardSlash
|
CharacterType.ForwardSlash,
|
||||||
|
CharacterType.Hyphen
|
||||||
])(val),
|
])(val),
|
||||||
{
|
{
|
||||||
message: "Kubernetes host must only contain alphabets, numbers, colons, periods, 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),
|
||||||
@@ -234,11 +236,13 @@ export const registerIdentityKubernetesRouter = async (server: FastifyZodProvide
|
|||||||
CharacterType.Numbers,
|
CharacterType.Numbers,
|
||||||
CharacterType.Colon,
|
CharacterType.Colon,
|
||||||
CharacterType.Period,
|
CharacterType.Period,
|
||||||
CharacterType.ForwardSlash
|
CharacterType.ForwardSlash,
|
||||||
|
CharacterType.Hyphen
|
||||||
])(val);
|
])(val);
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
message: "Kubernetes host must only contain alphabets, numbers, colons, periods, 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),
|
||||||
|
|||||||
Reference in New Issue
Block a user