-
Notifications
You must be signed in to change notification settings - Fork 26
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
fix: app outdir
property cannot be different from CLI or cdk8s.yaml file
#783
Conversation
…s.yaml file Signed-off-by: Vinayak Kukreja <[email protected]>
Signed-off-by: github-actions <[email protected]>
outdir
property cannot be different from CLI or cdk8s.yaml fileoutdir
property cannot be different from CLI or cdk8s.yaml file
src/app.ts
Outdated
* By default, the value you pass to the CDK8s CLI's `--output` flag | ||
* or in the `output` property of cdk8s.yaml file will be used, | ||
* and if you change it to a different directory the CLI will fail | ||
* to pick up the new output directory. | ||
* | ||
* This property is intended for internal and testing use. | ||
* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where not focusing on the default behavior, but rather on the conflicts that may arise.
* By default, the value you pass to the CDK8s CLI's `--output` flag | |
* or in the `output` property of cdk8s.yaml file will be used, | |
* and if you change it to a different directory the CLI will fail | |
* to pick up the new output directory. | |
* | |
* This property is intended for internal and testing use. | |
* | |
* If you synthesize your application using `cdk8s synth`, you must also pass this value to the CLI using the `-- | |
* output` option or the `output` property in the `cdk8s.yaml` configuration file. | |
* Otherwise, the CLI will not know about the output directory, and synthesis will fail. | |
* | |
* This property is intended for internal and testing use. | |
* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, ok, will make this update.
Signed-off-by: Vinayak Kukreja <[email protected]>
Signed-off-by: github-actions <[email protected]>
… 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]>
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
… file (#783) (#786) # Backport This will backport the following commits from `2.x` to `1.x`: - [fix: app `outdir` property cannot be different from CLI or cdk8s.yaml file (#783)](#783) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport)
Currently setting the
outdir
property for CDK8s app throws an error,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 theoutput
property in the cdk8s.yaml file.Signed-off-by: Vinayak Kukreja [email protected]
Resolves cdk8s-team/cdk8s-cli#210