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

Remove deprecated backends in v1.3.0 #159

Merged
merged 2 commits into from
Nov 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions internal/schema/backends/backends.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ var (
v0_13_1 = version.Must(version.NewVersion("0.13.1"))
v0_14_0 = version.Must(version.NewVersion("0.14.0"))
v0_15_0 = version.Must(version.NewVersion("0.15.0"))
v1_3_0 = version.Must(version.NewVersion("1.3.0"))
)

func BackendTypesAsExprConstraints(tfVersion *version.Version) schema.ExprConstraints {
Expand Down Expand Up @@ -127,5 +128,17 @@ func backendBodySchemas(v *version.Version) map[string]*schema.BodySchema {
delete(backends, "atlas")
}

if v.GreaterThanOrEqual(v1_3_0) {
// https://github.com/hashicorp/terraform/commit/aa48af6e
delete(backends, "azure")
delete(backends, "artifactory")
delete(backends, "manta")
delete(backends, "swift")
// https://github.com/hashicorp/terraform/commit/799ab6c9
delete(backends, "etcd")
// https://github.com/hashicorp/terraform/commit/d61d3e9f
delete(backends, "etcdv3")
}

return backends
}