@pulumi/eks 2.8.1 → 2.9.0-alpha.1727304793
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/addon.d.ts +61 -13
- package/addon.js +45 -18
- package/addon.js.map +1 -1
- package/cluster.d.ts +291 -585
- package/cluster.js +120 -947
- package/cluster.js.map +1 -1
- package/clusterCreationRoleProvider.d.ts +28 -0
- package/clusterCreationRoleProvider.js +47 -0
- package/clusterCreationRoleProvider.js.map +1 -0
- package/clusterMixins.d.ts +71 -0
- package/clusterMixins.js +107 -0
- package/clusterMixins.js.map +1 -0
- package/index.d.ts +31 -7
- package/index.js +80 -34
- package/index.js.map +1 -1
- package/managedNodeGroup.d.ts +221 -0
- package/managedNodeGroup.js +81 -0
- package/managedNodeGroup.js.map +1 -0
- package/nodeGroup.d.ts +273 -0
- package/nodeGroup.js +93 -0
- package/nodeGroup.js.map +1 -0
- package/nodeGroupSecurityGroup.d.ts +51 -0
- package/nodeGroupSecurityGroup.js +60 -0
- package/nodeGroupSecurityGroup.js.map +1 -0
- package/nodeGroupV2.d.ts +280 -0
- package/nodeGroupV2.js +90 -0
- package/nodeGroupV2.js.map +1 -0
- package/nodegroupMixins.d.ts +203 -0
- package/{securitygroup.js → nodegroupMixins.js} +25 -36
- package/nodegroupMixins.js.map +1 -0
- package/package.json +8 -36
- package/provider.d.ts +21 -0
- package/provider.js +38 -0
- package/provider.js.map +1 -0
- package/{storageclass.js → storageclassMixins.js} +1 -14
- package/storageclassMixins.js.map +1 -0
- package/types/enums/index.d.ts +170 -0
- package/types/enums/index.js +145 -0
- package/types/enums/index.js.map +1 -0
- package/types/index.d.ts +4 -0
- package/types/index.js +13 -0
- package/types/index.js.map +1 -0
- package/types/input.d.ts +745 -0
- package/types/input.js +30 -0
- package/types/input.js.map +1 -0
- package/types/output.d.ts +422 -0
- package/types/output.js +5 -0
- package/types/output.js.map +1 -0
- package/utilities.d.ts +8 -1
- package/utilities.js +90 -17
- package/utilities.js.map +1 -1
- package/vpcCniAddon.d.ts +175 -0
- package/vpcCniAddon.js +88 -0
- package/vpcCniAddon.js.map +1 -0
- package/LICENSE +0 -202
- package/README.md +0 -77
- package/authenticationMode.d.ts +0 -24
- package/authenticationMode.js +0 -172
- package/authenticationMode.js.map +0 -1
- package/authenticationMode.test.d.ts +0 -1
- package/authenticationMode.test.js +0 -208
- package/authenticationMode.test.js.map +0 -1
- package/cert-thumprint.d.ts +0 -16
- package/cert-thumprint.js +0 -113
- package/cert-thumprint.js.map +0 -1
- package/cmd/provider/addon.d.ts +0 -1
- package/cmd/provider/addon.js +0 -40
- package/cmd/provider/addon.js.map +0 -1
- package/cmd/provider/cluster.d.ts +0 -1
- package/cmd/provider/cluster.js +0 -71
- package/cmd/provider/cluster.js.map +0 -1
- package/cmd/provider/cni.d.ts +0 -2
- package/cmd/provider/cni.js +0 -291
- package/cmd/provider/cni.js.map +0 -1
- package/cmd/provider/index.d.ts +0 -1
- package/cmd/provider/index.js +0 -171
- package/cmd/provider/index.js.map +0 -1
- package/cmd/provider/nodegroup.d.ts +0 -1
- package/cmd/provider/nodegroup.js +0 -89
- package/cmd/provider/nodegroup.js.map +0 -1
- package/cmd/provider/randomSuffix.d.ts +0 -1
- package/cmd/provider/randomSuffix.js +0 -52
- package/cmd/provider/randomSuffix.js.map +0 -1
- package/cmd/provider/schema.json +0 -1909
- package/cmd/provider/securitygroup.d.ts +0 -1
- package/cmd/provider/securitygroup.js +0 -41
- package/cmd/provider/securitygroup.js.map +0 -1
- package/cni/README.md +0 -6
- package/cni/aws-k8s-cni.yaml +0 -602
- package/cni.d.ts +0 -177
- package/cni.js +0 -64
- package/cni.js.map +0 -1
- package/dashboard/heapster-rbac.yaml +0 -12
- package/dashboard/heapster.yaml +0 -46
- package/dashboard/influxdb.yaml +0 -40
- package/dashboard/kubernetes-dashboard.yaml +0 -167
- package/dashboard.d.ts +0 -5
- package/dashboard.js +0 -58
- package/dashboard.js.map +0 -1
- package/dependencies.d.ts +0 -2
- package/dependencies.js +0 -81
- package/dependencies.js.map +0 -1
- package/dependencies.test.d.ts +0 -1
- package/dependencies.test.js +0 -133
- package/dependencies.test.js.map +0 -1
- package/nodegroup.d.ts +0 -515
- package/nodegroup.js +0 -1152
- package/nodegroup.js.map +0 -1
- package/nodegroup.test.d.ts +0 -1
- package/nodegroup.test.js +0 -336
- package/nodegroup.test.js.map +0 -1
- package/package.json.dev +0 -67
- package/randomSuffix.d.ts +0 -1
- package/randomSuffix.js +0 -51
- package/randomSuffix.js.map +0 -1
- package/securitygroup.d.ts +0 -52
- package/securitygroup.js.map +0 -1
- package/servicerole.d.ts +0 -43
- package/servicerole.js +0 -72
- package/servicerole.js.map +0 -1
- package/storageclass.js.map +0 -1
- package/utils.d.ts +0 -23
- package/utils.js +0 -16
- package/utils.js.map +0 -1
- /package/{storageclass.d.ts → storageclassMixins.d.ts} +0 -0
package/servicerole.js
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright 2016-2019, Pulumi Corporation.
|
|
3
|
-
//
|
|
4
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
// you may not use this file except in compliance with the License.
|
|
6
|
-
// You may obtain a copy of the License at
|
|
7
|
-
//
|
|
8
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
//
|
|
10
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
// See the License for the specific language governing permissions and
|
|
14
|
-
// limitations under the License.
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.ServiceRole = void 0;
|
|
17
|
-
const aws = require("@pulumi/aws");
|
|
18
|
-
const pulumi = require("@pulumi/pulumi");
|
|
19
|
-
const crypto = require("crypto");
|
|
20
|
-
// sha1hash returns a partial SHA1 hash of the input string.
|
|
21
|
-
function sha1hash(s) {
|
|
22
|
-
const shasum = crypto.createHash("sha1");
|
|
23
|
-
shasum.update(s);
|
|
24
|
-
// Limit the size of hashes to ensure we generate shorter/ resource names.
|
|
25
|
-
return shasum.digest("hex").substring(0, 8);
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* The ServiceRole component creates an IAM role for a particular service and attaches to it a list of well-known
|
|
29
|
-
* managed policies.
|
|
30
|
-
*/
|
|
31
|
-
class ServiceRole extends pulumi.ComponentResource {
|
|
32
|
-
/**
|
|
33
|
-
* Create a new ServiceRole.
|
|
34
|
-
*
|
|
35
|
-
* @param name The _unique_ name of this component.
|
|
36
|
-
* @param args The arguments for this cluster.
|
|
37
|
-
* @param opts A bag of options that control this component's behavior.
|
|
38
|
-
*/
|
|
39
|
-
constructor(name, args, opts) {
|
|
40
|
-
super("eks:index:ServiceRole", name, args, opts);
|
|
41
|
-
const assumeRolePolicy = pulumi.output(args.service).apply((service) => JSON.stringify({
|
|
42
|
-
Version: "2012-10-17",
|
|
43
|
-
Statement: [
|
|
44
|
-
{
|
|
45
|
-
Action: ["sts:AssumeRole"],
|
|
46
|
-
Effect: "Allow",
|
|
47
|
-
Principal: {
|
|
48
|
-
Service: [service],
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
],
|
|
52
|
-
}));
|
|
53
|
-
const role = new aws.iam.Role(`${name}-role`, {
|
|
54
|
-
description: args.description,
|
|
55
|
-
assumeRolePolicy: assumeRolePolicy,
|
|
56
|
-
tags: args.tags,
|
|
57
|
-
}, { parent: this });
|
|
58
|
-
const rolePolicyAttachments = [];
|
|
59
|
-
for (const policy of args.managedPolicyArns || []) {
|
|
60
|
-
rolePolicyAttachments.push(new aws.iam.RolePolicyAttachment(`${name}-${sha1hash(policy.id)}`, {
|
|
61
|
-
policyArn: policy.arn,
|
|
62
|
-
role: role,
|
|
63
|
-
}, { parent: this }));
|
|
64
|
-
}
|
|
65
|
-
this.role = pulumi
|
|
66
|
-
.all([role.arn, ...rolePolicyAttachments.map((r) => r.id)])
|
|
67
|
-
.apply(() => role);
|
|
68
|
-
this.registerOutputs({ role: this.role });
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
exports.ServiceRole = ServiceRole;
|
|
72
|
-
//# sourceMappingURL=servicerole.js.map
|
package/servicerole.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"servicerole.js","sourceRoot":"","sources":["../servicerole.ts"],"names":[],"mappings":";AAAA,2CAA2C;AAC3C,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,iDAAiD;AACjD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,mCAAmC;AACnC,yCAAyC;AACzC,iCAAiC;AAEjC,4DAA4D;AAC5D,SAAS,QAAQ,CAAC,CAAS;IACvB,MAAM,MAAM,GAAgB,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;IACtD,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IACjB,0EAA0E;IAC1E,OAAO,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAChD,CAAC;AAyBD;;;GAGG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,iBAAiB;IAIrD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAqB,EAAE,IAA6B;QAC1E,KAAK,CAAC,uBAAuB,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAEjD,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE,EAAE,CACnE,IAAI,CAAC,SAAS,CAAC;YACX,OAAO,EAAE,YAAY;YACrB,SAAS,EAAE;gBACP;o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Y,CAAC,SAAS,EAAE;QACxB,UAAU,CAAC,WAAW,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;KACxF;IACD,IAAI,YAAY,CAAC,QAAQ,EAAE;QACvB,UAAU,CAAC,UAAU,CAAC,GAAG,YAAY,CAAC,QAAQ,CAAC;KAClD;IAED,OAAO,IAAI,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,YAAY,CAClC,IAAI,EACJ;QACI,QAAQ,EAAE,QAAQ;QAClB,WAAW,EAAE,uBAAuB;QACpC,UAAU,EAAE,UAAU;QACtB,oBAAoB,EAAE,YAAY,CAAC,oBAAoB;QACvD,YAAY,EAAE,YAAY,CAAC,YAAY;QACvC,aAAa,EAAE,YAAY,CAAC,aAAa;QACzC,iBAAiB,EAAE,YAAY,CAAC,iBAAiB;KACpD,EACD,IAAI,CACP,CAAC;AACN,CAAC;AAhDD,gDAgDC"}
|
package/utils.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as k8s from "@pulumi/kubernetes";
|
|
2
|
-
import * as pulumi from "@pulumi/pulumi";
|
|
3
|
-
/**
|
|
4
|
-
* InputTags represents an Input map type that can leverage dynamic string k/v
|
|
5
|
-
* for use on types that expect a k/v type with possible computed runtime values,
|
|
6
|
-
* such as special CloudFormation Tags. See
|
|
7
|
-
* https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html.
|
|
8
|
-
*/
|
|
9
|
-
export type InputTags = pulumi.Input<{
|
|
10
|
-
[key: string]: pulumi.Input<string>;
|
|
11
|
-
}>;
|
|
12
|
-
/**
|
|
13
|
-
* UserStorageClasses represents a map of an Output type to a
|
|
14
|
-
* k8s StorageClass to capture all of the *user-created* storage classes. This
|
|
15
|
-
* map does not include the default `gp2` automatically added by EKS.
|
|
16
|
-
*
|
|
17
|
-
* Note: As of Kubernetes v1.11+ on EKS, a default `gp2` storage class will
|
|
18
|
-
* always be created automatically for the cluster by the EKS service. See
|
|
19
|
-
* https://docs.aws.amazon.com/eks/latest/userguide/storage-classes.html
|
|
20
|
-
*/
|
|
21
|
-
export type UserStorageClasses = pulumi.Output<{
|
|
22
|
-
[key: string]: k8s.storage.v1.StorageClass;
|
|
23
|
-
}>;
|
package/utils.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright 2016-2019, Pulumi Corporation.
|
|
3
|
-
//
|
|
4
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
// you may not use this file except in compliance with the License.
|
|
6
|
-
// You may obtain a copy of the License at
|
|
7
|
-
//
|
|
8
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
//
|
|
10
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
// See the License for the specific language governing permissions and
|
|
14
|
-
// limitations under the License.
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
//# sourceMappingURL=utils.js.map
|
package/utils.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../utils.ts"],"names":[],"mappings":";AAAA,2CAA2C;AAC3C,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,iDAAiD;AACjD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC"}
|
|
File without changes
|