-
Notifications
You must be signed in to change notification settings - Fork 553
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
Support configuring vault version handling. #1646
Conversation
Add two new provider fields for configuring way that the provider determines the target Vault server's version. - vault_version_override: will set the vault version explicitly, no API requests will be made to retrieve the version - skip_get_vault_version: enable to disable API version requests. If no version can be determined, the lowest supported versioned API semantics will be applied to all resources.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Saw 1 potential change, but looks good otherwise
vault/provider.go
Outdated
Optional: true, | ||
Default: false, | ||
Description: "Skip the dynamic fetching of the Vault server version.", | ||
ValidateDiagFunc: provider.ValidateDiagSemVer, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be validating a semantic version since this is a boolean?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, good catch! Fixed with 8e28053
Add two new provider fields for configuring way that the provider determines the target Vault server's version. - vault_version_override: will set the vault version explicitly, no API requests will be made to retrieve the version - skip_get_vault_version: enable to disable API version requests. If no version can be determined, the lowest supported versioned API semantics will be applied to all resources.
Add two new provider fields for configuring way that the provider determines the target Vault server's version.
vault_version_override
: will set the vault version explicitly, no API requests will be made to retrieve the versionskip_get_vault_version
: enable to disable API version requests.If no version can be determined, the lowest supported versioned API semantics will be applied to all resources.
Closes #1643