-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Introducing "cdk8s+": high-level APIs for Kubernetes (#239)
Introducing an initial version of high level abstractions on top of the imported resources. *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
- Loading branch information
Elad Ben-Israel
authored
Jun 22, 2020
1 parent
9445358
commit 1b991f6
Showing
64 changed files
with
22,767 additions
and
166 deletions.
There are no files selected for viewing
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,5 @@ | ||
{ | ||
"skip": { "tag": true }, | ||
"packageFiles": [ { "filename": "lerna.json", "type": "json" } ], | ||
"bumpFiles": [ { "filename": "lerna.json", "type": "json" } ] | ||
} |
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,5 +1,5 @@ | ||
{ | ||
"npmClient": "yarn", | ||
"useWorkspaces": true, | ||
"version": "0.0.0" | ||
"version": "0.25.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
{ | ||
"env": { | ||
"jest": true, | ||
"node": true | ||
}, | ||
"plugins": [ | ||
"@typescript-eslint", | ||
"import" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": "2018", | ||
"sourceType": "module" | ||
}, | ||
"extends": [ | ||
"plugin:import/typescript" | ||
], | ||
"settings": { | ||
"import/parsers": { | ||
"@typescript-eslint/parser": [ | ||
".ts", | ||
".tsx" | ||
] | ||
}, | ||
"import/resolver": { | ||
"node": {}, | ||
"typescript": { | ||
"directory": "./tsconfig.json" | ||
} | ||
} | ||
}, | ||
"ignorePatterns": [ | ||
"*.js", | ||
"*.d.ts", | ||
"node_modules/", | ||
"*.generated.ts" | ||
], | ||
"rules": { | ||
"@typescript-eslint/no-require-imports": [ | ||
"error" | ||
], | ||
"indent": [ | ||
"off" | ||
], | ||
"@typescript-eslint/indent": [ | ||
"error", | ||
2 | ||
], | ||
"quotes": [ | ||
"error", | ||
"single", | ||
{ | ||
"avoidEscape": true | ||
} | ||
], | ||
"comma-dangle": [ | ||
"error", | ||
"always-multiline" | ||
], | ||
"quote-props": [ | ||
"error", | ||
"consistent-as-needed", | ||
{ | ||
"unnecessary": true | ||
} | ||
], | ||
"import/no-extraneous-dependencies": [ | ||
"error", | ||
{ | ||
"devDependencies": [ | ||
"**/build-tools/**", | ||
"**/test/**" | ||
], | ||
"optionalDependencies": false, | ||
"peerDependencies": true | ||
} | ||
], | ||
"import/no-unresolved": [ | ||
"error" | ||
] | ||
} | ||
} |
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,64 @@ | ||
# Generated by projen. To modify, edit .projenrc.js and run "npx projen". | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
lerna-debug.log* | ||
# Diagnostic reports (https://nodejs.org/api/report.html) | ||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json | ||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
# Coverage directory used by tools like istanbul | ||
coverage | ||
*.lcov | ||
# nyc test coverage | ||
.nyc_output | ||
# Compiled binary addons (https://nodejs.org/api/addons.html) | ||
build/Release | ||
# Dependency directories | ||
node_modules/ | ||
jspm_packages/ | ||
# TypeScript cache | ||
*.tsbuildinfo | ||
# Optional eslint cache | ||
.eslintcache | ||
# Output of 'npm pack' | ||
*.tgz | ||
# Yarn Integrity file | ||
.yarn-integrity | ||
# parcel-bundler cache (https://parceljs.org/) | ||
.cache | ||
/lib | ||
/coverage | ||
# exclude jsii outputs | ||
dist | ||
.jsii | ||
tsconfig.json | ||
# exclude typescript compiler outputs | ||
*.d.ts | ||
*.js | ||
!# synthesized by projen, (do not modify by hand) | ||
!/package.json | ||
!# synthesized by projen, (do not modify by hand) | ||
!/.npmignore | ||
!# synthesized by projen, (do not modify by hand) | ||
!/LICENSE | ||
!/.projenrc.js | ||
!# always commit version file | ||
!version.json | ||
!# synthesized by projen, (do not modify by hand) | ||
!/.versionrc.json | ||
!/src | ||
!/test | ||
!# synthesized by projen, (do not modify by hand) | ||
!/.eslintrc.json | ||
!/API.md | ||
!# synthesized by projen, (do not modify by hand) | ||
!/tsconfig.jest.json |
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,21 @@ | ||
# Generated by projen. To modify, edit .projenrc.js and run "npx projen". | ||
# exclude project definition from npm module | ||
/.projenrc.js | ||
# make sure to commit projen definition | ||
# standard-version configuration | ||
/.versionrc.json | ||
/src | ||
/test | ||
/coverage | ||
/.eslintrc.json | ||
# exclude typescript sources and configuration | ||
*.ts | ||
tsconfig.json | ||
# exclude jsii outdir | ||
dist | ||
!/lib | ||
!# include javascript files and typescript declarations | ||
!*.js | ||
!*.d.ts | ||
!# include .jsii manifest | ||
!.jsii |
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,51 @@ | ||
const { JsiiProject, Semver } = require('projen'); | ||
|
||
const constructsDependency = Semver.caret('2.0.1') | ||
const cdk8sDependency = Semver.caret('0.0.0') | ||
|
||
const project = new JsiiProject({ | ||
name: 'cdk8s-plus', | ||
buildWorkflow: false, | ||
releaseWorkflow: false, | ||
mergify: false, | ||
commitPackageJson: true, | ||
jsiiVersion: Semver.caret('1.6.0'), | ||
description: 'High level abstractions on top of cdk8s', | ||
repository: 'https://github.com/awslabs/cdk8s.git', | ||
authorName: 'Amazon Web Services', | ||
authorUrl: 'https://aws.amazon.com', | ||
peerDependencies: { | ||
constructs: constructsDependency, | ||
cdk8s: cdk8sDependency, | ||
}, | ||
dependencies: { | ||
minimatch: Semver.caret('3.0.4'), | ||
cdk8s: cdk8sDependency | ||
}, | ||
bundledDependencies: [ 'minimatch' ], | ||
devDependencies: { | ||
'@types/minimatch': Semver.caret('3.0.3'), | ||
}, | ||
stability: 'experimental', | ||
java: { | ||
javaPackage: 'org.cdk8s.plus', | ||
mavenGroupId: 'org.cdk8s', | ||
mavenArtifactId: 'cdk8s-plus' | ||
}, | ||
python: { | ||
distName: 'cdk8s-plus', | ||
module: 'cdk8s_plus' | ||
}, | ||
dotnet: { | ||
dotNetNamespace: 'Org.Cdk8s.Plus', | ||
packageId: 'Org.Cdk8s.Plus' | ||
} | ||
}); | ||
|
||
// override the default "build" from projen because currently in this | ||
// repo it means "compile" | ||
project.addScripts({ | ||
build: 'jsii --silence-warnings=reserved-word && yarn docgen' | ||
}); | ||
|
||
project.synth(); |
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,18 @@ | ||
{ | ||
"packageFiles": [ | ||
{ | ||
"filename": "version.json", | ||
"type": "json" | ||
} | ||
], | ||
"bumpFiles": [ | ||
{ | ||
"filename": "version.json", | ||
"type": "json" | ||
} | ||
], | ||
"commitAll": true, | ||
"scripts": { | ||
"postbump": "yarn projen && git add ." | ||
} | ||
} |
Oops, something went wrong.