-
Notifications
You must be signed in to change notification settings - Fork 298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow overriding output directory for imports in cdk8s.yaml config file #2159
Comments
Sounds good. Happy to take a contribution |
@eladb I looked into this more and there is a complication. Config.output is already defined here: https://github.com/awslabs/cdk8s/blob/master/packages/cdk8s-cli/src/config.ts#L15 and has a default of
The See: https://github.com/awslabs/cdk8s/blob/master/packages/cdk8s-cli/src/cli/cmds/synth.ts So this issue is that both the
But that seems ugly and is a pretty big change to put into a small PR. For now I can just use a script and pass the command line option unless there is something obvious I am missing here. |
I agree. |
This issue is now marked as stale because it hasn't seen activity for a while. Add a comment or it will be closed soon. |
Closing this issue as it hasn't seen activity for a while. Please add a comment @mentioning a maintainer to reopen. |
Closing this issue as it hasn't seen activity for a while. Please add a comment @mentioning a maintainer to reopen. |
This issue is now marked as stale because it hasn't seen activity for a while. Add a comment or it will be closed soon. |
Closing this issue as it hasn't seen activity for a while. Please add a comment @mentioning a maintainer to reopen. |
@iliapolo this would still be nice to have, could you reopen this? |
This issue has not received any attention in 1 year and will be closed soon. If you want to keep it open, please leave a comment below @mentioning a maintainer. |
@iliapolo Would still be nice to have. Please keep open. |
Description of the feature or enhancement:
I think it would be useful to surface more of the configuration for the import command into the cdk8s.yaml file. This would allow users to declaratively set this in the configuration without having to put it into the command line options in a script or each time they run it.
It appears that code is already in place to do this for 'language'.
https://github.com/awslabs/cdk8s/blob/master/packages/cdk8s-cli/src/cli/cmds/import.ts#L25
This would be extending it to support
output
and possiblyinclude
andexclude
.Use Case:
It would help make it more convenient to use the CLI for import generation and update. It also helps to make clear through configuration what the desired settings for the project are.
Proposed Solution:
Change this line: https://github.com/awslabs/cdk8s/blob/master/packages/cdk8s-cli/src/cli/cmds/import.ts#L22
to something like:
default: config.outdir ?? DEFAULT_OUTDIR
I could implement it if there is interest and likelihood of getting it through quickly.
Other:
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: