@aws-cdk/lambda-layer-kubectl-v33 2.0.0 → 2.0.1
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/CONTRIBUTING.md +1 -1
- package/README.md +1 -1
- package/lib/kubectl-layer.js +1 -1
- package/lib/layer.zip +0 -0
- package/package.json +17 -9
- 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.27 (build 260e132)",
|
|
3495
3496
|
"keywords": [
|
|
3496
3497
|
"cdk"
|
|
3497
3498
|
],
|
|
@@ -3506,7 +3507,7 @@
|
|
|
3506
3507
|
},
|
|
3507
3508
|
"name": "@aws-cdk/lambda-layer-kubectl-v33",
|
|
3508
3509
|
"readme": {
|
|
3509
|
-
"markdown": "# Lambda Layer with KubeCtl v1.33\n<!--BEGIN STABILITY BANNER-->\n\n---\n\n\n\n---\n\n<!--END STABILITY BANNER-->\n\nThis module exports a single class called `KubectlV33Layer` 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.18.0\n> - Kubectl Version: 1.33.0\n>\n\nUsage:\n\n```ts\n// KubectlLayer bundles the 'kubectl' and 'helm' command lines\nimport { KubectlV33Layer } from '@aws-cdk/lambda-layer-kubectl-
|
|
3510
|
+
"markdown": "# Lambda Layer with KubeCtl v1.33\n<!--BEGIN STABILITY BANNER-->\n\n---\n\n\n\n---\n\n<!--END STABILITY BANNER-->\n\nThis module exports a single class called `KubectlV33Layer` 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.18.0\n> - Kubectl Version: 1.33.0\n>\n\nUsage:\n\n```ts\n// KubectlLayer bundles the 'kubectl' and 'helm' command lines\nimport { KubectlV33Layer } from '@aws-cdk/lambda-layer-kubectl-v33';\nimport * as lambda from 'aws-cdk-lib/aws-lambda';\n\ndeclare const fn: lambda.Function;\nconst kubectl = new KubectlV33Layer(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:KubectlV33Layer"
|
|
3579
3580
|
}
|
|
3580
3581
|
},
|
|
3581
|
-
"version": "2.0.
|
|
3582
|
-
"fingerprint": "
|
|
3582
|
+
"version": "2.0.1",
|
|
3583
|
+
"fingerprint": "tPcxgOvlnc65XS8LZAScHKzU7qfeyU9mAVBUkWnit7o="
|
|
3583
3584
|
}
|
package/.jsii.tabl.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":"2","toolVersion":"5.8.25","snippets":{"15c8f0a2949a06808fa94952980ce59054c157e8778fe55375a6b3fcf78ac75d":{"translations":{"python":{"source":"# KubectlLayer bundles the 'kubectl' and 'helm' command lines\nfrom aws_cdk.lambda_layer_kubectl_v33 import KubectlV33Layer\nimport aws_cdk.aws_lambda as lambda_\n\n# fn: lambda.Function\n\nkubectl = KubectlV33Layer(self, \"KubectlLayer\")\nfn.add_layers(kubectl)","version":"2"},"csharp":{"source":"// KubectlLayer bundles the 'kubectl' and 'helm' command lines\nusing Amazon.CDK.LambdaLayer.KubectlV33;\nusing Amazon.CDK.AWS.Lambda;\n\nFunction fn;\n\nvar kubectl = new KubectlV33Layer(this, \"KubectlLayer\");\nfn.AddLayers(kubectl);","version":"1"},"java":{"source":"// KubectlLayer bundles the 'kubectl' and 'helm' command lines\nimport software.amazon.awscdk.cdk.lambdalayer.kubectl.v33.KubectlV33Layer;\nimport software.amazon.awscdk.services.lambda.*;\n\nFunction fn;\n\nKubectlV33Layer kubectl = new KubectlV33Layer(this, \"KubectlLayer\");\nfn.addLayers(kubectl);","version":"1"},"go":{"source":"// KubectlLayer bundles the 'kubectl' and 'helm' command lines\nimport \"github.com/cdklabs/awscdk-kubectl-go/kubectlv33\"\nimport lambda \"github.com/aws/aws-cdk-go/awscdk\"\n\nvar fn function\n\nkubectl := kubectlv33.NewKubectlV33Layer(this, jsii.String(\"KubectlLayer\"))\nfn.AddLayers(kubectl)","version":"1"},"$":{"source":"// KubectlLayer bundles the 'kubectl' and 'helm' command lines\nimport { KubectlV33Layer } from '@aws-cdk/lambda-layer-kubectl-v33';\nimport * as lambda from 'aws-cdk-lib/aws-lambda';\n\ndeclare const fn: lambda.Function;\nconst kubectl = new KubectlV33Layer(this, 'KubectlLayer');\nfn.addLayers(kubectl);","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"@aws-cdk/lambda-layer-kubectl-v33"},"field":{"field":"markdown","line":22}},"didCompile":true,"fqnsReferenced":["@aws-cdk/lambda-layer-kubectl-v33.KubectlV33Layer","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 { KubectlV33Layer } from '@aws-cdk/lambda-layer-kubectl-v33';\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 KubectlV33Layer(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,"166":1,"183":1,"211":1,"213":1,"214":1,"243":2,"244":1,"260":2,"261":2,"272":2,"273":2,"274":1,"275":1,"276":1,"307":1},"fqnsFingerprint":"16a24b2efa1e1e50ddb83057bde06ad585d151e49febdb78224e3387b4a34c5c"}}}
|
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-v33.KubectlV33Layer.isConstruct"></a>
|
|
116
116
|
|
|
117
117
|
```typescript
|
|
118
118
|
import { KubectlV33Layer } from '@aws-cdk/lambda-layer-kubectl-v33'
|
|
@@ -122,6 +122,20 @@ KubectlV33Layer.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-v33.KubectlV33Layer.isConstruct.parameter.x"></a>
|
|
126
140
|
|
|
127
141
|
- *Type:* any
|
package/CONTRIBUTING.md
CHANGED
|
@@ -89,7 +89,7 @@ branch called `kubectl.vY`in the corresponding go binding repository, [`cdklabs/
|
|
|
89
89
|
This repository consists of multiple branches, with each branch corresponding to a specific Kubectl version.
|
|
90
90
|
For example, `kubectl-v24/main` is the branch that releases a Lambda Layer that bundles Kubectl version 1.24.
|
|
91
91
|
Sometimes, a contribution made to a specific branch should be propogated to other branches in this repository as well.
|
|
92
|
-
To do this, you can add `backport-to-
|
|
92
|
+
To do this, you can add `backport-to-supported-branches` as a label to the PR that tells Mergify to backport when the PR is merged.
|
|
93
93
|
This will backport to all versions of kubectl except kubectl v1.20, which is special and does not expose a Lambda Layer.
|
|
94
94
|
|
|
95
95
|
If you think you need to backport to a specific subset of branches instead, you can ask a maintainer to backport via
|
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 { KubectlV33Layer } from '@aws-cdk/lambda-layer-kubectl-
|
|
24
|
+
import { KubectlV33Layer } from '@aws-cdk/lambda-layer-kubectl-v33';
|
|
25
25
|
import * as lambda from 'aws-cdk-lib/aws-lambda';
|
|
26
26
|
|
|
27
27
|
declare const fn: lambda.Function;
|
package/lib/kubectl-layer.js
CHANGED
|
@@ -21,5 +21,5 @@ class KubectlV33Layer extends lambda.LayerVersion {
|
|
|
21
21
|
}
|
|
22
22
|
exports.KubectlV33Layer = KubectlV33Layer;
|
|
23
23
|
_a = JSII_RTTI_SYMBOL_1;
|
|
24
|
-
KubectlV33Layer[_a] = { fqn: "@aws-cdk/lambda-layer-kubectl-v33.KubectlV33Layer", version: "2.0.
|
|
24
|
+
KubectlV33Layer[_a] = { fqn: "@aws-cdk/lambda-layer-kubectl-v33.KubectlV33Layer", version: "2.0.1" };
|
|
25
25
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia3ViZWN0bC1sYXllci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9rdWJlY3RsLWxheWVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsaURBQWlEO0FBRWpELHFDQUFpRDtBQUVqRDs7R0FFRztBQUNILE1BQWEsZUFBZ0IsU0FBUSxNQUFNLENBQUMsWUFBWTtJQUN0RCxZQUFZLEtBQWdCLEVBQUUsRUFBVTtRQUN0QyxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsRUFBRTtZQUNmLElBQUksRUFBRSxNQUFNLENBQUMsSUFBSSxDQUFDLFNBQVMsQ0FBQyxtQkFBVSxFQUFFO2dCQUN0QyxTQUFTLEVBQUUsSUFBQSxrQkFBUyxHQUFFO2FBQ3ZCLENBQUM7WUFDRixXQUFXLEVBQUUsb0RBQW9EO1lBQ2pFLE9BQU8sRUFBRSxZQUFZO1NBQ3RCLENBQUMsQ0FBQztJQUNMLENBQUM7O0FBVEgsMENBVUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgKiBhcyBsYW1iZGEgZnJvbSAnYXdzLWNkay1saWIvYXdzLWxhbWJkYSc7XG5pbXBvcnQgeyBDb25zdHJ1Y3QgfSBmcm9tICdjb25zdHJ1Y3RzJztcbmltcG9ydCB7IGFzc2V0SGFzaCwgQVNTRVRfRklMRSB9IGZyb20gJy4vX2Fzc2V0JztcblxuLyoqXG4gKiBBIENESyBBc3NldCBjb25zdHJ1Y3QgdGhhdCBjb250YWlucyBga3ViZWN0bGAgYW5kIGBoZWxtYC5cbiAqL1xuZXhwb3J0IGNsYXNzIEt1YmVjdGxWMzNMYXllciBleHRlbmRzIGxhbWJkYS5MYXllclZlcnNpb24ge1xuICBjb25zdHJ1Y3RvcihzY29wZTogQ29uc3RydWN0LCBpZDogc3RyaW5nKSB7XG4gICAgc3VwZXIoc2NvcGUsIGlkLCB7XG4gICAgICBjb2RlOiBsYW1iZGEuQ29kZS5mcm9tQXNzZXQoQVNTRVRfRklMRSwge1xuICAgICAgICBhc3NldEhhc2g6IGFzc2V0SGFzaCgpLFxuICAgICAgfSksXG4gICAgICBkZXNjcmlwdGlvbjogJy9vcHQva3ViZWN0bC9rdWJlY3RsIDEuMzMuMDsgL29wdC9oZWxtL2hlbG0gMy4xOC4wJyxcbiAgICAgIGxpY2Vuc2U6ICdBcGFjaGUtMi4wJyxcbiAgICB9KTtcbiAgfVxufVxuIl19
|
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,39 +34,45 @@
|
|
|
32
34
|
"post-upgrade": "npx projen post-upgrade",
|
|
33
35
|
"pre-compile": "npx projen pre-compile",
|
|
34
36
|
"release:kubectl-v33/main": "npx projen release:kubectl-v33/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",
|
|
58
66
|
"eslint-import-resolver-typescript": "^3.10.1",
|
|
59
|
-
"eslint-plugin-import": "^2.
|
|
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.126.0",
|
|
64
72
|
"jsii-docgen": "^10.5.0",
|
|
65
|
-
"jsii-pacmak": "^1.
|
|
66
|
-
"jsii-rosetta": "~5.
|
|
67
|
-
"projen": "^0.
|
|
73
|
+
"jsii-pacmak": "^1.126.0",
|
|
74
|
+
"jsii-rosetta": "~5.8.0",
|
|
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.0.
|
|
93
|
+
"version": "2.0.1",
|
|
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
|
+
}
|