cdk-eks-karpenter 1.0.6__py3-none-any.whl → 1.0.9__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- from typeguard import check_type
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
- from typeguard import check_type
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.6", __name__[0:-6], "cdk-eks-karpenter@1.0.6.jsii.tgz"
35
+ "cdk-eks-karpenter", "1.0.9", __name__[0:-6], "cdk-eks-karpenter@1.0.9.jsii.tgz"
18
36
  )
19
37
 
20
38
  __all__ = [
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cdk-eks-karpenter
3
- Version: 1.0.6
3
+ Version: 1.0.9
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>
@@ -10,7 +10,6 @@ Classifier: Intended Audience :: Developers
10
10
  Classifier: Operating System :: OS Independent
11
11
  Classifier: Programming Language :: JavaScript
12
12
  Classifier: Programming Language :: Python :: 3 :: Only
13
- Classifier: Programming Language :: Python :: 3.7
14
13
  Classifier: Programming Language :: Python :: 3.8
15
14
  Classifier: Programming Language :: Python :: 3.9
16
15
  Classifier: Programming Language :: Python :: 3.10
@@ -18,15 +17,15 @@ Classifier: Programming Language :: Python :: 3.11
18
17
  Classifier: Typing :: Typed
19
18
  Classifier: Development Status :: 5 - Production/Stable
20
19
  Classifier: License :: OSI Approved
21
- Requires-Python: ~=3.7
20
+ Requires-Python: ~=3.8
22
21
  Description-Content-Type: text/markdown
23
22
  License-File: LICENSE
24
23
  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.91.0
28
- Requires-Dist: publication >=0.0.3
29
- Requires-Dist: typeguard ~=2.13.3
24
+ Requires-Dist: aws-cdk-lib<3.0.0,>=2.104.0
25
+ Requires-Dist: constructs<11.0.0,>=10.0.5
26
+ Requires-Dist: jsii<2.0.0,>=1.104.0
27
+ Requires-Dist: publication>=0.0.3
28
+ Requires-Dist: typeguard<4.3.0,>=2.13.3
30
29
 
31
30
  # cdk-eks-karpenter
32
31
 
@@ -54,7 +53,8 @@ const cluster = new Cluster(this, 'testCluster', {
54
53
  });
55
54
 
56
55
  const karpenter = new Karpenter(this, 'Karpenter', {
57
- cluster: cluster
56
+ cluster: cluster,
57
+ namespace: "kube-system"
58
58
  });
59
59
  ```
60
60
 
@@ -65,6 +65,10 @@ also need to create an [EC2NodeClass](https://karpenter.sh/docs/concepts/nodecla
65
65
 
66
66
  ## Known issues
67
67
 
68
+ ### It is now a best practice to install Karpenter into the kube-system namespace:
69
+
70
+ Kapenter CRD webhooks have 'kube-system' hard-coded into them, and do not work in other namespaces (such as 'karpenter')
71
+
68
72
  ### Versions earlier than v0.6.1 fails to install
69
73
 
70
74
  As of [aws/karpenter#1145](https://github.com/aws/karpenter/pull/1145) the Karpenter Helm chart is
@@ -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=TubF2xmF1pTwkNe3pFn_jIyFtDEKAE6x8vwusLLKSic,1445
4
+ cdk_eks_karpenter/_jsii/cdk-eks-karpenter@1.0.9.jsii.tgz,sha256=Bndu-QMI27ZObkoX8WOBioDcN7Nr6yNClqZVR35aUVk,78010
5
+ cdk_eks_karpenter-1.0.9.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
6
+ cdk_eks_karpenter-1.0.9.dist-info/METADATA,sha256=Uz6xAB90QBYXZUbEhaMqSsU8X2Z4YxbWW8mD-0TDdHg,4024
7
+ cdk_eks_karpenter-1.0.9.dist-info/NOTICE,sha256=Eg13ogOmcI7JpMjxniFnKG81vwU3X8X7P_IlpvVg5RU,66
8
+ cdk_eks_karpenter-1.0.9.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
9
+ cdk_eks_karpenter-1.0.9.dist-info/top_level.txt,sha256=LpiLx4ULBKhS-S19ZH4TP4jxqCO7uWvMHN-mjiAGHT0,18
10
+ cdk_eks_karpenter-1.0.9.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.43.0)
2
+ Generator: bdist_wheel (0.45.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -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,,