Commit 9caaedd
committed
Support
Allow setting `gateway: true` in service
configurations, which will enforce that the
service runs on the default gateway or is rejected
if one isn't available.
**Compatibility**: pre-0.20.1 clients will not be
able to list (`dstack ps`), get, or update
(`dstack apply`) services that were created by
0.20.1+ clients with the `gateway: true` property.gateway: true in service configurations1 parent aec51dc commit 9caaedd
File tree
3 files changed
+23
-14
lines changed- src
- dstack/_internal
- core/models
- server/services/services
- tests/_internal/server/routers
3 files changed
+23
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
725 | 725 | | |
726 | 726 | | |
727 | 727 | | |
728 | | - | |
| 728 | + | |
| 729 | + | |
729 | 730 | | |
730 | 731 | | |
731 | 732 | | |
| |||
795 | 796 | | |
796 | 797 | | |
797 | 798 | | |
798 | | - | |
799 | | - | |
800 | | - | |
801 | | - | |
802 | | - | |
803 | | - | |
804 | | - | |
805 | | - | |
806 | | - | |
807 | | - | |
808 | 799 | | |
809 | 800 | | |
810 | 801 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
58 | 62 | | |
59 | 63 | | |
60 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2013 | 2013 | | |
2014 | 2014 | | |
2015 | 2015 | | |
| 2016 | + | |
| 2017 | + | |
| 2018 | + | |
| 2019 | + | |
| 2020 | + | |
| 2021 | + | |
| 2022 | + | |
2016 | 2023 | | |
2017 | 2024 | | |
2018 | 2025 | | |
| |||
2108 | 2115 | | |
2109 | 2116 | | |
2110 | 2117 | | |
2111 | | - | |
| 2118 | + | |
2112 | 2119 | | |
2113 | 2120 | | |
2114 | 2121 | | |
| |||
2123 | 2130 | | |
2124 | 2131 | | |
2125 | 2132 | | |
2126 | | - | |
2127 | | - | |
| 2133 | + | |
| 2134 | + | |
| 2135 | + | |
| 2136 | + | |
| 2137 | + | |
| 2138 | + | |
| 2139 | + | |
| 2140 | + | |
| 2141 | + | |
0 commit comments