@pulumi/kubernetes
Version:
[](https://travis-ci.com/pulumi/pulumi-kubernetes) [](https://slack.pulumi.com) [![NPM
58 lines • 4.38 kB
JavaScript
;
// *** WARNING: this file was generated by pulumigen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.Provider = void 0;
const pulumi = require("@pulumi/pulumi");
const inputs = require("./types/input");
const utilities = require("./utilities");
/**
* The provider type for the kubernetes package.
*/
class Provider extends pulumi.ProviderResource {
/**
* Returns true if the given object is an instance of Provider. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj) {
if (obj === undefined || obj === null) {
return false;
}
return obj['__pulumiType'] === "pulumi:providers:" + Provider.__pulumiType;
}
/**
* Create a Provider resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name, args, opts) {
var _a, _b, _c, _d, _e, _f, _g, _h;
let resourceInputs = {};
opts = opts || {};
{
resourceInputs["cluster"] = args ? args.cluster : undefined;
resourceInputs["clusterIdentifier"] = args ? args.clusterIdentifier : undefined;
resourceInputs["context"] = args ? args.context : undefined;
resourceInputs["deleteUnreachable"] = pulumi.output((_a = (args ? args.deleteUnreachable : undefined)) !== null && _a !== void 0 ? _a : utilities.getEnvBoolean("PULUMI_K8S_DELETE_UNREACHABLE")).apply(JSON.stringify);
resourceInputs["enableConfigMapMutable"] = pulumi.output((_b = (args ? args.enableConfigMapMutable : undefined)) !== null && _b !== void 0 ? _b : utilities.getEnvBoolean("PULUMI_K8S_ENABLE_CONFIGMAP_MUTABLE")).apply(JSON.stringify);
resourceInputs["enableSecretMutable"] = pulumi.output((_c = (args ? args.enableSecretMutable : undefined)) !== null && _c !== void 0 ? _c : utilities.getEnvBoolean("PULUMI_K8S_ENABLE_SECRET_MUTABLE")).apply(JSON.stringify);
resourceInputs["enableServerSideApply"] = pulumi.output((_d = (args ? args.enableServerSideApply : undefined)) !== null && _d !== void 0 ? _d : utilities.getEnvBoolean("PULUMI_K8S_ENABLE_SERVER_SIDE_APPLY")).apply(JSON.stringify);
resourceInputs["helmReleaseSettings"] = pulumi.output(args ? (args.helmReleaseSettings ? pulumi.output(args.helmReleaseSettings).apply(inputs.helmReleaseSettingsProvideDefaults) : undefined) : undefined).apply(JSON.stringify);
resourceInputs["kubeClientSettings"] = pulumi.output(args ? (args.kubeClientSettings ? pulumi.output(args.kubeClientSettings).apply(inputs.kubeClientSettingsProvideDefaults) : undefined) : undefined).apply(JSON.stringify);
resourceInputs["kubeconfig"] = (_e = (args ? args.kubeconfig : undefined)) !== null && _e !== void 0 ? _e : utilities.getEnv("KUBECONFIG");
resourceInputs["namespace"] = args ? args.namespace : undefined;
resourceInputs["renderYamlToDirectory"] = args ? args.renderYamlToDirectory : undefined;
resourceInputs["skipUpdateUnreachable"] = pulumi.output((_f = (args ? args.skipUpdateUnreachable : undefined)) !== null && _f !== void 0 ? _f : utilities.getEnvBoolean("PULUMI_K8S_SKIP_UPDATE_UNREACHABLE")).apply(JSON.stringify);
resourceInputs["suppressDeprecationWarnings"] = pulumi.output((_g = (args ? args.suppressDeprecationWarnings : undefined)) !== null && _g !== void 0 ? _g : utilities.getEnvBoolean("PULUMI_K8S_SUPPRESS_DEPRECATION_WARNINGS")).apply(JSON.stringify);
resourceInputs["suppressHelmHookWarnings"] = pulumi.output((_h = (args ? args.suppressHelmHookWarnings : undefined)) !== null && _h !== void 0 ? _h : utilities.getEnvBoolean("PULUMI_K8S_SUPPRESS_HELM_HOOK_WARNINGS")).apply(JSON.stringify);
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Provider.__pulumiType, name, resourceInputs, opts);
}
}
exports.Provider = Provider;
/** @internal */
Provider.__pulumiType = 'kubernetes';
//# sourceMappingURL=provider.js.map