@aws-cdk/lambda-layer-kubectl-v34 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +5 -4
- package/.jsii.tabl.json +1 -0
- package/API.md +15 -1
- package/README.md +1 -1
- package/layer/Dockerfile +1 -1
- package/lib/kubectl-layer.js +1 -1
- package/lib/layer.zip +0 -0
- package/package.json +16 -8
- package/rosetta/default.ts-fixture +13 -0
package/.jsii
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
"author": {
|
|
3
3
|
"email": "aws-cdk-dev@amazon.com",
|
|
4
4
|
"name": "Amazon Web Services",
|
|
5
|
+
"organization": true,
|
|
5
6
|
"roles": [
|
|
6
7
|
"author"
|
|
7
8
|
]
|
|
@@ -3491,7 +3492,7 @@
|
|
|
3491
3492
|
"stability": "stable"
|
|
3492
3493
|
},
|
|
3493
3494
|
"homepage": "https://github.com/cdklabs/awscdk-asset-kubectl#readme",
|
|
3494
|
-
"jsiiVersion": "5.
|
|
3495
|
+
"jsiiVersion": "5.9.30 (build 832a54a)",
|
|
3495
3496
|
"keywords": [
|
|
3496
3497
|
"cdk"
|
|
3497
3498
|
],
|
|
@@ -3506,7 +3507,7 @@
|
|
|
3506
3507
|
},
|
|
3507
3508
|
"name": "@aws-cdk/lambda-layer-kubectl-v34",
|
|
3508
3509
|
"readme": {
|
|
3509
|
-
"markdown": "# Lambda Layer with KubeCtl v1.34\n<!--BEGIN STABILITY BANNER-->\n\n---\n\n\n\n---\n\n<!--END STABILITY BANNER-->\n\nThis module exports a single class called `KubectlV34Layer` which is a `lambda.LayerVersion` that\nbundles the [`kubectl`](https://kubernetes.io/docs/reference/kubectl/kubectl/) and the\n[`helm`](https://helm.sh/) command line.\n\n> - Helm Version: 3.19.0\n> - Kubectl Version: 1.34.0\n>\n\nUsage:\n\n```ts\n// KubectlLayer bundles the 'kubectl' and 'helm' command lines\nimport { KubectlV34Layer } from '@aws-cdk/lambda-layer-kubectl-
|
|
3510
|
+
"markdown": "# Lambda Layer with KubeCtl v1.34\n<!--BEGIN STABILITY BANNER-->\n\n---\n\n\n\n---\n\n<!--END STABILITY BANNER-->\n\nThis module exports a single class called `KubectlV34Layer` which is a `lambda.LayerVersion` that\nbundles the [`kubectl`](https://kubernetes.io/docs/reference/kubectl/kubectl/) and the\n[`helm`](https://helm.sh/) command line.\n\n> - Helm Version: 3.19.0\n> - Kubectl Version: 1.34.0\n>\n\nUsage:\n\n```ts\n// KubectlLayer bundles the 'kubectl' and 'helm' command lines\nimport { KubectlV34Layer } from '@aws-cdk/lambda-layer-kubectl-v34';\nimport * as lambda from 'aws-cdk-lib/aws-lambda';\n\ndeclare const fn: lambda.Function;\nconst kubectl = new KubectlV34Layer(this, 'KubectlLayer');\nfn.addLayers(kubectl);\n```\n\n`kubectl` will be installed under `/opt/kubectl/kubectl`, and `helm` will be installed under `/opt/helm/helm`.\n"
|
|
3510
3511
|
},
|
|
3511
3512
|
"repository": {
|
|
3512
3513
|
"type": "git",
|
|
@@ -3578,6 +3579,6 @@
|
|
|
3578
3579
|
"symbolId": "src/kubectl-layer:KubectlV34Layer"
|
|
3579
3580
|
}
|
|
3580
3581
|
},
|
|
3581
|
-
"version": "2.
|
|
3582
|
-
"fingerprint": "
|
|
3582
|
+
"version": "2.1.0",
|
|
3583
|
+
"fingerprint": "+diMEen8JYvEkua4fU1MKuY/ZEmRWDS37iQUqri8jYs="
|
|
3583
3584
|
}
|
package/.jsii.tabl.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":"2","toolVersion":"5.9.33","snippets":{"c645aa7fb47faccbd4814491ec6de695333e36a7a9200fad0ae268933d38a15f":{"translations":{"python":{"source":"# KubectlLayer bundles the 'kubectl' and 'helm' command lines\nfrom aws_cdk.lambda_layer_kubectl_v34 import KubectlV34Layer\nimport aws_cdk.aws_lambda as lambda_\n\n# fn: lambda.Function\n\nkubectl = KubectlV34Layer(self, \"KubectlLayer\")\nfn.add_layers(kubectl)","version":"2"},"csharp":{"source":"// KubectlLayer bundles the 'kubectl' and 'helm' command lines\nusing Amazon.CDK.LambdaLayer.KubectlV34;\nusing Amazon.CDK.AWS.Lambda;\n\nFunction fn;\n\nvar kubectl = new KubectlV34Layer(this, \"KubectlLayer\");\nfn.AddLayers(kubectl);","version":"1"},"java":{"source":"// KubectlLayer bundles the 'kubectl' and 'helm' command lines\nimport software.amazon.awscdk.cdk.lambdalayer.kubectl.v34.KubectlV34Layer;\nimport software.amazon.awscdk.services.lambda.*;\n\nFunction fn;\n\nKubectlV34Layer kubectl = new KubectlV34Layer(this, \"KubectlLayer\");\nfn.addLayers(kubectl);","version":"1"},"go":{"source":"// KubectlLayer bundles the 'kubectl' and 'helm' command lines\nimport \"github.com/cdklabs/awscdk-kubectl-go/kubectlv34\"\nimport lambda \"github.com/aws/aws-cdk-go/awscdk\"\n\nvar fn Function\n\nkubectl := kubectlv34.NewKubectlV34Layer(this, jsii.String(\"KubectlLayer\"))\nfn.AddLayers(kubectl)","version":"1"},"$":{"source":"// KubectlLayer bundles the 'kubectl' and 'helm' command lines\nimport { KubectlV34Layer } from '@aws-cdk/lambda-layer-kubectl-v34';\nimport * as lambda from 'aws-cdk-lib/aws-lambda';\n\ndeclare const fn: lambda.Function;\nconst kubectl = new KubectlV34Layer(this, 'KubectlLayer');\nfn.addLayers(kubectl);","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"@aws-cdk/lambda-layer-kubectl-v34"},"field":{"field":"markdown","line":22}},"didCompile":true,"fqnsReferenced":["@aws-cdk/lambda-layer-kubectl-v34.KubectlV34Layer","aws-cdk-lib.aws_lambda.Function#addLayers","aws-cdk-lib.aws_lambda.ILayerVersion"],"fullSource":"// Hoisted imports begin after !show marker below\n/// !show\n// KubectlLayer bundles the 'kubectl' and 'helm' command lines\nimport { KubectlV34Layer } from '@aws-cdk/lambda-layer-kubectl-v34';\nimport * as lambda from 'aws-cdk-lib/aws-lambda';\n\ndeclare const fn: lambda.Function;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Construct } from 'constructs';\nimport {\n Stack,\n} from 'aws-cdk-lib';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\nconst kubectl = new KubectlV34Layer(this, 'KubectlLayer');\nfn.addLayers(kubectl);\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}","syntaxKindCounter":{"11":3,"80":10,"110":1,"138":1,"167":1,"184":1,"212":1,"214":1,"215":1,"244":2,"245":1,"261":2,"262":2,"273":2,"274":2,"275":1,"276":1,"277":1,"308":1},"fqnsFingerprint":"e2cf5fd0f52682eb48bda89c356abdaa59fcde4840643b7d1129fa5933d39826"}}}
|
package/API.md
CHANGED
|
@@ -112,7 +112,7 @@ permission on the layer version.
|
|
|
112
112
|
|
|
113
113
|
---
|
|
114
114
|
|
|
115
|
-
#####
|
|
115
|
+
##### `isConstruct` <a name="isConstruct" id="@aws-cdk/lambda-layer-kubectl-v34.KubectlV34Layer.isConstruct"></a>
|
|
116
116
|
|
|
117
117
|
```typescript
|
|
118
118
|
import { KubectlV34Layer } from '@aws-cdk/lambda-layer-kubectl-v34'
|
|
@@ -122,6 +122,20 @@ KubectlV34Layer.isConstruct(x: any)
|
|
|
122
122
|
|
|
123
123
|
Checks if `x` is a construct.
|
|
124
124
|
|
|
125
|
+
Use this method instead of `instanceof` to properly detect `Construct`
|
|
126
|
+
instances, even when the construct library is symlinked.
|
|
127
|
+
|
|
128
|
+
Explanation: in JavaScript, multiple copies of the `constructs` library on
|
|
129
|
+
disk are seen as independent, completely different libraries. As a
|
|
130
|
+
consequence, the class `Construct` in each copy of the `constructs` library
|
|
131
|
+
is seen as a different class, and an instance of one class will not test as
|
|
132
|
+
`instanceof` the other class. `npm install` will not create installations
|
|
133
|
+
like this, but users may manually symlink construct libraries together or
|
|
134
|
+
use a monorepo tool: in those cases, multiple copies of the `constructs`
|
|
135
|
+
library can be accidentally installed, and `instanceof` will behave
|
|
136
|
+
unpredictably. It is safest to avoid using `instanceof`, and using
|
|
137
|
+
this type-testing method instead.
|
|
138
|
+
|
|
125
139
|
###### `x`<sup>Required</sup> <a name="x" id="@aws-cdk/lambda-layer-kubectl-v34.KubectlV34Layer.isConstruct.parameter.x"></a>
|
|
126
140
|
|
|
127
141
|
- *Type:* any
|
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ Usage:
|
|
|
21
21
|
|
|
22
22
|
```ts
|
|
23
23
|
// KubectlLayer bundles the 'kubectl' and 'helm' command lines
|
|
24
|
-
import { KubectlV34Layer } from '@aws-cdk/lambda-layer-kubectl-
|
|
24
|
+
import { KubectlV34Layer } from '@aws-cdk/lambda-layer-kubectl-v34';
|
|
25
25
|
import * as lambda from 'aws-cdk-lib/aws-lambda';
|
|
26
26
|
|
|
27
27
|
declare const fn: lambda.Function;
|
package/layer/Dockerfile
CHANGED
package/lib/kubectl-layer.js
CHANGED
|
@@ -21,5 +21,5 @@ class KubectlV34Layer extends lambda.LayerVersion {
|
|
|
21
21
|
}
|
|
22
22
|
exports.KubectlV34Layer = KubectlV34Layer;
|
|
23
23
|
_a = JSII_RTTI_SYMBOL_1;
|
|
24
|
-
KubectlV34Layer[_a] = { fqn: "@aws-cdk/lambda-layer-kubectl-v34.KubectlV34Layer", version: "2.
|
|
24
|
+
KubectlV34Layer[_a] = { fqn: "@aws-cdk/lambda-layer-kubectl-v34.KubectlV34Layer", version: "2.1.0" };
|
|
25
25
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia3ViZWN0bC1sYXllci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9rdWJlY3RsLWxheWVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsaURBQWlEO0FBRWpELHFDQUFpRDtBQUVqRDs7R0FFRztB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gMy4xOS4wJyxcbiAgICAgIGxpY2Vuc2U6ICdBcGFjaGUtMi4wJyxcbiAgICB9KTtcbiAgfVxufVxuIl19
|
package/lib/layer.zip
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -15,12 +15,14 @@
|
|
|
15
15
|
"docgen": "npx projen docgen",
|
|
16
16
|
"eject": "npx projen eject",
|
|
17
17
|
"eslint": "npx projen eslint",
|
|
18
|
+
"integ": "npx projen integ",
|
|
18
19
|
"integ:kubectl-layer:assert": "npx projen integ:kubectl-layer:assert",
|
|
19
20
|
"integ:kubectl-layer:deploy": "npx projen integ:kubectl-layer:deploy",
|
|
20
21
|
"integ:kubectl-layer:destroy": "npx projen integ:kubectl-layer:destroy",
|
|
21
22
|
"integ:kubectl-layer:snapshot": "npx projen integ:kubectl-layer:snapshot",
|
|
22
23
|
"integ:kubectl-layer:watch": "npx projen integ:kubectl-layer:watch",
|
|
23
24
|
"integ:snapshot-all": "npx projen integ:snapshot-all",
|
|
25
|
+
"integ:update": "npx projen integ:update",
|
|
24
26
|
"package": "npx projen package",
|
|
25
27
|
"package-all": "npx projen package-all",
|
|
26
28
|
"package:dotnet": "npx projen package:dotnet",
|
|
@@ -32,26 +34,32 @@
|
|
|
32
34
|
"post-upgrade": "npx projen post-upgrade",
|
|
33
35
|
"pre-compile": "npx projen pre-compile",
|
|
34
36
|
"release:kubectl-v34/main": "npx projen release:kubectl-v34/main",
|
|
37
|
+
"rosetta:extract": "npx projen rosetta:extract",
|
|
35
38
|
"test": "npx projen test",
|
|
36
39
|
"test:watch": "npx projen test:watch",
|
|
37
40
|
"unbump": "npx projen unbump",
|
|
38
41
|
"upgrade": "npx projen upgrade",
|
|
42
|
+
"upgrade-cdklabs-projen-project-types": "npx projen upgrade-cdklabs-projen-project-types",
|
|
43
|
+
"upgrade-dev-deps": "npx projen upgrade-dev-deps",
|
|
39
44
|
"watch": "npx projen watch",
|
|
40
45
|
"projen": "npx projen"
|
|
41
46
|
},
|
|
42
47
|
"author": {
|
|
43
48
|
"name": "Amazon Web Services",
|
|
44
49
|
"email": "aws-cdk-dev@amazon.com",
|
|
45
|
-
"organization":
|
|
50
|
+
"organization": true
|
|
46
51
|
},
|
|
47
52
|
"devDependencies": {
|
|
53
|
+
"@aws-cdk/integ-runner": "latest",
|
|
54
|
+
"@aws-cdk/integ-tests-alpha": "latest",
|
|
48
55
|
"@stylistic/eslint-plugin": "^2",
|
|
49
56
|
"@types/jest": "^27",
|
|
50
|
-
"@types/node": "^
|
|
57
|
+
"@types/node": "^18",
|
|
51
58
|
"@typescript-eslint/eslint-plugin": "^8",
|
|
52
59
|
"@typescript-eslint/parser": "^8",
|
|
53
60
|
"aws-cdk": "^2",
|
|
54
61
|
"aws-cdk-lib": "2.94.0",
|
|
62
|
+
"cdklabs-projen-project-types": "^0.3.14",
|
|
55
63
|
"commit-and-tag-version": "^12",
|
|
56
64
|
"constructs": "10.0.5",
|
|
57
65
|
"eslint": "^9",
|
|
@@ -59,12 +67,12 @@
|
|
|
59
67
|
"eslint-plugin-import": "^2.32.0",
|
|
60
68
|
"jest": "^27",
|
|
61
69
|
"jest-junit": "^16",
|
|
62
|
-
"jsii": "~5.
|
|
63
|
-
"jsii-diff": "^1.
|
|
70
|
+
"jsii": "~5.9",
|
|
71
|
+
"jsii-diff": "^1.127.0",
|
|
64
72
|
"jsii-docgen": "^10.5.0",
|
|
65
|
-
"jsii-pacmak": "^1.
|
|
66
|
-
"jsii-rosetta": "~5.
|
|
67
|
-
"projen": "^0.
|
|
73
|
+
"jsii-pacmak": "^1.127.0",
|
|
74
|
+
"jsii-rosetta": "~5.9.33",
|
|
75
|
+
"projen": "^0.99.12",
|
|
68
76
|
"ts-jest": "^27",
|
|
69
77
|
"ts-node": "^10.9.2",
|
|
70
78
|
"typescript": "^4.9.5"
|
|
@@ -82,7 +90,7 @@
|
|
|
82
90
|
"publishConfig": {
|
|
83
91
|
"access": "public"
|
|
84
92
|
},
|
|
85
|
-
"version": "2.
|
|
93
|
+
"version": "2.1.0",
|
|
86
94
|
"jest": {
|
|
87
95
|
"coverageProvider": "v8",
|
|
88
96
|
"testMatch": [
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Fixture with packages imported, but nothing else
|
|
2
|
+
import { Construct } from 'constructs';
|
|
3
|
+
import {
|
|
4
|
+
Stack,
|
|
5
|
+
} from 'aws-cdk-lib';
|
|
6
|
+
|
|
7
|
+
class Fixture extends Stack {
|
|
8
|
+
constructor(scope: Construct, id: string) {
|
|
9
|
+
super(scope, id);
|
|
10
|
+
|
|
11
|
+
/// here
|
|
12
|
+
}
|
|
13
|
+
}
|