Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement new variable attribute - required #2225

Open
AustinAbro321 opened this issue Jan 11, 2024 · 1 comment
Open

Implement new variable attribute - required #2225

AustinAbro321 opened this issue Jan 11, 2024 · 1 comment
Labels
enhancement ✨ New feature or request
Milestone

Comments

@AustinAbro321
Copy link
Contributor

AustinAbro321 commented Jan 11, 2024

Is your feature request related to a problem? Please describe.

I believe it would be a good idea to have an attribute on variables - required. This would be useful in cases where someone is deploying and doesn't have a variable that's required for the package. It's plausible a user may have an updated version of a package, and is still accidentally using an old config file for example.

Describe the solution you'd like

  • Given I have a variable "EXAMPLE_VAR" with the attribute required: true
  • When I run zarf package deploy --confirm without "EXAMPLE_VAR" being set
  • Then I get an error and the package doesn't deploy

Describe alternatives you've considered

You can use the attribute with a simple regex pattern: ".+" to achieve the same affect however users may not think to do this.

@AustinAbro321 AustinAbro321 added the enhancement ✨ New feature or request label Jan 11, 2024
@Noxsios
Copy link
Contributor

Noxsios commented Mar 6, 2024

Related to #2096

@salaxander salaxander added this to Zarf Jul 22, 2024
@github-project-automation github-project-automation bot moved this to Backlog in Zarf Jul 22, 2024
@salaxander salaxander removed the status in Zarf Jul 22, 2024
@salaxander salaxander moved this to Triage in Zarf Sep 10, 2024
@schristoff schristoff moved this from Triage to Backlog in Zarf Jan 9, 2025
@AustinAbro321 AustinAbro321 added this to the v0.49.0 milestone Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ✨ New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

2 participants