@pulumi/rancher2 10.4.0-alpha.1766557538 → 11.0.0-alpha.1766596160
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/README.md +2 -2
- package/authConfigGenericOidc.d.ts +313 -0
- package/authConfigGenericOidc.js +134 -0
- package/authConfigGenericOidc.js.map +1 -0
- package/authConfigGithubapp.d.ts +133 -0
- package/authConfigGithubapp.js +89 -0
- package/authConfigGithubapp.js.map +1 -0
- package/cluster.d.ts +36 -340
- package/cluster.js +36 -340
- package/cluster.js.map +1 -1
- package/clusterProxyConfigV2.d.ts +96 -0
- package/clusterProxyConfigV2.js +61 -0
- package/clusterProxyConfigV2.js.map +1 -0
- package/clusterSync.d.ts +4 -4
- package/clusterSync.js +4 -4
- package/getClusterProxyConfigV2.d.ts +14 -0
- package/getClusterProxyConfigV2.js +18 -0
- package/getClusterProxyConfigV2.js.map +1 -0
- package/index.d.ts +12 -18
- package/index.js +20 -26
- package/index.js.map +1 -1
- package/nodePool.d.ts +4 -4
- package/nodePool.js +4 -4
- package/package.json +2 -2
- package/types/input.d.ts +762 -2581
- package/types/output.d.ts +2358 -5036
- package/clusterTemplate.d.ts +0 -215
- package/clusterTemplate.js +0 -146
- package/clusterTemplate.js.map +0 -1
- package/etcdBackup.d.ts +0 -186
- package/etcdBackup.js +0 -106
- package/etcdBackup.js.map +0 -1
- package/getClusterTemplate.d.ts +0 -115
- package/getClusterTemplate.js +0 -60
- package/getClusterTemplate.js.map +0 -1
- package/getEtcdBackup.d.ts +0 -99
- package/getEtcdBackup.js +0 -54
- package/getEtcdBackup.js.map +0 -1
- package/getNodeTemplate.d.ts +0 -134
- package/getNodeTemplate.js +0 -52
- package/getNodeTemplate.js.map +0 -1
- package/nodeTemplate.d.ts +0 -562
- package/nodeTemplate.js +0 -261
- package/nodeTemplate.js.map +0 -1
package/cluster.js
CHANGED
|
@@ -6,376 +6,72 @@ exports.Cluster = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
* Provides a Rancher v2 Cluster resource. This can be used to create Clusters for Rancher v2 environments and retrieve their information.
|
|
9
|
+
* Provides a Rancher v2 Cluster resource. This can be used to create imported Clusters for Rancher v2 environments and retrieve their information.
|
|
10
10
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* **Note optional/computed arguments** If any `optional/computed` argument of this resource is defined by the user, removing it from tf file will NOT reset its value. To reset it, let its definition at tf file as empty/false object. Ex: `cloudProvider {}`, `name = ""`
|
|
14
|
-
*
|
|
15
|
-
* ### Creating Rancher v2 imported cluster
|
|
16
|
-
*
|
|
17
|
-
* ```typescript
|
|
18
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
-
* import * as rancher2 from "@pulumi/rancher2";
|
|
20
|
-
*
|
|
21
|
-
* // Create a new rancher2 imported Cluster
|
|
22
|
-
* const foo_imported = new rancher2.Cluster("foo-imported", {
|
|
23
|
-
* name: "foo-imported",
|
|
24
|
-
* description: "Foo rancher2 imported cluster",
|
|
25
|
-
* });
|
|
26
|
-
* ```
|
|
27
|
-
*
|
|
28
|
-
* ### Creating Rancher v2 imported cluster with custom configuration. For Rancher v2.11.x and above.
|
|
29
|
-
*
|
|
30
|
-
* This configuration can be used to indicate that system images (such as the rancher-agent) should be pulled from an unauthenticated private registry. This can be used for all imported cluster types, including imported hosted clusters (AKS, EKS, GKE).
|
|
31
|
-
*
|
|
32
|
-
* ```typescript
|
|
33
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
34
|
-
* import * as rancher2 from "@pulumi/rancher2";
|
|
35
|
-
*
|
|
36
|
-
* // Create a new rancher2 imported Cluster with custom configuration
|
|
37
|
-
* const foo_imported = new rancher2.Cluster("foo-imported", {
|
|
38
|
-
* name: "foo-imported",
|
|
39
|
-
* importedConfig: {
|
|
40
|
-
* privateRegistryUrl: "test.io",
|
|
41
|
-
* },
|
|
42
|
-
* });
|
|
43
|
-
* ```
|
|
44
|
-
*
|
|
45
|
-
* ### Creating Rancher v2 RKE cluster enabling
|
|
46
|
-
*
|
|
47
|
-
* ```typescript
|
|
48
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
49
|
-
* import * as rancher2 from "@pulumi/rancher2";
|
|
50
|
-
*
|
|
51
|
-
* // Create a new rancher2 RKE Cluster
|
|
52
|
-
* const foo_custom = new rancher2.Cluster("foo-custom", {
|
|
53
|
-
* name: "foo-custom",
|
|
54
|
-
* description: "Foo rancher2 custom cluster",
|
|
55
|
-
* rkeConfig: {
|
|
56
|
-
* network: {
|
|
57
|
-
* plugin: "canal",
|
|
58
|
-
* },
|
|
59
|
-
* },
|
|
60
|
-
* });
|
|
61
|
-
* ```
|
|
62
|
-
*
|
|
63
|
-
* ### Creating Rancher v2 RKE cluster enabling/customizing istio
|
|
64
|
-
*
|
|
65
|
-
* ```typescript
|
|
66
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
67
|
-
* import * as rancher2 from "@pulumi/rancher2";
|
|
11
|
+
* **Hint**: To create node-driver and custom RKE2 and K3s Clusters, use the Rancher v2 Cluster v2 resource instead.
|
|
68
12
|
*
|
|
69
|
-
*
|
|
70
|
-
* const foo_custom = new rancher2.Cluster("foo-custom", {
|
|
71
|
-
* name: "foo-custom",
|
|
72
|
-
* description: "Foo rancher2 custom cluster",
|
|
73
|
-
* rkeConfig: {
|
|
74
|
-
* network: {
|
|
75
|
-
* plugin: "canal",
|
|
76
|
-
* },
|
|
77
|
-
* },
|
|
78
|
-
* });
|
|
79
|
-
* // Create a new rancher2 Cluster Sync for foo-custom cluster
|
|
80
|
-
* const foo_customClusterSync = new rancher2.ClusterSync("foo-custom", {clusterId: foo_custom.id});
|
|
81
|
-
* // Create a new rancher2 Namespace
|
|
82
|
-
* const foo_istio = new rancher2.Namespace("foo-istio", {
|
|
83
|
-
* name: "istio-system",
|
|
84
|
-
* projectId: foo_customClusterSync.systemProjectId,
|
|
85
|
-
* description: "istio namespace",
|
|
86
|
-
* });
|
|
87
|
-
* // Create a new rancher2 App deploying istio
|
|
88
|
-
* const istio = new rancher2.index.App("istio", {
|
|
89
|
-
* catalogName: "system-library",
|
|
90
|
-
* name: "cluster-istio",
|
|
91
|
-
* description: "Terraform app acceptance test",
|
|
92
|
-
* projectId: foo_istio.projectId,
|
|
93
|
-
* templateName: "rancher-istio",
|
|
94
|
-
* templateVersion: "0.1.1",
|
|
95
|
-
* targetNamespace: foo_istio.id,
|
|
96
|
-
* answers: {
|
|
97
|
-
* "certmanager.enabled": false,
|
|
98
|
-
* enableCRDs: true,
|
|
99
|
-
* "galley.enabled": true,
|
|
100
|
-
* "gateways.enabled": false,
|
|
101
|
-
* "gateways.istio-ingressgateway.resources.limits.cpu": "2000m",
|
|
102
|
-
* "gateways.istio-ingressgateway.resources.limits.memory": "1024Mi",
|
|
103
|
-
* "gateways.istio-ingressgateway.resources.requests.cpu": "100m",
|
|
104
|
-
* "gateways.istio-ingressgateway.resources.requests.memory": "128Mi",
|
|
105
|
-
* "gateways.istio-ingressgateway.type": "NodePort",
|
|
106
|
-
* "global.rancher.clusterId": foo_customClusterSync.clusterId,
|
|
107
|
-
* "istio_cni.enabled": "false",
|
|
108
|
-
* "istiocoredns.enabled": "false",
|
|
109
|
-
* "kiali.enabled": "true",
|
|
110
|
-
* "mixer.enabled": "true",
|
|
111
|
-
* "mixer.policy.enabled": "true",
|
|
112
|
-
* "mixer.policy.resources.limits.cpu": "4800m",
|
|
113
|
-
* "mixer.policy.resources.limits.memory": "4096Mi",
|
|
114
|
-
* "mixer.policy.resources.requests.cpu": "1000m",
|
|
115
|
-
* "mixer.policy.resources.requests.memory": "1024Mi",
|
|
116
|
-
* "mixer.telemetry.resources.limits.cpu": "4800m",
|
|
117
|
-
* "mixer.telemetry.resources.limits.memory": "4096Mi",
|
|
118
|
-
* "mixer.telemetry.resources.requests.cpu": "1000m",
|
|
119
|
-
* "mixer.telemetry.resources.requests.memory": "1024Mi",
|
|
120
|
-
* "mtls.enabled": false,
|
|
121
|
-
* "nodeagent.enabled": false,
|
|
122
|
-
* "pilot.enabled": true,
|
|
123
|
-
* "pilot.resources.limits.cpu": "1000m",
|
|
124
|
-
* "pilot.resources.limits.memory": "4096Mi",
|
|
125
|
-
* "pilot.resources.requests.cpu": "500m",
|
|
126
|
-
* "pilot.resources.requests.memory": "2048Mi",
|
|
127
|
-
* "pilot.traceSampling": "1",
|
|
128
|
-
* "security.enabled": true,
|
|
129
|
-
* "sidecarInjectorWebhook.enabled": true,
|
|
130
|
-
* "tracing.enabled": true,
|
|
131
|
-
* "tracing.jaeger.resources.limits.cpu": "500m",
|
|
132
|
-
* "tracing.jaeger.resources.limits.memory": "1024Mi",
|
|
133
|
-
* "tracing.jaeger.resources.requests.cpu": "100m",
|
|
134
|
-
* "tracing.jaeger.resources.requests.memory": "100Mi",
|
|
135
|
-
* },
|
|
136
|
-
* });
|
|
137
|
-
* ```
|
|
13
|
+
* **Important:**
|
|
138
14
|
*
|
|
139
|
-
*
|
|
15
|
+
* Rancher Kubernetes Engine (RKE/RKE1) has reached end of life as of July 31, 2025.
|
|
16
|
+
* Rancher versions **2.12.0 and later** no longer support provisioning or managing downstream RKE1 clusters.
|
|
17
|
+
* We recommend replatforming RKE1 clusters to RKE2 to ensure continued support and security updates. Learn more about the transition [here](https://support.scc.suse.com/s/kb/RKE-to-RKE2-replatforming-instructions-and-FAQs).
|
|
140
18
|
*
|
|
141
|
-
*
|
|
142
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
143
|
-
* import * as rancher2 from "@pulumi/rancher2";
|
|
19
|
+
* ## Example Usage
|
|
144
20
|
*
|
|
145
|
-
*
|
|
146
|
-
* const foo_custom = new rancher2.Cluster("foo-custom", {
|
|
147
|
-
* name: "foo-custom",
|
|
148
|
-
* description: "Foo rancher2 custom cluster",
|
|
149
|
-
* rkeConfig: {
|
|
150
|
-
* network: {
|
|
151
|
-
* plugin: "canal",
|
|
152
|
-
* },
|
|
153
|
-
* },
|
|
154
|
-
* });
|
|
155
|
-
* // Create a new rancher2 Node Template
|
|
156
|
-
* const foo = new rancher2.NodeTemplate("foo", {
|
|
157
|
-
* name: "foo",
|
|
158
|
-
* description: "foo test",
|
|
159
|
-
* amazonec2Config: {
|
|
160
|
-
* accessKey: "<AWS_ACCESS_KEY>",
|
|
161
|
-
* secretKey: "<AWS_SECRET_KEY>",
|
|
162
|
-
* ami: "<AMI_ID>",
|
|
163
|
-
* region: "<REGION>",
|
|
164
|
-
* securityGroups: ["<AWS_SECURITY_GROUP>"],
|
|
165
|
-
* subnetId: "<SUBNET_ID>",
|
|
166
|
-
* vpcId: "<VPC_ID>",
|
|
167
|
-
* zone: "<ZONE>",
|
|
168
|
-
* },
|
|
169
|
-
* });
|
|
170
|
-
* // Create a new rancher2 Node Pool
|
|
171
|
-
* const fooNodePool = new rancher2.NodePool("foo", {
|
|
172
|
-
* clusterId: foo_custom.id,
|
|
173
|
-
* name: "foo",
|
|
174
|
-
* hostnamePrefix: "foo-cluster-0",
|
|
175
|
-
* nodeTemplateId: foo.id,
|
|
176
|
-
* quantity: 3,
|
|
177
|
-
* controlPlane: true,
|
|
178
|
-
* etcd: true,
|
|
179
|
-
* worker: true,
|
|
180
|
-
* });
|
|
181
|
-
* ```
|
|
21
|
+
* **Note optional/computed arguments** If any `optional/computed` argument of this resource is defined by the user, removing it from tf file will NOT reset its value. To reset it, let its definition at tf file as empty/false object. Ex: `cloudProvider {}`, `name = ""`
|
|
182
22
|
*
|
|
183
|
-
* ### Creating Rancher v2
|
|
23
|
+
* ### Creating a Rancher v2 imported cluster and retrieving the registration commands
|
|
184
24
|
*
|
|
185
25
|
* ```typescript
|
|
186
26
|
* import * as pulumi from "@pulumi/pulumi";
|
|
187
27
|
* import * as rancher2 from "@pulumi/rancher2";
|
|
188
28
|
*
|
|
189
|
-
*
|
|
190
|
-
*
|
|
191
|
-
*
|
|
192
|
-
*
|
|
193
|
-
*
|
|
194
|
-
*
|
|
195
|
-
*
|
|
196
|
-
*
|
|
197
|
-
*
|
|
198
|
-
*
|
|
199
|
-
*
|
|
200
|
-
* network: {
|
|
201
|
-
* plugin: "canal",
|
|
202
|
-
* },
|
|
203
|
-
* services: {
|
|
204
|
-
* etcd: {
|
|
205
|
-
* creation: "6h",
|
|
206
|
-
* retention: "24h",
|
|
207
|
-
* },
|
|
208
|
-
* },
|
|
209
|
-
* },
|
|
210
|
-
* },
|
|
211
|
-
* "default": true,
|
|
212
|
-
* }],
|
|
213
|
-
* description: "Test cluster template v2",
|
|
214
|
-
* });
|
|
215
|
-
* // Create a new rancher2 RKE Cluster from template
|
|
216
|
-
* const fooCluster = new rancher2.Cluster("foo", {
|
|
217
|
-
* name: "foo",
|
|
218
|
-
* clusterTemplateId: foo.id,
|
|
219
|
-
* clusterTemplateRevisionId: foo.templateRevisions.apply(templateRevisions => templateRevisions[0].id),
|
|
220
|
-
* });
|
|
29
|
+
* export = async () => {
|
|
30
|
+
* // Create a new rancher2 imported Cluster
|
|
31
|
+
* const foo_imported = new rancher2.Cluster("foo-imported", {
|
|
32
|
+
* name: "foo-imported",
|
|
33
|
+
* description: "Foo rancher2 imported cluster",
|
|
34
|
+
* });
|
|
35
|
+
* return {
|
|
36
|
+
* "kubectl-command": [foo_imported.clusterRegistrationToken.apply(clusterRegistrationToken => clusterRegistrationToken.command)],
|
|
37
|
+
* "insecure-kubectl-command": [foo_imported.clusterRegistrationToken.apply(clusterRegistrationToken => clusterRegistrationToken.insecureCommand)],
|
|
38
|
+
* };
|
|
39
|
+
* }
|
|
221
40
|
* ```
|
|
222
41
|
*
|
|
223
|
-
* ### Creating
|
|
224
|
-
*
|
|
225
|
-
* ```typescript
|
|
226
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
227
|
-
* import * as rancher2 from "@pulumi/rancher2";
|
|
42
|
+
* ### Creating an imported cluster and configuring the version-management feature. For Rancher v2.11.0 and above.
|
|
228
43
|
*
|
|
229
|
-
*
|
|
230
|
-
* name: "foo",
|
|
231
|
-
* description: "Terraform custom cluster",
|
|
232
|
-
* rkeConfig: {
|
|
233
|
-
* network: {
|
|
234
|
-
* plugin: "canal",
|
|
235
|
-
* },
|
|
236
|
-
* services: {
|
|
237
|
-
* etcd: {
|
|
238
|
-
* creation: "6h",
|
|
239
|
-
* retention: "24h",
|
|
240
|
-
* },
|
|
241
|
-
* kubeApi: {
|
|
242
|
-
* auditLog: {
|
|
243
|
-
* enabled: true,
|
|
244
|
-
* configuration: {
|
|
245
|
-
* maxAge: 5,
|
|
246
|
-
* maxBackup: 5,
|
|
247
|
-
* maxSize: 100,
|
|
248
|
-
* path: "-",
|
|
249
|
-
* format: "json",
|
|
250
|
-
* policy: `apiVersion: audit.k8s.io/v1
|
|
251
|
-
* kind: Policy
|
|
252
|
-
* metadata:
|
|
253
|
-
* creationTimestamp: null
|
|
254
|
-
* omitStages:
|
|
255
|
-
* - RequestReceived
|
|
256
|
-
* rules:
|
|
257
|
-
* - level: RequestResponse
|
|
258
|
-
* resources:
|
|
259
|
-
* - resources:
|
|
260
|
-
* - pods
|
|
261
|
-
* `,
|
|
262
|
-
* },
|
|
263
|
-
* },
|
|
264
|
-
* },
|
|
265
|
-
* },
|
|
266
|
-
* upgradeStrategy: {
|
|
267
|
-
* drain: true,
|
|
268
|
-
* maxUnavailableWorker: "20%",
|
|
269
|
-
* },
|
|
270
|
-
* },
|
|
271
|
-
* });
|
|
272
|
-
* ```
|
|
44
|
+
* The `rancher.io/imported-cluster-version-management` annotation controls the version-management feature for an imported cluster.
|
|
273
45
|
*
|
|
274
|
-
*
|
|
46
|
+
* Expected values: "true", "false", or "system-default".
|
|
275
47
|
*
|
|
276
48
|
* ```typescript
|
|
277
49
|
* import * as pulumi from "@pulumi/pulumi";
|
|
278
50
|
* import * as rancher2 from "@pulumi/rancher2";
|
|
279
51
|
*
|
|
280
|
-
*
|
|
281
|
-
*
|
|
282
|
-
*
|
|
283
|
-
*
|
|
284
|
-
*
|
|
285
|
-
*
|
|
286
|
-
* },
|
|
52
|
+
* // Create a new rancher2 imported Cluster
|
|
53
|
+
* const foo_imported = new rancher2.Cluster("foo-imported", {
|
|
54
|
+
* name: "foo-imported",
|
|
55
|
+
* description: "Foo rancher2 imported cluster",
|
|
56
|
+
* annotations: {
|
|
57
|
+
* "rancher.io/imported-cluster-version-management": "false",
|
|
287
58
|
* },
|
|
288
|
-
* clusterAgentDeploymentCustomizations: [{
|
|
289
|
-
* appendTolerations: [{
|
|
290
|
-
* effect: "NoSchedule",
|
|
291
|
-
* key: "tolerate/control-plane",
|
|
292
|
-
* value: "true",
|
|
293
|
-
* }],
|
|
294
|
-
* overrideAffinity: `{
|
|
295
|
-
* \\"nodeAffinity\\": {
|
|
296
|
-
* \\"requiredDuringSchedulingIgnoredDuringExecution\\": {
|
|
297
|
-
* \\"nodeSelectorTerms\\": [{
|
|
298
|
-
* \\"matchExpressions\\": [{
|
|
299
|
-
* \\"key\\": \\"not.this/nodepool\\",
|
|
300
|
-
* \\"operator\\": \\"In\\",
|
|
301
|
-
* \\"values\\": [
|
|
302
|
-
* \\"true\\"
|
|
303
|
-
* ]
|
|
304
|
-
* }]
|
|
305
|
-
* }]
|
|
306
|
-
* }
|
|
307
|
-
* }
|
|
308
|
-
* }
|
|
309
|
-
* `,
|
|
310
|
-
* overrideResourceRequirements: [{
|
|
311
|
-
* cpuLimit: "800",
|
|
312
|
-
* cpuRequest: "500",
|
|
313
|
-
* memoryLimit: "800",
|
|
314
|
-
* memoryRequest: "500",
|
|
315
|
-
* }],
|
|
316
|
-
* }],
|
|
317
59
|
* });
|
|
318
60
|
* ```
|
|
319
61
|
*
|
|
320
|
-
* ### Creating Rancher v2
|
|
62
|
+
* ### Creating Rancher v2 imported cluster with custom configuration. For Rancher v2.11.0 and above.
|
|
321
63
|
*
|
|
322
|
-
*
|
|
323
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
324
|
-
* import * as rancher2 from "@pulumi/rancher2";
|
|
325
|
-
*
|
|
326
|
-
* const foo = new rancher2.Cluster("foo", {
|
|
327
|
-
* name: "foo",
|
|
328
|
-
* description: "Terraform cluster with agent customization",
|
|
329
|
-
* rkeConfig: {},
|
|
330
|
-
* clusterAgentDeploymentCustomizations: [{
|
|
331
|
-
* schedulingCustomizations: [{
|
|
332
|
-
* priorityClasses: [{
|
|
333
|
-
* preemptionPolicy: "PreemptLowerPriority",
|
|
334
|
-
* value: 1000000000,
|
|
335
|
-
* }],
|
|
336
|
-
* podDisruptionBudgets: [{
|
|
337
|
-
* minAvailable: "1",
|
|
338
|
-
* }],
|
|
339
|
-
* }],
|
|
340
|
-
* }],
|
|
341
|
-
* });
|
|
342
|
-
* ```
|
|
343
|
-
*
|
|
344
|
-
* ### Creating Rancher v2 RKE cluster with Pod Security Admission Configuration Template (PSACT). For Rancher v2.7.2 and above.
|
|
64
|
+
* This configuration can be used to indicate that system images (such as the rancher-agent) should be pulled from an unauthenticated private registry. This can be used for all imported cluster types, including imported hosted clusters (AKS, EKS, GKE).
|
|
345
65
|
*
|
|
346
66
|
* ```typescript
|
|
347
67
|
* import * as pulumi from "@pulumi/pulumi";
|
|
348
68
|
* import * as rancher2 from "@pulumi/rancher2";
|
|
349
69
|
*
|
|
350
|
-
* //
|
|
351
|
-
* const
|
|
352
|
-
* name: "
|
|
353
|
-
*
|
|
354
|
-
*
|
|
355
|
-
* audit: "restricted",
|
|
356
|
-
* auditVersion: "latest",
|
|
357
|
-
* enforce: "restricted",
|
|
358
|
-
* enforceVersion: "latest",
|
|
359
|
-
* warn: "restricted",
|
|
360
|
-
* warnVersion: "latest",
|
|
361
|
-
* },
|
|
362
|
-
* exemptions: {
|
|
363
|
-
* usernames: ["testuser"],
|
|
364
|
-
* runtimeClasses: ["testclass"],
|
|
365
|
-
* namespaces: [
|
|
366
|
-
* "ingress-nginx",
|
|
367
|
-
* "kube-system",
|
|
368
|
-
* ],
|
|
369
|
-
* },
|
|
370
|
-
* });
|
|
371
|
-
* const fooCluster = new rancher2.Cluster("foo", {
|
|
372
|
-
* name: "foo",
|
|
373
|
-
* description: "Terraform cluster with PSACT",
|
|
374
|
-
* defaultPodSecurityAdmissionConfigurationTemplateName: "<name>",
|
|
375
|
-
* rkeConfig: {
|
|
376
|
-
* network: {
|
|
377
|
-
* plugin: "canal",
|
|
378
|
-
* },
|
|
70
|
+
* // Create a new rancher2 imported Cluster with custom configuration
|
|
71
|
+
* const foo_imported = new rancher2.Cluster("foo-imported", {
|
|
72
|
+
* name: "foo-imported",
|
|
73
|
+
* importedConfig: {
|
|
74
|
+
* privateRegistryUrl: "test.io",
|
|
379
75
|
* },
|
|
380
76
|
* });
|
|
381
77
|
* ```
|
package/cluster.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cluster.js","sourceRoot":"","sources":["../cluster.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"cluster.js","sourceRoot":"","sources":["../cluster.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmQG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoB,EAAE,IAAmC;QAClH,OAAO,IAAI,OAAO,CAAC,IAAI,EAAO,KAAK,EAAE,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AAO,CAAC;SACzD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,QAAQ,EAAE,YAAY,CAAC,EAAE,CAAC;QACzE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;;AArQL,0BAsQC;AAxPG,gBAAgB;AACO,oBAAY,GAAG,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
export declare class ClusterProxyConfigV2 extends pulumi.CustomResource {
|
|
3
|
+
/**
|
|
4
|
+
* Get an existing ClusterProxyConfigV2 resource's state with the given name, ID, and optional extra
|
|
5
|
+
* properties used to qualify the lookup.
|
|
6
|
+
*
|
|
7
|
+
* @param name The _unique_ name of the resulting resource.
|
|
8
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
9
|
+
* @param state Any extra arguments used during the lookup.
|
|
10
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
11
|
+
*/
|
|
12
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ClusterProxyConfigV2State, opts?: pulumi.CustomResourceOptions): ClusterProxyConfigV2;
|
|
13
|
+
/**
|
|
14
|
+
* Returns true if the given object is an instance of ClusterProxyConfigV2. This is designed to work even
|
|
15
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
16
|
+
*/
|
|
17
|
+
static isInstance(obj: any): obj is ClusterProxyConfigV2;
|
|
18
|
+
/**
|
|
19
|
+
* Annotations of the resource
|
|
20
|
+
*/
|
|
21
|
+
readonly annotations: pulumi.Output<{
|
|
22
|
+
[key: string]: string;
|
|
23
|
+
}>;
|
|
24
|
+
/**
|
|
25
|
+
* Cluster ID where the ClusterProxyConfig should be created
|
|
26
|
+
*/
|
|
27
|
+
readonly clusterId: pulumi.Output<string>;
|
|
28
|
+
/**
|
|
29
|
+
* Indicates whether downstream proxy requests for service account tokens is enabled
|
|
30
|
+
*/
|
|
31
|
+
readonly enabled: pulumi.Output<boolean>;
|
|
32
|
+
/**
|
|
33
|
+
* Labels of the resource
|
|
34
|
+
*/
|
|
35
|
+
readonly labels: pulumi.Output<{
|
|
36
|
+
[key: string]: string;
|
|
37
|
+
}>;
|
|
38
|
+
/**
|
|
39
|
+
* Create a ClusterProxyConfigV2 resource with the given unique name, arguments, and options.
|
|
40
|
+
*
|
|
41
|
+
* @param name The _unique_ name of the resource.
|
|
42
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
43
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
44
|
+
*/
|
|
45
|
+
constructor(name: string, args: ClusterProxyConfigV2Args, opts?: pulumi.CustomResourceOptions);
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Input properties used for looking up and filtering ClusterProxyConfigV2 resources.
|
|
49
|
+
*/
|
|
50
|
+
export interface ClusterProxyConfigV2State {
|
|
51
|
+
/**
|
|
52
|
+
* Annotations of the resource
|
|
53
|
+
*/
|
|
54
|
+
annotations?: pulumi.Input<{
|
|
55
|
+
[key: string]: pulumi.Input<string>;
|
|
56
|
+
}>;
|
|
57
|
+
/**
|
|
58
|
+
* Cluster ID where the ClusterProxyConfig should be created
|
|
59
|
+
*/
|
|
60
|
+
clusterId?: pulumi.Input<string>;
|
|
61
|
+
/**
|
|
62
|
+
* Indicates whether downstream proxy requests for service account tokens is enabled
|
|
63
|
+
*/
|
|
64
|
+
enabled?: pulumi.Input<boolean>;
|
|
65
|
+
/**
|
|
66
|
+
* Labels of the resource
|
|
67
|
+
*/
|
|
68
|
+
labels?: pulumi.Input<{
|
|
69
|
+
[key: string]: pulumi.Input<string>;
|
|
70
|
+
}>;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* The set of arguments for constructing a ClusterProxyConfigV2 resource.
|
|
74
|
+
*/
|
|
75
|
+
export interface ClusterProxyConfigV2Args {
|
|
76
|
+
/**
|
|
77
|
+
* Annotations of the resource
|
|
78
|
+
*/
|
|
79
|
+
annotations?: pulumi.Input<{
|
|
80
|
+
[key: string]: pulumi.Input<string>;
|
|
81
|
+
}>;
|
|
82
|
+
/**
|
|
83
|
+
* Cluster ID where the ClusterProxyConfig should be created
|
|
84
|
+
*/
|
|
85
|
+
clusterId: pulumi.Input<string>;
|
|
86
|
+
/**
|
|
87
|
+
* Indicates whether downstream proxy requests for service account tokens is enabled
|
|
88
|
+
*/
|
|
89
|
+
enabled: pulumi.Input<boolean>;
|
|
90
|
+
/**
|
|
91
|
+
* Labels of the resource
|
|
92
|
+
*/
|
|
93
|
+
labels?: pulumi.Input<{
|
|
94
|
+
[key: string]: pulumi.Input<string>;
|
|
95
|
+
}>;
|
|
96
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
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.ClusterProxyConfigV2 = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
class ClusterProxyConfigV2 extends pulumi.CustomResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get an existing ClusterProxyConfigV2 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 state Any extra arguments used during the lookup.
|
|
16
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
17
|
+
*/
|
|
18
|
+
static get(name, id, state, opts) {
|
|
19
|
+
return new ClusterProxyConfigV2(name, state, { ...opts, id: id });
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Returns true if the given object is an instance of ClusterProxyConfigV2. This is designed to work even
|
|
23
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
24
|
+
*/
|
|
25
|
+
static isInstance(obj) {
|
|
26
|
+
if (obj === undefined || obj === null) {
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
return obj['__pulumiType'] === ClusterProxyConfigV2.__pulumiType;
|
|
30
|
+
}
|
|
31
|
+
constructor(name, argsOrState, opts) {
|
|
32
|
+
let resourceInputs = {};
|
|
33
|
+
opts = opts || {};
|
|
34
|
+
if (opts.id) {
|
|
35
|
+
const state = argsOrState;
|
|
36
|
+
resourceInputs["annotations"] = state?.annotations;
|
|
37
|
+
resourceInputs["clusterId"] = state?.clusterId;
|
|
38
|
+
resourceInputs["enabled"] = state?.enabled;
|
|
39
|
+
resourceInputs["labels"] = state?.labels;
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
const args = argsOrState;
|
|
43
|
+
if (args?.clusterId === undefined && !opts.urn) {
|
|
44
|
+
throw new Error("Missing required property 'clusterId'");
|
|
45
|
+
}
|
|
46
|
+
if (args?.enabled === undefined && !opts.urn) {
|
|
47
|
+
throw new Error("Missing required property 'enabled'");
|
|
48
|
+
}
|
|
49
|
+
resourceInputs["annotations"] = args?.annotations;
|
|
50
|
+
resourceInputs["clusterId"] = args?.clusterId;
|
|
51
|
+
resourceInputs["enabled"] = args?.enabled;
|
|
52
|
+
resourceInputs["labels"] = args?.labels;
|
|
53
|
+
}
|
|
54
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
55
|
+
super(ClusterProxyConfigV2.__pulumiType, name, resourceInputs, opts);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
exports.ClusterProxyConfigV2 = ClusterProxyConfigV2;
|
|
59
|
+
/** @internal */
|
|
60
|
+
ClusterProxyConfigV2.__pulumiType = 'rancher2:index/clusterProxyConfigV2:ClusterProxyConfigV2';
|
|
61
|
+
//# sourceMappingURL=clusterProxyConfigV2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clusterProxyConfigV2.js","sourceRoot":"","sources":["../clusterProxyConfigV2.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,oBAAqB,SAAQ,MAAM,CAAC,cAAc;IAC3D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiC,EAAE,IAAmC;QAC/H,OAAO,IAAI,oBAAoB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC3E,CAAC;IAKD;;;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,oBAAoB,CAAC,YAAY,CAAC;IACrE,CAAC;IA2BD,YAAY,IAAY,EAAE,WAAkE,EAAE,IAAmC;QAC7H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAoD,CAAC;YACnE,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,EAAE,WAAW,CAAC;YACnD,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,EAAE,SAAS,CAAC;YAC/C,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,EAAE,OAAO,CAAC;YAC3C,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,EAAE,MAAM,CAAC;SAC5C;aAAM;YACH,MAAM,IAAI,GAAG,WAAmD,CAAC;YACjE,IAAI,IAAI,EAAE,SAAS,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC5C,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;aAC5D;YACD,IAAI,IAAI,EAAE,OAAO,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC1C,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;aAC1D;YACD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;SAC3C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,oBAAoB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzE,CAAC;;AA7EL,oDA8EC;AAhEG,gBAAgB;AACO,iCAAY,GAAG,0DAA0D,CAAC"}
|
package/clusterSync.d.ts
CHANGED
|
@@ -19,19 +19,19 @@ import * as outputs from "./types/output";
|
|
|
19
19
|
* },
|
|
20
20
|
* });
|
|
21
21
|
* // Create a new rancher2 Node Template
|
|
22
|
-
* const foo = new rancher2.NodeTemplate("foo", {
|
|
22
|
+
* const foo = new rancher2.index.NodeTemplate("foo", {
|
|
23
23
|
* name: "foo",
|
|
24
24
|
* description: "foo test",
|
|
25
|
-
* amazonec2Config: {
|
|
25
|
+
* amazonec2Config: [{
|
|
26
26
|
* accessKey: "<AWS_ACCESS_KEY>",
|
|
27
27
|
* secretKey: "<AWS_SECRET_KEY>",
|
|
28
28
|
* ami: "<AMI_ID>",
|
|
29
29
|
* region: "<REGION>",
|
|
30
|
-
*
|
|
30
|
+
* securityGroup: ["<AWS_SECURITY_GROUP>"],
|
|
31
31
|
* subnetId: "<SUBNET_ID>",
|
|
32
32
|
* vpcId: "<VPC_ID>",
|
|
33
33
|
* zone: "<ZONE>",
|
|
34
|
-
* },
|
|
34
|
+
* }],
|
|
35
35
|
* });
|
|
36
36
|
* // Create a new rancher2 Node Pool
|
|
37
37
|
* const fooNodePool = new rancher2.NodePool("foo", {
|
package/clusterSync.js
CHANGED
|
@@ -23,19 +23,19 @@ const utilities = require("./utilities");
|
|
|
23
23
|
* },
|
|
24
24
|
* });
|
|
25
25
|
* // Create a new rancher2 Node Template
|
|
26
|
-
* const foo = new rancher2.NodeTemplate("foo", {
|
|
26
|
+
* const foo = new rancher2.index.NodeTemplate("foo", {
|
|
27
27
|
* name: "foo",
|
|
28
28
|
* description: "foo test",
|
|
29
|
-
* amazonec2Config: {
|
|
29
|
+
* amazonec2Config: [{
|
|
30
30
|
* accessKey: "<AWS_ACCESS_KEY>",
|
|
31
31
|
* secretKey: "<AWS_SECRET_KEY>",
|
|
32
32
|
* ami: "<AMI_ID>",
|
|
33
33
|
* region: "<REGION>",
|
|
34
|
-
*
|
|
34
|
+
* securityGroup: ["<AWS_SECURITY_GROUP>"],
|
|
35
35
|
* subnetId: "<SUBNET_ID>",
|
|
36
36
|
* vpcId: "<VPC_ID>",
|
|
37
37
|
* zone: "<ZONE>",
|
|
38
|
-
* },
|
|
38
|
+
* }],
|
|
39
39
|
* });
|
|
40
40
|
* // Create a new rancher2 Node Pool
|
|
41
41
|
* const fooNodePool = new rancher2.NodePool("foo", {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
export declare function getClusterProxyConfigV2(opts?: pulumi.InvokeOptions): Promise<GetClusterProxyConfigV2Result>;
|
|
3
|
+
/**
|
|
4
|
+
* A collection of values returned by getClusterProxyConfigV2.
|
|
5
|
+
*/
|
|
6
|
+
export interface GetClusterProxyConfigV2Result {
|
|
7
|
+
readonly clusterId: string;
|
|
8
|
+
readonly enabled: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* The provider-assigned unique ID for this managed resource.
|
|
11
|
+
*/
|
|
12
|
+
readonly id: string;
|
|
13
|
+
}
|
|
14
|
+
export declare function getClusterProxyConfigV2Output(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetClusterProxyConfigV2Result>;
|