mirror of
https://github.com/FlipsideCrypto/convox.git
synced 2026-02-06 10:56:56 +00:00
local: add missing tag to registry so it can be idled (#77)
This commit is contained in:
parent
c731759164
commit
dd859cb23c
@ -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)
|
||||
|
||||
|
||||
@ -10,6 +10,7 @@ resource "kubernetes_deployment" "registry" {
|
||||
|
||||
labels = {
|
||||
service = "registry"
|
||||
system = "convox"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user