-
Notifications
You must be signed in to change notification settings - Fork 25
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
CLI throws faulty error when outdir is passed to AppProps #210
Comments
Hmm - I believe this might just be a problem with a faulty error message. When I reproduce this, I get the same error message, but the yaml file does appear in the directory I specified. (Let me know if you observe different) I think this is probably a bug in the command line tool... |
@Chriscbr - You are correct, I just checked and I'm getting the same result. Error message but seeing the rendered manifests under the correct directory specified in the App() property. Would you like me to leave this open and edit it for clarification, or close? |
@pmkuny Editing it is fine -- it's still a bug for sure! 😉 |
@Chriscbr - Should I create an issue in cdk8s-cli and link it here, or should I just edit this to track that? |
@pmkuny I've gone ahead and transferred the issue straight over. Thanks! |
Faced this peculiar error message
although everything seems fine. The problem is that the exit code is 1, so this causes CI pipelines to fail. Using the default |
Yeah this is a silly one. Basically when the We are looking into it, but for anyone interested in using a custom output directory, you can configure it using the |
… file (#783) Currently setting the `outdir` property for CDK8s app throws an error, ``` ERROR: synthesis failed, app expected to create "dist" ``` This is due to the CLI not able to recognize this change in the `outdir` in the application property. The value specified in the `outdir` needs to be similar to what is mentioned either in CLI's `--output` argument or the `output` property in the cdk8s.yaml file. Signed-off-by: Vinayak Kukreja <[email protected]> Resolves cdk8s-team/cdk8s-cli#210
… file (#783) Currently setting the `outdir` property for CDK8s app throws an error, ``` ERROR: synthesis failed, app expected to create "dist" ``` This is due to the CLI not able to recognize this change in the `outdir` in the application property. The value specified in the `outdir` needs to be similar to what is mentioned either in CLI's `--output` argument or the `output` property in the cdk8s.yaml file. Signed-off-by: Vinayak Kukreja <[email protected]> Resolves cdk8s-team/cdk8s-cli#210 (cherry picked from commit 05bf5f4) Signed-off-by: Vinayak Kukreja <[email protected]>
Description of the bug:
Configuration of the output directory
outdir
for manifests file in the App construct results in an error message with the default output directory (dist
)I am using the following:
Reproduction Steps:
Error Log:
After running
cdk8s synth
:Environment:
Other:
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: