Merge pull request #133406 from jonringer/terraform-aliases

terraform.providers: use allowAliases for exposing deprecated providers
This commit is contained in:
Timothy DeHerrera 2021-08-10 13:19:00 -06:00 committed by GitHub
commit 7a70d3c4d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,6 +3,7 @@
, buildGoPackage
, fetchFromGitHub
, callPackage
, config
}:
let
list = lib.importJSON ./providers.json;
@ -50,12 +51,13 @@ let
cloudfoundry = callPackage ./cloudfoundry {};
gandi = callPackage ./gandi {};
hcloud = callPackage ./hcloud {};
kubernetes-alpha = throw "This has been merged as beta into the kubernetes provider. See https://www.hashicorp.com/blog/beta-support-for-crds-in-the-terraform-provider-for-kubernetes for details";
libvirt = callPackage ./libvirt {};
linuxbox = callPackage ./linuxbox {};
lxd = callPackage ./lxd {};
vpsadmin = callPackage ./vpsadmin {};
vercel = callPackage ./vercel {};
};
} // (lib.optionalAttrs (config.allowAliases or false) {
kubernetes-alpha = throw "This has been merged as beta into the kubernetes provider. See https://www.hashicorp.com/blog/beta-support-for-crds-in-the-terraform-provider-for-kubernetes for details";
});
in
automated-providers // special-providers