Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolves #872
- Loading branch information
Showing
81 changed files
with
9,005 additions
and
10,795 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
# Overview | ||
|
||
This section discusses core concepts in cdk8s. | ||
|
||
!!! notice | ||
|
||
The documentation here relates to version `2.x` of the cdk8s toolchain, which is the latest. If you are still using version `1.x`, please refer to the [Migrating from 1.x Guide](../migrating-from-1.x.md). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Ecosystem Interoperability | ||
|
||
As we know, there are many [CDK based libraries](http://constructs.dev/) out there, and you might want to incorporate cdk8s along side other libraries in the same application. | ||
|
||
!!! Example | ||
|
||
For example, you can use cdk8s to define charts in an AWS CDK application, and [apply them using the EKS construct library](https://docs.aws.amazon.com/cdk/api/v1/docs/aws-eks-readme.html#cdk8s-charts). | ||
|
||
This ability, or interoperability, is based on the [constructs programming model](https://www.npmjs.com/package/constructs), which is the underlying technology on which all CDK libraries are built upon. All CDK libraries participating in the same application, must use the same major version of [constructs](https://www.npmjs.com/package/constructs), which currently has both a `3.x` and a `10.x` major version lines. | ||
|
||
In order to incorporate `cdk8s` in applications that use either version line, we need to maintain two major versions of `cdk8s`, one for each version of `constructs`. | ||
|
||
- Version `1.x` can be used along side libraries that depend on `constructs` version 3.x. | ||
|
||
> For example: [AWS CDK v1](https://constructs.dev/search?q=aws-cdk&cdk=aws-cdk&cdkver=1&offset=0). | ||
- Version `2.x` can be used along side libraries that depend on `constructs` version 10.x. | ||
|
||
> For example: [AWS CDK v2](https://constructs.dev/search?q=aws-cdk&cdk=aws-cdk&cdkver=2&offset=0). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
# Migrating from 1.x | ||
|
||
This page describes the difference between versions `1.x` and `2.x` of the cdk8s toolchain, as well as instructions on how to migrate from one to the other. | ||
|
||
## Deprecation Timeline | ||
|
||
Version `1.x` of the cdk8s toolchain will be deprecated on 01/01/2023. After which, it will only receive critical bug fixes and security patches, but there will be no active development on it. | ||
|
||
We strongly recommend migrating to `2.x` using the instructions stated below. | ||
|
||
## Core Library | ||
|
||
Version `2.x` of the core [cdk8s](https://www.npmjs.com/package/cdk8s) library is identical to version `1.x` from an API perspective. The only difference is in the dependency they declare on the `constructs` library. This also means that the documentation and code snippets presented throughout the site is compatible with `1.x` as well, in case you'd still like to use it. | ||
|
||
!!! Tip | ||
|
||
See [Ecosystem Interoperability](./ecosystem-interoperability.md) for reasoning behind this change. | ||
|
||
Following are instructions on what changes should be performed to use version `2.x`: | ||
|
||
=== "TypeScript" | ||
|
||
In `package.json`, define: | ||
|
||
```json | ||
"dependencies": { | ||
"cdk8s": "^2.2.87", | ||
"constructs": "^10.1.12" | ||
} | ||
``` | ||
|
||
=== "Java" | ||
|
||
In `pom.xml`, define: | ||
|
||
```xml | ||
<dependencies> | ||
<dependency> | ||
<groupId>org.cdk8s</groupId> | ||
<artifactId>cdk8s</artifactId> | ||
<version>[2.2.86,3.0]</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>software.constructs</groupId> | ||
<artifactId>constructs</artifactId> | ||
<version>[10.1.12,11.0.0]</version> | ||
</dependency> | ||
</dependencies> | ||
``` | ||
|
||
=== "Python" | ||
|
||
In `Pipfile`, define: | ||
|
||
```console | ||
[packages] | ||
constructs = "~=10.1.12" | ||
cdk8s = "~=2.2.87" | ||
``` | ||
|
||
=== "Go" | ||
|
||
In `go.mod`, define: | ||
|
||
```go | ||
require ( | ||
github.com/aws/constructs-go/constructs/v10 v10.1.12 | ||
github.com/cdk8s-team/cdk8s-core-go/cdk8s/v2 v2.2.87 | ||
) | ||
``` | ||
|
||
Since major versions are encoded in go import statements, in your source code, change to: | ||
|
||
```go | ||
import ( | ||
"github.com/aws/constructs-go/constructs/v10" | ||
"github.com/cdk8s-team/cdk8s-core-go/cdk8s/v2" | ||
) | ||
``` | ||
|
||
## CLI | ||
|
||
Version `2.x` of the [cdk8s-cli](https://www.npmjs.com/package/cdk8s-cli) is identical to version `1.x` from an API perspective. The only difference is in the project templates `cdk8s init` generates. CLI version `1.x / 2.x` will initiate projects utilizing version `1.x / 2.x` of the core library, accordingly. | ||
|
||
If you'd like to continue using version `1.x` of the CLI: | ||
|
||
=== "Homebrew" | ||
|
||
[Locate the latest `1.x`](https://formulae.brew.sh/formula/cdk8s#default) version you'd like to install, and: | ||
|
||
```console | ||
brew install cdk8s@1.<minor>.<patch> | ||
``` | ||
|
||
=== "npm" | ||
```console | ||
npm install -g cdk8s-cli@^1 | ||
``` | ||
|
||
=== "yarn" | ||
```console | ||
yarn global add cdk8s-cli@^1 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.