local: add missing tag to registry so it can be idled (#77)

This commit is contained in:
David Dollar 2020-01-13 19:01:34 -05:00 committed by GitHub
parent c731759164
commit dd859cb23c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -197,6 +197,8 @@ func (r *Router) Route(host string) (string, error) {
return "", fmt.Errorf("no backends available")
}
// if the target will idle make sure it has the system=convox label
// so the controller can watch it
func (r *Router) TargetAdd(host, target string, idles bool) error {
fmt.Printf("ns=router at=target.add host=%q target=%q\n", host, target)

View File

@ -10,6 +10,7 @@ resource "kubernetes_deployment" "registry" {
labels = {
service = "registry"
system = "convox"
}
}