UNPKG

@lbrlabs/pulumi-harness

Version:

A Pulumi package for creating and managing Harness resources.

128 lines (127 loc) 4.78 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Resource for creating a Kubernetes cloud provider. This resource uses the config-as-code API's. When updating the `name` or `path` of this resource you should typically also set the `createBeforeDestroy = true` lifecycle setting. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@lbrlabs/pulumi-harness"; * import * as harness from "@pulumi/harness"; * * const default = harness.getSecretManager({ * "default": true, * }); * const username = new harness.EncryptedText("username", { * value: "<USERNAME>", * secretManagerId: _default.then(_default => _default.id), * }); * const password = new harness.EncryptedText("password", { * value: "<PASSWORD>", * secretManagerId: _default.then(_default => _default.id), * }); * const example = new harness.cloudprovider.Kubernetes("example", { * skipValidation: true, * authentication: { * usernamePassword: { * masterUrl: "https://localhost.com", * usernameSecretName: username.name, * passwordSecretName: password.name, * }, * }, * }); * ``` * * ## Import * * Import using the Harness kubernetes cloud provider id. * * ```sh * $ pulumi import harness:cloudprovider/kubernetes:Kubernetes example <provider_id> * ``` */ export declare class Kubernetes extends pulumi.CustomResource { /** * Get an existing Kubernetes 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: string, id: pulumi.Input<pulumi.ID>, state?: KubernetesState, opts?: pulumi.CustomResourceOptions): Kubernetes; /** * Returns true if the given object is an instance of Kubernetes. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Kubernetes; /** * Authentication configuration for the Kubernetes cluster */ readonly authentication: pulumi.Output<outputs.cloudprovider.KubernetesAuthentication>; /** * The name of the cloud provider. */ readonly name: pulumi.Output<string>; /** * Skip validation of Kubernetes configuration. */ readonly skipValidation: pulumi.Output<boolean | undefined>; /** * This block is used for scoping the resource to a specific set of applications or environments. */ readonly usageScopes: pulumi.Output<outputs.cloudprovider.KubernetesUsageScope[] | undefined>; /** * Create a Kubernetes 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: string, args: KubernetesArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Kubernetes resources. */ export interface KubernetesState { /** * Authentication configuration for the Kubernetes cluster */ authentication?: pulumi.Input<inputs.cloudprovider.KubernetesAuthentication>; /** * The name of the cloud provider. */ name?: pulumi.Input<string>; /** * Skip validation of Kubernetes configuration. */ skipValidation?: pulumi.Input<boolean>; /** * This block is used for scoping the resource to a specific set of applications or environments. */ usageScopes?: pulumi.Input<pulumi.Input<inputs.cloudprovider.KubernetesUsageScope>[]>; } /** * The set of arguments for constructing a Kubernetes resource. */ export interface KubernetesArgs { /** * Authentication configuration for the Kubernetes cluster */ authentication: pulumi.Input<inputs.cloudprovider.KubernetesAuthentication>; /** * The name of the cloud provider. */ name?: pulumi.Input<string>; /** * Skip validation of Kubernetes configuration. */ skipValidation?: pulumi.Input<boolean>; /** * This block is used for scoping the resource to a specific set of applications or environments. */ usageScopes?: pulumi.Input<pulumi.Input<inputs.cloudprovider.KubernetesUsageScope>[]>; }