Skip to main content

CA cdk8s Constructs

This repository contains a collection of opinionated cdk8s constructs that are commonly used in CA applications.

Installation

The project is available on PyPi under ca-cdk8s-constructs. Use your project manager of choice to install it.

Features

There are currently constructs available for:

  • Horizontal Pod Autoscaler
  • Vertical Pod Autoscaler
  • Pod Disruption Budget
  • Container Resources
  • cdk8s Helm Chart

Please see the resource docstrings or the Github Wiki for usage information.

To request new constructs, please raise an issue in the GitHub repository.

Custom Resource Definitions

The CRDs are found in the cdk8s.yaml file, which contains a list of URLs to the CRD definitions.

The generated classes are imported into the ca_cdk8s_constructs/imports directory.

If the CRDs are updated, the imports need to be refreshed. There is an Actions workflow that will run weekly to refresh the imports if there are any changes.

Manually Refreshing CRD Imports

To refresh the CRD imports, run the following command:

cdk8s import --output ca_cdk8s_constructs/imports

Versioning

New versions of this library will be released via Github Releases and will follow the Semantic Versioning wherever possible.

Contributing

To develop this project you will need the following installed:

  • Just for running commands
  • uv for dependency management

Run just to see all available commands.

Releases

This project uses semantic versioning and versions must be bumped in accordance with SemVer rules.

The Justfile contains a helper command for making releases, just draft-release. To use it:

  1. Determine the release type (patch, minor, major)
  2. Run just draft-release <patch | minor | major>
  3. Approve the version bump if acceptable
  4. Check the staged changes and approve if acceptable
  5. Follow the link to the draft release and edit it to add details if requied
  6. Publish the release

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ca_cdk8s_constructs-5.1.1.tar.gz (2.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ca_cdk8s_constructs-5.1.1-py3-none-any.whl (2.5 MB view details)

Uploaded Python 3

File details

Details for the file ca_cdk8s_constructs-5.1.1.tar.gz.

File metadata

  • Download URL: ca_cdk8s_constructs-5.1.1.tar.gz
  • Upload date:
  • Size: 2.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for ca_cdk8s_constructs-5.1.1.tar.gz
Algorithm Hash digest
SHA256 c426b7c5cb7044381f404235025c620c1ec4f4b1238fd41f08aa13d0f9bab36a
MD5 f2aa6fd1b78aba57ae6e0af76ed8de7e
BLAKE2b-256 3ca94a267ce227e8e625611ebcae3ccbec87dc13ac5dc43838f539b7ab66a01d

See more details on using hashes here.

File details

Details for the file ca_cdk8s_constructs-5.1.1-py3-none-any.whl.

File metadata

  • Download URL: ca_cdk8s_constructs-5.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for ca_cdk8s_constructs-5.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d0bbf7f6c79592fb9002e23747b89e0e29f76507649a1aa5605a01b29bcc1f8b
MD5 e37542a27454ea302f0672e9e267d1ea
BLAKE2b-256 308fcb7a2a2818f18ad1150a0afd8d8a0c9d560f5b08097aade37fb427d51d38

See more details on using hashes here.

Release history Release notifications | RSS feed

5.1.2

2 files

This release

5.1.1 This release

2 files

5.1.0

2 files

5.0.1

2 files

5.0.0

2 files

4.2.0

2 files

4.1.0

2 files

4.0.4

2 files

4.0.3

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page