Skip to content

How to skip validation while pushing template to Coder? #8262

Answered by matifali
fuale asked this question in Q&A
Discussion options

You must be logged in to vote

for example, set a nonempty default value that passes your validation.

data "coder_parameter" "git_repo" {
  name         = "git_repository"
  display_name = "Git Repository"
- default      = ""
+ default      = "[email protected]"
  type         = "string"
  mutable      = true

  validation {
    regex = "^[email protected]"
    error = "Use GIT+SSH link type"
  }
}

Or use something like this
https://stackoverflow.com/a/66913427/9183518

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Alt791350
Comment options

@matifali
Comment options

Answer selected by matifali
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants