cdk-eks-karpenter 1.0.1__py3-none-any.whl → 1.0.3__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -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>
@@ -0,0 +1,10 @@
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=EXF3eE20ok0Tz16uNwSRkSW7DT9Al8iJO5imEEK8pbc,401
4
+ cdk_eks_karpenter/_jsii/cdk-eks-karpenter@1.0.3.jsii.tgz,sha256=j6PpU08qS69MHxZ4kiVC9mNm1cvfAPpBbzGNoEZEHKk,76930
5
+ cdk_eks_karpenter-1.0.3.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
6
+ cdk_eks_karpenter-1.0.3.dist-info/METADATA,sha256=JgPHJPDfZ7aXTQny5lObCvLsSFz4d0crLwNaQmoFxj8,3837
7
+ cdk_eks_karpenter-1.0.3.dist-info/NOTICE,sha256=Eg13ogOmcI7JpMjxniFnKG81vwU3X8X7P_IlpvVg5RU,66
8
+ cdk_eks_karpenter-1.0.3.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
9
+ cdk_eks_karpenter-1.0.3.dist-info/top_level.txt,sha256=LpiLx4ULBKhS-S19ZH4TP4jxqCO7uWvMHN-mjiAGHT0,18
10
+ cdk_eks_karpenter-1.0.3.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.41.3)
2
+ Generator: bdist_wheel (0.42.0)
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=cfXy5ppTk5lFkm5HEGBF9iQw5W_0bQd8OwtypHmzGy0,18289
2
- cdk_eks_karpenter/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
3
- cdk_eks_karpenter/_jsii/__init__.py,sha256=YF3BfAnmDBrJSVeVWjoiTmAWutvQc41NFniPnuIXULc,401
4
- cdk_eks_karpenter/_jsii/cdk-eks-karpenter@1.0.1.jsii.tgz,sha256=OdrKjlEOP_8kKAnmU_nnxrhCZXUFb0_CJHEBUFauMy8,39824
5
- cdk_eks_karpenter-1.0.1.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
6
- cdk_eks_karpenter-1.0.1.dist-info/METADATA,sha256=FDQhP3If4iNL2oJgFUfkAdOikO9GeL_lLNrB8oHPGQ4,3837
7
- cdk_eks_karpenter-1.0.1.dist-info/NOTICE,sha256=Eg13ogOmcI7JpMjxniFnKG81vwU3X8X7P_IlpvVg5RU,66
8
- cdk_eks_karpenter-1.0.1.dist-info/WHEEL,sha256=Xo9-1PvkuimrydujYJAjF7pCkriuXBpUPEjma1nZyJ0,92
9
- cdk_eks_karpenter-1.0.1.dist-info/top_level.txt,sha256=LpiLx4ULBKhS-S19ZH4TP4jxqCO7uWvMHN-mjiAGHT0,18
10
- cdk_eks_karpenter-1.0.1.dist-info/RECORD,,