-
Notifications
You must be signed in to change notification settings - Fork 520
Add the ability to specify a namespace for tye deploy. #400
Conversation
There are some tests you need to update that check the k8s content with the new namespace mapping. |
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 monkey-patched the path from the CLI down into the generator. Let me know if there is a preferred path to pass this through.
My best idea for this having looked through the code.
- Add
Namespace
as astring?
property toApplicationBuilder
- since it applies to all of the services rather than a single one - Set the property in https://github.com/dotnet/tye/pull/400/files#diff-c1c4c07b0626c051d8c7848f451427c8L81
- Treat null as "use current context" rather than hardcoded to
default
- Add the same command-line argument to
tye generate
following the same pattern
9fd9e73
to
2cf4dd8
Compare
Ok, I think I addressed all of the changes, this is much cleaner, thanks! Please take another look. |
fwiw, the format is flagging on line-endings, but dotnet format on my linux machine shows no problems and makes no changes. I assume that this is a Linux LF vs Windows CRLF thing. |
I would suggest that this project converge on LF instead of CRLF. |
Thanks for the feedback, I'm going to follow up on this and some of the other formatting related things. I'm not having the same problem on mac, but it might be due to how I've configured something. |
Thanks! |
cc @davidfowl
I monkey-patched the path from the CLI down into the generator. Let me know if there is a preferred path to pass this through.