cdk8s-plus
Advanced tools
Comparing version 0.26.0-pre.37ad98b3712e1127f835050a231a07812c25cbca to 0.26.0-pre.498354b316df5edfaf380dadc5bfd3f68b5cfe9d
@@ -31,3 +31,3 @@ { | ||
"constructs": "2.0.2", | ||
"cdk8s": "0.26.0-pre.37ad98b3712e1127f835050a231a07812c25cbca", | ||
"cdk8s": "0.26.0-pre.498354b316df5edfaf380dadc5bfd3f68b5cfe9d", | ||
"@types/minimatch": "^3.0.3", | ||
@@ -55,7 +55,7 @@ "projen": "^0.2.2", | ||
"constructs": "^2.0.2", | ||
"cdk8s": "0.26.0-pre.37ad98b3712e1127f835050a231a07812c25cbca" | ||
"cdk8s": "0.26.0-pre.498354b316df5edfaf380dadc5bfd3f68b5cfe9d" | ||
}, | ||
"dependencies": { | ||
"minimatch": "^3.0.4", | ||
"cdk8s": "0.26.0-pre.37ad98b3712e1127f835050a231a07812c25cbca" | ||
"cdk8s": "0.26.0-pre.498354b316df5edfaf380dadc5bfd3f68b5cfe9d" | ||
}, | ||
@@ -75,3 +75,3 @@ "bundledDependencies": [ | ||
"license": "Apache-2.0", | ||
"version": "0.26.0-pre.37ad98b3712e1127f835050a231a07812c25cbca", | ||
"version": "0.26.0-pre.498354b316df5edfaf380dadc5bfd3f68b5cfe9d", | ||
"types": "lib/index.d.ts", | ||
@@ -78,0 +78,0 @@ "stability": "experimental", |
@@ -140,2 +140,51 @@ # cdk8s+ (cdk8s-plus) | ||
## Installation and Usage | ||
We currently support both Python and TypeScript/JavaScript. More languages are coming soon. | ||
> We would love to hear which languages you want to see next: [Languages Support](https://github.com/awslabs/cdk8s/issues/134) | ||
### TypeScript/JavaScript | ||
`❯ npm install cdk8s-plus cdk8s` | ||
```typescript | ||
import * as kplus from 'cdk8s-plus'; | ||
import * as cdk8s from 'cdk8s'; | ||
const app = new cdk8s.App(); | ||
const chart = new cdk8s.Chart(app, 'Chart'); | ||
new kplus.Deployment(chart, 'Deployment', { | ||
spec: { | ||
replicas: 3, | ||
podSpecTemplate: { | ||
containers: [new kplus.Container({ | ||
image: 'ubuntu', | ||
})], | ||
}, | ||
}, | ||
}); | ||
``` | ||
### Python | ||
`❯ pip install cdk8s-plus cdk8s` | ||
```python | ||
import cdk8s_plus as kplus | ||
import cdk8s | ||
app = cdk8s.App() | ||
chart = cdk8s.Chart(app, 'Chart') | ||
kplus.Deployment(chart, 'Deployment', | ||
spec=kplus.DeploymentSpec( | ||
replicas=1, | ||
pod_spec_template=kplus.PodSpec(containers=[kplus.Container(image='ubuntu')]) | ||
) | ||
) | ||
``` | ||
## In Depth | ||
@@ -142,0 +191,0 @@ |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1839311
652
0
+ Addedcdk8s@0.26.0-pre.498354b316df5edfaf380dadc5bfd3f68b5cfe9d(transitive)
- Removedcdk8s@0.26.0-pre.37ad98b3712e1127f835050a231a07812c25cbca(transitive)
Updatedcdk8s@0.26.0-pre.498354b316df5edfaf380dadc5bfd3f68b5cfe9d