little-river-49422
02/09/2019, 9:54 AMcreamy-potato-29402
02/10/2019, 7:20 AMlittle-river-49422
02/10/2019, 7:22 AMcreamy-potato-29402
02/10/2019, 7:22 AMlittle-river-49422
02/10/2019, 7:25 AMincalculable-sundown-82514
02/11/2019, 7:07 PMlittle-river-49422
02/11/2019, 7:49 PMif pulumi.process == "up":
incalculable-sundown-82514
02/11/2019, 7:56 PMlittle-river-49422
02/11/2019, 8:34 PMincalculable-sundown-82514
02/11/2019, 8:34 PMlittle-river-49422
02/12/2019, 7:20 AMincalculable-sundown-82514
02/12/2019, 9:23 PMcreamy-potato-29402
02/12/2019, 9:24 PM/**
* CustomResource represents an instance of a CustomResourceDefinition (CRD). For example, the
* CoreOS Prometheus operator exposes a CRD `<http://monitoring.coreos.com/ServiceMonitor`;|monitoring.coreos.com/ServiceMonitor`;> to
* instantiate this as a Pulumi resource, one could call `new CustomResource`, passing the
* `ServiceMonitor` resource definition as an argument.
*/
export class CustomResource extends pulumi.CustomResource {
/**
* APIVersion defines the versioned schema of this representation of an object. Servers should
* convert recognized schemas to the latest internal value, and may reject unrecognized
* values. More info:
* <https://git.k8s.io/community/contributors/devel/api-conventions.md#resources>
*/
public readonly apiVersion: pulumi.Output<string>;
/**
* Kind is a string value representing the REST resource this object represents. Servers may
* infer this from the endpoint the client submits requests to. Cannot be updated. In
* CamelCase. More info:
* <https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds>
*/
public readonly kind: pulumi.Output<string>;
/**
* Standard object metadata; More info:
* <https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata>.
*/
public readonly metadata: pulumi.Output<outputApi.meta.v1.ObjectMeta>;
/**
* Get the state of an existing `CustomResource`, as identified by `id`.
* Typically this ID is of the form <namespace>/<name>; if <namespace> is omitted, then (per
* Kubernetes convention) the ID becomes default/<name>.
*
* Pulumi will keep track of this resource using `name` as the Pulumi ID.
*
* @param name _Unique_ name used to register this resource with Pulumi.
* @param opts Uniquely specifies a CustomResource to select.
*/
public static get(name: string, opts: CustomResourceGetOptions): CustomResource {
// NOTE: `selectOpts` will be type `pulumi.CustomResource`. If we add a field that does
// not satisfy that interface, it will cause a compilation error in `...selectOpts` in
// the constructor call below.
const {apiVersion, kind, id, ...selectOpts} = opts;
return new CustomResource(name, {apiVersion: apiVersion, kind: kind}, { ...selectOpts, id: id });
}
public getInputs(): CustomResourceArgs { return this.__inputs; }
private readonly __inputs: CustomResourceArgs;
/**
* Create a CustomResource 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: CustomResourceArgs, opts?: pulumi.CustomResourceOptions) {
let inputs: pulumi.Inputs = {};
for (const key of Object.keys(args)) {
inputs[key] = (args as any)[key];
}
super(`kubernetes:${args.apiVersion}:${args.kind}`, name, inputs, opts);
this.__inputs = args;
}
}
little-river-49422
02/13/2019, 6:34 AMincalculable-sundown-82514
02/13/2019, 7:44 PMlittle-river-49422
02/13/2019, 7:46 PMincalculable-sundown-82514
02/13/2019, 7:46 PM