Skip to content

Default for question vars is "<nil>" #2971

Open
@jackwilsdon

Description

@jackwilsdon

What happened?
The default value for question vars is <nil>. This causes issues when trying to make a variable required using validationPattern (see attached devspace.yaml).

What did you expect to happen instead?
The default value to be an empty string.

How can we reproduce the bug? (as minimally and precisely as possible)

  1. devspace deploy the attached devspace.yaml

My devspace.yaml:

version: v2beta1
vars:
  EXAMPLE:
    question: Example
    validationPattern: .+
    validationMessage: A value is required

The workaround is to also set default: "". Interestingly enough, password variables (password: true) do default to an empty string from what I can tell.

Local Environment:

  • DevSpace Version: [use devspace --version] 6.3.15
  • Operating System: macOS
  • ARCH of the OS: ARM64

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions