@pulumiverse/cpln
Version:
A Pulumi package for creating and managing Control Plane (cpln) resources.
106 lines • 5.58 kB
JavaScript
;
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.HelmRelease = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
class HelmRelease extends pulumi.CustomResource {
/**
* Get an existing HelmRelease resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name, id, state, opts) {
return new HelmRelease(name, state, { ...opts, id: id });
}
/**
* Returns true if the given object is an instance of HelmRelease. 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'] === HelmRelease.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["chart"] = state?.chart;
resourceInputs["dependencyUpdate"] = state?.dependencyUpdate;
resourceInputs["description"] = state?.description;
resourceInputs["gvc"] = state?.gvc;
resourceInputs["insecureSkipTlsVerify"] = state?.insecureSkipTlsVerify;
resourceInputs["manifest"] = state?.manifest;
resourceInputs["maxHistory"] = state?.maxHistory;
resourceInputs["name"] = state?.name;
resourceInputs["postrender"] = state?.postrender;
resourceInputs["renderSubchartNotes"] = state?.renderSubchartNotes;
resourceInputs["repository"] = state?.repository;
resourceInputs["repositoryCaFile"] = state?.repositoryCaFile;
resourceInputs["repositoryCertFile"] = state?.repositoryCertFile;
resourceInputs["repositoryKeyFile"] = state?.repositoryKeyFile;
resourceInputs["repositoryPassword"] = state?.repositoryPassword;
resourceInputs["repositoryUsername"] = state?.repositoryUsername;
resourceInputs["resources"] = state?.resources;
resourceInputs["revision"] = state?.revision;
resourceInputs["set"] = state?.set;
resourceInputs["setFile"] = state?.setFile;
resourceInputs["setString"] = state?.setString;
resourceInputs["status"] = state?.status;
resourceInputs["timeout"] = state?.timeout;
resourceInputs["values"] = state?.values;
resourceInputs["verify"] = state?.verify;
resourceInputs["version"] = state?.version;
resourceInputs["wait"] = state?.wait;
}
else {
const args = argsOrState;
if (args?.chart === undefined && !opts.urn) {
throw new Error("Missing required property 'chart'");
}
resourceInputs["chart"] = args?.chart;
resourceInputs["dependencyUpdate"] = args?.dependencyUpdate;
resourceInputs["description"] = args?.description;
resourceInputs["gvc"] = args?.gvc;
resourceInputs["insecureSkipTlsVerify"] = args?.insecureSkipTlsVerify;
resourceInputs["maxHistory"] = args?.maxHistory;
resourceInputs["name"] = args?.name;
resourceInputs["postrender"] = args?.postrender;
resourceInputs["renderSubchartNotes"] = args?.renderSubchartNotes;
resourceInputs["repository"] = args?.repository;
resourceInputs["repositoryCaFile"] = args?.repositoryCaFile;
resourceInputs["repositoryCertFile"] = args?.repositoryCertFile;
resourceInputs["repositoryKeyFile"] = args?.repositoryKeyFile;
resourceInputs["repositoryPassword"] = args?.repositoryPassword ? pulumi.secret(args.repositoryPassword) : undefined;
resourceInputs["repositoryUsername"] = args?.repositoryUsername;
resourceInputs["set"] = args?.set;
resourceInputs["setFile"] = args?.setFile;
resourceInputs["setString"] = args?.setString;
resourceInputs["timeout"] = args?.timeout;
resourceInputs["values"] = args?.values;
resourceInputs["verify"] = args?.verify;
resourceInputs["version"] = args?.version;
resourceInputs["wait"] = args?.wait;
resourceInputs["manifest"] = undefined /*out*/;
resourceInputs["resources"] = undefined /*out*/;
resourceInputs["revision"] = undefined /*out*/;
resourceInputs["status"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
const secretOpts = { additionalSecretOutputs: ["repositoryPassword"] };
opts = pulumi.mergeOptions(opts, secretOpts);
super(HelmRelease.__pulumiType, name, resourceInputs, opts);
}
}
exports.HelmRelease = HelmRelease;
/** @internal */
HelmRelease.__pulumiType = 'cpln:index/helmRelease:HelmRelease';
//# sourceMappingURL=helmRelease.js.map