cdk-eks-karpenter 1.0.1__tar.gz → 1.0.3__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (18) hide show
  1. {cdk-eks-karpenter-1.0.1/src/cdk_eks_karpenter.egg-info → cdk-eks-karpenter-1.0.3}/PKG-INFO +1 -1
  2. {cdk-eks-karpenter-1.0.1 → cdk-eks-karpenter-1.0.3}/setup.py +2 -2
  3. {cdk-eks-karpenter-1.0.1 → cdk-eks-karpenter-1.0.3}/src/cdk_eks_karpenter/__init__.py +51 -28
  4. {cdk-eks-karpenter-1.0.1 → cdk-eks-karpenter-1.0.3}/src/cdk_eks_karpenter/_jsii/__init__.py +1 -1
  5. cdk-eks-karpenter-1.0.3/src/cdk_eks_karpenter/_jsii/cdk-eks-karpenter@1.0.3.jsii.tgz +0 -0
  6. {cdk-eks-karpenter-1.0.1 → cdk-eks-karpenter-1.0.3/src/cdk_eks_karpenter.egg-info}/PKG-INFO +1 -1
  7. {cdk-eks-karpenter-1.0.1 → cdk-eks-karpenter-1.0.3}/src/cdk_eks_karpenter.egg-info/SOURCES.txt +1 -1
  8. cdk-eks-karpenter-1.0.1/src/cdk_eks_karpenter/_jsii/cdk-eks-karpenter@1.0.1.jsii.tgz +0 -0
  9. {cdk-eks-karpenter-1.0.1 → cdk-eks-karpenter-1.0.3}/LICENSE +0 -0
  10. {cdk-eks-karpenter-1.0.1 → cdk-eks-karpenter-1.0.3}/MANIFEST.in +0 -0
  11. {cdk-eks-karpenter-1.0.1 → cdk-eks-karpenter-1.0.3}/NOTICE +0 -0
  12. {cdk-eks-karpenter-1.0.1 → cdk-eks-karpenter-1.0.3}/README.md +0 -0
  13. {cdk-eks-karpenter-1.0.1 → cdk-eks-karpenter-1.0.3}/pyproject.toml +0 -0
  14. {cdk-eks-karpenter-1.0.1 → cdk-eks-karpenter-1.0.3}/setup.cfg +0 -0
  15. {cdk-eks-karpenter-1.0.1 → cdk-eks-karpenter-1.0.3}/src/cdk_eks_karpenter/py.typed +0 -0
  16. {cdk-eks-karpenter-1.0.1 → cdk-eks-karpenter-1.0.3}/src/cdk_eks_karpenter.egg-info/dependency_links.txt +0 -0
  17. {cdk-eks-karpenter-1.0.1 → cdk-eks-karpenter-1.0.3}/src/cdk_eks_karpenter.egg-info/requires.txt +0 -0
  18. {cdk-eks-karpenter-1.0.1 → cdk-eks-karpenter-1.0.3}/src/cdk_eks_karpenter.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cdk-eks-karpenter
