Skip to content

Validation error on initContainers command #865

@wreality

Description

@wreality

When entering a command for an initContainer, the validation requires no whitespace which doesn't seem right (always possible I'm missing something... I'm good at that).

image

const initContainerRule = yup
.array(
yup.object().shape({
name: matchNoWhitespace(yup.string().required().label('container:common.name')),
image: yup.string().required().label('container:common.image'),
command: uniqueKeysOnlySchema.default([]).nullable().label('container:common.images'),
args: uniqueKeysOnlySchema.default([]).nullable().label('container:common.arguments'),
environment: uniqueKeyValuesSchema.default([]).nullable().label('container:common.environment'),
useParentConfig: yup.boolean().default(false).required().label('container:common.useParent'),
volumes: initContainerVolumeLinkRule.default([]).nullable().label('container:common.volumes'),
}),

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions