You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
e, err:=util.WithKubernetesContextTimeoutP2A2(ctx, h.kubeClient.CoreV1().Endpoints(endpoints.GetNamespace(extension)).Get, endpoints.GetName(), meta.GetOptions{})
75
72
iferr!=nil {
76
-
ifapi.IsNotFound(err) {
73
+
ifkerrors.IsNotFound(err) {
77
74
return&operator.Condition{
78
75
Status: false,
79
76
Reason: "Destination Not Found",
80
77
Message: fmt.Sprintf("Endpoints `%s/%s` Not found", endpoints.GetNamespace(extension), endpoints.GetName()),
81
78
}, false, nil
82
79
}
83
80
84
-
return&operator.Condition{
85
-
Status: false,
86
-
Reason: "Destination Not Found",
87
-
Message: fmt.Sprintf("Unknown error for endpoints `%s/%s`: %s", endpoints.GetNamespace(extension), endpoints.GetName(), err.Error()),
88
-
}, false, nil
81
+
returnnil, false, operator.Temporary(err, "Unable to get endpoints")
0 commit comments