UNPKG

@pulumi/kubernetes

Version:

[![Actions Status](https://github.com/pulumi/pulumi-kubernetes/workflows/main/badge.svg)](https://github.com/pulumi/pulumi-kubernetes/actions) [![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com) [![NPM version](https:/

70 lines 3.53 kB
"use strict"; // *** 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.CSINode = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../../utilities"); /** * CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object. * * @deprecated storage/v1beta1/CSINode is deprecated by storage.k8s.io/v1/CSINode. */ class CSINode extends pulumi.CustomResource { /** * Get an existing CSINode 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 opts Optional settings to control the behavior of the CustomResource. */ static get(name, id, opts) { return new CSINode(name, undefined, { ...opts, id: id }); } /** * Returns true if the given object is an instance of CSINode. 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'] === CSINode.__pulumiType; } /** * Create a CSINode 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. */ /** @deprecated storage/v1beta1/CSINode is deprecated by storage.k8s.io/v1/CSINode. */ constructor(name, args, opts) { let resourceInputs = {}; opts = opts || {}; if (!opts.id) { if (args?.spec === undefined && !opts.urn) { throw new Error("Missing required property 'spec'"); } resourceInputs["apiVersion"] = "storage.k8s.io/v1beta1"; resourceInputs["kind"] = "CSINode"; resourceInputs["metadata"] = args?.metadata; resourceInputs["spec"] = args?.spec; } else { resourceInputs["apiVersion"] = undefined /*out*/; resourceInputs["kind"] = undefined /*out*/; resourceInputs["metadata"] = undefined /*out*/; resourceInputs["spec"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const aliasOpts = { aliases: [{ type: "kubernetes:storage.k8s.io/v1:CSINode" }] }; opts = pulumi.mergeOptions(opts, aliasOpts); super(CSINode.__pulumiType, name, resourceInputs, opts); } } exports.CSINode = CSINode; /** @internal */ CSINode.__pulumiType = 'kubernetes:storage.k8s.io/v1beta1:CSINode'; //# sourceMappingURL=csinode.js.map