Skip to content

Releases: Alegrowin/cdk8s-cli

v2.0.2

28 Mar 02:46

Choose a tag to compare

2.0.2 (2025-03-28)

Bug Fixes

  • now download the spec instead of use static one (5e08366)
  • Remove leftover of local k8s api json file (d5e629c)

v2.0.1

26 Mar 20:22

Choose a tag to compare

2.0.1 (2025-03-26)

Bug Fixes

  • added missing tarball to the release (3174cbd)
  • added package through gh release upload (ecab17e)

v2.0.0

26 Mar 19:35

Choose a tag to compare

2.0.0 (2025-03-26)

⚠ BREAKING CHANGES

  • lib: the deprecated API Duration.toISOString() has been removed. Use Duration.toIsoString() instead.
  • lib: CAUTION! Auto-generated resource names will change with this release. Resource names in manifests synthesized by a previous version of the CDK8s will be invalidated. Deploying new manifests will cause resources to be replaced. Temporarily, you can opt to use the legacy hashing mechanism by setting the environment variable CDK8S_LEGACY_HASH=1.
  • lib: Names.toDnsLabel() now accepts a construct scope instead of a string path, and a set of options instead of maxLen.
  • lib: Names.toLabelValue() now accepts a construct scope instead of a string path, and a set of options instead of maxLen.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

  • plus-17: All L2 resource names will undergo a name change (e.g test-chart-config-configmap-233db8e7 -> test-chart-config-c3f7d3c0)

Resolves cdk8s-team/cdk8s#373

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

  • Construct input types generated by cdk8s import are now called XxxProps instead of XxxOptions to conform with the CDK ecosystem.
  • core: ApiObjectOptions is now called ApiObjectProps
  • core: AppOptions is now called AppProps
  • core: ChartOptions is now called ChartProps
  • core: HelmOptions is now called HelmProps
  • core: IncludeOptions is now called IncludeProps
  • cli: when importing k8s api objects using cdk8s import, non-stable APIs will be have an API level postfix. For example, [email protected] will have an IngressV1Beta1 API object.
  • cli: The --include CLI option has been removed since all API objects are always imported.
  • cli: When using the CLI to import the core Kubernetes API objects, the imported classes will now have a Kube prefix in order to make it easier to differentiate them from the classes offered by the high-level APIs in CDK8s+ (e.g. k8s.Deployment is now k8s.KubeDeployment). You can disable through the --no-class-prefix option: cdk8s import --no-class-prefix k8s.
  • plus: Containers now need to be inputed as interfaces rather than classes. Instead of passing new kplus.Container(props), simply pass in props.

Resolves cdk8s-team/cdk8s#365

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

  • lib: EnvValue.fromSecret(secret, key) has been removed in favor of EnvValue.fromSecretValue({ secret, key }).

  • plus: spec was removed from all cdk8s+ constructs and that now have a flat structure. See Example for new usage.

  • plus: Construct id's for deployment will change due to a latent bug that appended the word pod to them.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

  • plus: deployment.expose() now takes port as a positional argument (before: deployment.expose({ port }), now: deployment.expose(port)).

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

  • lib: auto-generated resource names that included duplicate hyphens will change will be replaced when applied.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

  • lib: cdk8s-plus's value of a label cdk8s.deployment of Pods are changed

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

  • lib: resource names will now be rendered differently, omitting adjacent duplicate components.

Signed-off-by: campionfellin [email protected]

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

  • lib: cdk8s discontinues support for the onPrepare and onSynthesis construct hooks. These methods will eventually be removed from the constructs programming model.
  • cli: enum string values are now proper enums instead of just strings.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

  • cli: the generated module names of imported CRDs now include the resource's group and not just its kind in order to ensure uniqueness. For example, when importing the Jenkins CRD, instead of 'imports/jenkins.ts, we now have imports/jenkins.io/jenkins.ts`.
  • cli: class names are now normalized to PascalCase.
  • please upgrade your dependency requirement for "constructs" to ^2.0.0

  • cli: cdk8s gen is now cdk8s import k8s and output goes to imports/k8s.ts instead of .gen/index.ts.

  • cli: cdk8s import now generates a single file with all types, which means you will have to modify TypeScript code to import { Deployment, Pod, ... } from './imports/k8s' instead of importing multiple files.

  • plus: Remove the spec nesting level on both input and output (#347) (5e34850)

  • upgrade jsii & constructs (#80) (f917e0a)

Features

Read more