Commit 46c0c03
Matthew Fisher
ref(router): split domains to its own custom directive
In order to support multiple certs on multiple custom domains bound to
the same application, we need to split out each custom domain to its own
`server {}` directive. In master, the domain etcd keys are set like so:
SET /deis/domains/go "www.bacongobbler.com foo.bacongobbler.com"
In confd v0.5.0, there is no way to split strings by whitespace so
there's no way to iterate through each domain bound to an application.
In this commit, there's a controller data migration script which will
migrate existing etcd keys for custom domain endpoints over to the new
syntax:
SET /deis/domains/www.bacongobbler.com "go"
SET /deis/domains/foo.bacongobbler.com "go"
Confd v0.8.0 has support for splitting strings, but with this approach
we can start providing support for migrations such as the one proposed
in #3399.1 parent 6bf23b1 commit 46c0c03
3 files changed
Lines changed: 41 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
977 | 977 | | |
978 | 978 | | |
979 | 979 | | |
980 | | - | |
981 | | - | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
982 | 985 | | |
983 | 986 | | |
984 | 987 | | |
985 | | - | |
986 | | - | |
987 | | - | |
988 | | - | |
989 | | - | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
990 | 991 | | |
991 | 992 | | |
992 | 993 | | |
993 | | - | |
994 | | - | |
995 | | - | |
996 | | - | |
997 | | - | |
998 | | - | |
999 | | - | |
1000 | | - | |
1001 | | - | |
1002 | | - | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
1003 | 1000 | | |
1004 | 1001 | | |
1005 | 1002 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
59 | 67 | | |
60 | 68 | | |
61 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
0 commit comments