UNPKG

@pulumi/rke

Version:

A Pulumi package for creating and managing rke cloud resources.

183 lines 12.8 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.Cluster = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * ## Import * * rke_cluster can be imported using the RKE cluster config and state files as ID in the format `<cluster_config_file>:<rke_state_file>` * * ```sh * $ pulumi import rke:index/cluster:Cluster foo &lt;cluster_config_file&gt;:&lt;rke_state_file&gt; * ``` * As experimental feature, dind rke_cluster can be also imported adding `dind` as 3rd import parameter `<cluster_config_file>:<rke_state_file>:dind` * * ```sh * $ pulumi import rke:index/cluster:Cluster foo &lt;cluster_config_file&gt;:&lt;rke_state_file&gt;:dind * ``` */ class Cluster extends pulumi.CustomResource { /** * Get an existing Cluster 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 Cluster(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Cluster. 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'] === Cluster.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["addonJobTimeout"] = state ? state.addonJobTimeout : undefined; resourceInputs["addons"] = state ? state.addons : undefined; resourceInputs["addonsIncludes"] = state ? state.addonsIncludes : undefined; resourceInputs["apiServerUrl"] = state ? state.apiServerUrl : undefined; resourceInputs["authentication"] = state ? state.authentication : undefined; resourceInputs["authorization"] = state ? state.authorization : undefined; resourceInputs["bastionHost"] = state ? state.bastionHost : undefined; resourceInputs["caCrt"] = state ? state.caCrt : undefined; resourceInputs["certDir"] = state ? state.certDir : undefined; resourceInputs["certificates"] = state ? state.certificates : undefined; resourceInputs["clientCert"] = state ? state.clientCert : undefined; resourceInputs["clientKey"] = state ? state.clientKey : undefined; resourceInputs["cloudProvider"] = state ? state.cloudProvider : undefined; resourceInputs["clusterCidr"] = state ? state.clusterCidr : undefined; resourceInputs["clusterDnsServer"] = state ? state.clusterDnsServer : undefined; resourceInputs["clusterDomain"] = state ? state.clusterDomain : undefined; resourceInputs["clusterName"] = state ? state.clusterName : undefined; resourceInputs["clusterYaml"] = state ? state.clusterYaml : undefined; resourceInputs["controlPlaneHosts"] = state ? state.controlPlaneHosts : undefined; resourceInputs["customCerts"] = state ? state.customCerts : undefined; resourceInputs["delayOnCreation"] = state ? state.delayOnCreation : undefined; resourceInputs["dind"] = state ? state.dind : undefined; resourceInputs["dindDnsServer"] = state ? state.dindDnsServer : undefined; resourceInputs["dindStorageDriver"] = state ? state.dindStorageDriver : undefined; resourceInputs["disablePortCheck"] = state ? state.disablePortCheck : undefined; resourceInputs["dns"] = state ? state.dns : undefined; resourceInputs["enableCriDockerd"] = state ? state.enableCriDockerd : undefined; resourceInputs["etcdHosts"] = state ? state.etcdHosts : undefined; resourceInputs["ignoreDockerVersion"] = state ? state.ignoreDockerVersion : undefined; resourceInputs["inactiveHosts"] = state ? state.inactiveHosts : undefined; resourceInputs["ingress"] = state ? state.ingress : undefined; resourceInputs["internalKubeConfigYaml"] = state ? state.internalKubeConfigYaml : undefined; resourceInputs["kubeAdminUser"] = state ? state.kubeAdminUser : undefined; resourceInputs["kubeConfigYaml"] = state ? state.kubeConfigYaml : undefined; resourceInputs["kubernetesVersion"] = state ? state.kubernetesVersion : undefined; resourceInputs["monitoring"] = state ? state.monitoring : undefined; resourceInputs["network"] = state ? state.network : undefined; resourceInputs["nodes"] = state ? state.nodes : undefined; resourceInputs["nodesConfs"] = state ? state.nodesConfs : undefined; resourceInputs["prefixPath"] = state ? state.prefixPath : undefined; resourceInputs["privateRegistries"] = state ? state.privateRegistries : undefined; resourceInputs["restore"] = state ? state.restore : undefined; resourceInputs["rkeClusterYaml"] = state ? state.rkeClusterYaml : undefined; resourceInputs["rkeState"] = state ? state.rkeState : undefined; resourceInputs["rotateCertificates"] = state ? state.rotateCertificates : undefined; resourceInputs["runningSystemImages"] = state ? state.runningSystemImages : undefined; resourceInputs["services"] = state ? state.services : undefined; resourceInputs["servicesEtcdDeprecated"] = state ? state.servicesEtcdDeprecated : undefined; resourceInputs["servicesKubeApiDeprecated"] = state ? state.servicesKubeApiDeprecated : undefined; resourceInputs["servicesKubeControllerDeprecated"] = state ? state.servicesKubeControllerDeprecated : undefined; resourceInputs["servicesKubeProxyDeprecated"] = state ? state.servicesKubeProxyDeprecated : undefined; resourceInputs["servicesKubeSchedulerDeprecated"] = state ? state.servicesKubeSchedulerDeprecated : undefined; resourceInputs["servicesKubeletDeprecated"] = state ? state.servicesKubeletDeprecated : undefined; resourceInputs["sshAgentAuth"] = state ? state.sshAgentAuth : undefined; resourceInputs["sshCertPath"] = state ? state.sshCertPath : undefined; resourceInputs["sshKeyPath"] = state ? state.sshKeyPath : undefined; resourceInputs["systemImages"] = state ? state.systemImages : undefined; resourceInputs["updateOnly"] = state ? state.updateOnly : undefined; resourceInputs["upgradeStrategy"] = state ? state.upgradeStrategy : undefined; resourceInputs["workerHosts"] = state ? state.workerHosts : undefined; } else { const args = argsOrState; resourceInputs["addonJobTimeout"] = args ? args.addonJobTimeout : undefined; resourceInputs["addons"] = args ? args.addons : undefined; resourceInputs["addonsIncludes"] = args ? args.addonsIncludes : undefined; resourceInputs["authentication"] = args ? args.authentication : undefined; resourceInputs["authorization"] = args ? args.authorization : undefined; resourceInputs["bastionHost"] = args ? args.bastionHost : undefined; resourceInputs["certDir"] = args ? args.certDir : undefined; resourceInputs["cloudProvider"] = args ? args.cloudProvider : undefined; resourceInputs["clusterName"] = args ? args.clusterName : undefined; resourceInputs["clusterYaml"] = (args === null || args === void 0 ? void 0 : args.clusterYaml) ? pulumi.secret(args.clusterYaml) : undefined; resourceInputs["customCerts"] = args ? args.customCerts : undefined; resourceInputs["delayOnCreation"] = args ? args.delayOnCreation : undefined; resourceInputs["dind"] = args ? args.dind : undefined; resourceInputs["dindDnsServer"] = args ? args.dindDnsServer : undefined; resourceInputs["dindStorageDriver"] = args ? args.dindStorageDriver : undefined; resourceInputs["disablePortCheck"] = args ? args.disablePortCheck : undefined; resourceInputs["dns"] = args ? args.dns : undefined; resourceInputs["enableCriDockerd"] = args ? args.enableCriDockerd : undefined; resourceInputs["ignoreDockerVersion"] = args ? args.ignoreDockerVersion : undefined; resourceInputs["ingress"] = args ? args.ingress : undefined; resourceInputs["kubernetesVersion"] = args ? args.kubernetesVersion : undefined; resourceInputs["monitoring"] = args ? args.monitoring : undefined; resourceInputs["network"] = args ? args.network : undefined; resourceInputs["nodes"] = args ? args.nodes : undefined; resourceInputs["nodesConfs"] = args ? args.nodesConfs : undefined; resourceInputs["prefixPath"] = args ? args.prefixPath : undefined; resourceInputs["privateRegistries"] = args ? args.privateRegistries : undefined; resourceInputs["restore"] = args ? args.restore : undefined; resourceInputs["rotateCertificates"] = args ? args.rotateCertificates : undefined; resourceInputs["services"] = args ? args.services : undefined; resourceInputs["servicesEtcdDeprecated"] = args ? args.servicesEtcdDeprecated : undefined; resourceInputs["servicesKubeApiDeprecated"] = args ? args.servicesKubeApiDeprecated : undefined; resourceInputs["servicesKubeControllerDeprecated"] = args ? args.servicesKubeControllerDeprecated : undefined; resourceInputs["servicesKubeProxyDeprecated"] = args ? args.servicesKubeProxyDeprecated : undefined; resourceInputs["servicesKubeSchedulerDeprecated"] = args ? args.servicesKubeSchedulerDeprecated : undefined; resourceInputs["servicesKubeletDeprecated"] = args ? args.servicesKubeletDeprecated : undefined; resourceInputs["sshAgentAuth"] = args ? args.sshAgentAuth : undefined; resourceInputs["sshCertPath"] = args ? args.sshCertPath : undefined; resourceInputs["sshKeyPath"] = args ? args.sshKeyPath : undefined; resourceInputs["systemImages"] = args ? args.systemImages : undefined; resourceInputs["updateOnly"] = args ? args.updateOnly : undefined; resourceInputs["upgradeStrategy"] = args ? args.upgradeStrategy : undefined; resourceInputs["apiServerUrl"] = undefined /*out*/; resourceInputs["caCrt"] = undefined /*out*/; resourceInputs["certificates"] = undefined /*out*/; resourceInputs["clientCert"] = undefined /*out*/; resourceInputs["clientKey"] = undefined /*out*/; resourceInputs["clusterCidr"] = undefined /*out*/; resourceInputs["clusterDnsServer"] = undefined /*out*/; resourceInputs["clusterDomain"] = undefined /*out*/; resourceInputs["controlPlaneHosts"] = undefined /*out*/; resourceInputs["etcdHosts"] = undefined /*out*/; resourceInputs["inactiveHosts"] = undefined /*out*/; resourceInputs["internalKubeConfigYaml"] = undefined /*out*/; resourceInputs["kubeAdminUser"] = undefined /*out*/; resourceInputs["kubeConfigYaml"] = undefined /*out*/; resourceInputs["rkeClusterYaml"] = undefined /*out*/; resourceInputs["rkeState"] = undefined /*out*/; resourceInputs["runningSystemImages"] = undefined /*out*/; resourceInputs["workerHosts"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const secretOpts = { additionalSecretOutputs: ["caCrt", "certificates", "clientCert", "clientKey", "clusterYaml", "internalKubeConfigYaml", "kubeConfigYaml", "rkeClusterYaml", "rkeState"] }; opts = pulumi.mergeOptions(opts, secretOpts); super(Cluster.__pulumiType, name, resourceInputs, opts); } } exports.Cluster = Cluster; /** @internal */ Cluster.__pulumiType = 'rke:index/cluster:Cluster'; //# sourceMappingURL=cluster.js.map