From 5b1a5cd37261ac3601b33be036f53d673d78fef3 Mon Sep 17 00:00:00 2001 From: epolon Date: Wed, 11 Sep 2024 14:59:20 +0300 Subject: [PATCH] rotate Signed-off-by: epolon --- .gitignore | 6 ++--- .projen/deps.json | 6 ++--- .projen/tasks.json | 6 ++--- docs/basics/api-object.md | 2 +- docs/basics/escape-hatches.md | 2 +- docs/plus/.pages | 2 +- docs/plus/index.md | 26 ++++++++++---------- docs/reference/.pages | 2 +- docs/reference/cdk8s-plus-31/.pages | 5 ++++ docs/reference/cdk8s-plus-31/go.md | 3 +++ docs/reference/index.md | 8 +++--- package.json | 2 +- src/latest-k8s-version.txt | 2 +- yarn.lock | 38 ++++++++--------------------- 14 files changed, 50 insertions(+), 60 deletions(-) create mode 100644 docs/reference/cdk8s-plus-31/.pages create mode 100644 docs/reference/cdk8s-plus-31/go.md diff --git a/.gitignore b/.gitignore index e6b90d450d..a037fb3bd3 100644 --- a/.gitignore +++ b/.gitignore @@ -67,13 +67,13 @@ dist/ /docs/reference/cdk8s/java.md /docs/reference/cdk8s/typescript.md /docs/reference/cdk8s/python.md +/docs/reference/cdk8s-plus-31/java.md +/docs/reference/cdk8s-plus-31/typescript.md +/docs/reference/cdk8s-plus-31/python.md /docs/reference/cdk8s-plus-30/java.md /docs/reference/cdk8s-plus-30/typescript.md /docs/reference/cdk8s-plus-30/python.md /docs/reference/cdk8s-plus-29/java.md /docs/reference/cdk8s-plus-29/typescript.md /docs/reference/cdk8s-plus-29/python.md -/docs/reference/cdk8s-plus-28/java.md -/docs/reference/cdk8s-plus-28/typescript.md -/docs/reference/cdk8s-plus-28/python.md !/.projenrc.ts diff --git a/.projen/deps.json b/.projen/deps.json index cc7cc832fb..2d8eed1082 100644 --- a/.projen/deps.json +++ b/.projen/deps.json @@ -32,15 +32,15 @@ "type": "build" }, { - "name": "cdk8s-plus-28", + "name": "cdk8s-plus-29", "type": "build" }, { - "name": "cdk8s-plus-29", + "name": "cdk8s-plus-30", "type": "build" }, { - "name": "cdk8s-plus-30", + "name": "cdk8s-plus-31", "type": "build" }, { diff --git a/.projen/tasks.json b/.projen/tasks.json index 9e0233978b..d37eebde62 100644 --- a/.projen/tasks.json +++ b/.projen/tasks.json @@ -137,7 +137,7 @@ "name": "rotate-cdk8s-plus", "steps": [ { - "exec": "ts-node src/rotate-cdk8s-plus.ts 30" + "exec": "ts-node src/rotate-cdk8s-plus.ts 31" } ] }, @@ -206,13 +206,13 @@ }, "steps": [ { - "exec": "npx npm-check-updates@16 --upgrade --target=minor --peer --dep=dev --filter=@types/jest,cdk8s,cdk8s-cli,cdk8s-plus-28,cdk8s-plus-29,cdk8s-plus-30,eslint-import-resolver-typescript,eslint-plugin-import,jest,lerna,semver,ts-jest,ts-node" + "exec": "npx npm-check-updates@16 --upgrade --target=minor --peer --dep=dev --filter=@types/jest,cdk8s,cdk8s-cli,cdk8s-plus-29,cdk8s-plus-30,cdk8s-plus-31,eslint-import-resolver-typescript,eslint-plugin-import,jest,lerna,semver,ts-jest,ts-node" }, { "exec": "yarn install --check-files" }, { - "exec": "yarn upgrade @types/jest @types/node @typescript-eslint/eslint-plugin @typescript-eslint/parser cdk8s cdk8s-cli cdk8s-plus-28 cdk8s-plus-29 cdk8s-plus-30 constructs eslint-import-resolver-typescript eslint-plugin-import eslint jest jest-junit lerna semver ts-jest ts-node" + "exec": "yarn upgrade @types/jest @types/node @typescript-eslint/eslint-plugin @typescript-eslint/parser cdk8s cdk8s-cli cdk8s-plus-29 cdk8s-plus-30 cdk8s-plus-31 constructs eslint-import-resolver-typescript eslint-plugin-import eslint jest jest-junit lerna semver ts-jest ts-node" }, { "exec": "npx projen" diff --git a/docs/basics/api-object.md b/docs/basics/api-object.md index 15a88d9f8b..4f1d19d5ab 100644 --- a/docs/basics/api-object.md +++ b/docs/basics/api-object.md @@ -20,7 +20,7 @@ For example, the following code: ```ts import { App, Chart } from 'cdk8s'; -import * as kplus from 'cdk8s-plus-30'; +import * as kplus from 'cdk8s-plus-31'; const app = new App(); const chart = new MyChart(app, 'my-chart'); diff --git a/docs/basics/escape-hatches.md b/docs/basics/escape-hatches.md index 6d38535af8..b1382a6c8c 100644 --- a/docs/basics/escape-hatches.md +++ b/docs/basics/escape-hatches.md @@ -51,7 +51,7 @@ To do that, you will need to "peak" into the construct tree and find the underly API object, so you can apply the patch to it: ```ts -import { Pod } from 'cdk8s-plus-30'; +import { Pod } from 'cdk8s-plus-31'; import { ApiObject } from 'cdk8s'; const pod = new Pod(...); diff --git a/docs/plus/.pages b/docs/plus/.pages index 7ba3e21a5e..471f40f8dc 100644 --- a/docs/plus/.pages +++ b/docs/plus/.pages @@ -1,5 +1,5 @@ nav: - index.md - - cdk8s-plus-28: cdk8s-plus-28 - cdk8s-plus-29: cdk8s-plus-29 - cdk8s-plus-30: cdk8s-plus-30 + - cdk8s-plus-31: cdk8s-plus-31 diff --git a/docs/plus/index.md b/docs/plus/index.md index 6a80fdb692..3d5ce05ba7 100644 --- a/docs/plus/index.md +++ b/docs/plus/index.md @@ -59,7 +59,7 @@ manifests. ## At a glance ```typescript -import * as kplus from 'cdk8s-plus-30'; +import * as kplus from 'cdk8s-plus-31'; import * as cdk8s from 'cdk8s'; import * as path from 'path'; @@ -177,10 +177,10 @@ app.synth(); === "TypeScript" - `❯ npm install cdk8s-plus-30 cdk8s constructs` + `❯ npm install cdk8s-plus-31 cdk8s constructs` ```typescript - import * as kplus from 'cdk8s-plus-30'; + import * as kplus from 'cdk8s-plus-31'; import * as cdk8s from 'cdk8s'; const app = new cdk8s.App(); @@ -198,10 +198,10 @@ app.synth(); === "JavaScript" - `❯ npm install cdk8s-plus-30 cdk8s constructs` + `❯ npm install cdk8s-plus-31 cdk8s constructs` ```typescript - const kplus = require('cdk8s-plus-30'); + const kplus = require('cdk8s-plus-31'); const cdk8s = require('cdk8s'); const app = new cdk8s.App(); @@ -219,7 +219,7 @@ app.synth(); === "Python" - `❯ pip install cdk8s-plus-30 cdk8s` + `❯ pip install cdk8s-plus-31 cdk8s` ```python import cdk8s_plus_27 as kplus @@ -246,7 +246,7 @@ app.synth(); org.cdk8s - cdk8s-plus-30 + cdk8s-plus-31 2.0.0 ``` @@ -259,8 +259,8 @@ app.synth(); import org.cdk8s.App; import org.cdk8s.Chart; import org.cdk8s.ChartProps; - import org.cdk8s.plus30.Deployment; - import org.cdk8s.plus30.ContainerProps; + import org.cdk8s.plus31.Deployment; + import org.cdk8s.plus31.ContainerProps; import java.util.Arrays; @@ -297,7 +297,7 @@ app.synth(); "github.com/aws/constructs-go/constructs/v10" "github.com/aws/jsii-runtime-go" "github.com/cdk8s-team/cdk8s-core-go/cdk8s/v2" - "github.com/cdk8s-team/cdk8s-plus-go/cdk8splus30" + "github.com/cdk8s-team/cdk8s-plus-go/cdk8splus31" ) ``` @@ -305,9 +305,9 @@ app.synth(); app := cdk8s.NewApp(nil) chart := cdk8s.NewChart(app, jsii.String("ubuntu"), nil) - cdk8splus30.NewDeployment(chart, jsii.String("Deployment"), &cdk8splus30.DeploymentProps{ + cdk8splus31.NewDeployment(chart, jsii.String("Deployment"), &cdk8splus31.DeploymentProps{ Replicas: jsii.Number(3), - Containers: &[]*cdk8splus30.ContainerProps{{ + Containers: &[]*cdk8splus31.ContainerProps{{ Image: jsii.String("ubuntu"), }}, }) @@ -328,7 +328,7 @@ which are available from within **cdk8s+**, so you don't need to install an addi or [import](https://cdk8s.io/docs/latest/cli/import/) any resources. For example: ```ts -import * as kplus from 'cdk8s-plus-30'; +import * as kplus from 'cdk8s-plus-31'; import * as cdk8s from 'cdk8s'; const app = new cdk8s.App(); diff --git a/docs/reference/.pages b/docs/reference/.pages index bccc76a0da..755b9703da 100644 --- a/docs/reference/.pages +++ b/docs/reference/.pages @@ -1,6 +1,6 @@ nav: - index.md - cdk8s: cdk8s - - cdk8s-plus-28: cdk8s-plus-28 - cdk8s-plus-29: cdk8s-plus-29 - cdk8s-plus-30: cdk8s-plus-30 + - cdk8s-plus-31: cdk8s-plus-31 diff --git a/docs/reference/cdk8s-plus-31/.pages b/docs/reference/cdk8s-plus-31/.pages new file mode 100644 index 0000000000..ecb0fdb885 --- /dev/null +++ b/docs/reference/cdk8s-plus-31/.pages @@ -0,0 +1,5 @@ +nav: +- TypeScript: typescript.md +- Python: python.md +- Java: java.md +- Go: go.md \ No newline at end of file diff --git a/docs/reference/cdk8s-plus-31/go.md b/docs/reference/cdk8s-plus-31/go.md new file mode 100644 index 0000000000..61ca5dcc6d --- /dev/null +++ b/docs/reference/cdk8s-plus-31/go.md @@ -0,0 +1,3 @@ +# cdk8s-plus-31 (Go) + +For Go API reference, please visit . \ No newline at end of file diff --git a/docs/reference/index.md b/docs/reference/index.md index 06169ce367..fa8b353b6e 100644 --- a/docs/reference/index.md +++ b/docs/reference/index.md @@ -5,30 +5,30 @@ This section includes API reference for the various components of cdk8s. === "TypeScript" * [**cdk8s**](./cdk8s/typescript.md) - * [**cdk8s-plus-28**](./cdk8s-plus-28/typescript.md) · Kubernetes v1.28.0 * [**cdk8s-plus-29**](./cdk8s-plus-29/typescript.md) · Kubernetes v1.29.0 * [**cdk8s-plus-30**](./cdk8s-plus-30/typescript.md) · Kubernetes v1.30.0 + * [**cdk8s-plus-31**](./cdk8s-plus-31/typescript.md) · Kubernetes v1.31.0 === "Python" * [**cdk8s**](./cdk8s/python.md) - * [**cdk8s-plus-28**](./cdk8s-plus-28/python.md) · Kubernetes v1.28.0 * [**cdk8s-plus-29**](./cdk8s-plus-29/python.md) · Kubernetes v1.29.0 * [**cdk8s-plus-30**](./cdk8s-plus-30/python.md) · Kubernetes v1.30.0 + * [**cdk8s-plus-31**](./cdk8s-plus-31/python.md) · Kubernetes v1.31.0 === "Java" * [**cdk8s**](./cdk8s/java.md) - * [**cdk8s-plus-28**](./cdk8s-plus-28/java.md) · Kubernetes v1.28.0 * [**cdk8s-plus-29**](./cdk8s-plus-29/java.md) · Kubernetes v1.29.0 * [**cdk8s-plus-30**](./cdk8s-plus-30/java.md) · Kubernetes v1.30.0 + * [**cdk8s-plus-31**](./cdk8s-plus-31/java.md) · Kubernetes v1.31.0 === "Go" * [**cdk8s**](./cdk8s/go.md) - * [**cdk8s-plus-28**](./cdk8s-plus-28/go.md) · Kubernetes v1.28.0 * [**cdk8s-plus-29**](./cdk8s-plus-29/go.md) · Kubernetes v1.29.0 * [**cdk8s-plus-30**](./cdk8s-plus-30/go.md) · Kubernetes v1.30.0 + * [**cdk8s-plus-31**](./cdk8s-plus-31/go.md) · Kubernetes v1.31.0 !!! info diff --git a/package.json b/package.json index 42d013c1ed..e1fcc6219d 100644 --- a/package.json +++ b/package.json @@ -36,9 +36,9 @@ "@typescript-eslint/parser": "^7", "cdk8s": "^2.69.0", "cdk8s-cli": "^2.198.214", - "cdk8s-plus-28": "^2.5.6", "cdk8s-plus-29": "^2.5.5", "cdk8s-plus-30": "^2.2.5", + "cdk8s-plus-31": "^2.0.0", "constructs": "^10.0.0", "eslint": "^8", "eslint-import-resolver-typescript": "^3.6.3", diff --git a/src/latest-k8s-version.txt b/src/latest-k8s-version.txt index 8580e7b684..b74e882ae3 100644 --- a/src/latest-k8s-version.txt +++ b/src/latest-k8s-version.txt @@ -1 +1 @@ -30 \ No newline at end of file +31 \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index 5794274f87..54cda94fc0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2164,6 +2164,13 @@ cdk8s-plus-30@^2.2.5: dependencies: minimatch "^3.1.2" +cdk8s-plus-31@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/cdk8s-plus-31/-/cdk8s-plus-31-2.0.0.tgz#4ac5b22e8412f89c494576c1e3ccc418760182ad" + integrity sha512-c+keTSahjs7iBR5w1WqRBgwU3y1b9Z0E+hV7pOLay8qCwZh7nUgit7NUJ9IyKn3QiaN3YQN6x0cQfK6p7aroCQ== + dependencies: + minimatch "^3.1.2" + cdk8s@^2.69.0: version "2.69.0" resolved "https://registry.yarnpkg.com/cdk8s/-/cdk8s-2.69.0.tgz#dabbbbafc6bdebb049ecfae7232eb13e710480ec" @@ -7058,16 +7065,7 @@ string-length@^4.0.1: char-regex "^1.0.2" strip-ansi "^6.0.0" -"string-width-cjs@npm:string-width@^4.2.0": - version "4.2.3" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" - integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== - dependencies: - emoji-regex "^8.0.0" - is-fullwidth-code-point "^3.0.0" - strip-ansi "^6.0.1" - -"string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: +"string-width-cjs@npm:string-width@^4.2.0", "string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: version "4.2.3" resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== @@ -7127,14 +7125,7 @@ string_decoder@~1.1.1: dependencies: safe-buffer "~5.1.0" -"strip-ansi-cjs@npm:strip-ansi@^6.0.1": - version "6.0.1" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" - integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== - dependencies: - ansi-regex "^5.0.1" - -strip-ansi@^6.0.0, strip-ansi@^6.0.1: +"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1: version "6.0.1" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== @@ -7826,7 +7817,7 @@ workerpool@^6.5.1: resolved "https://registry.yarnpkg.com/workerpool/-/workerpool-6.5.1.tgz#060f73b39d0caf97c6db64da004cd01b4c099544" integrity sha512-Fs4dNYcsdpYSAfVxhnl1L5zTksjvOJxtC5hzMNl+1t9B8hTJTdKDyZ5ju7ztgPy+ft9tBFXoOlDNiOT9WUXZlA== -"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0": +"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0: version "7.0.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== @@ -7844,15 +7835,6 @@ wrap-ansi@^6.0.1, wrap-ansi@^6.2.0: string-width "^4.1.0" strip-ansi "^6.0.0" -wrap-ansi@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" - integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== - dependencies: - ansi-styles "^4.0.0" - string-width "^4.1.0" - strip-ansi "^6.0.0" - wrap-ansi@^8.1.0: version "8.1.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214"