minor patches

This commit is contained in:
Daniel Hougaard
2025-06-11 00:11:00 +04:00
parent 47e778a0b8
commit c5b7e3d8be
2 changed files with 5 additions and 5 deletions
@@ -46,7 +46,7 @@ const schema = z
tokenReviewMode: z tokenReviewMode: z
.nativeEnum(IdentityKubernetesAuthTokenReviewMode) .nativeEnum(IdentityKubernetesAuthTokenReviewMode)
.default(IdentityKubernetesAuthTokenReviewMode.Api), .default(IdentityKubernetesAuthTokenReviewMode.Api),
kubernetesHost: z.string().min(1).optional().nullable(), kubernetesHost: z.string().optional().nullable(),
tokenReviewerJwt: z.string().optional(), tokenReviewerJwt: z.string().optional(),
gatewayId: z.string().optional().nullable(), gatewayId: z.string().optional().nullable(),
allowedNames: z.string(), allowedNames: z.string(),
@@ -71,7 +71,7 @@ const schema = z
.superRefine((data, ctx) => { .superRefine((data, ctx) => {
if ( if (
data.tokenReviewMode === IdentityKubernetesAuthTokenReviewMode.Api && data.tokenReviewMode === IdentityKubernetesAuthTokenReviewMode.Api &&
!data.kubernetesHost !data.kubernetesHost?.length
) { ) {
ctx.addIssue({ ctx.addIssue({
path: ["kubernetesHost"], path: ["kubernetesHost"],
@@ -128,7 +128,7 @@ export const IdentityKubernetesAuthForm = ({
watch, watch,
setValue, setValue,
formState: { isSubmitting } formState: { isSubmitting, errors }
} = useForm<FormData>({ } = useForm<FormData>({
resolver: zodResolver(schema), resolver: zodResolver(schema),
defaultValues: { defaultValues: {
+2 -2
View File
@@ -15,10 +15,10 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes # This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version. # to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/) # Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.0.41 version: 0.0.5
# This is the version number of the application being deployed. This version number should be # This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to # incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using. # follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes. # It is recommended to use it with quotes.
appVersion: "0.0.41" appVersion: "0.0.5"