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:/

75 lines 4.67 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.ControllerRevisionPatch = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../../utilities"); /** * Patch resources are used to modify existing Kubernetes resources by using * Server-Side Apply updates. The name of the resource must be specified, but all other properties are optional. More than * one patch may be applied to the same resource, and a random FieldManager name will be used for each Patch resource. * Conflicts will result in an error by default, but can be forced using the "pulumi.com/patchForce" annotation. See the * [Server-Side Apply Docs](https://www.pulumi.com/registry/packages/kubernetes/how-to-guides/managing-resources-with-server-side-apply/) for * additional information about using Server-Side Apply to manage Kubernetes resources with Pulumi. * ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers. * * @deprecated apps/v1beta2/ControllerRevision is deprecated by apps/v1/ControllerRevision and not supported by Kubernetes v1.16+ clusters. */ class ControllerRevisionPatch extends pulumi.CustomResource { /** * Get an existing ControllerRevisionPatch 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 ControllerRevisionPatch(name, undefined, { ...opts, id: id }); } /** * Returns true if the given object is an instance of ControllerRevisionPatch. 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'] === ControllerRevisionPatch.__pulumiType; } /** * Create a ControllerRevisionPatch 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 apps/v1beta2/ControllerRevision is deprecated by apps/v1/ControllerRevision and not supported by Kubernetes v1.16+ clusters. */ constructor(name, args, opts) { let resourceInputs = {}; opts = opts || {}; if (!opts.id) { resourceInputs["apiVersion"] = "apps/v1beta2"; resourceInputs["data"] = args?.data; resourceInputs["kind"] = "ControllerRevision"; resourceInputs["metadata"] = args?.metadata; resourceInputs["revision"] = args?.revision; } else { resourceInputs["apiVersion"] = undefined /*out*/; resourceInputs["data"] = undefined /*out*/; resourceInputs["kind"] = undefined /*out*/; resourceInputs["metadata"] = undefined /*out*/; resourceInputs["revision"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const aliasOpts = { aliases: [{ type: "kubernetes:apps/v1:ControllerRevisionPatch" }, { type: "kubernetes:apps/v1beta1:ControllerRevisionPatch" }] }; opts = pulumi.mergeOptions(opts, aliasOpts); super(ControllerRevisionPatch.__pulumiType, name, resourceInputs, opts); } } exports.ControllerRevisionPatch = ControllerRevisionPatch; /** @internal */ ControllerRevisionPatch.__pulumiType = 'kubernetes:apps/v1beta2:ControllerRevisionPatch'; //# sourceMappingURL=controllerRevisionPatch.js.map