We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
endpoints, err := c.kubeClient.CoreV1().Endpoints(service.ObjectMeta.Namespace).Get(context.Background(), service.Name, metav1.GetOptions{}) if err != nil { log.Errorf("Error getting endpoints for service %s: %v\n", service.Name, err) }
if the service.ObjectMeta.Namespace is empty string i.e. "" it will return endpoint object instead of error returned object:
The text was updated successfully, but these errors were encountered:
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
lifecycle/stale
lifecycle/rotten
You can:
/remove-lifecycle stale
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
Sorry, something went wrong.
No branches or pull requests
endpoints, err := c.kubeClient.CoreV1().Endpoints(service.ObjectMeta.Namespace).Get(context.Background(), service.Name, metav1.GetOptions{})
if err != nil {
log.Errorf("Error getting endpoints for service %s: %v\n", service.Name, err)
}
if the service.ObjectMeta.Namespace is empty string i.e. "" it will return endpoint object instead of error returned object:
The text was updated successfully, but these errors were encountered: