-
Notifications
You must be signed in to change notification settings - Fork 294
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(plus): Remove the
spec
nesting level on both input and out…
…put (#347) Removed the need to specify various `spec` properties for both pre and post instantiation. Applies to all constructs that used to accept a pod spec. ### Before ```ts const deployment = new kplus.Deployment(this, text, { spec: { podSpecTemplate: { containers: [ new kplus.Container({ image: 'hashicorp/http-echo', args: [ '-text', text ] }) ] } } }); deployment.spec.podSpecTemplate.addContainer(...) ``` ### After ```ts const deployment = new kplus.Deployment(this, text, { containers: [ new kplus.Container({ image: 'hashicorp/http-echo', args: [ '-text', text ] }) ] }); deployment.addContainer(...) ``` BREAKING CHANGE: `spec` was removed from all cdk8s+ constructs and that now have a flat structure. See [Example](https://github.com/awslabs/cdk8s/tree/master/packages/cdk8s-plus#at-a-glance) for new usage. * **plus**: Construct id's for deployment will change due to a latent bug that appended the word `pod` to them. *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
- Loading branch information
Showing
19 changed files
with
1,200 additions
and
1,305 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
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
Large diffs are not rendered by default.
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.