[FIX] fix code failure

This commit is contained in:
barnett 2019-03-04 15:53:01 +08:00
parent 060d6d00d6
commit 6ebaee2bb4

View File

@ -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
}