cdktf-cdk8s


Namecdktf-cdk8s JSON
Version 0.10.54 PyPI version JSON
download
home_pagehttps://github.com/cdktf/cdktf-cdk8s.git
SummaryA compatibility layer for using cdk8s constructs within Terraform CDK.
upload_time2024-12-23 00:31:03
maintainerNone
docs_urlNone
authorHashiCorp
requires_python~=3.8
licenseMPL-2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # CDKTF CDK8s

![Status: Tech Preview](https://img.shields.io/badge/status-experimental-EAAA32) [![Releases](https://img.shields.io/github/release/cdktf/cdktf-cdk8s.svg)](https://github.com/cdktf/cdktf-cdk8s/releases)
[![LICENSE](https://img.shields.io/github/license/cdktf/cdktf-cdk8s.svg)](https://github.com/cdktf/cdktf-cdk8s/blob/main/LICENSE)
[![build](https://github.com/cdktf/cdktf-cdk8s/actions/workflows/build.yml/badge.svg)](https://github.com/cdktf/cdktf-cdk8s/actions/workflows/build.yml)

A compatibility layer for using [cdk8s](https://cdk8s.io/) constructs within Terraform CDK.

The cdk8s adapter is in technical preview, which means it's a community supported project. It still requires extensive testing and polishing to mature into a HashiCorp officially supported project. Please [file issues](https://github.com/cdktf/cdktf-cdk8s/issues/new/choose) generously and detail your experience while using the library. We welcome your feedback.

By using the software in this repository, you acknowledge that:

* The cdk8s adapter is still in development, may change, and has not been released as a commercial product by HashiCorp and is not currently supported in any way by HashiCorp.
* The cdk8s adapter is provided on an "as-is" basis, and may include bugs, errors, or other issues.
* The cdk8s adapter is NOT INTENDED FOR PRODUCTION USE, use of the Software may result in unexpected results, loss of data, or other unexpected results, and HashiCorp disclaims any and all liability resulting from use of the cdk8s adapter.
* HashiCorp reserves all rights to make all decisions about the features, functionality and commercial release (or non-release) of the cdk8s adapter, at any time and without any obligation or liability whatsoever.

## Compatibility

* `cdktf` >= 0.20.0
* `cdk8s` >= 2.8.0
* `constructs` >= 10.3.0

## Usage

```python
import { App, TerraformStack } from "cdktf";
import { App as CDK8sApp, Chart } from "cdk8s";
import { CDK8sProvider } from "cdktf-cdk8s";

import { MyCdk8sChart } from "./my-cdk8s-chart";

export class MyKubernetesStack extends TerraformStack {
  constructor(scope: Construct, name: string) {
    super(scope, name);

    const cdk8sApp = new CDK8sApp();

    // Configure your cdk8s application like usual
    new HelloKube(cdk8sApp, "my-chart");

    // For properties see https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs
    // Extends on the Provider class from @cdktf/provider-kubernetes
    new CDK8sProvider(this, "cdk8s-dev", {
      configPath: "./kubeconfig.yaml",
      configContext: "my-dev-cluster",

      // Only the cdk8sApp property is added
      // There is no need to run synth on the cdk8sApp, this is done by the provider
      cdk8sApp,
    });
  }
}

const app = new App();
new MyStack(app, "cdktf-cdk8s");
app.synth();
```

## Contributing

We welcome your contribution. Please understand that the experimental nature of this repository means that contributing code may be a bit of a moving target. If you have an idea for an enhancement or bug fix, and want to take on the work yourself, please first [create an issue](https://github.com/cdktf/cdktf-cdk8s/issues/new/choose) so that we can discuss the implementation with you before you proceed with the work.

You can review our [contribution guide](https://github.com/cdktf/.github/blob/main/CONTRIBUTING.md) to begin.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/cdktf/cdktf-cdk8s.git",
    "name": "cdktf-cdk8s",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "~=3.8",
    "maintainer_email": null,
    "keywords": null,
    "author": "HashiCorp",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/0f/3d/7b3d75385004065ac0d8a2c0fc97919e6aeb099d24497bbe2ab6a3cae424/cdktf_cdk8s-0.10.54.tar.gz",
    "platform": null,
    "description": "# CDKTF CDK8s\n\n![Status: Tech Preview](https://img.shields.io/badge/status-experimental-EAAA32) [![Releases](https://img.shields.io/github/release/cdktf/cdktf-cdk8s.svg)](https://github.com/cdktf/cdktf-cdk8s/releases)\n[![LICENSE](https://img.shields.io/github/license/cdktf/cdktf-cdk8s.svg)](https://github.com/cdktf/cdktf-cdk8s/blob/main/LICENSE)\n[![build](https://github.com/cdktf/cdktf-cdk8s/actions/workflows/build.yml/badge.svg)](https://github.com/cdktf/cdktf-cdk8s/actions/workflows/build.yml)\n\nA compatibility layer for using [cdk8s](https://cdk8s.io/) constructs within Terraform CDK.\n\nThe cdk8s adapter is in technical preview, which means it's a community supported project. It still requires extensive testing and polishing to mature into a HashiCorp officially supported project. Please [file issues](https://github.com/cdktf/cdktf-cdk8s/issues/new/choose) generously and detail your experience while using the library. We welcome your feedback.\n\nBy using the software in this repository, you acknowledge that:\n\n* The cdk8s adapter is still in development, may change, and has not been released as a commercial product by HashiCorp and is not currently supported in any way by HashiCorp.\n* The cdk8s adapter is provided on an \"as-is\" basis, and may include bugs, errors, or other issues.\n* The cdk8s adapter is NOT INTENDED FOR PRODUCTION USE, use of the Software may result in unexpected results, loss of data, or other unexpected results, and HashiCorp disclaims any and all liability resulting from use of the cdk8s adapter.\n* HashiCorp reserves all rights to make all decisions about the features, functionality and commercial release (or non-release) of the cdk8s adapter, at any time and without any obligation or liability whatsoever.\n\n## Compatibility\n\n* `cdktf` >= 0.20.0\n* `cdk8s` >= 2.8.0\n* `constructs` >= 10.3.0\n\n## Usage\n\n```python\nimport { App, TerraformStack } from \"cdktf\";\nimport { App as CDK8sApp, Chart } from \"cdk8s\";\nimport { CDK8sProvider } from \"cdktf-cdk8s\";\n\nimport { MyCdk8sChart } from \"./my-cdk8s-chart\";\n\nexport class MyKubernetesStack extends TerraformStack {\n  constructor(scope: Construct, name: string) {\n    super(scope, name);\n\n    const cdk8sApp = new CDK8sApp();\n\n    // Configure your cdk8s application like usual\n    new HelloKube(cdk8sApp, \"my-chart\");\n\n    // For properties see https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs\n    // Extends on the Provider class from @cdktf/provider-kubernetes\n    new CDK8sProvider(this, \"cdk8s-dev\", {\n      configPath: \"./kubeconfig.yaml\",\n      configContext: \"my-dev-cluster\",\n\n      // Only the cdk8sApp property is added\n      // There is no need to run synth on the cdk8sApp, this is done by the provider\n      cdk8sApp,\n    });\n  }\n}\n\nconst app = new App();\nnew MyStack(app, \"cdktf-cdk8s\");\napp.synth();\n```\n\n## Contributing\n\nWe welcome your contribution. Please understand that the experimental nature of this repository means that contributing code may be a bit of a moving target. If you have an idea for an enhancement or bug fix, and want to take on the work yourself, please first [create an issue](https://github.com/cdktf/cdktf-cdk8s/issues/new/choose) so that we can discuss the implementation with you before you proceed with the work.\n\nYou can review our [contribution guide](https://github.com/cdktf/.github/blob/main/CONTRIBUTING.md) to begin.\n",
    "bugtrack_url": null,
    "license": "MPL-2.0",
    "summary": "A compatibility layer for using cdk8s constructs within Terraform CDK.",
    "version": "0.10.54",
    "project_urls": {
        "Homepage": "https://github.com/cdktf/cdktf-cdk8s.git",
        "Source": "https://github.com/cdktf/cdktf-cdk8s.git"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "86df739683f1f23d149f4d5a8aec5445915c828cced5eaf5dd41a8bf103d5cdf",
                "md5": "5bb7aef645d0e177a17d632bfe3c1de7",
                "sha256": "74eb0a3730fcfff6ecef47dd5b3098102a864f59ec87b6596f5ed37ea5649d2c"
            },
            "downloads": -1,
            "filename": "cdktf_cdk8s-0.10.54-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5bb7aef645d0e177a17d632bfe3c1de7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "~=3.8",
            "size": 137923,
            "upload_time": "2024-12-23T00:31:00",
            "upload_time_iso_8601": "2024-12-23T00:31:00.431292Z",
            "url": "https://files.pythonhosted.org/packages/86/df/739683f1f23d149f4d5a8aec5445915c828cced5eaf5dd41a8bf103d5cdf/cdktf_cdk8s-0.10.54-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0f3d7b3d75385004065ac0d8a2c0fc97919e6aeb099d24497bbe2ab6a3cae424",
                "md5": "a22b076e3e3a7f453a0ae4b9be1005d3",
                "sha256": "72a53a32f75d14461d7065d31d781c18a8915c6dd1670100b9a2209288b8d3b0"
            },
            "downloads": -1,
            "filename": "cdktf_cdk8s-0.10.54.tar.gz",
            "has_sig": false,
            "md5_digest": "a22b076e3e3a7f453a0ae4b9be1005d3",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "~=3.8",
            "size": 139993,
            "upload_time": "2024-12-23T00:31:03",
            "upload_time_iso_8601": "2024-12-23T00:31:03.116165Z",
            "url": "https://files.pythonhosted.org/packages/0f/3d/7b3d75385004065ac0d8a2c0fc97919e6aeb099d24497bbe2ab6a3cae424/cdktf_cdk8s-0.10.54.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-23 00:31:03",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "cdktf",
    "github_project": "cdktf-cdk8s",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "cdktf-cdk8s"
}
        
Elapsed time: 0.40832s