cdk-eks-karpenter 1.0.6__py3-none-any.whl → 1.0.8__py3-none-any.whl
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.
- cdk_eks_karpenter/__init__.py +27 -4
- cdk_eks_karpenter/_jsii/__init__.py +20 -2
- cdk_eks_karpenter/_jsii/cdk-eks-karpenter@1.0.8.jsii.tgz +0 -0
- {cdk_eks_karpenter-1.0.6.dist-info → cdk_eks_karpenter-1.0.8.dist-info}/METADATA +16 -9
- cdk_eks_karpenter-1.0.8.dist-info/RECORD +10 -0
- {cdk_eks_karpenter-1.0.6.dist-info → cdk_eks_karpenter-1.0.8.dist-info}/WHEEL +1 -1
- cdk_eks_karpenter/_jsii/cdk-eks-karpenter@1.0.6.jsii.tgz +0 -0
- cdk_eks_karpenter-1.0.6.dist-info/RECORD +0 -10
- {cdk_eks_karpenter-1.0.6.dist-info → cdk_eks_karpenter-1.0.8.dist-info}/LICENSE +0 -0
- {cdk_eks_karpenter-1.0.6.dist-info → cdk_eks_karpenter-1.0.8.dist-info}/NOTICE +0 -0
- {cdk_eks_karpenter-1.0.6.dist-info → cdk_eks_karpenter-1.0.8.dist-info}/top_level.txt +0 -0
cdk_eks_karpenter/__init__.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
'''
|
1
|
+
r'''
|
2
2
|
# cdk-eks-karpenter
|
3
3
|
|
4
4
|
This construct configures the necessary dependencies and installs [Karpenter](https://karpenter.sh)
|
@@ -25,7 +25,8 @@ const cluster = new Cluster(this, 'testCluster', {
|
|
25
25
|
});
|
26
26
|
|
27
27
|
const karpenter = new Karpenter(this, 'Karpenter', {
|
28
|
-
cluster: cluster
|
28
|
+
cluster: cluster,
|
29
|
+
namespace: "kube-system"
|
29
30
|
});
|
30
31
|
```
|
31
32
|
|
@@ -36,6 +37,10 @@ also need to create an [EC2NodeClass](https://karpenter.sh/docs/concepts/nodecla
|
|
36
37
|
|
37
38
|
## Known issues
|
38
39
|
|
40
|
+
### It is now a best practice to install Karpenter into the kube-system namespace:
|
41
|
+
|
42
|
+
Kapenter CRD webhooks have 'kube-system' hard-coded into them, and do not work in other namespaces (such as 'karpenter')
|
43
|
+
|
39
44
|
### Versions earlier than v0.6.1 fails to install
|
40
45
|
|
41
46
|
As of [aws/karpenter#1145](https://github.com/aws/karpenter/pull/1145) the Karpenter Helm chart is
|
@@ -76,6 +81,9 @@ npx projen test:destroy
|
|
76
81
|
1. Ensure you have the appropriate linked role available in your account, for more details,
|
77
82
|
see [the karpenter documentation](https://karpenter.sh/v0.31/getting-started/getting-started-with-karpenter/#3-create-a-cluster)
|
78
83
|
'''
|
84
|
+
from pkgutil import extend_path
|
85
|
+
__path__ = extend_path(__path__, __name__)
|
86
|
+
|
79
87
|
import abc
|
80
88
|
import builtins
|
81
89
|
import datetime
|
@@ -86,7 +94,22 @@ import jsii
|
|
86
94
|
import publication
|
87
95
|
import typing_extensions
|
88
96
|
|
89
|
-
|
97
|
+
import typeguard
|
98
|
+
from importlib.metadata import version as _metadata_package_version
|
99
|
+
TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
|
100
|
+
|
101
|
+
def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
|
102
|
+
if TYPEGUARD_MAJOR_VERSION <= 2:
|
103
|
+
return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
|
104
|
+
else:
|
105
|
+
if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
|
106
|
+
pass
|
107
|
+
else:
|
108
|
+
if TYPEGUARD_MAJOR_VERSION == 3:
|
109
|
+
typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
|
110
|
+
typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
|
111
|
+
else:
|
112
|
+
typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
|
90
113
|
|
91
114
|
from ._jsii import *
|
92
115
|
|
@@ -280,7 +303,7 @@ class Karpenter(
|
|
280
303
|
if __debug__:
|
281
304
|
type_hints = typing.get_type_hints(_typecheckingstub__1e206ee251711a10854759f8d11ccd42fb723fb0550d8e49f1ff830d7c2ffc9b)
|
282
305
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
283
|
-
jsii.set(self, "helmChartValues", value)
|
306
|
+
jsii.set(self, "helmChartValues", value) # pyright: ignore[reportArgumentType]
|
284
307
|
|
285
308
|
|
286
309
|
@jsii.data_type(
|
@@ -1,3 +1,6 @@
|
|
1
|
+
from pkgutil import extend_path
|
2
|
+
__path__ = extend_path(__path__, __name__)
|
3
|
+
|
1
4
|
import abc
|
2
5
|
import builtins
|
3
6
|
import datetime
|
@@ -8,13 +11,28 @@ import jsii
|
|
8
11
|
import publication
|
9
12
|
import typing_extensions
|
10
13
|
|
11
|
-
|
14
|
+
import typeguard
|
15
|
+
from importlib.metadata import version as _metadata_package_version
|
16
|
+
TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
|
17
|
+
|
18
|
+
def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
|
19
|
+
if TYPEGUARD_MAJOR_VERSION <= 2:
|
20
|
+
return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
|
21
|
+
else:
|
22
|
+
if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
|
23
|
+
pass
|
24
|
+
else:
|
25
|
+
if TYPEGUARD_MAJOR_VERSION == 3:
|
26
|
+
typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
|
27
|
+
typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
|
28
|
+
else:
|
29
|
+
typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
|
12
30
|
|
13
31
|
import aws_cdk._jsii
|
14
32
|
import constructs._jsii
|
15
33
|
|
16
34
|
__jsii_assembly__ = jsii.JSIIAssembly.load(
|
17
|
-
"cdk-eks-karpenter", "1.0.
|
35
|
+
"cdk-eks-karpenter", "1.0.8", __name__[0:-6], "cdk-eks-karpenter@1.0.8.jsii.tgz"
|
18
36
|
)
|
19
37
|
|
20
38
|
__all__ = [
|
Binary file
|
@@ -1,16 +1,16 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: cdk-eks-karpenter
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.8
|
4
4
|
Summary: CDK construct library that allows you install Karpenter in an AWS EKS cluster
|
5
5
|
Home-page: https://github.com/aws-samples/cdk-eks-karpenter.git
|
6
6
|
Author: Andreas Lindh<elindh@amazon.com>
|
7
7
|
License: Apache-2.0
|
8
8
|
Project-URL: Source, https://github.com/aws-samples/cdk-eks-karpenter.git
|
9
|
+
Platform: UNKNOWN
|
9
10
|
Classifier: Intended Audience :: Developers
|
10
11
|
Classifier: Operating System :: OS Independent
|
11
12
|
Classifier: Programming Language :: JavaScript
|
12
13
|
Classifier: Programming Language :: Python :: 3 :: Only
|
13
|
-
Classifier: Programming Language :: Python :: 3.7
|
14
14
|
Classifier: Programming Language :: Python :: 3.8
|
15
15
|
Classifier: Programming Language :: Python :: 3.9
|
16
16
|
Classifier: Programming Language :: Python :: 3.10
|
@@ -18,15 +18,15 @@ Classifier: Programming Language :: Python :: 3.11
|
|
18
18
|
Classifier: Typing :: Typed
|
19
19
|
Classifier: Development Status :: 5 - Production/Stable
|
20
20
|
Classifier: License :: OSI Approved
|
21
|
-
Requires-Python: ~=3.
|
21
|
+
Requires-Python: ~=3.8
|
22
22
|
Description-Content-Type: text/markdown
|
23
23
|
License-File: LICENSE
|
24
24
|
License-File: NOTICE
|
25
|
-
Requires-Dist: aws-cdk-lib <3.0.0,>=2.104.0
|
26
|
-
Requires-Dist: constructs <11.0.0,>=10.0.5
|
27
|
-
Requires-Dist: jsii <2.0.0,>=1.
|
28
|
-
Requires-Dist: publication >=0.0.3
|
29
|
-
Requires-Dist: typeguard
|
25
|
+
Requires-Dist: aws-cdk-lib (<3.0.0,>=2.104.0)
|
26
|
+
Requires-Dist: constructs (<11.0.0,>=10.0.5)
|
27
|
+
Requires-Dist: jsii (<2.0.0,>=1.104.0)
|
28
|
+
Requires-Dist: publication (>=0.0.3)
|
29
|
+
Requires-Dist: typeguard (<4.3.0,>=2.13.3)
|
30
30
|
|
31
31
|
# cdk-eks-karpenter
|
32
32
|
|
@@ -54,7 +54,8 @@ const cluster = new Cluster(this, 'testCluster', {
|
|
54
54
|
});
|
55
55
|
|
56
56
|
const karpenter = new Karpenter(this, 'Karpenter', {
|
57
|
-
cluster: cluster
|
57
|
+
cluster: cluster,
|
58
|
+
namespace: "kube-system"
|
58
59
|
});
|
59
60
|
```
|
60
61
|
|
@@ -65,6 +66,10 @@ also need to create an [EC2NodeClass](https://karpenter.sh/docs/concepts/nodecla
|
|
65
66
|
|
66
67
|
## Known issues
|
67
68
|
|
69
|
+
### It is now a best practice to install Karpenter into the kube-system namespace:
|
70
|
+
|
71
|
+
Kapenter CRD webhooks have 'kube-system' hard-coded into them, and do not work in other namespaces (such as 'karpenter')
|
72
|
+
|
68
73
|
### Versions earlier than v0.6.1 fails to install
|
69
74
|
|
70
75
|
As of [aws/karpenter#1145](https://github.com/aws/karpenter/pull/1145) the Karpenter Helm chart is
|
@@ -104,3 +109,5 @@ npx projen test:destroy
|
|
104
109
|
|
105
110
|
1. Ensure you have the appropriate linked role available in your account, for more details,
|
106
111
|
see [the karpenter documentation](https://karpenter.sh/v0.31/getting-started/getting-started-with-karpenter/#3-create-a-cluster)
|
112
|
+
|
113
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
cdk_eks_karpenter/__init__.py,sha256=F-SuaJy8XCSapDpo3VqoAqr-0tXT6cLqltMNcEaoeJ0,20657
|
2
|
+
cdk_eks_karpenter/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
3
|
+
cdk_eks_karpenter/_jsii/__init__.py,sha256=iW1ZGyLT37pGLTkYI8kn1uaGoHAeJ4JoavtKAo6w42k,1445
|
4
|
+
cdk_eks_karpenter/_jsii/cdk-eks-karpenter@1.0.8.jsii.tgz,sha256=NCht-Ti5dgxLxoZlaQCklJ14QsQwF9O4Dctt7ue7KTc,78009
|
5
|
+
cdk_eks_karpenter-1.0.8.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
6
|
+
cdk_eks_karpenter-1.0.8.dist-info/METADATA,sha256=jz8vaZwvjd_yL8lPaYU-v1UjwtCnqyNKwRDftfoyX0c,4059
|
7
|
+
cdk_eks_karpenter-1.0.8.dist-info/NOTICE,sha256=Eg13ogOmcI7JpMjxniFnKG81vwU3X8X7P_IlpvVg5RU,66
|
8
|
+
cdk_eks_karpenter-1.0.8.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
9
|
+
cdk_eks_karpenter-1.0.8.dist-info/top_level.txt,sha256=LpiLx4ULBKhS-S19ZH4TP4jxqCO7uWvMHN-mjiAGHT0,18
|
10
|
+
cdk_eks_karpenter-1.0.8.dist-info/RECORD,,
|
Binary file
|
@@ -1,10 +0,0 @@
|
|
1
|
-
cdk_eks_karpenter/__init__.py,sha256=pll9WottJ_duydAVMUwpcj3V08bDifMmI91tMvKlr1g,19340
|
2
|
-
cdk_eks_karpenter/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
3
|
-
cdk_eks_karpenter/_jsii/__init__.py,sha256=w29g2NkeIG-upoWeGZSZDxFd3oWwK-37t7GM9gAd-sc,401
|
4
|
-
cdk_eks_karpenter/_jsii/cdk-eks-karpenter@1.0.6.jsii.tgz,sha256=0deluh_b1dnX5FjxSiIaE4g_qTW5okIL9mkopWTKCVg,76915
|
5
|
-
cdk_eks_karpenter-1.0.6.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
6
|
-
cdk_eks_karpenter-1.0.6.dist-info/METADATA,sha256=Ze7v59IfKO0Rie-pVSwtmYAa_WRYpGjA2Cm5nagGL5c,3837
|
7
|
-
cdk_eks_karpenter-1.0.6.dist-info/NOTICE,sha256=Eg13ogOmcI7JpMjxniFnKG81vwU3X8X7P_IlpvVg5RU,66
|
8
|
-
cdk_eks_karpenter-1.0.6.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
9
|
-
cdk_eks_karpenter-1.0.6.dist-info/top_level.txt,sha256=LpiLx4ULBKhS-S19ZH4TP4jxqCO7uWvMHN-mjiAGHT0,18
|
10
|
-
cdk_eks_karpenter-1.0.6.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|