Skip to content

Commit

Permalink
fix(schema): use enum for secret pull policy (#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
wass3rw3rk committed Nov 8, 2023
1 parent ba41348 commit 94c29db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yaml/secret.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type (
Engine string `yaml:"engine,omitempty" json:"engine,omitempty" jsonschema:"enum=native,enum=vault,default=native,description=Name of storage backend to fetch secret from.\nReference: https://go-vela.github.io/docs/reference/yaml/secrets/#the-engine-tag"`
Type string `yaml:"type,omitempty" json:"type,omitempty" jsonschema:"enum=repo,enum=org,enum=shared,default=repo,description=Type of secret to fetch from storage backend.\nReference: https://go-vela.github.io/docs/reference/yaml/secrets/#the-type-tag"`
Origin Origin `yaml:"origin,omitempty" json:"origin,omitempty" jsonschema:"description=Declaration to pull secrets from non-internal secret providers.\nReference: https://go-vela.github.io/docs/reference/yaml/secrets/#the-origin-tag"`
Pull string `yaml:"pull,omitempty" json:"pull,omitempty" jsonschema:"default=build_start,description=When to pull in secrets from storage backend."`
Pull string `yaml:"pull,omitempty" json:"pull,omitempty" jsonschema:"enum=step_start,enum=build_start,default=build_start,description=When to pull in secrets from storage backend.\nReference: https://go-vela.github.io/docs/reference/yaml/secrets/#the-pull-tag"`
}

// Origin is the yaml representation of a method
Expand Down

0 comments on commit 94c29db

Please sign in to comment.