Merge pull request #133406 from jonringer/terraform-aliases
terraform.providers: use allowAliases for exposing deprecated providers
This commit is contained in:
commit
7a70d3c4d5
1 changed files with 4 additions and 2 deletions
|
@ -3,6 +3,7 @@
|
||||||
, buildGoPackage
|
, buildGoPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, callPackage
|
, callPackage
|
||||||
|
, config
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
list = lib.importJSON ./providers.json;
|
list = lib.importJSON ./providers.json;
|
||||||
|
@ -50,12 +51,13 @@ let
|
||||||
cloudfoundry = callPackage ./cloudfoundry {};
|
cloudfoundry = callPackage ./cloudfoundry {};
|
||||||
gandi = callPackage ./gandi {};
|
gandi = callPackage ./gandi {};
|
||||||
hcloud = callPackage ./hcloud {};
|
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 {};
|
libvirt = callPackage ./libvirt {};
|
||||||
linuxbox = callPackage ./linuxbox {};
|
linuxbox = callPackage ./linuxbox {};
|
||||||
lxd = callPackage ./lxd {};
|
lxd = callPackage ./lxd {};
|
||||||
vpsadmin = callPackage ./vpsadmin {};
|
vpsadmin = callPackage ./vpsadmin {};
|
||||||
vercel = callPackage ./vercel {};
|
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
|
in
|
||||||
automated-providers // special-providers
|
automated-providers // special-providers
|
||||||
|
|
Loading…
Reference in a new issue