diff --git a/CHANGELOG.md b/CHANGELOG.md index 45b1894672..da31f5b6ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,8 @@ `kubernetes:config:kubeconfig` (https://github.com/pulumi/pulumi-kubernetes/pull/636). - Provide useful contexts in provider errors, particularly those that originate from the API server (https://github.com/pulumi/pulumi-kubernetes/pull/636). +- Expose all Kubernetes types through the SDK + (https://github.com/pulumi/pulumi-kubernetes/pull/637). ## 0.25.2 (July 11, 2019) diff --git a/pkg/gen/nodejs-templates/providerIndex.ts.mustache b/pkg/gen/nodejs-templates/providerIndex.ts.mustache index 3dc390396c..8f3bddf617 100644 --- a/pkg/gen/nodejs-templates/providerIndex.ts.mustache +++ b/pkg/gen/nodejs-templates/providerIndex.ts.mustache @@ -14,3 +14,6 @@ import * as {{Group}} from "./{{Group}}/index"; // Export sub-modules export { {{#Groups}}{{Group}}, {{/Groups}} }; +// Import and export sub-modules for all Kubernetes types. +import * as types from "./types"; +export { types }; diff --git a/sdk/nodejs/index.ts b/sdk/nodejs/index.ts index f3cd501de6..84cfc86a50 100644 --- a/sdk/nodejs/index.ts +++ b/sdk/nodejs/index.ts @@ -33,3 +33,6 @@ import * as storage from "./storage/index"; // Export sub-modules export { admissionregistration, apiextensions, apiregistration, apps, auditregistration, authentication, authorization, autoscaling, batch, certificates, coordination, core, events, extensions, meta, networking, node, policy, rbac, scheduling, settings, storage, }; +// Import and export sub-modules for all Kubernetes types. +import * as types from "./types"; +export { types }; diff --git a/sdk/nodejs/types/index.ts b/sdk/nodejs/types/index.ts new file mode 100644 index 0000000000..d2cd189a07 --- /dev/null +++ b/sdk/nodejs/types/index.ts @@ -0,0 +1,6 @@ +// Import versions: +import * as input from "./input"; +import * as output from "./output"; + +// Export sub-modules +export { input, output };