cdk8s-plus-32 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +90710 -0
- package/CODE_OF_CONDUCT.md +3 -0
- package/CONTRIBUTING.md +185 -0
- package/DCO +34 -0
- package/LICENSE +202 -0
- package/NOTICE +1 -0
- package/OWNERS.md +5 -0
- package/README.md +32 -0
- package/SECURITY.md +5 -0
- package/cdk8s.yaml +9 -0
- package/docs/java.md +24089 -0
- package/docs/plus/config-map.md +98 -0
- package/docs/plus/container.md +133 -0
- package/docs/plus/cronjob.md +67 -0
- package/docs/plus/deployment.md +232 -0
- package/docs/plus/horizontal-pod-autoscaler.md +226 -0
- package/docs/plus/ingress.md +68 -0
- package/docs/plus/job.md +48 -0
- package/docs/plus/namespace.md +58 -0
- package/docs/plus/network-policy.md +341 -0
- package/docs/plus/pod.md +455 -0
- package/docs/plus/pv.md +82 -0
- package/docs/plus/pvc.md +77 -0
- package/docs/plus/rbac.md +104 -0
- package/docs/plus/secret.md +32 -0
- package/docs/plus/service-account.md +35 -0
- package/docs/plus/service.md +41 -0
- package/docs/plus/volume.md +38 -0
- package/docs/python.md +26313 -0
- package/docs/typescript.md +19695 -0
- package/git-hooks/README.md +9 -0
- package/git-hooks/prepare-commit-msg +18 -0
- package/git-hooks/setup.sh +10 -0
- package/lib/_action.d.ts +21 -0
- package/lib/_action.js +32 -0
- package/lib/api-resource.d.ts +298 -0
- package/lib/api-resource.js +430 -0
- package/lib/base.d.ts +79 -0
- package/lib/base.js +92 -0
- package/lib/config-map.d.ts +126 -0
- package/lib/config-map.js +159 -0
- package/lib/container.d.ts +1057 -0
- package/lib/container.js +845 -0
- package/lib/cron-job.d.ts +138 -0
- package/lib/cron-job.js +103 -0
- package/lib/daemon-set.d.ts +45 -0
- package/lib/daemon-set.js +55 -0
- package/lib/deployment.d.ts +223 -0
- package/lib/deployment.js +214 -0
- package/lib/handler.d.ts +62 -0
- package/lib/handler.js +54 -0
- package/lib/horizontal-pod-autoscaler.d.ts +500 -0
- package/lib/horizontal-pod-autoscaler.js +569 -0
- package/lib/imports/k8s.d.ts +21811 -0
- package/lib/imports/k8s.js +16678 -0
- package/lib/index.d.ts +26 -0
- package/lib/index.js +44 -0
- package/lib/ingress.d.ts +230 -0
- package/lib/ingress.js +246 -0
- package/lib/job.d.ts +64 -0
- package/lib/job.js +54 -0
- package/lib/namespace.d.ts +128 -0
- package/lib/namespace.js +109 -0
- package/lib/network-policy.d.ts +311 -0
- package/lib/network-policy.js +344 -0
- package/lib/pod.d.ts +1088 -0
- package/lib/pod.js +1141 -0
- package/lib/probe.d.ts +141 -0
- package/lib/probe.js +77 -0
- package/lib/pv.d.ts +375 -0
- package/lib/pv.js +273 -0
- package/lib/pvc.d.ts +163 -0
- package/lib/pvc.js +152 -0
- package/lib/role-binding.d.ts +138 -0
- package/lib/role-binding.js +165 -0
- package/lib/role.d.ts +268 -0
- package/lib/role.js +401 -0
- package/lib/secret.d.ts +195 -0
- package/lib/secret.js +185 -0
- package/lib/service-account.d.ts +83 -0
- package/lib/service-account.js +105 -0
- package/lib/service.d.ts +289 -0
- package/lib/service.js +182 -0
- package/lib/stateful-set.d.ts +169 -0
- package/lib/stateful-set.js +174 -0
- package/lib/utils.d.ts +4 -0
- package/lib/utils.js +33 -0
- package/lib/volume.d.ts +573 -0
- package/lib/volume.js +371 -0
- package/lib/workload.d.ts +121 -0
- package/lib/workload.js +122 -0
- package/node_modules/balanced-match/.github/FUNDING.yml +2 -0
- package/node_modules/balanced-match/LICENSE.md +21 -0
- package/node_modules/balanced-match/README.md +97 -0
- package/node_modules/balanced-match/index.js +62 -0
- package/node_modules/balanced-match/package.json +48 -0
- package/node_modules/concat-map/.travis.yml +4 -0
- package/node_modules/concat-map/LICENSE +18 -0
- package/node_modules/concat-map/README.markdown +62 -0
- package/node_modules/concat-map/example/map.js +6 -0
- package/node_modules/concat-map/index.js +13 -0
- package/node_modules/concat-map/package.json +43 -0
- package/node_modules/concat-map/test/map.js +39 -0
- package/node_modules/minimatch/LICENSE +15 -0
- package/node_modules/minimatch/README.md +230 -0
- package/node_modules/minimatch/minimatch.js +947 -0
- package/node_modules/minimatch/node_modules/brace-expansion/LICENSE +21 -0
- package/node_modules/minimatch/node_modules/brace-expansion/README.md +129 -0
- package/node_modules/minimatch/node_modules/brace-expansion/index.js +201 -0
- package/node_modules/minimatch/node_modules/brace-expansion/package.json +47 -0
- package/node_modules/minimatch/package.json +33 -0
- package/package.json +181 -0
- package/rotate.md +84 -0
package/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
# cdk8s+ (cdk8s-plus)
|
|
2
|
+
|
|
3
|
+
Hey there! Thanks for taking an interest in contributing to cdk8s+ 😀
|
|
4
|
+
|
|
5
|
+
> Before you continue, please make sure you've read the general procedural contribution guidance for this repository: [Contributing to cdk8s](../../CONTRIBUTING.md)
|
|
6
|
+
|
|
7
|
+
## Design Principles
|
|
8
|
+
|
|
9
|
+
As already mentioned in the [README](./README.md), this library is in very early stages of development.
|
|
10
|
+
Even so, there are several design principles we would like to try and maintain:
|
|
11
|
+
|
|
12
|
+
> Note: nothing is set in stone, if you feel these principles are in some way limiting in providing the best API possible, please feel
|
|
13
|
+
free to voice your concerns and even submit a PR to amend the principles themselves.
|
|
14
|
+
|
|
15
|
+
### Mutability
|
|
16
|
+
|
|
17
|
+
As you will notice, objects in this API are mutable on collections and have
|
|
18
|
+
read-only accessors for primitives.
|
|
19
|
+
|
|
20
|
+
For example:
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import * as kplus from 'cdk8s-plus-17';
|
|
24
|
+
|
|
25
|
+
const pod = new kplus.Pod(parent, 'Pod', {
|
|
26
|
+
replicas: 4
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
// mutating the pod spec with another volume
|
|
30
|
+
pod.spec.addVolume(volume);
|
|
31
|
+
|
|
32
|
+
// mutating the pod spec with another container
|
|
33
|
+
pod.spec.addContainer(container);
|
|
34
|
+
|
|
35
|
+
// returns the resolved value of "replicas"
|
|
36
|
+
assert(pod.replicas === 4);
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
When an object is instantiated, it is initialized through a set of properties
|
|
40
|
+
("props"). In many cases, these properties will have default values. After an
|
|
41
|
+
object is already initialized it should be possible to:
|
|
42
|
+
|
|
43
|
+
1. **Read** resolved values of primitive values through properties by the same
|
|
44
|
+
name:
|
|
45
|
+
|
|
46
|
+
```ts
|
|
47
|
+
interface FooProps {
|
|
48
|
+
/**
|
|
49
|
+
* @default 10
|
|
50
|
+
**/
|
|
51
|
+
readonly replicas?: number;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
class Foo extends Construct {
|
|
55
|
+
public readonly replicas: number;
|
|
56
|
+
|
|
57
|
+
constructor(scope: Construct, id: string, props: FooProps = { }) {
|
|
58
|
+
super(scope, id);
|
|
59
|
+
|
|
60
|
+
this.replicas = props.replicas ?? 10;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
2. **Mutate collections (lists/maps)**: since mutation of unordered collections
|
|
66
|
+
is a safe operation in respect to ordering (anyone can add items to a set or
|
|
67
|
+
a new key to a map without "racing" with other areas in the code), we should
|
|
68
|
+
offer `addXxx` mutation methods for lists and maps:
|
|
69
|
+
|
|
70
|
+
```ts
|
|
71
|
+
interface FooProps {
|
|
72
|
+
readonly bar?: string[];
|
|
73
|
+
readonly baz?: { [key: string]: string };
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
class Foo ... {
|
|
77
|
+
public addBar(item: string): void { ... }
|
|
78
|
+
public addBaz(key: string, value: string): void { ... }
|
|
79
|
+
}
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
3. **Read collections through immutable copies**: the API should also include
|
|
83
|
+
properties for obtaining a copy of collections so they can be inspected but
|
|
84
|
+
not modified (continuing the previous example):
|
|
85
|
+
|
|
86
|
+
```ts
|
|
87
|
+
class Foo ... {
|
|
88
|
+
private readonly _bar: string[];
|
|
89
|
+
private readonly _baz: { [k: string]: string };
|
|
90
|
+
|
|
91
|
+
constructor() {
|
|
92
|
+
this._bar = props.bar ?? [];
|
|
93
|
+
this._baz = props.baz ?? {};
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
// use spreads to create a copy
|
|
97
|
+
public get bar() { return [ ...this._bar ]; }
|
|
98
|
+
public get baz() { return { ...this._baz }; }
|
|
99
|
+
}
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
The reasoning behind this is three fold:
|
|
104
|
+
|
|
105
|
+
1. Kubernetes spec objects have an extremely large surface area. Configuring all
|
|
106
|
+
properties in the constructor can easily result in cluttered and un-readable
|
|
107
|
+
code. Exposing post instantiation methods can provide a cleaner, more
|
|
108
|
+
semantic mechanism of configuration.
|
|
109
|
+
|
|
110
|
+
2. This library aims to reduce the complexity of creating Kubernetes
|
|
111
|
+
configuration files. An important enabler to achieve this, is the ability to
|
|
112
|
+
auto wire different resources to work together. To that end, post
|
|
113
|
+
instantiation mutations are often required.
|
|
114
|
+
|
|
115
|
+
3. The reason we only allow mutations of (unordered) collections and not
|
|
116
|
+
primitive values is in order to protect against the situation where multiple
|
|
117
|
+
places in your code attempt to write conflicting values to a primitive, and
|
|
118
|
+
the order in which they write now becomes important (i.e. a small, unrelated
|
|
119
|
+
refactor may change the order). This problem does not exist with unordered
|
|
120
|
+
collections.
|
|
121
|
+
|
|
122
|
+
### Non leaky
|
|
123
|
+
|
|
124
|
+
We strive to provide a full abstraction that does not expose the underlying [auto-generated](./imports/k8s.d.ts) api objects.
|
|
125
|
+
Many times, this may result in some code duplication or redundancy. Even though it itches our developer nerves, we do not shy away from it.
|
|
126
|
+
|
|
127
|
+
> **Sometimes, a little duplication is better than a lot of dependencies.**
|
|
128
|
+
|
|
129
|
+
## Making a pull request
|
|
130
|
+
|
|
131
|
+
This repository is set up to maintain one cdk8s+ library for each of the **three
|
|
132
|
+
latest versions** of kubernetes. Each library may have slightly different code.
|
|
133
|
+
Because of that, contributing requires a few extra steps to make sure we can
|
|
134
|
+
apply the feature or bug fix to all the appropriate libraries.
|
|
135
|
+
|
|
136
|
+
We currently track each version on a separate branch:
|
|
137
|
+
|
|
138
|
+
- k8s-26/main
|
|
139
|
+
- k8s-25/main
|
|
140
|
+
- k8s-24/main
|
|
141
|
+
|
|
142
|
+
In most cases, all you need to do is make a change to the library corresponding
|
|
143
|
+
to latest version of kubernetes (i.e to the `k8s-26/main` branch). To do this,
|
|
144
|
+
you can just follow the standard process for making a pull request: fork the
|
|
145
|
+
repository, create your own branch, and add your changes. When you are finished,
|
|
146
|
+
you should run "npx projen build" to make sure all tests pass and documentation
|
|
147
|
+
is automatically updated.
|
|
148
|
+
|
|
149
|
+
When you clone the repo, it will check out the branch corresponding to the
|
|
150
|
+
latest version (`k8s-26/main`), and when you create the pull request on GitHub, it
|
|
151
|
+
should automatically target this branch. We will take care of backporting your
|
|
152
|
+
change to the other branches corresponding to cdk8s-plus-23 and cdk8s-plus-24
|
|
153
|
+
once the changes are merged to cdk8s-plus-26.
|
|
154
|
+
|
|
155
|
+
> Note: In some situations, you might only want to make a change to a library
|
|
156
|
+
targeting an older kubernetes version. In that case, create your branch from the corresponding
|
|
157
|
+
`k8s-XX/main` branch, and when you submit the pull request on GitHub, make sure the
|
|
158
|
+
target branch matches your base branch. The pull request should target the latest branch that your fix
|
|
159
|
+
applies for.
|
|
160
|
+
|
|
161
|
+
### Developer Certificate Of Origin (DCO)
|
|
162
|
+
|
|
163
|
+
Every commit should be signed-off in compliance with the [Developer Certificate Of Origin](./DCO).
|
|
164
|
+
You can sign your commits by using the `git commit -s` command.
|
|
165
|
+
|
|
166
|
+
> To configure automatic signoff, see [git-hooks](./git-hooks/README.md).
|
|
167
|
+
|
|
168
|
+
## API Reference
|
|
169
|
+
|
|
170
|
+
We generate a full [API reference](./docs) automatically during build time. Make
|
|
171
|
+
sure to always run `yarn build` and committing the `API.md` file before
|
|
172
|
+
submitting a pull request.
|
|
173
|
+
|
|
174
|
+
## Project Metadata
|
|
175
|
+
|
|
176
|
+
There are several metadata files that are used by this project:
|
|
177
|
+
|
|
178
|
+
- `package.json` - Standard node project metadata file.
|
|
179
|
+
- `tsconfig.json` - TypeScript configuration file that controls the compilation process.
|
|
180
|
+
- `tsconfig.jest.json` - Configuration file used by the `jest` testing framework to enable seamless test execution without explicitly compiling source files.
|
|
181
|
+
- `.eslintrc.json` - [ESLint](https://eslint.org/) configuration file.
|
|
182
|
+
|
|
183
|
+
All these files are managed by the [projen](https://www.npmjs.com/package/projen) tool, and are automatically generated during build time.
|
|
184
|
+
|
|
185
|
+
Changes to these files should be performed solely via the [projenrc](./.projenrc.js) config file.
|
package/DCO
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
Developer Certificate of Origin
|
|
2
|
+
Version 1.1
|
|
3
|
+
|
|
4
|
+
Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
|
|
5
|
+
|
|
6
|
+
Everyone is permitted to copy and distribute verbatim copies of this
|
|
7
|
+
license document, but changing it is not allowed.
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Developer's Certificate of Origin 1.1
|
|
11
|
+
|
|
12
|
+
By making a contribution to this project, I certify that:
|
|
13
|
+
|
|
14
|
+
(a) The contribution was created in whole or in part by me and I
|
|
15
|
+
have the right to submit it under the open source license
|
|
16
|
+
indicated in the file; or
|
|
17
|
+
|
|
18
|
+
(b) The contribution is based upon previous work that, to the best
|
|
19
|
+
of my knowledge, is covered under an appropriate open source
|
|
20
|
+
license and I have the right under that license to submit that
|
|
21
|
+
work with modifications, whether created in whole or in part
|
|
22
|
+
by me, under the same open source license (unless I am
|
|
23
|
+
permitted to submit under a different license), as indicated
|
|
24
|
+
in the file; or
|
|
25
|
+
|
|
26
|
+
(c) The contribution was provided directly to me by some other
|
|
27
|
+
person who certified (a), (b) or (c) and I have not modified
|
|
28
|
+
it.
|
|
29
|
+
|
|
30
|
+
(d) I understand and agree that this project and the contribution
|
|
31
|
+
are public and that a record of the contribution (including all
|
|
32
|
+
personal information I submit with it, including my sign-off) is
|
|
33
|
+
maintained indefinitely and may be redistributed consistent with
|
|
34
|
+
this project or the open source license(s) involved.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/NOTICE
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
package/OWNERS.md
ADDED
package/README.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# cdk8s+ (cdk8s-plus)
|
|
2
|
+
|
|
3
|
+
### High level constructs for Kubernetes
|
|
4
|
+
|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
| k8s version | npm (JS/TS) | PyPI (Python) | Maven (Java) | Go |
|
|
8
|
+
| ----------- | --------------------------------------------------- | ----------------------------------------------- | ----------------------------------------------------------------- | --------------------------------------------------------------- |
|
|
9
|
+
| 1.30.0 | [Link](https://www.npmjs.com/package/cdk8s-plus-30) | [Link](https://pypi.org/project/cdk8s-plus-30/) | [Link](https://search.maven.org/artifact/org.cdk8s/cdk8s-plus-30) | [Link](https://github.com/cdk8s-team/cdk8s-plus-go/tree/k8s.30) |
|
|
10
|
+
| 1.31.0 | [Link](https://www.npmjs.com/package/cdk8s-plus-31) | [Link](https://pypi.org/project/cdk8s-plus-31/) | [Link](https://search.maven.org/artifact/org.cdk8s/cdk8s-plus-31) | [Link](https://github.com/cdk8s-team/cdk8s-plus-go/tree/k8s.31) |
|
|
11
|
+
| 1.32.0 | [Link](https://www.npmjs.com/package/cdk8s-plus-32) | [Link](https://pypi.org/project/cdk8s-plus-32/) | [Link](https://search.maven.org/artifact/org.cdk8s/cdk8s-plus-32) | [Link](https://github.com/cdk8s-team/cdk8s-plus-go/tree/k8s.32) |
|
|
12
|
+
|
|
13
|
+
**cdk8s+** is a software development framework that provides high level
|
|
14
|
+
abstractions for authoring Kubernetes applications. Built on top of the auto
|
|
15
|
+
generated building blocks provided by [cdk8s](../cdk8s), this library includes a
|
|
16
|
+
hand crafted *construct* for each native kubernetes object, exposing richer
|
|
17
|
+
API's with reduced complexity.
|
|
18
|
+
|
|
19
|
+
## :books: Documentation
|
|
20
|
+
|
|
21
|
+
See [cdk8s.io](https://cdk8s.io/docs/latest/plus).
|
|
22
|
+
|
|
23
|
+
## :raised_hand: Contributing
|
|
24
|
+
|
|
25
|
+
If you'd like to add a new feature or fix a bug, please visit
|
|
26
|
+
[CONTRIBUTING.md](CONTRIBUTING.md)!
|
|
27
|
+
|
|
28
|
+
## :balance_scale: License
|
|
29
|
+
|
|
30
|
+
This project is distributed under the [Apache License, Version 2.0](./LICENSE).
|
|
31
|
+
|
|
32
|
+
This module is part of the [cdk8s project](https://github.com/cdk8s-team).
|
package/SECURITY.md
ADDED