2.0.0-beta.0 (2022-05-22)
⚠ BREAKING CHANGES
- container: Use
container.env.addVariable()
instead ofcontainer.addEnv()
. Propertyenv
of container renamed toenvVariables
.
Resolves #346
Signed-off-by: Eli Polonsky epolon@amazon.com
- The interface
Resources
is now namedContainerResources
.
Signed-off-by: Christopher Rybicki rybickic@amazon.com
- workload:
defaultSelector
renamed toselect
.selectByLabel
renamed toselect
and underwent an API change:deployment.selectByLabel('key', 'value') -> deployment.select(LabelSelector.equals('key', 'value'))
deployment.expose
renamed todeployment.exposeViaService
deployment.expose
andservice.addDeployment
now accept aport
as part of the options, and not a positional argument.
Features
Role
,ClusterRole
,RoleBinding
,ClusterRoleBinding
L2s (#432) (aeaba6e), closes #24 #25 #26 #374- bump cdk8s to version
2.x
(#696) (814af13) - bump minimum node version to 14.x (#697) (cb1953d)
- classes for common secret types (#473) (716fb13), closes #344
- config-map: immutable maps (#520) (e95ceb9)
- container lifecycle hooks (#484) (06fd7d9)
- Container resource requirements and HPA (#390) (34621b1), closes #27
- container: populate env from
ConfigMap
andSecret
(#688) (39ecc47) - daemon-set: introduce L2 (#504) (fbc9f0a)
- default port when exposing deployment (#41) (4ff7fa3)
- deployment:
minReadySeconds
andprogressDeadlineSeconds
(#515) (c94b826) - deployment: upgrade strategy (#521) (5dcaced)
- Env var from fieldRef/resource support (#263) (650096f)
- expose service via ingress (#51) (b6bbc0f)
- ingress: resource backend (#687) (f030ecb)
- init containers (#451) (ac8c58d)
- opt out of service accounts auto mounting tokens (#658) (55aae7a)
- pod host aliases (#469) (21d4389), closes #378
- pod, workload: scheduling strategy (
affinity
,tolerations
,nodeName
) (#684) (6d02852) - pod: docker registry auth (#516) (a943879)
- pod: pod dns settings (#497) (d377378)
- pv & pvc (#483) (da892bc)
- pv: directly mount to container (#491) (c7de2d5), closes /github.com/cdk8s-team/cdk8s/pull/889#discussion_r836943364
- Secret volume support (#211) (0e17fe8), closes #34
- secret: immutable secrets (#522) (ab16d59)
- security context (#455) (963e0b6)
- stabilize Ingress for cdk8s-plus-22 (#4) (46e5488)
- stateful-set:
minReady
support (#659) (cb67822) - stateful-set: update strategy (#523) (e47888d)
- TCP socket probes (#383) (129d39f), closes /kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/#probe-v1 #345
- volume: azure, gce and aws volumes (#499) (31dc389)
- workload: expression selectors and pod metadata integration (#660) (a3d88ac)