@kilic.dev/pulumi-k8s-crds 1.0.7 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ import * as v1 from "./v1";
2
+ export { v1, };
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by crd2pulumi. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || function (mod) {
21
+ if (mod && mod.__esModule) return mod;
22
+ var result = {};
23
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
+ __setModuleDefault(result, mod);
25
+ return result;
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.v1 = void 0;
29
+ // Export sub-modules:
30
+ const v1 = __importStar(require("./v1"));
31
+ exports.v1 = v1;
@@ -0,0 +1,48 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "../../types/input";
3
+ import * as outputs from "../../types/output";
4
+ import { ObjectMeta } from "../../meta/v1";
5
+ /**
6
+ * Challenge is a type to represent a Challenge request with an ACME server
7
+ */
8
+ export declare class Challenge extends pulumi.CustomResource {
9
+ /**
10
+ * Get an existing Challenge resource's state with the given name, ID, and optional extra
11
+ * properties used to qualify the lookup.
12
+ *
13
+ * @param name The _unique_ name of the resulting resource.
14
+ * @param id The _unique_ provider ID of the resource to lookup.
15
+ * @param opts Optional settings to control the behavior of the CustomResource.
16
+ */
17
+ static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): Challenge;
18
+ /** @internal */
19
+ static readonly __pulumiType = "kubernetes:acme.cert-manager.io/v1:Challenge";
20
+ /**
21
+ * Returns true if the given object is an instance of Challenge. This is designed to work even
22
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
23
+ */
24
+ static isInstance(obj: any): obj is Challenge;
25
+ readonly apiVersion: pulumi.Output<"acme.cert-manager.io/v1" | undefined>;
26
+ readonly kind: pulumi.Output<"Challenge" | undefined>;
27
+ readonly metadata: pulumi.Output<ObjectMeta>;
28
+ readonly spec: pulumi.Output<outputs.acme.v1.ChallengeSpec>;
29
+ readonly status: pulumi.Output<outputs.acme.v1.ChallengeStatus | undefined>;
30
+ /**
31
+ * Create a Challenge resource with the given unique name, arguments, and options.
32
+ *
33
+ * @param name The _unique_ name of the resource.
34
+ * @param args The arguments to use to populate this resource's properties.
35
+ * @param opts A bag of options that control this resource's behavior.
36
+ */
37
+ constructor(name: string, args?: ChallengeArgs, opts?: pulumi.CustomResourceOptions);
38
+ }
39
+ /**
40
+ * The set of arguments for constructing a Challenge resource.
41
+ */
42
+ export interface ChallengeArgs {
43
+ apiVersion?: pulumi.Input<"acme.cert-manager.io/v1">;
44
+ kind?: pulumi.Input<"Challenge">;
45
+ metadata?: pulumi.Input<ObjectMeta>;
46
+ spec?: pulumi.Input<inputs.acme.v1.ChallengeSpecArgs>;
47
+ status?: pulumi.Input<inputs.acme.v1.ChallengeStatusArgs>;
48
+ }
@@ -0,0 +1,91 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by crd2pulumi. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || function (mod) {
21
+ if (mod && mod.__esModule) return mod;
22
+ var result = {};
23
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
+ __setModuleDefault(result, mod);
25
+ return result;
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.Challenge = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("../../utilities"));
31
+ /**
32
+ * Challenge is a type to represent a Challenge request with an ACME server
33
+ */
34
+ class Challenge extends pulumi.CustomResource {
35
+ /**
36
+ * Get an existing Challenge resource's state with the given name, ID, and optional extra
37
+ * properties used to qualify the lookup.
38
+ *
39
+ * @param name The _unique_ name of the resulting resource.
40
+ * @param id The _unique_ provider ID of the resource to lookup.
41
+ * @param opts Optional settings to control the behavior of the CustomResource.
42
+ */
43
+ static get(name, id, opts) {
44
+ return new Challenge(name, undefined, { ...opts, id: id });
45
+ }
46
+ /** @internal */
47
+ static __pulumiType = 'kubernetes:acme.cert-manager.io/v1:Challenge';
48
+ /**
49
+ * Returns true if the given object is an instance of Challenge. This is designed to work even
50
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
51
+ */
52
+ static isInstance(obj) {
53
+ if (obj === undefined || obj === null) {
54
+ return false;
55
+ }
56
+ return obj['__pulumiType'] === Challenge.__pulumiType;
57
+ }
58
+ apiVersion;
59
+ kind;
60
+ metadata;
61
+ spec;
62
+ status;
63
+ /**
64
+ * Create a Challenge resource with the given unique name, arguments, and options.
65
+ *
66
+ * @param name The _unique_ name of the resource.
67
+ * @param args The arguments to use to populate this resource's properties.
68
+ * @param opts A bag of options that control this resource's behavior.
69
+ */
70
+ constructor(name, args, opts) {
71
+ let resourceInputs = {};
72
+ opts = opts || {};
73
+ if (!opts.id) {
74
+ resourceInputs["apiVersion"] = "acme.cert-manager.io/v1";
75
+ resourceInputs["kind"] = "Challenge";
76
+ resourceInputs["metadata"] = args ? args.metadata : undefined;
77
+ resourceInputs["spec"] = args ? args.spec : undefined;
78
+ resourceInputs["status"] = args ? args.status : undefined;
79
+ }
80
+ else {
81
+ resourceInputs["apiVersion"] = undefined /*out*/;
82
+ resourceInputs["kind"] = undefined /*out*/;
83
+ resourceInputs["metadata"] = undefined /*out*/;
84
+ resourceInputs["spec"] = undefined /*out*/;
85
+ resourceInputs["status"] = undefined /*out*/;
86
+ }
87
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
88
+ super(Challenge.__pulumiType, name, resourceInputs, opts);
89
+ }
90
+ }
91
+ exports.Challenge = Challenge;
@@ -0,0 +1,6 @@
1
+ export { ChallengeArgs } from "./challenge";
2
+ export type Challenge = import("./challenge").Challenge;
3
+ export declare const Challenge: typeof import("./challenge").Challenge;
4
+ export { OrderArgs } from "./order";
5
+ export type Order = import("./order").Order;
6
+ export declare const Order: typeof import("./order").Order;
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by crd2pulumi. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || function (mod) {
21
+ if (mod && mod.__esModule) return mod;
22
+ var result = {};
23
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
+ __setModuleDefault(result, mod);
25
+ return result;
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.Order = exports.Challenge = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("../../utilities"));
31
+ exports.Challenge = null;
32
+ utilities.lazyLoad(exports, ["Challenge"], () => require("./challenge"));
33
+ exports.Order = null;
34
+ utilities.lazyLoad(exports, ["Order"], () => require("./order"));
35
+ const _module = {
36
+ version: utilities.getVersion(),
37
+ construct: (name, type, urn) => {
38
+ switch (type) {
39
+ case "kubernetes:acme.cert-manager.io/v1:Challenge":
40
+ return new exports.Challenge(name, undefined, { urn });
41
+ case "kubernetes:acme.cert-manager.io/v1:Order":
42
+ return new exports.Order(name, undefined, { urn });
43
+ default:
44
+ throw new Error(`unknown resource type ${type}`);
45
+ }
46
+ },
47
+ };
48
+ pulumi.runtime.registerResourceModule("pulumi-k8s-crds", "acme.cert-manager.io/v1", _module);
@@ -0,0 +1,48 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "../../types/input";
3
+ import * as outputs from "../../types/output";
4
+ import { ObjectMeta } from "../../meta/v1";
5
+ /**
6
+ * Order is a type to represent an Order with an ACME server
7
+ */
8
+ export declare class Order extends pulumi.CustomResource {
9
+ /**
10
+ * Get an existing Order resource's state with the given name, ID, and optional extra
11
+ * properties used to qualify the lookup.
12
+ *
13
+ * @param name The _unique_ name of the resulting resource.
14
+ * @param id The _unique_ provider ID of the resource to lookup.
15
+ * @param opts Optional settings to control the behavior of the CustomResource.
16
+ */
17
+ static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): Order;
18
+ /** @internal */
19
+ static readonly __pulumiType = "kubernetes:acme.cert-manager.io/v1:Order";
20
+ /**
21
+ * Returns true if the given object is an instance of Order. This is designed to work even
22
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
23
+ */
24
+ static isInstance(obj: any): obj is Order;
25
+ readonly apiVersion: pulumi.Output<"acme.cert-manager.io/v1" | undefined>;
26
+ readonly kind: pulumi.Output<"Order" | undefined>;
27
+ readonly metadata: pulumi.Output<ObjectMeta>;
28
+ readonly spec: pulumi.Output<outputs.acme.v1.OrderSpec>;
29
+ readonly status: pulumi.Output<outputs.acme.v1.OrderStatus | undefined>;
30
+ /**
31
+ * Create a Order resource with the given unique name, arguments, and options.
32
+ *
33
+ * @param name The _unique_ name of the resource.
34
+ * @param args The arguments to use to populate this resource's properties.
35
+ * @param opts A bag of options that control this resource's behavior.
36
+ */
37
+ constructor(name: string, args?: OrderArgs, opts?: pulumi.CustomResourceOptions);
38
+ }
39
+ /**
40
+ * The set of arguments for constructing a Order resource.
41
+ */
42
+ export interface OrderArgs {
43
+ apiVersion?: pulumi.Input<"acme.cert-manager.io/v1">;
44
+ kind?: pulumi.Input<"Order">;
45
+ metadata?: pulumi.Input<ObjectMeta>;
46
+ spec?: pulumi.Input<inputs.acme.v1.OrderSpecArgs>;
47
+ status?: pulumi.Input<inputs.acme.v1.OrderStatusArgs>;
48
+ }
@@ -0,0 +1,91 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by crd2pulumi. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || function (mod) {
21
+ if (mod && mod.__esModule) return mod;
22
+ var result = {};
23
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
+ __setModuleDefault(result, mod);
25
+ return result;
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.Order = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("../../utilities"));
31
+ /**
32
+ * Order is a type to represent an Order with an ACME server
33
+ */
34
+ class Order extends pulumi.CustomResource {
35
+ /**
36
+ * Get an existing Order resource's state with the given name, ID, and optional extra
37
+ * properties used to qualify the lookup.
38
+ *
39
+ * @param name The _unique_ name of the resulting resource.
40
+ * @param id The _unique_ provider ID of the resource to lookup.
41
+ * @param opts Optional settings to control the behavior of the CustomResource.
42
+ */
43
+ static get(name, id, opts) {
44
+ return new Order(name, undefined, { ...opts, id: id });
45
+ }
46
+ /** @internal */
47
+ static __pulumiType = 'kubernetes:acme.cert-manager.io/v1:Order';
48
+ /**
49
+ * Returns true if the given object is an instance of Order. This is designed to work even
50
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
51
+ */
52
+ static isInstance(obj) {
53
+ if (obj === undefined || obj === null) {
54
+ return false;
55
+ }
56
+ return obj['__pulumiType'] === Order.__pulumiType;
57
+ }
58
+ apiVersion;
59
+ kind;
60
+ metadata;
61
+ spec;
62
+ status;
63
+ /**
64
+ * Create a Order resource with the given unique name, arguments, and options.
65
+ *
66
+ * @param name The _unique_ name of the resource.
67
+ * @param args The arguments to use to populate this resource's properties.
68
+ * @param opts A bag of options that control this resource's behavior.
69
+ */
70
+ constructor(name, args, opts) {
71
+ let resourceInputs = {};
72
+ opts = opts || {};
73
+ if (!opts.id) {
74
+ resourceInputs["apiVersion"] = "acme.cert-manager.io/v1";
75
+ resourceInputs["kind"] = "Order";
76
+ resourceInputs["metadata"] = args ? args.metadata : undefined;
77
+ resourceInputs["spec"] = args ? args.spec : undefined;
78
+ resourceInputs["status"] = args ? args.status : undefined;
79
+ }
80
+ else {
81
+ resourceInputs["apiVersion"] = undefined /*out*/;
82
+ resourceInputs["kind"] = undefined /*out*/;
83
+ resourceInputs["metadata"] = undefined /*out*/;
84
+ resourceInputs["spec"] = undefined /*out*/;
85
+ resourceInputs["status"] = undefined /*out*/;
86
+ }
87
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
88
+ super(Order.__pulumiType, name, resourceInputs, opts);
89
+ }
90
+ }
91
+ exports.Order = Order;
@@ -0,0 +1,2 @@
1
+ import * as v1 from "./v1";
2
+ export { v1, };
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by crd2pulumi. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || function (mod) {
21
+ if (mod && mod.__esModule) return mod;
22
+ var result = {};
23
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
+ __setModuleDefault(result, mod);
25
+ return result;
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.v1 = void 0;
29
+ // Export sub-modules:
30
+ const v1 = __importStar(require("./v1"));
31
+ exports.v1 = v1;
@@ -0,0 +1,71 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "../../types/input";
3
+ import * as outputs from "../../types/output";
4
+ import { ObjectMeta } from "../../meta/v1";
5
+ /**
6
+ * A Certificate resource should be created to ensure an up to date and signed
7
+ * X.509 certificate is stored in the Kubernetes Secret resource named in `spec.secretName`.
8
+ *
9
+ * The stored certificate will be renewed before it expires (as configured by `spec.renewBefore`).
10
+ */
11
+ export declare class Certificate extends pulumi.CustomResource {
12
+ /**
13
+ * Get an existing Certificate resource's state with the given name, ID, and optional extra
14
+ * properties used to qualify the lookup.
15
+ *
16
+ * @param name The _unique_ name of the resulting resource.
17
+ * @param id The _unique_ provider ID of the resource to lookup.
18
+ * @param opts Optional settings to control the behavior of the CustomResource.
19
+ */
20
+ static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): Certificate;
21
+ /** @internal */
22
+ static readonly __pulumiType = "kubernetes:cert-manager.io/v1:Certificate";
23
+ /**
24
+ * Returns true if the given object is an instance of Certificate. This is designed to work even
25
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
26
+ */
27
+ static isInstance(obj: any): obj is Certificate;
28
+ readonly apiVersion: pulumi.Output<"cert-manager.io/v1" | undefined>;
29
+ readonly kind: pulumi.Output<"Certificate" | undefined>;
30
+ readonly metadata: pulumi.Output<ObjectMeta | undefined>;
31
+ /**
32
+ * Specification of the desired state of the Certificate resource.
33
+ * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
34
+ */
35
+ readonly spec: pulumi.Output<outputs.certmanager.v1.CertificateSpec | undefined>;
36
+ /**
37
+ * Status of the Certificate.
38
+ * This is set and managed automatically.
39
+ * Read-only.
40
+ * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
41
+ */
42
+ readonly status: pulumi.Output<outputs.certmanager.v1.CertificateStatus | undefined>;
43
+ /**
44
+ * Create a Certificate resource with the given unique name, arguments, and options.
45
+ *
46
+ * @param name The _unique_ name of the resource.
47
+ * @param args The arguments to use to populate this resource's properties.
48
+ * @param opts A bag of options that control this resource's behavior.
49
+ */
50
+ constructor(name: string, args?: CertificateArgs, opts?: pulumi.CustomResourceOptions);
51
+ }
52
+ /**
53
+ * The set of arguments for constructing a Certificate resource.
54
+ */
55
+ export interface CertificateArgs {
56
+ apiVersion?: pulumi.Input<"cert-manager.io/v1">;
57
+ kind?: pulumi.Input<"Certificate">;
58
+ metadata?: pulumi.Input<ObjectMeta>;
59
+ /**
60
+ * Specification of the desired state of the Certificate resource.
61
+ * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
62
+ */
63
+ spec?: pulumi.Input<inputs.certmanager.v1.CertificateSpecArgs>;
64
+ /**
65
+ * Status of the Certificate.
66
+ * This is set and managed automatically.
67
+ * Read-only.
68
+ * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
69
+ */
70
+ status?: pulumi.Input<inputs.certmanager.v1.CertificateStatusArgs>;
71
+ }
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by crd2pulumi. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || function (mod) {
21
+ if (mod && mod.__esModule) return mod;
22
+ var result = {};
23
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
+ __setModuleDefault(result, mod);
25
+ return result;
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.Certificate = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("../../utilities"));
31
+ /**
32
+ * A Certificate resource should be created to ensure an up to date and signed
33
+ * X.509 certificate is stored in the Kubernetes Secret resource named in `spec.secretName`.
34
+ *
35
+ * The stored certificate will be renewed before it expires (as configured by `spec.renewBefore`).
36
+ */
37
+ class Certificate extends pulumi.CustomResource {
38
+ /**
39
+ * Get an existing Certificate resource's state with the given name, ID, and optional extra
40
+ * properties used to qualify the lookup.
41
+ *
42
+ * @param name The _unique_ name of the resulting resource.
43
+ * @param id The _unique_ provider ID of the resource to lookup.
44
+ * @param opts Optional settings to control the behavior of the CustomResource.
45
+ */
46
+ static get(name, id, opts) {
47
+ return new Certificate(name, undefined, { ...opts, id: id });
48
+ }
49
+ /** @internal */
50
+ static __pulumiType = 'kubernetes:cert-manager.io/v1:Certificate';
51
+ /**
52
+ * Returns true if the given object is an instance of Certificate. This is designed to work even
53
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
54
+ */
55
+ static isInstance(obj) {
56
+ if (obj === undefined || obj === null) {
57
+ return false;
58
+ }
59
+ return obj['__pulumiType'] === Certificate.__pulumiType;
60
+ }
61
+ apiVersion;
62
+ kind;
63
+ metadata;
64
+ /**
65
+ * Specification of the desired state of the Certificate resource.
66
+ * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
67
+ */
68
+ spec;
69
+ /**
70
+ * Status of the Certificate.
71
+ * This is set and managed automatically.
72
+ * Read-only.
73
+ * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
74
+ */
75
+ status;
76
+ /**
77
+ * Create a Certificate resource with the given unique name, arguments, and options.
78
+ *
79
+ * @param name The _unique_ name of the resource.
80
+ * @param args The arguments to use to populate this resource's properties.
81
+ * @param opts A bag of options that control this resource's behavior.
82
+ */
83
+ constructor(name, args, opts) {
84
+ let resourceInputs = {};
85
+ opts = opts || {};
86
+ if (!opts.id) {
87
+ resourceInputs["apiVersion"] = "cert-manager.io/v1";
88
+ resourceInputs["kind"] = "Certificate";
89
+ resourceInputs["metadata"] = args ? args.metadata : undefined;
90
+ resourceInputs["spec"] = args ? args.spec : undefined;
91
+ resourceInputs["status"] = args ? args.status : undefined;
92
+ }
93
+ else {
94
+ resourceInputs["apiVersion"] = undefined /*out*/;
95
+ resourceInputs["kind"] = undefined /*out*/;
96
+ resourceInputs["metadata"] = undefined /*out*/;
97
+ resourceInputs["spec"] = undefined /*out*/;
98
+ resourceInputs["status"] = undefined /*out*/;
99
+ }
100
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
101
+ super(Certificate.__pulumiType, name, resourceInputs, opts);
102
+ }
103
+ }
104
+ exports.Certificate = Certificate;
@@ -0,0 +1,76 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "../../types/input";
3
+ import * as outputs from "../../types/output";
4
+ import { ObjectMeta } from "../../meta/v1";
5
+ /**
6
+ * A CertificateRequest is used to request a signed certificate from one of the
7
+ * configured issuers.
8
+ *
9
+ * All fields within the CertificateRequest's `spec` are immutable after creation.
10
+ * A CertificateRequest will either succeed or fail, as denoted by its `Ready` status
11
+ * condition and its `status.failureTime` field.
12
+ *
13
+ * A CertificateRequest is a one-shot resource, meaning it represents a single
14
+ * point in time request for a certificate and cannot be re-used.
15
+ */
16
+ export declare class CertificateRequest extends pulumi.CustomResource {
17
+ /**
18
+ * Get an existing CertificateRequest resource's state with the given name, ID, and optional extra
19
+ * properties used to qualify the lookup.
20
+ *
21
+ * @param name The _unique_ name of the resulting resource.
22
+ * @param id The _unique_ provider ID of the resource to lookup.
23
+ * @param opts Optional settings to control the behavior of the CustomResource.
24
+ */
25
+ static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): CertificateRequest;
26
+ /** @internal */
27
+ static readonly __pulumiType = "kubernetes:cert-manager.io/v1:CertificateRequest";
28
+ /**
29
+ * Returns true if the given object is an instance of CertificateRequest. This is designed to work even
30
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
31
+ */
32
+ static isInstance(obj: any): obj is CertificateRequest;
33
+ readonly apiVersion: pulumi.Output<"cert-manager.io/v1" | undefined>;
34
+ readonly kind: pulumi.Output<"CertificateRequest" | undefined>;
35
+ readonly metadata: pulumi.Output<ObjectMeta | undefined>;
36
+ /**
37
+ * Specification of the desired state of the CertificateRequest resource.
38
+ * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
39
+ */
40
+ readonly spec: pulumi.Output<outputs.certmanager.v1.CertificateRequestSpec | undefined>;
41
+ /**
42
+ * Status of the CertificateRequest.
43
+ * This is set and managed automatically.
44
+ * Read-only.
45
+ * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
46
+ */
47
+ readonly status: pulumi.Output<outputs.certmanager.v1.CertificateRequestStatus | undefined>;
48
+ /**
49
+ * Create a CertificateRequest resource with the given unique name, arguments, and options.
50
+ *
51
+ * @param name The _unique_ name of the resource.
52
+ * @param args The arguments to use to populate this resource's properties.
53
+ * @param opts A bag of options that control this resource's behavior.
54
+ */
55
+ constructor(name: string, args?: CertificateRequestArgs, opts?: pulumi.CustomResourceOptions);
56
+ }
57
+ /**
58
+ * The set of arguments for constructing a CertificateRequest resource.
59
+ */
60
+ export interface CertificateRequestArgs {
61
+ apiVersion?: pulumi.Input<"cert-manager.io/v1">;
62
+ kind?: pulumi.Input<"CertificateRequest">;
63
+ metadata?: pulumi.Input<ObjectMeta>;
64
+ /**
65
+ * Specification of the desired state of the CertificateRequest resource.
66
+ * https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
67
+ */
68
+ spec?: pulumi.Input<inputs.certmanager.v1.CertificateRequestSpecArgs>;
69
+ /**
70
+ * Status of the CertificateRequest.
71
+ * This is set and managed automatically.
72
+ * Read-only.
73
+ * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
74
+ */
75
+ status?: pulumi.Input<inputs.certmanager.v1.CertificateRequestStatusArgs>;
76
+ }