mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-09 00:34:10 -04:00
Actually fix services bug
This commit is contained in:
parent
446bcd468e
commit
2bac0fb2c6
1 changed files with 1 additions and 1 deletions
|
|
@ -78,7 +78,7 @@ func (e *EndpointController) SyncServiceEndpoints() error {
|
|||
currentEndpoints, err := e.client.GetEndpoints(nsCtx, service.ID)
|
||||
if err != nil {
|
||||
// TODO this is brittle as all get out, refactor the client libraries to return a structured error.
|
||||
if strings.Contains(err.Error(), "404") {
|
||||
if strings.Contains(err.Error(), "not found") {
|
||||
currentEndpoints = &api.Endpoints{
|
||||
JSONBase: api.JSONBase{
|
||||
ID: service.ID,
|
||||
|
|
|
|||
Loading…
Reference in a new issue