@highstate/cert-manager 0.4.5

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.
Files changed (122) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +14 -0
  3. package/acme/index.ts +11 -0
  4. package/acme/v1/challenge.ts +101 -0
  5. package/acme/v1/challengeList.ts +107 -0
  6. package/acme/v1/challengePatch.ts +107 -0
  7. package/acme/v1/index.ts +60 -0
  8. package/acme/v1/order.ts +101 -0
  9. package/acme/v1/orderList.ts +107 -0
  10. package/acme/v1/orderPatch.ts +107 -0
  11. package/bin/acme/index.d.ts +2 -0
  12. package/bin/acme/index.js +9 -0
  13. package/bin/acme/index.js.map +1 -0
  14. package/bin/acme/v1/challenge.d.ts +63 -0
  15. package/bin/acme/v1/challenge.js +64 -0
  16. package/bin/acme/v1/challenge.js.map +1 -0
  17. package/bin/acme/v1/challengeList.d.ts +67 -0
  18. package/bin/acme/v1/challengeList.js +65 -0
  19. package/bin/acme/v1/challengeList.js.map +1 -0
  20. package/bin/acme/v1/challengePatch.d.ts +69 -0
  21. package/bin/acme/v1/challengePatch.js +70 -0
  22. package/bin/acme/v1/challengePatch.js.map +1 -0
  23. package/bin/acme/v1/index.d.ts +18 -0
  24. package/bin/acme/v1/index.js +42 -0
  25. package/bin/acme/v1/index.js.map +1 -0
  26. package/bin/acme/v1/order.d.ts +63 -0
  27. package/bin/acme/v1/order.js +64 -0
  28. package/bin/acme/v1/order.js.map +1 -0
  29. package/bin/acme/v1/orderList.d.ts +67 -0
  30. package/bin/acme/v1/orderList.js +65 -0
  31. package/bin/acme/v1/orderList.js.map +1 -0
  32. package/bin/acme/v1/orderPatch.d.ts +69 -0
  33. package/bin/acme/v1/orderPatch.js +70 -0
  34. package/bin/acme/v1/orderPatch.js.map +1 -0
  35. package/bin/cert_manager/index.d.ts +2 -0
  36. package/bin/cert_manager/index.js +9 -0
  37. package/bin/cert_manager/index.js.map +1 -0
  38. package/bin/cert_manager/v1/certificate.d.ts +66 -0
  39. package/bin/cert_manager/v1/certificate.js +67 -0
  40. package/bin/cert_manager/v1/certificate.js.map +1 -0
  41. package/bin/cert_manager/v1/certificateList.d.ts +67 -0
  42. package/bin/cert_manager/v1/certificateList.js +65 -0
  43. package/bin/cert_manager/v1/certificateList.js.map +1 -0
  44. package/bin/cert_manager/v1/certificatePatch.d.ts +72 -0
  45. package/bin/cert_manager/v1/certificatePatch.js +73 -0
  46. package/bin/cert_manager/v1/certificatePatch.js.map +1 -0
  47. package/bin/cert_manager/v1/certificateRequest.d.ts +71 -0
  48. package/bin/cert_manager/v1/certificateRequest.js +72 -0
  49. package/bin/cert_manager/v1/certificateRequest.js.map +1 -0
  50. package/bin/cert_manager/v1/certificateRequestList.d.ts +67 -0
  51. package/bin/cert_manager/v1/certificateRequestList.js +65 -0
  52. package/bin/cert_manager/v1/certificateRequestList.js.map +1 -0
  53. package/bin/cert_manager/v1/certificateRequestPatch.d.ts +77 -0
  54. package/bin/cert_manager/v1/certificateRequestPatch.js +78 -0
  55. package/bin/cert_manager/v1/certificateRequestPatch.js.map +1 -0
  56. package/bin/cert_manager/v1/clusterIssuer.d.ts +67 -0
  57. package/bin/cert_manager/v1/clusterIssuer.js +68 -0
  58. package/bin/cert_manager/v1/clusterIssuer.js.map +1 -0
  59. package/bin/cert_manager/v1/clusterIssuerList.d.ts +67 -0
  60. package/bin/cert_manager/v1/clusterIssuerList.js +65 -0
  61. package/bin/cert_manager/v1/clusterIssuerList.js.map +1 -0
  62. package/bin/cert_manager/v1/clusterIssuerPatch.d.ts +73 -0
  63. package/bin/cert_manager/v1/clusterIssuerPatch.js +74 -0
  64. package/bin/cert_manager/v1/clusterIssuerPatch.js.map +1 -0
  65. package/bin/cert_manager/v1/index.d.ts +36 -0
  66. package/bin/cert_manager/v1/index.js +66 -0
  67. package/bin/cert_manager/v1/index.js.map +1 -0
  68. package/bin/cert_manager/v1/issuer.d.ts +66 -0
  69. package/bin/cert_manager/v1/issuer.js +67 -0
  70. package/bin/cert_manager/v1/issuer.js.map +1 -0
  71. package/bin/cert_manager/v1/issuerList.d.ts +67 -0
  72. package/bin/cert_manager/v1/issuerList.js +65 -0
  73. package/bin/cert_manager/v1/issuerList.js.map +1 -0
  74. package/bin/cert_manager/v1/issuerPatch.d.ts +72 -0
  75. package/bin/cert_manager/v1/issuerPatch.js +73 -0
  76. package/bin/cert_manager/v1/issuerPatch.js.map +1 -0
  77. package/bin/index.d.ts +7 -0
  78. package/bin/index.js +26 -0
  79. package/bin/index.js.map +1 -0
  80. package/bin/meta/v1.d.ts +3 -0
  81. package/bin/meta/v1.js +3 -0
  82. package/bin/meta/v1.js.map +1 -0
  83. package/bin/package.json +42 -0
  84. package/bin/provider.d.ts +21 -0
  85. package/bin/provider.js +38 -0
  86. package/bin/provider.js.map +1 -0
  87. package/bin/types/index.d.ts +3 -0
  88. package/bin/types/index.js +11 -0
  89. package/bin/types/index.js.map +1 -0
  90. package/bin/types/input.d.ts +20729 -0
  91. package/bin/types/input.js +5 -0
  92. package/bin/types/input.js.map +1 -0
  93. package/bin/types/output.d.ts +21177 -0
  94. package/bin/types/output.js +5 -0
  95. package/bin/types/output.js.map +1 -0
  96. package/bin/utilities.d.ts +8 -0
  97. package/bin/utilities.js +102 -0
  98. package/bin/utilities.js.map +1 -0
  99. package/cert_manager/index.ts +11 -0
  100. package/cert_manager/v1/certificate.ts +104 -0
  101. package/cert_manager/v1/certificateList.ts +107 -0
  102. package/cert_manager/v1/certificatePatch.ts +110 -0
  103. package/cert_manager/v1/certificateRequest.ts +109 -0
  104. package/cert_manager/v1/certificateRequestList.ts +107 -0
  105. package/cert_manager/v1/certificateRequestPatch.ts +115 -0
  106. package/cert_manager/v1/clusterIssuer.ts +105 -0
  107. package/cert_manager/v1/clusterIssuerList.ts +107 -0
  108. package/cert_manager/v1/clusterIssuerPatch.ts +111 -0
  109. package/cert_manager/v1/index.ts +102 -0
  110. package/cert_manager/v1/issuer.ts +104 -0
  111. package/cert_manager/v1/issuerList.ts +107 -0
  112. package/cert_manager/v1/issuerPatch.ts +110 -0
  113. package/index.ts +32 -0
  114. package/meta/v1.ts +4 -0
  115. package/package.json +43 -0
  116. package/provider.ts +44 -0
  117. package/scripts/postinstall.js +13 -0
  118. package/tsconfig.json +45 -0
  119. package/types/index.ts +13 -0
  120. package/types/input.ts +21284 -0
  121. package/types/output.ts +21747 -0
  122. package/utilities.ts +97 -0
@@ -0,0 +1,5 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ //# sourceMappingURL=output.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"output.js","sourceRoot":"","sources":["../../types/output.ts"],"names":[],"mappings":";AAAA,0DAA0D;AAC1D,iFAAiF"}
@@ -0,0 +1,8 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ export declare function getEnv(...vars: string[]): string | undefined;
3
+ export declare function getEnvBoolean(...vars: string[]): boolean | undefined;
4
+ export declare function getEnvNumber(...vars: string[]): number | undefined;
5
+ export declare const getVersion: () => string;
6
+ export declare function callAsync<T>(tok: string, props: pulumi.Inputs, res?: pulumi.Resource, opts?: {
7
+ property?: string;
8
+ }): Promise<T>;
@@ -0,0 +1,102 @@
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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
5
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6
+ return new (P || (P = Promise))(function (resolve, reject) {
7
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
8
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
9
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
10
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
11
+ });
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.getVersion = void 0;
15
+ exports.getEnv = getEnv;
16
+ exports.getEnvBoolean = getEnvBoolean;
17
+ exports.getEnvNumber = getEnvNumber;
18
+ exports.resourceOptsDefaults = resourceOptsDefaults;
19
+ exports.lazyLoad = lazyLoad;
20
+ exports.callAsync = callAsync;
21
+ const runtime = require("@pulumi/pulumi/runtime");
22
+ function getEnv(...vars) {
23
+ for (const v of vars) {
24
+ const value = process.env[v];
25
+ if (value) {
26
+ return value;
27
+ }
28
+ }
29
+ return undefined;
30
+ }
31
+ function getEnvBoolean(...vars) {
32
+ const s = getEnv(...vars);
33
+ if (s !== undefined) {
34
+ // NOTE: these values are taken from https://golang.org/src/strconv/atob.go?s=351:391#L1, which is what
35
+ // Terraform uses internally when parsing boolean values.
36
+ if (["1", "t", "T", "true", "TRUE", "True"].find(v => v === s) !== undefined) {
37
+ return true;
38
+ }
39
+ if (["0", "f", "F", "false", "FALSE", "False"].find(v => v === s) !== undefined) {
40
+ return false;
41
+ }
42
+ }
43
+ return undefined;
44
+ }
45
+ function getEnvNumber(...vars) {
46
+ const s = getEnv(...vars);
47
+ if (s !== undefined) {
48
+ const f = parseFloat(s);
49
+ if (!isNaN(f)) {
50
+ return f;
51
+ }
52
+ }
53
+ return undefined;
54
+ }
55
+ const getVersion = () => "4.18.0";
56
+ exports.getVersion = getVersion;
57
+ function unusedGetVersion() {
58
+ let version = require('./package.json').version;
59
+ // Node allows for the version to be prefixed by a "v", while semver doesn't.
60
+ // If there is a v, strip it off.
61
+ if (version.indexOf('v') === 0) {
62
+ version = version.slice(1);
63
+ }
64
+ return version;
65
+ }
66
+ /** @internal */
67
+ function resourceOptsDefaults() {
68
+ return { version: (0, exports.getVersion)() };
69
+ }
70
+ /** @internal */
71
+ function lazyLoad(exports, props, loadModule) {
72
+ for (let property of props) {
73
+ Object.defineProperty(exports, property, {
74
+ enumerable: true,
75
+ get: function () {
76
+ return loadModule()[property];
77
+ },
78
+ });
79
+ }
80
+ }
81
+ function callAsync(tok, props, res, opts) {
82
+ return __awaiter(this, void 0, void 0, function* () {
83
+ const o = runtime.call(tok, props, res);
84
+ const value = yield o.promise(true /*withUnknowns*/);
85
+ const isKnown = yield o.isKnown;
86
+ const isSecret = yield o.isSecret;
87
+ const problem = !isKnown ? "an unknown value"
88
+ : isSecret ? "a secret value"
89
+ : undefined;
90
+ // Ingoring o.resources silently. They are typically non-empty, r.f() calls include r as a dependency.
91
+ if (problem) {
92
+ throw new Error(`Plain resource method "${tok}" incorrectly returned ${problem}. ` +
93
+ "This is an error in the provider, please report this to the provider developer.");
94
+ }
95
+ // Extract a single property if requested.
96
+ if (opts && opts.property) {
97
+ return value[opts.property];
98
+ }
99
+ return value;
100
+ });
101
+ }
102
+ //# sourceMappingURL=utilities.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";AAAA,0DAA0D;AAC1D,iFAAiF;;;;;;;;;;;;AAMjF,wBAQC;AAED,sCAaC;AAED,oCASC;AAeD,oDAEC;AAGD,4BASC;AAED,8BAwBC;AA5FD,kDAAkD;AAGlD,SAAgB,MAAM,CAAC,GAAG,IAAc;IACpC,KAAK,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC;QACnB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC7B,IAAI,KAAK,EAAE,CAAC;YACR,OAAO,KAAK,CAAC;QACjB,CAAC;IACL,CAAC;IACD,OAAO,SAAS,CAAC;AACrB,CAAC;AAED,SAAgB,aAAa,CAAC,GAAG,IAAc;IAC3C,MAAM,CAAC,GAAG,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC;IAC1B,IAAI,CAAC,KAAK,SAAS,EAAE,CAAC;QAClB,uGAAuG;QACvG,yDAAyD;QACzD,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,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
2
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
3
+
4
+ import * as utilities from "../utilities";
5
+
6
+ // Export sub-modules:
7
+ import * as v1 from "./v1";
8
+
9
+ export {
10
+ v1,
11
+ };
@@ -0,0 +1,104 @@
1
+ // *** WARNING: this file was generated by crd2pulumi. ***
2
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
3
+
4
+ import * as pulumi from "@pulumi/pulumi";
5
+ import * as inputs from "../../types/input";
6
+ import * as outputs from "../../types/output";
7
+ import * as utilities from "../../utilities";
8
+
9
+ import {ObjectMeta} from "../../meta/v1";
10
+
11
+ /**
12
+ * A Certificate resource should be created to ensure an up to date and signed
13
+ * X.509 certificate is stored in the Kubernetes Secret resource named in `spec.secretName`.
14
+ *
15
+ * The stored certificate will be renewed before it expires (as configured by `spec.renewBefore`).
16
+ */
17
+ export class Certificate extends pulumi.CustomResource {
18
+ /**
19
+ * Get an existing Certificate resource's state with the given name, ID, and optional extra
20
+ * properties used to qualify the lookup.
21
+ *
22
+ * @param name The _unique_ name of the resulting resource.
23
+ * @param id The _unique_ provider ID of the resource to lookup.
24
+ * @param opts Optional settings to control the behavior of the CustomResource.
25
+ */
26
+ public static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): Certificate {
27
+ return new Certificate(name, undefined as any, { ...opts, id: id });
28
+ }
29
+
30
+ /** @internal */
31
+ public static readonly __pulumiType = 'kubernetes:cert-manager.io/v1:Certificate';
32
+
33
+ /**
34
+ * Returns true if the given object is an instance of Certificate. This is designed to work even
35
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
36
+ */
37
+ public static isInstance(obj: any): obj is Certificate {
38
+ if (obj === undefined || obj === null) {
39
+ return false;
40
+ }
41
+ return obj['__pulumiType'] === Certificate.__pulumiType;
42
+ }
43
+
44
+ /**
45
+ * 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/sig-architecture/api-conventions.md#resources
46
+ */
47
+ public readonly apiVersion!: pulumi.Output<"cert-manager.io/v1">;
48
+ /**
49
+ * 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/sig-architecture/api-conventions.md#types-kinds
50
+ */
51
+ public readonly kind!: pulumi.Output<"Certificate">;
52
+ /**
53
+ * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
54
+ */
55
+ public readonly metadata!: pulumi.Output<ObjectMeta>;
56
+ public readonly spec!: pulumi.Output<outputs.cert_manager.v1.CertificateSpec>;
57
+ public /*out*/ readonly status!: pulumi.Output<outputs.cert_manager.v1.CertificateStatus>;
58
+
59
+ /**
60
+ * Create a Certificate resource with the given unique name, arguments, and options.
61
+ *
62
+ * @param name The _unique_ name of the resource.
63
+ * @param args The arguments to use to populate this resource's properties.
64
+ * @param opts A bag of options that control this resource's behavior.
65
+ */
66
+ constructor(name: string, args?: CertificateArgs, opts?: pulumi.CustomResourceOptions) {
67
+ let resourceInputs: pulumi.Inputs = {};
68
+ opts = opts || {};
69
+ if (!opts.id) {
70
+ resourceInputs["apiVersion"] = "cert-manager.io/v1";
71
+ resourceInputs["kind"] = "Certificate";
72
+ resourceInputs["metadata"] = args ? args.metadata : undefined;
73
+ resourceInputs["spec"] = args ? args.spec : undefined;
74
+ resourceInputs["status"] = undefined /*out*/;
75
+ } else {
76
+ resourceInputs["apiVersion"] = undefined /*out*/;
77
+ resourceInputs["kind"] = undefined /*out*/;
78
+ resourceInputs["metadata"] = undefined /*out*/;
79
+ resourceInputs["spec"] = undefined /*out*/;
80
+ resourceInputs["status"] = undefined /*out*/;
81
+ }
82
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
83
+ super(Certificate.__pulumiType, name, resourceInputs, opts);
84
+ }
85
+ }
86
+
87
+ /**
88
+ * The set of arguments for constructing a Certificate resource.
89
+ */
90
+ export interface CertificateArgs {
91
+ /**
92
+ * 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/sig-architecture/api-conventions.md#resources
93
+ */
94
+ apiVersion?: pulumi.Input<"cert-manager.io/v1">;
95
+ /**
96
+ * 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/sig-architecture/api-conventions.md#types-kinds
97
+ */
98
+ kind?: pulumi.Input<"Certificate">;
99
+ /**
100
+ * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
101
+ */
102
+ metadata?: pulumi.Input<ObjectMeta>;
103
+ spec?: pulumi.Input<inputs.cert_manager.v1.CertificateSpec>;
104
+ }
@@ -0,0 +1,107 @@
1
+ // *** WARNING: this file was generated by crd2pulumi. ***
2
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
3
+
4
+ import * as pulumi from "@pulumi/pulumi";
5
+ import * as inputs from "../../types/input";
6
+ import * as outputs from "../../types/output";
7
+ import * as utilities from "../../utilities";
8
+
9
+ import {ObjectMeta} from "../../meta/v1";
10
+
11
+ /**
12
+ * CertificateList is a list of Certificate
13
+ */
14
+ export class CertificateList extends pulumi.CustomResource {
15
+ /**
16
+ * Get an existing CertificateList resource's state with the given name, ID, and optional extra
17
+ * properties used to qualify the lookup.
18
+ *
19
+ * @param name The _unique_ name of the resulting resource.
20
+ * @param id The _unique_ provider ID of the resource to lookup.
21
+ * @param opts Optional settings to control the behavior of the CustomResource.
22
+ */
23
+ public static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): CertificateList {
24
+ return new CertificateList(name, undefined as any, { ...opts, id: id });
25
+ }
26
+
27
+ /** @internal */
28
+ public static readonly __pulumiType = 'kubernetes:cert-manager.io/v1:CertificateList';
29
+
30
+ /**
31
+ * Returns true if the given object is an instance of CertificateList. This is designed to work even
32
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
33
+ */
34
+ public static isInstance(obj: any): obj is CertificateList {
35
+ if (obj === undefined || obj === null) {
36
+ return false;
37
+ }
38
+ return obj['__pulumiType'] === CertificateList.__pulumiType;
39
+ }
40
+
41
+ /**
42
+ * 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/sig-architecture/api-conventions.md#resources
43
+ */
44
+ public readonly apiVersion!: pulumi.Output<"cert-manager.io/v1">;
45
+ /**
46
+ * List of certificates. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md
47
+ */
48
+ public readonly items!: pulumi.Output<outputs.cert_manager.v1.Certificate[]>;
49
+ /**
50
+ * 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/sig-architecture/api-conventions.md#types-kinds
51
+ */
52
+ public readonly kind!: pulumi.Output<"CertificateList">;
53
+ /**
54
+ * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
55
+ */
56
+ public readonly metadata!: pulumi.Output<outputs.meta.v1.ListMeta>;
57
+
58
+ /**
59
+ * Create a CertificateList resource with the given unique name, arguments, and options.
60
+ *
61
+ * @param name The _unique_ name of the resource.
62
+ * @param args The arguments to use to populate this resource's properties.
63
+ * @param opts A bag of options that control this resource's behavior.
64
+ */
65
+ constructor(name: string, args?: CertificateListArgs, opts?: pulumi.CustomResourceOptions) {
66
+ let resourceInputs: pulumi.Inputs = {};
67
+ opts = opts || {};
68
+ if (!opts.id) {
69
+ if ((!args || args.items === undefined) && !opts.urn) {
70
+ throw new Error("Missing required property 'items'");
71
+ }
72
+ resourceInputs["apiVersion"] = "cert-manager.io/v1";
73
+ resourceInputs["items"] = args ? args.items : undefined;
74
+ resourceInputs["kind"] = "CertificateList";
75
+ resourceInputs["metadata"] = args ? args.metadata : undefined;
76
+ } else {
77
+ resourceInputs["apiVersion"] = undefined /*out*/;
78
+ resourceInputs["items"] = undefined /*out*/;
79
+ resourceInputs["kind"] = undefined /*out*/;
80
+ resourceInputs["metadata"] = undefined /*out*/;
81
+ }
82
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
83
+ super(CertificateList.__pulumiType, name, resourceInputs, opts);
84
+ }
85
+ }
86
+
87
+ /**
88
+ * The set of arguments for constructing a CertificateList resource.
89
+ */
90
+ export interface CertificateListArgs {
91
+ /**
92
+ * 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/sig-architecture/api-conventions.md#resources
93
+ */
94
+ apiVersion?: pulumi.Input<"cert-manager.io/v1">;
95
+ /**
96
+ * List of certificates. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md
97
+ */
98
+ items: pulumi.Input<pulumi.Input<inputs.cert_manager.v1.Certificate>[]>;
99
+ /**
100
+ * 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/sig-architecture/api-conventions.md#types-kinds
101
+ */
102
+ kind?: pulumi.Input<"CertificateList">;
103
+ /**
104
+ * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
105
+ */
106
+ metadata?: pulumi.Input<inputs.meta.v1.ListMeta>;
107
+ }
@@ -0,0 +1,110 @@
1
+ // *** WARNING: this file was generated by crd2pulumi. ***
2
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
3
+
4
+ import * as pulumi from "@pulumi/pulumi";
5
+ import * as inputs from "../../types/input";
6
+ import * as outputs from "../../types/output";
7
+ import * as utilities from "../../utilities";
8
+
9
+ import {ObjectMetaPatch} from "../../meta/v1";
10
+
11
+ /**
12
+ * Patch resources are used to modify existing Kubernetes resources by using
13
+ * Server-Side Apply updates. The name of the resource must be specified, but all other properties are optional. More than
14
+ * one patch may be applied to the same resource, and a random FieldManager name will be used for each Patch resource.
15
+ * Conflicts will result in an error by default, but can be forced using the "pulumi.com/patchForce" annotation. See the
16
+ * [Server-Side Apply Docs](https://www.pulumi.com/registry/packages/kubernetes/how-to-guides/managing-resources-with-server-side-apply/) for
17
+ * additional information about using Server-Side Apply to manage Kubernetes resources with Pulumi.
18
+ * A Certificate resource should be created to ensure an up to date and signed
19
+ * X.509 certificate is stored in the Kubernetes Secret resource named in `spec.secretName`.
20
+ *
21
+ * The stored certificate will be renewed before it expires (as configured by `spec.renewBefore`).
22
+ */
23
+ export class CertificatePatch extends pulumi.CustomResource {
24
+ /**
25
+ * Get an existing CertificatePatch resource's state with the given name, ID, and optional extra
26
+ * properties used to qualify the lookup.
27
+ *
28
+ * @param name The _unique_ name of the resulting resource.
29
+ * @param id The _unique_ provider ID of the resource to lookup.
30
+ * @param opts Optional settings to control the behavior of the CustomResource.
31
+ */
32
+ public static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): CertificatePatch {
33
+ return new CertificatePatch(name, undefined as any, { ...opts, id: id });
34
+ }
35
+
36
+ /** @internal */
37
+ public static readonly __pulumiType = 'kubernetes:cert-manager.io/v1:CertificatePatch';
38
+
39
+ /**
40
+ * Returns true if the given object is an instance of CertificatePatch. This is designed to work even
41
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
42
+ */
43
+ public static isInstance(obj: any): obj is CertificatePatch {
44
+ if (obj === undefined || obj === null) {
45
+ return false;
46
+ }
47
+ return obj['__pulumiType'] === CertificatePatch.__pulumiType;
48
+ }
49
+
50
+ /**
51
+ * 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/sig-architecture/api-conventions.md#resources
52
+ */
53
+ public readonly apiVersion!: pulumi.Output<"cert-manager.io/v1">;
54
+ /**
55
+ * 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/sig-architecture/api-conventions.md#types-kinds
56
+ */
57
+ public readonly kind!: pulumi.Output<"Certificate">;
58
+ /**
59
+ * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
60
+ */
61
+ public readonly metadata!: pulumi.Output<ObjectMetaPatch>;
62
+ public readonly spec!: pulumi.Output<outputs.cert_manager.v1.CertificateSpecPatch>;
63
+ public /*out*/ readonly status!: pulumi.Output<outputs.cert_manager.v1.CertificateStatusPatch>;
64
+
65
+ /**
66
+ * Create a CertificatePatch resource with the given unique name, arguments, and options.
67
+ *
68
+ * @param name The _unique_ name of the resource.
69
+ * @param args The arguments to use to populate this resource's properties.
70
+ * @param opts A bag of options that control this resource's behavior.
71
+ */
72
+ constructor(name: string, args?: CertificatePatchArgs, opts?: pulumi.CustomResourceOptions) {
73
+ let resourceInputs: pulumi.Inputs = {};
74
+ opts = opts || {};
75
+ if (!opts.id) {
76
+ resourceInputs["apiVersion"] = "cert-manager.io/v1";
77
+ resourceInputs["kind"] = "Certificate";
78
+ resourceInputs["metadata"] = args ? args.metadata : undefined;
79
+ resourceInputs["spec"] = args ? args.spec : undefined;
80
+ resourceInputs["status"] = undefined /*out*/;
81
+ } else {
82
+ resourceInputs["apiVersion"] = undefined /*out*/;
83
+ resourceInputs["kind"] = undefined /*out*/;
84
+ resourceInputs["metadata"] = undefined /*out*/;
85
+ resourceInputs["spec"] = undefined /*out*/;
86
+ resourceInputs["status"] = undefined /*out*/;
87
+ }
88
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
89
+ super(CertificatePatch.__pulumiType, name, resourceInputs, opts);
90
+ }
91
+ }
92
+
93
+ /**
94
+ * The set of arguments for constructing a CertificatePatch resource.
95
+ */
96
+ export interface CertificatePatchArgs {
97
+ /**
98
+ * 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/sig-architecture/api-conventions.md#resources
99
+ */
100
+ apiVersion?: pulumi.Input<"cert-manager.io/v1">;
101
+ /**
102
+ * 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/sig-architecture/api-conventions.md#types-kinds
103
+ */
104
+ kind?: pulumi.Input<"Certificate">;
105
+ /**
106
+ * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
107
+ */
108
+ metadata?: pulumi.Input<ObjectMetaPatch>;
109
+ spec?: pulumi.Input<inputs.cert_manager.v1.CertificateSpecPatch>;
110
+ }
@@ -0,0 +1,109 @@
1
+ // *** WARNING: this file was generated by crd2pulumi. ***
2
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
3
+
4
+ import * as pulumi from "@pulumi/pulumi";
5
+ import * as inputs from "../../types/input";
6
+ import * as outputs from "../../types/output";
7
+ import * as utilities from "../../utilities";
8
+
9
+ import {ObjectMeta} from "../../meta/v1";
10
+
11
+ /**
12
+ * A CertificateRequest is used to request a signed certificate from one of the
13
+ * configured issuers.
14
+ *
15
+ * All fields within the CertificateRequest's `spec` are immutable after creation.
16
+ * A CertificateRequest will either succeed or fail, as denoted by its `Ready` status
17
+ * condition and its `status.failureTime` field.
18
+ *
19
+ * A CertificateRequest is a one-shot resource, meaning it represents a single
20
+ * point in time request for a certificate and cannot be re-used.
21
+ */
22
+ export class CertificateRequest extends pulumi.CustomResource {
23
+ /**
24
+ * Get an existing CertificateRequest resource's state with the given name, ID, and optional extra
25
+ * properties used to qualify the lookup.
26
+ *
27
+ * @param name The _unique_ name of the resulting resource.
28
+ * @param id The _unique_ provider ID of the resource to lookup.
29
+ * @param opts Optional settings to control the behavior of the CustomResource.
30
+ */
31
+ public static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): CertificateRequest {
32
+ return new CertificateRequest(name, undefined as any, { ...opts, id: id });
33
+ }
34
+
35
+ /** @internal */
36
+ public static readonly __pulumiType = 'kubernetes:cert-manager.io/v1:CertificateRequest';
37
+
38
+ /**
39
+ * Returns true if the given object is an instance of CertificateRequest. This is designed to work even
40
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
41
+ */
42
+ public static isInstance(obj: any): obj is CertificateRequest {
43
+ if (obj === undefined || obj === null) {
44
+ return false;
45
+ }
46
+ return obj['__pulumiType'] === CertificateRequest.__pulumiType;
47
+ }
48
+
49
+ /**
50
+ * 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/sig-architecture/api-conventions.md#resources
51
+ */
52
+ public readonly apiVersion!: pulumi.Output<"cert-manager.io/v1">;
53
+ /**
54
+ * 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/sig-architecture/api-conventions.md#types-kinds
55
+ */
56
+ public readonly kind!: pulumi.Output<"CertificateRequest">;
57
+ /**
58
+ * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
59
+ */
60
+ public readonly metadata!: pulumi.Output<ObjectMeta>;
61
+ public readonly spec!: pulumi.Output<outputs.cert_manager.v1.CertificateRequestSpec>;
62
+ public /*out*/ readonly status!: pulumi.Output<outputs.cert_manager.v1.CertificateRequestStatus>;
63
+
64
+ /**
65
+ * Create a CertificateRequest resource with the given unique name, arguments, and options.
66
+ *
67
+ * @param name The _unique_ name of the resource.
68
+ * @param args The arguments to use to populate this resource's properties.
69
+ * @param opts A bag of options that control this resource's behavior.
70
+ */
71
+ constructor(name: string, args?: CertificateRequestArgs, opts?: pulumi.CustomResourceOptions) {
72
+ let resourceInputs: pulumi.Inputs = {};
73
+ opts = opts || {};
74
+ if (!opts.id) {
75
+ resourceInputs["apiVersion"] = "cert-manager.io/v1";
76
+ resourceInputs["kind"] = "CertificateRequest";
77
+ resourceInputs["metadata"] = args ? args.metadata : undefined;
78
+ resourceInputs["spec"] = args ? args.spec : undefined;
79
+ resourceInputs["status"] = undefined /*out*/;
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(CertificateRequest.__pulumiType, name, resourceInputs, opts);
89
+ }
90
+ }
91
+
92
+ /**
93
+ * The set of arguments for constructing a CertificateRequest resource.
94
+ */
95
+ export interface CertificateRequestArgs {
96
+ /**
97
+ * 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/sig-architecture/api-conventions.md#resources
98
+ */
99
+ apiVersion?: pulumi.Input<"cert-manager.io/v1">;
100
+ /**
101
+ * 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/sig-architecture/api-conventions.md#types-kinds
102
+ */
103
+ kind?: pulumi.Input<"CertificateRequest">;
104
+ /**
105
+ * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
106
+ */
107
+ metadata?: pulumi.Input<ObjectMeta>;
108
+ spec?: pulumi.Input<inputs.cert_manager.v1.CertificateRequestSpec>;
109
+ }