Skip to content

Commit

Permalink
fix: add 'implicit' as oneof option
Browse files Browse the repository at this point in the history
  • Loading branch information
soerenschneider committed Sep 11, 2023
1 parent 476ddf8 commit d3852bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/config/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ var validate = validator.New()

type VaultConfig struct {
Addr string `json:"vaultAddr" validate:"required,http_url"`
AuthMethod string `json:"vaultAuthMethod" validate:"required,oneof=token approle k8s"`
AuthMethod string `json:"vaultAuthMethod" validate:"required,oneof=token approle k8s implicit"`
Token string `json:"vaultToken" validate:"required_if=AuthMethod 'token'"`

RoleId string `json:"vaultRoleId" validate:"required_if=AuthMethod 'approle'"`
Expand Down

0 comments on commit d3852bf

Please sign in to comment.