vitess-gh/go/textutil
Andrew Mason ab54272186
[vtadmin] gate/tablet/vtctld FQDNs (#7886)
* Add FQDN fields to tablets/gates/vtctlds

Signed-off-by: Andrew Mason <amason@slack-corp.com>

* Add discovery-consul options for gate/vtctld FQDN tmpls

staticfile disco doesn't need this, because it can just read this from
the config. **Note**: the main downside is that the json key is "FQDN"
rather than "fqdn" which 🤷 ?

Signed-off-by: Andrew Mason <amason@slack-corp.com>

* Add FQDN impls to gates/vtctld for consul-disco

Signed-off-by: Andrew Mason <amason@slack-corp.com>

* Propagate FQDN field through the api

Signed-off-by: Andrew Mason <amason@slack-corp.com>

* Move per-cluster gate fetching to .... the cluster struct

Signed-off-by: Andrew Mason <amason@slack-corp.com>

* nit: cleanup double imports

Signed-off-by: Andrew Mason <amason@slack-corp.com>

* Extract repeated template=>buffer execution to a textutil function

Signed-off-by: Andrew Mason <amason@slack-corp.com>

* Add fqdn template support to clusters and `parseTablet`

Signed-off-by: Andrew Mason <amason@slack-corp.com>

* fix typo (ugh)

Signed-off-by: Andrew Mason <amason@slack-corp.com>

* Ensure `New` parses the final tablet fqdn tmpl off the config

Signed-off-by: Andrew Mason <amason@slack-corp.com>

* Fix typos, update comments

Signed-off-by: Andrew Mason <amason@slack-corp.com>

* Cleanup TODOs

Signed-off-by: Andrew Mason <amason@slack-corp.com>
2021-04-29 11:30:31 -04:00
..
hash.go text functionality from managed-drop-table 2020-10-05 08:34:52 +03:00
strings.go text functionality from managed-drop-table 2020-10-05 08:34:52 +03:00
strings_test.go text functionality from managed-drop-table 2020-10-05 08:34:52 +03:00
template.go [vtadmin] gate/tablet/vtctld FQDNs (#7886) 2021-04-29 11:30:31 -04:00