cdk8s-team / cdk8s

Define Kubernetes native apps and abstractions using object-oriented programming
https://cdk8s.io
Apache License 2.0
4.31k stars 291 forks source link

Explain the need for using cdk8s-cli vs executing the cdk8s script file directly? #1806

Closed shinebayar-g closed 2 months ago

shinebayar-g commented 7 months ago

Description of the feature or enhancement:

Is there any difference between using cdk8s-cli vs just calling the .synth() method?

yarn run cdk8s synth --app 'yarn run tsx main.ts'

vs

yarn run tsx main.ts

Both method worked for me. Except the latter doesn't show outputs obviously. Am I missing anything by not using the cli?

Use Case:

Proposed Solution:

Other:


This is a :rocket: Feature Request

iliapolo commented 4 months ago

For the purpose of solely creating a YAML manifest, no there is no difference. But there are some auxiliary features that are only implemented in the CLI (though arguably could be moved to the framework) like:

github-actions[bot] commented 3 months ago

This issue has not received a response in a while and will be closed soon. If you want to keep it open, please leave a comment below @mentioning a maintainer.