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:
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: