@pulumi/kubernetes-coredns 0.0.1-alpha.102

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.
package/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # Pulumi Kubernetes CoreDNS Component
2
+
3
+ This repo contains the Pulumi CoreDNS component for Kubernetes. CoreDNS is a fast and flexible
4
+ DNS server, providing DNS services to your cluster.
5
+
6
+ This component wraps [the official CoreDNS Helm Chart](https://github.com/coredns/helm),
7
+ and offers a Pulumi-friendly and strongly-typed way to manage CoreDNS installations.
8
+
9
+ For examples of usage, see [the official documentation](https://coredns.io/),
10
+ or refer to [the examples](/examples) in this repo.
11
+
12
+ ## To Use
13
+
14
+ To use this component, first install the Pulumi Package:
15
+
16
+ Afterwards, import the library and instantiate it within your Pulumi program:
17
+
18
+ ## Configuration
19
+
20
+ This component supports all of the configuration options of the [official Helm chart](
21
+ https://github.com/coredns/helm#configuration), except that these
22
+ are strongly typed so you will get IDE support and static error checking.
23
+
24
+ The Helm deployment uses reasonable defaults, including the chart name and repo URL, however,
25
+ if you need to override them, you may do so using the `helmOptions` parameter. Refer to
26
+ [the API docs for the `kubernetes:helm/v3:Release` Pulumi type](
27
+ https://www.pulumi.com/docs/reference/pkg/kubernetes/helm/v3/release/#inputs) for a full set of choices.
28
+
29
+ For complete details, refer to the Pulumi Package details within the Pulumi Registry.
package/coreDNS.d.ts ADDED
@@ -0,0 +1,152 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ import * as pulumiKubernetes from "@pulumi/kubernetes";
5
+ /**
6
+ * Enable fast and flexible in-cluster DNS.
7
+ */
8
+ export declare class CoreDNS extends pulumi.ComponentResource {
9
+ /**
10
+ * Returns true if the given object is an instance of CoreDNS. This is designed to work even
11
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
12
+ */
13
+ static isInstance(obj: any): obj is CoreDNS;
14
+ /**
15
+ * Detailed information about the status of the underlying Helm deployment.
16
+ */
17
+ readonly status: pulumi.Output<outputs.ReleaseStatus>;
18
+ /**
19
+ * Create a CoreDNS resource with the given unique name, arguments, and options.
20
+ *
21
+ * @param name The _unique_ name of the resource.
22
+ * @param args The arguments to use to populate this resource's properties.
23
+ * @param opts A bag of options that control this resource's behavior.
24
+ */
25
+ constructor(name: string, args?: CoreDNSArgs, opts?: pulumi.ComponentResourceOptions);
26
+ }
27
+ /**
28
+ * The set of arguments for constructing a CoreDNS resource.
29
+ */
30
+ export interface CoreDNSArgs {
31
+ /**
32
+ * Affinity settings for pod assignment.
33
+ */
34
+ affinity?: pulumi.Input<pulumiKubernetes.types.input.core.v1.Affinity>;
35
+ /**
36
+ * Configue a cluster-proportional-autoscaler for coredns. See https://github.com/kubernetes-incubator/cluster-proportional-autoscaler.
37
+ */
38
+ autoscaler?: pulumi.Input<inputs.CoreDNSAutoscalerArgs>;
39
+ /**
40
+ * Create HorizontalPodAutoscaler object.
41
+ */
42
+ autoscaling?: pulumi.Input<pulumiKubernetes.types.input.autoscaling.v2beta2.HorizontalPodAutoscalerSpec>;
43
+ /**
44
+ * Configure the CoreDNS Deployment.
45
+ */
46
+ deployment?: pulumi.Input<inputs.CoreDNSDeploymentArgs>;
47
+ /**
48
+ * Optional array of secrets to mount inside coredns container. Possible usecase: need for secure connection with etcd backend. Optional array of mount points for extraVolumes.
49
+ */
50
+ extraSecrets?: pulumi.Input<pulumi.Input<pulumiKubernetes.types.input.core.v1.VolumeMount>[]>;
51
+ /**
52
+ * Optional array of mount points for extraVolumes.
53
+ */
54
+ extraVolumeMounts?: pulumi.Input<pulumi.Input<pulumiKubernetes.types.input.core.v1.VolumeMount>[]>;
55
+ /**
56
+ * Optional array of extra volumes to create.
57
+ */
58
+ extraVolumes?: pulumi.Input<pulumi.Input<pulumiKubernetes.types.input.core.v1.Volume>[]>;
59
+ /**
60
+ * HelmOptions is an escape hatch that lets the end user control any aspect of the Helm deployment. This exposes the entirety of the underlying Helm Release component args.
61
+ */
62
+ helmOptions?: pulumi.Input<inputs.ReleaseArgs>;
63
+ /**
64
+ * Alternative configuration for HPA deployment if wanted.
65
+ */
66
+ hpa?: pulumi.Input<inputs.CoreDNSHPAArgs>;
67
+ /**
68
+ * The image to pull.
69
+ */
70
+ image?: pulumi.Input<inputs.CoreDNSImageArgs>;
71
+ /**
72
+ * Specifies whether chart should be deployed as cluster-service or normal k8s app.
73
+ */
74
+ isClusterService?: pulumi.Input<boolean>;
75
+ /**
76
+ * Configure the liveness probe. To use the livenessProbe, the health plugin needs to be enabled in CoreDNS' server config.
77
+ */
78
+ livenessProbe?: pulumi.Input<pulumiKubernetes.types.input.core.v1.Probe>;
79
+ /**
80
+ * Node labels for pod assignment.
81
+ */
82
+ nodeSelector?: pulumi.Input<{
83
+ [key: string]: pulumi.Input<string>;
84
+ }>;
85
+ /**
86
+ * Optional Pod only Annotations.
87
+ */
88
+ podAnnotations?: pulumi.Input<{
89
+ [key: string]: pulumi.Input<string>;
90
+ }>;
91
+ /**
92
+ * Optional PodDisruptionBudget.
93
+ */
94
+ podDisruptionBudget?: pulumi.Input<pulumiKubernetes.types.input.policy.v1.PodDisruptionBudgetSpec>;
95
+ /**
96
+ * Under heavy load it takes more that standard time to remove Pod endpoint from a cluster. This will delay termination of our pod by `preStopSleep`. To make sure kube-proxy has enough time to catch up.
97
+ */
98
+ preStopSleep?: pulumi.Input<number>;
99
+ /**
100
+ * Optional priority class to be used for the coredns pods. Used for autoscaler if autoscaler.priorityClassName not set.
101
+ */
102
+ priorityClassName?: pulumi.Input<string>;
103
+ /**
104
+ * Configure Prometheus installation.
105
+ */
106
+ prometheus?: pulumi.Input<inputs.CoreDNSPrometheusArgs>;
107
+ /**
108
+ * Configure CoreDNS RBAC resources.
109
+ */
110
+ rbac?: pulumi.Input<inputs.CoreDNSRBACArgs>;
111
+ /**
112
+ * Configure the readiness probe. To use the readinessProbe, the health plugin needs to be enabled in CoreDNS' server config.
113
+ */
114
+ readinessProbe?: pulumi.Input<pulumiKubernetes.types.input.core.v1.Probe>;
115
+ /**
116
+ * Number of replicas.
117
+ */
118
+ replicaCount?: pulumi.Input<number>;
119
+ /**
120
+ * Container resource limits.
121
+ */
122
+ resources?: pulumi.Input<pulumiKubernetes.types.input.core.v1.ResourceRequirements>;
123
+ rollingUpdate?: pulumi.Input<pulumiKubernetes.types.input.apps.v1.RollingUpdateDeployment>;
124
+ /**
125
+ * Configuration for CoreDNS and plugins. Default zone is what Kubernetes recommends: https://kubernetes.io/docs/tasks/administer-cluster/dns-custom-nameservers/#coredns-configmap-options
126
+ */
127
+ servers?: pulumi.Input<pulumi.Input<inputs.CoreDNSServerArgs>[]>;
128
+ /**
129
+ * Configure CoreDNS Service parameters.
130
+ */
131
+ service?: pulumi.Input<inputs.CoreDNSServiceArgs>;
132
+ /**
133
+ * Configure CoreDNS Service Account.
134
+ */
135
+ serviceAccount?: pulumi.Input<inputs.CoreDNSServiceAccountArgs>;
136
+ /**
137
+ * Kubernetes Service type.
138
+ */
139
+ serviceType?: pulumi.Input<string>;
140
+ /**
141
+ * Optional duration in seconds the pod needs to terminate gracefully.
142
+ */
143
+ terminationGracePeriodSeconds?: pulumi.Input<number>;
144
+ /**
145
+ * Tolerations for pod assignment.
146
+ */
147
+ tolerations?: pulumi.Input<pulumi.Input<pulumiKubernetes.types.input.core.v1.Toleration>[]>;
148
+ /**
149
+ * Configure custom Zone files.
150
+ */
151
+ zoneFiles?: pulumi.Input<pulumi.Input<inputs.CoreDNSZoneFileArgs>[]>;
152
+ }
package/coreDNS.js ADDED
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.CoreDNS = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Enable fast and flexible in-cluster DNS.
10
+ */
11
+ class CoreDNS extends pulumi.ComponentResource {
12
+ /**
13
+ * Returns true if the given object is an instance of CoreDNS. This is designed to work even
14
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
15
+ */
16
+ static isInstance(obj) {
17
+ if (obj === undefined || obj === null) {
18
+ return false;
19
+ }
20
+ return obj['__pulumiType'] === CoreDNS.__pulumiType;
21
+ }
22
+ /**
23
+ * Create a CoreDNS resource with the given unique name, arguments, and options.
24
+ *
25
+ * @param name The _unique_ name of the resource.
26
+ * @param args The arguments to use to populate this resource's properties.
27
+ * @param opts A bag of options that control this resource's behavior.
28
+ */
29
+ constructor(name, args, opts) {
30
+ let resourceInputs = {};
31
+ opts = opts || {};
32
+ if (!opts.id) {
33
+ resourceInputs["affinity"] = args ? args.affinity : undefined;
34
+ resourceInputs["autoscaler"] = args ? args.autoscaler : undefined;
35
+ resourceInputs["autoscaling"] = args ? args.autoscaling : undefined;
36
+ resourceInputs["deployment"] = args ? args.deployment : undefined;
37
+ resourceInputs["extraSecrets"] = args ? args.extraSecrets : undefined;
38
+ resourceInputs["extraVolumeMounts"] = args ? args.extraVolumeMounts : undefined;
39
+ resourceInputs["extraVolumes"] = args ? args.extraVolumes : undefined;
40
+ resourceInputs["helmOptions"] = args ? args.helmOptions : undefined;
41
+ resourceInputs["hpa"] = args ? args.hpa : undefined;
42
+ resourceInputs["image"] = args ? args.image : undefined;
43
+ resourceInputs["isClusterService"] = args ? args.isClusterService : undefined;
44
+ resourceInputs["livenessProbe"] = args ? args.livenessProbe : undefined;
45
+ resourceInputs["nodeSelector"] = args ? args.nodeSelector : undefined;
46
+ resourceInputs["podAnnotations"] = args ? args.podAnnotations : undefined;
47
+ resourceInputs["podDisruptionBudget"] = args ? args.podDisruptionBudget : undefined;
48
+ resourceInputs["preStopSleep"] = args ? args.preStopSleep : undefined;
49
+ resourceInputs["priorityClassName"] = args ? args.priorityClassName : undefined;
50
+ resourceInputs["prometheus"] = args ? args.prometheus : undefined;
51
+ resourceInputs["rbac"] = args ? args.rbac : undefined;
52
+ resourceInputs["readinessProbe"] = args ? args.readinessProbe : undefined;
53
+ resourceInputs["replicaCount"] = args ? args.replicaCount : undefined;
54
+ resourceInputs["resources"] = args ? args.resources : undefined;
55
+ resourceInputs["rollingUpdate"] = args ? args.rollingUpdate : undefined;
56
+ resourceInputs["servers"] = args ? args.servers : undefined;
57
+ resourceInputs["service"] = args ? args.service : undefined;
58
+ resourceInputs["serviceAccount"] = args ? args.serviceAccount : undefined;
59
+ resourceInputs["serviceType"] = args ? args.serviceType : undefined;
60
+ resourceInputs["terminationGracePeriodSeconds"] = args ? args.terminationGracePeriodSeconds : undefined;
61
+ resourceInputs["tolerations"] = args ? args.tolerations : undefined;
62
+ resourceInputs["zoneFiles"] = args ? args.zoneFiles : undefined;
63
+ resourceInputs["status"] = undefined /*out*/;
64
+ }
65
+ else {
66
+ resourceInputs["status"] = undefined /*out*/;
67
+ }
68
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
69
+ super(CoreDNS.__pulumiType, name, resourceInputs, opts, true /*remote*/);
70
+ }
71
+ }
72
+ exports.CoreDNS = CoreDNS;
73
+ /** @internal */
74
+ CoreDNS.__pulumiType = 'kubernetes-coredns:index:CoreDNS';
75
+ //# sourceMappingURL=coreDNS.js.map
package/coreDNS.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"coreDNS.js","sourceRoot":"","sources":["../coreDNS.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAIzC;;GAEG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,iBAAiB;IAIjD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI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AAS,CAAC,OAAO,CAAC;SAChD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;IAC7E,CAAC;;AAnEL,0BAoEC;AAnEG,gBAAgB;AACO,oBAAY,GAAG,kCAAkC,CAAC"}
package/index.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ export { CoreDNSArgs } from "./coreDNS";
2
+ export type CoreDNS = import("./coreDNS").CoreDNS;
3
+ export declare const CoreDNS: typeof import("./coreDNS").CoreDNS;
4
+ export { ProviderArgs } from "./provider";
5
+ export type Provider = import("./provider").Provider;
6
+ export declare const Provider: typeof import("./provider").Provider;
7
+ import * as types from "./types";
8
+ export { types, };
package/index.js ADDED
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.types = exports.Provider = exports.CoreDNS = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ exports.CoreDNS = null;
9
+ utilities.lazyLoad(exports, ["CoreDNS"], () => require("./coreDNS"));
10
+ exports.Provider = null;
11
+ utilities.lazyLoad(exports, ["Provider"], () => require("./provider"));
12
+ // Export sub-modules:
13
+ const types = require("./types");
14
+ exports.types = types;
15
+ const _module = {
16
+ version: utilities.getVersion(),
17
+ construct: (name, type, urn) => {
18
+ switch (type) {
19
+ case "kubernetes-coredns:index:CoreDNS":
20
+ return new exports.CoreDNS(name, undefined, { urn });
21
+ default:
22
+ throw new Error(`unknown resource type ${type}`);
23
+ }
24
+ },
25
+ };
26
+ pulumi.runtime.registerResourceModule("kubernetes-coredns", "index", _module);
27
+ pulumi.runtime.registerResourcePackage("kubernetes-coredns", {
28
+ version: utilities.getVersion(),
29
+ constructProvider: (name, type, urn) => {
30
+ if (type !== "pulumi:providers:kubernetes-coredns") {
31
+ throw new Error(`unknown provider type ${type}`);
32
+ }
33
+ return new exports.Provider(name, undefined, { urn });
34
+ },
35
+ });
36
+ //# sourceMappingURL=index.js.map
package/index.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAK5B,QAAA,OAAO,GAAuC,IAAW,CAAC;AACvE,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,SAAS,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC;AAIxD,QAAA,QAAQ,GAAyC,IAAW,CAAC;AAC1E,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC;AAGvE,sBAAsB;AACtB,iCAAiC;AAG7B,sBAAK;AAGT,MAAM,OAAO,GAAG;IACZ,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,SAAS,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAAmB,EAAE;QACpE,QAAQ,IAAI,EAAE;YACV,KAAK,kCAAkC;gBACnC,OAAO,IAAI,eAAO,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACrD;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,oBAAoB,EAAE,OAAO,EAAE,OAAO,CAAC,CAAA;AAC7E,MAAM,CAAC,OAAO,CAAC,uBAAuB,CAAC,oBAAoB,EAAE;IACzD,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,iBAAiB,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAA2B,EAAE;QACpF,IAAI,IAAI,KAAK,qCAAqC,EAAE;YAChD,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACpD;QACD,OAAO,IAAI,gBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;IACvD,CAAC;CACJ,CAAC,CAAC"}
package/package.json ADDED
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "@pulumi/kubernetes-coredns",
3
+ "version": "0.0.1-alpha.102",
4
+ "keywords": [
5
+ "pulumi",
6
+ "kubernetes",
7
+ "coredns",
8
+ "kind/component",
9
+ "category/infrastructure"
10
+ ],
11
+ "homepage": "https://pulumi.io",
12
+ "repository": "https://github.com/pulumi/pulumi-kubernetes-coredns",
13
+ "license": "Apache-2.0",
14
+ "scripts": {
15
+ "build": "tsc",
16
+ "install": "node scripts/install-pulumi-plugin.js resource kubernetes-coredns 0.0.1-alpha.102"
17
+ },
18
+ "dependencies": {
19
+ "@pulumi/kubernetes": "^4.0.0",
20
+ "@pulumi/pulumi": "^3.0.0"
21
+ },
22
+ "devDependencies": {
23
+ "@types/node": "^14",
24
+ "typescript": "^4.3.5"
25
+ },
26
+ "pulumi": {
27
+ "resource": true,
28
+ "name": "kubernetes-coredns",
29
+ "version": "0.0.1-alpha.102"
30
+ }
31
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "@pulumi/kubernetes-coredns",
3
+ "version": "0.0.1-alpha.102",
4
+ "keywords": [
5
+ "pulumi",
6
+ "kubernetes",
7
+ "coredns",
8
+ "kind/component",
9
+ "category/infrastructure"
10
+ ],
11
+ "homepage": "https://pulumi.io",
12
+ "repository": "https://github.com/pulumi/pulumi-kubernetes-coredns",
13
+ "license": "Apache-2.0",
14
+ "scripts": {
15
+ "build": "tsc"
16
+ },
17
+ "dependencies": {
18
+ "@pulumi/kubernetes": "^4.0.0",
19
+ "@pulumi/pulumi": "^3.0.0"
20
+ },
21
+ "devDependencies": {
22
+ "@types/node": "^14",
23
+ "typescript": "^4.3.5"
24
+ },
25
+ "pulumi": {
26
+ "resource": true,
27
+ "name": "kubernetes-coredns",
28
+ "version": "0.0.1-alpha.102"
29
+ }
30
+ }
package/provider.d.ts ADDED
@@ -0,0 +1,21 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ export declare class Provider extends pulumi.ProviderResource {
3
+ /**
4
+ * Returns true if the given object is an instance of Provider. This is designed to work even
5
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
6
+ */
7
+ static isInstance(obj: any): obj is Provider;
8
+ /**
9
+ * Create a Provider resource with the given unique name, arguments, and options.
10
+ *
11
+ * @param name The _unique_ name of the resource.
12
+ * @param args The arguments to use to populate this resource's properties.
13
+ * @param opts A bag of options that control this resource's behavior.
14
+ */
15
+ constructor(name: string, args?: ProviderArgs, opts?: pulumi.ResourceOptions);
16
+ }
17
+ /**
18
+ * The set of arguments for constructing a Provider resource.
19
+ */
20
+ export interface ProviderArgs {
21
+ }
package/provider.js ADDED
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.Provider = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ class Provider extends pulumi.ProviderResource {
9
+ /**
10
+ * Returns true if the given object is an instance of Provider. This is designed to work even
11
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
12
+ */
13
+ static isInstance(obj) {
14
+ if (obj === undefined || obj === null) {
15
+ return false;
16
+ }
17
+ return obj['__pulumiType'] === "pulumi:providers:" + Provider.__pulumiType;
18
+ }
19
+ /**
20
+ * Create a Provider resource with the given unique name, arguments, and options.
21
+ *
22
+ * @param name The _unique_ name of the resource.
23
+ * @param args The arguments to use to populate this resource's properties.
24
+ * @param opts A bag of options that control this resource's behavior.
25
+ */
26
+ constructor(name, args, opts) {
27
+ let resourceInputs = {};
28
+ opts = opts || {};
29
+ {
30
+ }
31
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
32
+ super(Provider.__pulumiType, name, resourceInputs, opts);
33
+ }
34
+ }
35
+ exports.Provider = Provider;
36
+ /** @internal */
37
+ Provider.__pulumiType = 'kubernetes-coredns';
38
+ //# sourceMappingURL=provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAIjD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,mBAAmB,GAAG,QAAQ,CAAC,YAAY,CAAC;IAC/E,CAAC;IAGD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAmB,EAAE,IAA6B;QACxE,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB;SACC;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AA9BL,4BA+BC;AA9BG,gBAAgB;AACO,qBAAY,GAAG,oBAAoB,CAAC"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var childProcess = require("child_process");
3
+
4
+ var args = process.argv.slice(2);
5
+ var res = childProcess.spawnSync("pulumi", ["plugin", "install"].concat(args), {
6
+ stdio: ["ignore", "inherit", "inherit"]
7
+ });
8
+
9
+ if (res.error && res.error.code === "ENOENT") {
10
+ console.error("\nThere was an error installing the resource provider plugin. " +
11
+ "It looks like `pulumi` is not installed on your system. " +
12
+ "Please visit https://pulumi.com/ to install the Pulumi CLI.\n" +
13
+ "You may try manually installing the plugin by running " +
14
+ "`pulumi plugin install " + args.join(" ") + "`");
15
+ } else if (res.error || res.status !== 0) {
16
+ console.error("\nThere was an error installing the resource provider plugin. " +
17
+ "You may try to manually installing the plugin by running " +
18
+ "`pulumi plugin install " + args.join(" ") + "`");
19
+ }
20
+
21
+ process.exit(0);
@@ -0,0 +1,3 @@
1
+ import * as input from "./input";
2
+ import * as output from "./output";
3
+ export { input, output, };
package/types/index.js ADDED
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.output = exports.input = void 0;
6
+ // Export sub-modules:
7
+ const input = require("./input");
8
+ exports.input = input;
9
+ const output = require("./output");
10
+ exports.output = output;
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAIjF,sBAAsB;AACtB,iCAAiC;AAI7B,sBAAK;AAHT,mCAAmC;AAI/B,wBAAM"}
@@ -0,0 +1,379 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "../types/input";
3
+ import * as pulumiKubernetes from "@pulumi/kubernetes";
4
+ export interface CoreDNSAutoscalerArgs {
5
+ /**
6
+ * Number of cores in the cluster per coredns replica.
7
+ */
8
+ coresPerReplica?: pulumi.Input<number>;
9
+ /**
10
+ * Enabled the cluster-proportional-autoscaler.
11
+ */
12
+ enabled?: pulumi.Input<boolean>;
13
+ /**
14
+ * The image to pull from for the autoscaler.
15
+ */
16
+ image?: pulumi.Input<inputs.CoreDNSImageArgs>;
17
+ /**
18
+ * Whether to include unschedulable nodes in the nodes/cores calculations - this requires version 1.8.0+ of the autoscaler.
19
+ */
20
+ includeUnschedulableNodes?: pulumi.Input<boolean>;
21
+ /**
22
+ * Max size of replicaCount
23
+ */
24
+ max?: pulumi.Input<number>;
25
+ /**
26
+ * Min size of replicaCount
27
+ */
28
+ min?: pulumi.Input<number>;
29
+ /**
30
+ * Number of nodes in the cluster per coredns replica.
31
+ */
32
+ nodesPerReplica?: pulumi.Input<number>;
33
+ /**
34
+ * If true does not allow single points of failure to form.
35
+ */
36
+ preventSinglePointFailure?: pulumi.Input<boolean>;
37
+ }
38
+ export interface CoreDNSDeploymentArgs {
39
+ /**
40
+ * Optionally disable the main deployment and its respective resources.
41
+ */
42
+ enabled?: pulumi.Input<boolean>;
43
+ /**
44
+ * Name of the deployment if deployment.enabled is true. Otherwise the name of an existing deployment for the autoscaler or HPA to target.
45
+ */
46
+ name?: pulumi.Input<string>;
47
+ }
48
+ export interface CoreDNSHPAArgs {
49
+ enabled?: pulumi.Input<boolean>;
50
+ maxReplicas?: pulumi.Input<number>;
51
+ metrics?: pulumi.Input<pulumiKubernetes.types.input.autoscaling.v2beta2.MetricSpec>;
52
+ minReplicas?: pulumi.Input<number>;
53
+ }
54
+ export interface CoreDNSImageArgs {
55
+ /**
56
+ * Image pull policy.
57
+ */
58
+ pullPolicy?: pulumi.Input<string>;
59
+ /**
60
+ * Specify container image pull secrets.
61
+ */
62
+ pullSecrets?: pulumi.Input<pulumi.Input<string>[]>;
63
+ /**
64
+ * The image repository to pull from.
65
+ */
66
+ repository?: pulumi.Input<string>;
67
+ /**
68
+ * The image tag to pull from.
69
+ */
70
+ tag?: pulumi.Input<string>;
71
+ }
72
+ export interface CoreDNSPrometheusArgs {
73
+ monitor?: pulumi.Input<inputs.CoreDNSPrometheusMonitorArgs>;
74
+ service?: pulumi.Input<inputs.CoreDNSPrometheusServiceArgs>;
75
+ }
76
+ export interface CoreDNSPrometheusMonitorArgs {
77
+ /**
78
+ * Additional labels that can be used so ServiceMonitor will be discovered by Prometheus.
79
+ */
80
+ additionalLabels?: pulumi.Input<{
81
+ [key: string]: pulumi.Input<string>;
82
+ }>;
83
+ /**
84
+ * Set this to true to create ServiceMonitor for Prometheus operator.
85
+ */
86
+ enabled?: pulumi.Input<boolean>;
87
+ /**
88
+ * Selector to select which namespaces the Endpoints objects are discovered from.
89
+ */
90
+ namespace?: pulumi.Input<string>;
91
+ }
92
+ export interface CoreDNSPrometheusServiceArgs {
93
+ /**
94
+ * Annotations to add to the metrics Service.
95
+ */
96
+ annotations?: pulumi.Input<{
97
+ [key: string]: pulumi.Input<string>;
98
+ }>;
99
+ /**
100
+ * Set this to true to create Service for Prometheus metrics.
101
+ */
102
+ enabled?: pulumi.Input<boolean>;
103
+ }
104
+ export interface CoreDNSRBACArgs {
105
+ /**
106
+ * If true, create & use RBAC resources
107
+ */
108
+ create?: pulumi.Input<boolean>;
109
+ /**
110
+ * The name of the ServiceAccount to use. If not set and create is true, a name is generated using the fullname template.
111
+ */
112
+ name?: pulumi.Input<string>;
113
+ /**
114
+ * If true, create and use PodSecurityPolicy
115
+ */
116
+ pspEnable?: pulumi.Input<boolean>;
117
+ }
118
+ export interface CoreDNSServerArgs {
119
+ /**
120
+ * the plugins to use for this server block.
121
+ */
122
+ plugins?: pulumi.Input<pulumi.Input<inputs.CoreDNSServerPluginArgs>[]>;
123
+ /**
124
+ * optional, defaults to "" (which equals 53 in CoreDNS).
125
+ */
126
+ port?: pulumi.Input<number>;
127
+ /**
128
+ * the `zones` block can be left out entirely, defaults to "."
129
+ */
130
+ zones?: pulumi.Input<pulumi.Input<inputs.CoreDNSServerZoneArgs>[]>;
131
+ }
132
+ export interface CoreDNSServerPluginArgs {
133
+ /**
134
+ * if the plugin supports extra block style config, supply it here
135
+ */
136
+ configBlock?: pulumi.Input<string>;
137
+ /**
138
+ * name of plugin, if used multiple times ensure that the plugin supports it!
139
+ */
140
+ name?: pulumi.Input<string>;
141
+ /**
142
+ * list of parameters after the plugin
143
+ */
144
+ parameters?: pulumi.Input<string>;
145
+ }
146
+ export interface CoreDNSServerZoneArgs {
147
+ /**
148
+ * optional, defaults to "" (which equals "dns://" in CoreDNS)
149
+ */
150
+ scheme?: pulumi.Input<string>;
151
+ /**
152
+ * set this parameter to optionally expose the port on tcp as well as udp for the DNS protocol. Note that this will not work if you are also exposing tls or grpc on the same server.
153
+ */
154
+ use_tcp?: pulumi.Input<boolean>;
155
+ /**
156
+ * optional, defaults to "."
157
+ */
158
+ zone?: pulumi.Input<string>;
159
+ }
160
+ export interface CoreDNSServiceArgs {
161
+ /**
162
+ * Annotations to add to service.
163
+ */
164
+ annotations?: pulumi.Input<{
165
+ [key: string]: pulumi.Input<string>;
166
+ }>;
167
+ /**
168
+ * IP address to assign to service.
169
+ */
170
+ clusterIP?: pulumi.Input<string>;
171
+ /**
172
+ * External IP addresses.
173
+ */
174
+ externalIPs?: pulumi.Input<pulumi.Input<string>[]>;
175
+ /**
176
+ * Enable client source IP preservation.
177
+ */
178
+ externalTrafficPolicy?: pulumi.Input<string>;
179
+ /**
180
+ * IP address to assign to load balancer (if supported).
181
+ */
182
+ loadBalancerIP?: pulumi.Input<string>;
183
+ /**
184
+ * The name of the Service. If not set, a name is generated using the fullname template.
185
+ */
186
+ name?: pulumi.Input<string>;
187
+ }
188
+ export interface CoreDNSServiceAccountArgs {
189
+ annotations?: pulumi.Input<{
190
+ [key: string]: pulumi.Input<string>;
191
+ }>;
192
+ /**
193
+ * If true, create & use serviceAccount.
194
+ */
195
+ create?: pulumi.Input<boolean>;
196
+ /**
197
+ * The name of the ServiceAccount to use. If not set and create is true, a name is generated using the fullname template
198
+ */
199
+ name?: pulumi.Input<string>;
200
+ }
201
+ export interface CoreDNSZoneFileArgs {
202
+ contents?: pulumi.Input<string>;
203
+ domain?: pulumi.Input<string>;
204
+ string?: pulumi.Input<string>;
205
+ }
206
+ /**
207
+ * A Release is an instance of a chart running in a Kubernetes cluster.
208
+ * A Chart is a Helm package. It contains all of the resource definitions necessary to run an application, tool, or service inside of a Kubernetes cluster.
209
+ * Note - Helm Release is currently in BETA and may change. Use in production environment is discouraged.
210
+ */
211
+ export interface ReleaseArgs {
212
+ /**
213
+ * If set, installation process purges chart on fail. `skipAwait` will be disabled automatically if atomic is used.
214
+ */
215
+ atomic?: pulumi.Input<boolean>;
216
+ /**
217
+ * Chart name to be installed. A path may be used.
218
+ */
219
+ chart?: pulumi.Input<string>;
220
+ /**
221
+ * Allow deletion of new resources created in this upgrade when upgrade fails.
222
+ */
223
+ cleanupOnFail?: pulumi.Input<boolean>;
224
+ /**
225
+ * Create the namespace if it does not exist.
226
+ */
227
+ createNamespace?: pulumi.Input<boolean>;
228
+ /**
229
+ * Run helm dependency update before installing the chart.
230
+ */
231
+ dependencyUpdate?: pulumi.Input<boolean>;
232
+ /**
233
+ * Add a custom description
234
+ */
235
+ description?: pulumi.Input<string>;
236
+ /**
237
+ * Use chart development versions, too. Equivalent to version '>0.0.0-0'. If `version` is set, this is ignored.
238
+ */
239
+ devel?: pulumi.Input<boolean>;
240
+ /**
241
+ * Prevent CRD hooks from, running, but run other hooks. See helm install --no-crd-hook
242
+ */
243
+ disableCRDHooks?: pulumi.Input<boolean>;
244
+ /**
245
+ * If set, the installation process will not validate rendered templates against the Kubernetes OpenAPI Schema
246
+ */
247
+ disableOpenapiValidation?: pulumi.Input<boolean>;
248
+ /**
249
+ * Prevent hooks from running.
250
+ */
251
+ disableWebhooks?: pulumi.Input<boolean>;
252
+ /**
253
+ * Force resource update through delete/recreate if needed.
254
+ */
255
+ forceUpdate?: pulumi.Input<boolean>;
256
+ /**
257
+ * Location of public keys used for verification. Used only if `verify` is true
258
+ */
259
+ keyring?: pulumi.Input<string>;
260
+ /**
261
+ * Run helm lint when planning.
262
+ */
263
+ lint?: pulumi.Input<boolean>;
264
+ /**
265
+ * The rendered manifests as JSON. Not yet supported.
266
+ */
267
+ manifest?: pulumi.Input<{
268
+ [key: string]: any;
269
+ }>;
270
+ /**
271
+ * Limit the maximum number of revisions saved per release. Use 0 for no limit.
272
+ */
273
+ maxHistory?: pulumi.Input<number>;
274
+ /**
275
+ * Release name.
276
+ */
277
+ name?: pulumi.Input<string>;
278
+ /**
279
+ * Namespace to install the release into.
280
+ */
281
+ namespace?: pulumi.Input<string>;
282
+ /**
283
+ * Postrender command to run.
284
+ */
285
+ postrender?: pulumi.Input<string>;
286
+ /**
287
+ * Perform pods restart during upgrade/rollback.
288
+ */
289
+ recreatePods?: pulumi.Input<boolean>;
290
+ /**
291
+ * If set, render subchart notes along with the parent.
292
+ */
293
+ renderSubchartNotes?: pulumi.Input<boolean>;
294
+ /**
295
+ * Re-use the given name, even if that name is already used. This is unsafe in production
296
+ */
297
+ replace?: pulumi.Input<boolean>;
298
+ /**
299
+ * Specification defining the Helm chart repository to use.
300
+ */
301
+ repositoryOpts?: pulumi.Input<inputs.RepositoryOptsArgs>;
302
+ /**
303
+ * When upgrading, reset the values to the ones built into the chart.
304
+ */
305
+ resetValues?: pulumi.Input<boolean>;
306
+ /**
307
+ * Names of resources created by the release grouped by "kind/version".
308
+ */
309
+ resourceNames?: pulumi.Input<{
310
+ [key: string]: pulumi.Input<pulumi.Input<string>[]>;
311
+ }>;
312
+ /**
313
+ * When upgrading, reuse the last release's values and merge in any overrides. If 'resetValues' is specified, this is ignored
314
+ */
315
+ reuseValues?: pulumi.Input<boolean>;
316
+ /**
317
+ * By default, the provider waits until all resources are in a ready state before marking the release as successful. Setting this to true will skip such await logic.
318
+ */
319
+ skipAwait?: pulumi.Input<boolean>;
320
+ /**
321
+ * If set, no CRDs will be installed. By default, CRDs are installed if not already present.
322
+ */
323
+ skipCrds?: pulumi.Input<boolean>;
324
+ /**
325
+ * Time in seconds to wait for any individual kubernetes operation.
326
+ */
327
+ timeout?: pulumi.Input<number>;
328
+ /**
329
+ * List of assets (raw yaml files). Content is read and merged with values. Not yet supported.
330
+ */
331
+ valueYamlFiles?: pulumi.Input<pulumi.Input<pulumi.asset.Asset | pulumi.asset.Archive>[]>;
332
+ /**
333
+ * Custom values set for the release.
334
+ */
335
+ values?: pulumi.Input<{
336
+ [key: string]: any;
337
+ }>;
338
+ /**
339
+ * Verify the package before installing it.
340
+ */
341
+ verify?: pulumi.Input<boolean>;
342
+ /**
343
+ * Specify the exact chart version to install. If this is not specified, the latest version is installed.
344
+ */
345
+ version?: pulumi.Input<string>;
346
+ /**
347
+ * Will wait until all Jobs have been completed before marking the release as successful. This is ignored if `skipAwait` is enabled.
348
+ */
349
+ waitForJobs?: pulumi.Input<boolean>;
350
+ }
351
+ /**
352
+ * Specification defining the Helm chart repository to use.
353
+ */
354
+ export interface RepositoryOptsArgs {
355
+ /**
356
+ * The Repository's CA File
357
+ */
358
+ caFile?: pulumi.Input<string>;
359
+ /**
360
+ * The repository's cert file
361
+ */
362
+ certFile?: pulumi.Input<string>;
363
+ /**
364
+ * The repository's cert key file
365
+ */
366
+ keyFile?: pulumi.Input<string>;
367
+ /**
368
+ * Password for HTTP basic authentication
369
+ */
370
+ password?: pulumi.Input<string>;
371
+ /**
372
+ * Repository where to locate the requested chart. If is a URL the chart is installed without installing the repository.
373
+ */
374
+ repo?: pulumi.Input<string>;
375
+ /**
376
+ * Username for HTTP basic authentication
377
+ */
378
+ username?: pulumi.Input<string>;
379
+ }
package/types/input.js ADDED
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
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=input.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input.js","sourceRoot":"","sources":["../../types/input.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF"}
@@ -0,0 +1,30 @@
1
+ export interface ReleaseStatus {
2
+ /**
3
+ * The version number of the application being deployed.
4
+ */
5
+ appVersion: string;
6
+ /**
7
+ * The name of the chart.
8
+ */
9
+ chart: string;
10
+ /**
11
+ * Name is the name of the release.
12
+ */
13
+ name: string;
14
+ /**
15
+ * Namespace is the kubernetes namespace of the release.
16
+ */
17
+ namespace: string;
18
+ /**
19
+ * Version is an int32 which represents the version of the release.
20
+ */
21
+ revision: number;
22
+ /**
23
+ * Status of the release.
24
+ */
25
+ status: string;
26
+ /**
27
+ * A SemVer 2 conformant version string of the chart.
28
+ */
29
+ version: string;
30
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
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,sEAAsE;AACtE,iFAAiF"}
package/utilities.d.ts ADDED
@@ -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 function getVersion(): string;
6
+ export declare function callAsync<T>(tok: string, props: pulumi.Inputs, res?: pulumi.Resource, opts?: {
7
+ property?: string;
8
+ }): Promise<T>;
package/utilities.js ADDED
@@ -0,0 +1,101 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
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.callAsync = exports.lazyLoad = exports.resourceOptsDefaults = exports.getVersion = exports.getEnvNumber = exports.getEnvBoolean = exports.getEnv = void 0;
15
+ const runtime = require("@pulumi/pulumi/runtime");
16
+ function getEnv(...vars) {
17
+ for (const v of vars) {
18
+ const value = process.env[v];
19
+ if (value) {
20
+ return value;
21
+ }
22
+ }
23
+ return undefined;
24
+ }
25
+ exports.getEnv = getEnv;
26
+ function getEnvBoolean(...vars) {
27
+ const s = getEnv(...vars);
28
+ if (s !== undefined) {
29
+ // NOTE: these values are taken from https://golang.org/src/strconv/atob.go?s=351:391#L1, which is what
30
+ // Terraform uses internally when parsing boolean values.
31
+ if (["1", "t", "T", "true", "TRUE", "True"].find(v => v === s) !== undefined) {
32
+ return true;
33
+ }
34
+ if (["0", "f", "F", "false", "FALSE", "False"].find(v => v === s) !== undefined) {
35
+ return false;
36
+ }
37
+ }
38
+ return undefined;
39
+ }
40
+ exports.getEnvBoolean = getEnvBoolean;
41
+ function getEnvNumber(...vars) {
42
+ const s = getEnv(...vars);
43
+ if (s !== undefined) {
44
+ const f = parseFloat(s);
45
+ if (!isNaN(f)) {
46
+ return f;
47
+ }
48
+ }
49
+ return undefined;
50
+ }
51
+ exports.getEnvNumber = getEnvNumber;
52
+ function getVersion() {
53
+ let version = require('./package.json').version;
54
+ // Node allows for the version to be prefixed by a "v", while semver doesn't.
55
+ // If there is a v, strip it off.
56
+ if (version.indexOf('v') === 0) {
57
+ version = version.slice(1);
58
+ }
59
+ return version;
60
+ }
61
+ exports.getVersion = getVersion;
62
+ /** @internal */
63
+ function resourceOptsDefaults() {
64
+ return { version: getVersion() };
65
+ }
66
+ exports.resourceOptsDefaults = resourceOptsDefaults;
67
+ /** @internal */
68
+ function lazyLoad(exports, props, loadModule) {
69
+ for (let property of props) {
70
+ Object.defineProperty(exports, property, {
71
+ enumerable: true,
72
+ get: function () {
73
+ return loadModule()[property];
74
+ },
75
+ });
76
+ }
77
+ }
78
+ exports.lazyLoad = lazyLoad;
79
+ function callAsync(tok, props, res, opts) {
80
+ return __awaiter(this, void 0, void 0, function* () {
81
+ const o = runtime.call(tok, props, res);
82
+ const value = yield o.promise(true /*withUnknowns*/);
83
+ const isKnown = yield o.isKnown;
84
+ const isSecret = yield o.isSecret;
85
+ const problem = !isKnown ? "an unknown value"
86
+ : isSecret ? "a secret value"
87
+ : undefined;
88
+ // Ingoring o.resources silently. They are typically non-empty, r.f() calls include r as a dependency.
89
+ if (problem) {
90
+ throw new Error(`Plain resource method "${tok}" incorrectly returned ${problem}. ` +
91
+ "This is an error in the provider, please report this to the provider developer.");
92
+ }
93
+ // Extract a single property if requested.
94
+ if (opts && opts.property) {
95
+ return value[opts.property];
96
+ }
97
+ return value;
98
+ });
99
+ }
100
+ exports.callAsync = callAsync;
101
+ //# sourceMappingURL=utilities.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;AAGjF,kDAAkD;AAGlD,SAAgB,MAAM,CAAC,GAAG,IAAc;IACpC,KAAK,MAAM,CAAC,IAAI,IAAI,EAAE;QAClB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC7B,IAAI,KAAK,EAAE;YACP,OAAO,KAAK,CAAC;SAChB;KACJ;IACD,OAAO,SAAS,CAAC;AACrB,CAAC;AARD,wBAQC;AAED,SAAgB,aAAa,CAAC,GAAG,IAAc;IAC3C,MAAM,CAAC,GAAG,MAAM,CAAC,GAAG,IAAI,CAA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