From 6ebaee2bb4beef78104ee4ff173ce76b4af94ec7 Mon Sep 17 00:00:00 2001 From: barnett <576501057@qq.com> Date: Mon, 4 Mar 2019 15:53:01 +0800 Subject: [PATCH] [FIX] fix code failure --- worker/appm/conversion/gateway.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worker/appm/conversion/gateway.go b/worker/appm/conversion/gateway.go index 7a7e40b1b..12c7d8d48 100644 --- a/worker/appm/conversion/gateway.go +++ b/worker/appm/conversion/gateway.go @@ -560,6 +560,6 @@ func (a *AppServiceBuild) createStatefulService(ports []*model.TenantServicesPor PublishNotReadyAddresses: true, } service.Spec = spec - service.Annotations["service.alpha.kubernetes.io/tolerate-unready-endpoints"] = "true" + service.Annotations = map[string]string{"service.alpha.kubernetes.io/tolerate-unready-endpoints": "true"} return &service }