3
- Version: 1.0.1
3
+ Version: 1.0.3
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>
@@ -5,7 +5,7 @@ kwargs = json.loads(
5
5
  """
6
6
  {
7
7
  "name": "cdk-eks-karpenter",
8
- "version": "1.0.1",
8
+ "version": "1.0.3",
9
9
  "description": "CDK construct library that allows you install Karpenter in an AWS EKS cluster",
10
10
  "license": "Apache-2.0",
11
11
  "url": "https://github.com/aws-samples/cdk-eks-karpenter.git",
@@ -26,7 +26,7 @@ kwargs = json.loads(
26
26
  ],
27
27
  "package_data": {
28
28
  "cdk_eks_karpenter._jsii": [
29
- "cdk-eks-karpenter@1.0.1.jsii.tgz"
29
+ "cdk-eks-karpenter@1.0.3.jsii.tgz"
30
30
  ],
31
31
  "cdk_eks_karpenter": [
32
32
  "py.typed"
@@ -106,21 +106,21 @@ class Karpenter(
106
106
  id: builtins.str,
107
107
  *,
108
108
  cluster: _aws_cdk_aws_eks_ceddda9d.Cluster,
109
- helm_extra_values: typing.Any = None,
109
+ version: builtins.str,
110
+ helm_extra_values: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
110
111
  namespace: typing.Optional[builtins.str] = None,
111
112
  node_role: typing.Optional[_aws_cdk_aws_iam_ceddda9d.Role] = None,
112
113
  service_account_name: typing.Optional[builtins.str] = None,
113
- version: typing.Optional[builtins.str] = None,
114
114
  ) -> None:
115
115
  '''
116
116
  :param scope: -
117
117
  :param id: -
118
118
  :param cluster: The EKS Cluster to attach to.
119
+ :param version: The helm chart version to install. Default: - latest
119
120
  :param helm_extra_values: Extra values to pass to the Karpenter Helm chart.
120
121
  :param namespace: The Kubernetes namespace to install to. Default: karpenter
121
122
  :param node_role: Custom NodeRole to pass for Karpenter Nodes.
122
123
  :param service_account_name: The Kubernetes ServiceAccount name to use. Default: karpenter
123
- :param version: The helm chart version to install. Default: - latest
124
124
  '''
125
125
  if __debug__:
126
126
  type_hints = typing.get_type_hints(_typecheckingstub__469ebeca9f5de13870f679bde48f92e084c84974eb076da23d6515dcec4c3ed9)
@@ -128,11 +128,11 @@ class Karpenter(
128
128
  check_type(argname="argument id", value=id, expected_type=type_hints["id"])
129
129
  props = KarpenterProps(
130
130
  cluster=cluster,
131
+ version=version,
131
132
  helm_extra_values=helm_extra_values,
132
133
  namespace=namespace,
133
134
  node_role=node_role,
134
135
  service_account_name=service_account_name,
135
- version=version,
136
136
  )
137
137
 
138
138
  jsii.create(self.__class__, self, [scope, id, props])
@@ -264,8 +264,23 @@ class Karpenter(
264
264
 
265
265
  @builtins.property
266
266
  @jsii.member(jsii_name="version")
267
- def version(self) -> typing.Optional[builtins.str]:
268
- return typing.cast(typing.Optional[builtins.str], jsii.get(self, "version"))
267
+ def version(self) -> builtins.str:
268
+ return typing.cast(builtins.str, jsii.get(self, "version"))
269
+
270
+ @builtins.property
271
+ @jsii.member(jsii_name="helmChartValues")
272
+ def helm_chart_values(self) -> typing.Mapping[builtins.str, typing.Any]:
273
+ return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "helmChartValues"))
274
+
275
+ @helm_chart_values.setter
276
+ def helm_chart_values(
277
+ self,
278
+ value: typing.Mapping[builtins.str, typing.Any],
279
+ ) -> None:
280
+ if __debug__:
281
+ type_hints = typing.get_type_hints(_typecheckingstub__1e206ee251711a10854759f8d11ccd42fb723fb0550d8e49f1ff830d7c2ffc9b)
282
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
283
+ jsii.set(self, "helmChartValues", value)
269
284
 
270
285
 
271
286
  @jsii.data_type(
@@ -273,11 +288,11 @@ class Karpenter(
273
288
  jsii_struct_bases=[],
274
289
  name_mapping={
275
290
  "cluster": "cluster",
291
+ "version": "version",
276
292
  "helm_extra_values": "helmExtraValues",
277
293
  "namespace": "namespace",
278
294
  "node_role": "nodeRole",
279
295
  "service_account_name": "serviceAccountName",
280
- "version": "version",
281
296
  },
282
297
  )
283
298
  class KarpenterProps:
@@ -285,30 +300,31 @@ class KarpenterProps:
285
300
  self,
286
301
  *,
287
302
  cluster: _aws_cdk_aws_eks_ceddda9d.Cluster,
288
- helm_extra_values: typing.Any = None,
303
+ version: builtins.str,
304
+ helm_extra_values: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
289
305
  namespace: typing.Optional[builtins.str] = None,
290
306
  node_role: typing.Optional[_aws_cdk_aws_iam_ceddda9d.Role] = None,
291
307
  service_account_name: typing.Optional[builtins.str] = None,
292
- version: typing.Optional[builtins.str] = None,
293
308
  ) -> None:
294
309
  '''
295
310
  :param cluster: The EKS Cluster to attach to.
311
+ :param version: The helm chart version to install. Default: - latest
296
312
  :param helm_extra_values: Extra values to pass to the Karpenter Helm chart.
297
313
  :param namespace: The Kubernetes namespace to install to. Default: karpenter
298
314
  :param node_role: Custom NodeRole to pass for Karpenter Nodes.
299
315
  :param service_account_name: The Kubernetes ServiceAccount name to use. Default: karpenter
300
- :param version: The helm chart version to install. Default: - latest
301
316
  '''
302
317
  if __debug__:
303
318
  type_hints = typing.get_type_hints(_typecheckingstub__4559ecf2c12f8389d9503c7bff63c0e1d38df33a2f13e5dac618bececf369e7d)
304
319
  check_type(argname="argument cluster", value=cluster, expected_type=type_hints["cluster"])
320
+ check_type(argname="argument version", value=version, expected_type=type_hints["version"])
305
321
  check_type(argname="argument helm_extra_values", value=helm_extra_values, expected_type=type_hints["helm_extra_values"])
306
322
  check_type(argname="argument namespace", value=namespace, expected_type=type_hints["namespace"])
307
323
  check_type(argname="argument node_role", value=node_role, expected_type=type_hints["node_role"])
308
324
  check_type(argname="argument service_account_name", value=service_account_name, expected_type=type_hints["service_account_name"])
309
- check_type(argname="argument version", value=version, expected_type=type_hints["version"])
310
325
  self._values: typing.Dict[builtins.str, typing.Any] = {
311
326
  "cluster": cluster,
327
+ "version": version,
312
328
  }
313
329
  if helm_extra_values is not None:
314
330
  self._values["helm_extra_values"] = helm_extra_values
@@ -318,8 +334,6 @@ class KarpenterProps:
318
334
  self._values["node_role"] = node_role
319
335
  if service_account_name is not None:
320
336
  self._values["service_account_name"] = service_account_name
321
- if version is not None:
322
- self._values["version"] = version
323
337
 
324
338
  @builtins.property
325
339
  def cluster(self) -> _aws_cdk_aws_eks_ceddda9d.Cluster:
@@ -329,10 +343,22 @@ class KarpenterProps:
329
343
  return typing.cast(_aws_cdk_aws_eks_ceddda9d.Cluster, result)
330
344
 
331
345
  @builtins.property
332
- def helm_extra_values(self) -> typing.Any:
346
+ def version(self) -> builtins.str:
347
+ '''The helm chart version to install.
348
+
349
+ :default: - latest
350
+ '''
351
+ result = self._values.get("version")
352
+ assert result is not None, "Required property 'version' is missing"
353
+ return typing.cast(builtins.str, result)
354
+
355
+ @builtins.property
356
+ def helm_extra_values(
357
+ self,
358
+ ) -> typing.Optional[typing.Mapping[builtins.str, typing.Any]]:
333
359
  '''Extra values to pass to the Karpenter Helm chart.'''
334
360
  result = self._values.get("helm_extra_values")
335
- return typing.cast(typing.Any, result)
361
+ return typing.cast(typing.Optional[typing.Mapping[builtins.str, typing.Any]], result)
336
362
 
337
363
  @builtins.property
338
364
  def namespace(self) -> typing.Optional[builtins.str]:
@@ -358,15 +384,6 @@ class KarpenterProps:
358
384
  result = self._values.get("service_account_name")
359
385
  return typing.cast(typing.Optional[builtins.str], result)
360
386
 
361
- @builtins.property
362
- def version(self) -> typing.Optional[builtins.str]:
363
- '''The helm chart version to install.
364
-
365
- :default: - latest
366
- '''
367
- result = self._values.get("version")
368
- return typing.cast(typing.Optional[builtins.str], result)
369
-
370
387
  def __eq__(self, rhs: typing.Any) -> builtins.bool:
371
388
  return isinstance(rhs, self.__class__) and rhs._values == self._values
372
389
 
@@ -391,11 +408,11 @@ def _typecheckingstub__469ebeca9f5de13870f679bde48f92e084c84974eb076da23d6515dce
391
408
  id: builtins.str,
392
409
  *,
393
410
  cluster: _aws_cdk_aws_eks_ceddda9d.Cluster,
394
- helm_extra_values: typing.Any = None,
411
+ version: builtins.str,
412
+ helm_extra_values: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
395
413
  namespace: typing.Optional[builtins.str] = None,
396
414
  node_role: typing.Optional[_aws_cdk_aws_iam_ceddda9d.Role] = None,
397
415
  service_account_name: typing.Optional[builtins.str] = None,
398
- version: typing.Optional[builtins.str] = None,
399
416
  ) -> None:
400
417
  """Type checking stubs"""
401
418
  pass
@@ -434,14 +451,20 @@ def _typecheckingstub__f10a5511016d6e74144c7f6b09b4924cb5d9184ea7db898f95fb85a4a
434
451
  """Type checking stubs"""
435
452
  pass
436
453
 
454
+ def _typecheckingstub__1e206ee251711a10854759f8d11ccd42fb723fb0550d8e49f1ff830d7c2ffc9b(
455
+ value: typing.Mapping[builtins.str, typing.Any],
456
+ ) -> None:
457
+ """Type checking stubs"""
458
+ pass
459
+
437
460
  def _typecheckingstub__4559ecf2c12f8389d9503c7bff63c0e1d38df33a2f13e5dac618bececf369e7d(
438
461
  *,
439
462
  cluster: _aws_cdk_aws_eks_ceddda9d.Cluster,
440
- helm_extra_values: typing.Any = None,
463
+ version: builtins.str,
464
+ helm_extra_values: typing.Optional[typing.Mapping[builtins.str, typing.Any]] = None,
441
465
  namespace: typing.Optional[builtins.str] = None,
442
466
  node_role: typing.Optional[_aws_cdk_aws_iam_ceddda9d.Role] = None,
443
467
  service_account_name: typing.Optional[builtins.str] = None,
444
- version: typing.Optional[builtins.str] = None,
445
468
  ) -> None:
446
469
  """Type checking stubs"""
447
470
  pass
@@ -14,7 +14,7 @@ import aws_cdk._jsii
14
14
  import constructs._jsii
15
15
 
16
16
  __jsii_assembly__ = jsii.JSIIAssembly.load(
17
- "cdk-eks-karpenter", "1.0.1", __name__[0:-6], "cdk-eks-karpenter@1.0.1.jsii.tgz"
17
+ "cdk-eks-karpenter", "1.0.3", __name__[0:-6], "cdk-eks-karpenter@1.0.3.jsii.tgz"
18
18
  )
19
19
 
20
20
  __all__ = [
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cdk-eks-karpenter
3
- Version: 1.0.1
3
+ Version: 1.0.3
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>
@@ -12,4 +12,4 @@ src/cdk_eks_karpenter.egg-info/dependency_links.txt
12
12
  src/cdk_eks_karpenter.egg-info/requires.txt
13
13
  src/cdk_eks_karpenter.egg-info/top_level.txt
14
14
  src/cdk_eks_karpenter/_jsii/__init__.py
15
- src/cdk_eks_karpenter/_jsii/cdk-eks-karpenter@1.0.1.jsii.tgz
15
+ src/cdk_eks_karpenter/_jsii/cdk-eks-karpenter@1.0.3.jsii.tgz