-
Notifications
You must be signed in to change notification settings - Fork 303
New issue
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
Add CheckServiceExistence Rule for gke-ingress-checker #2025
Add CheckServiceExistence Rule for gke-ingress-checker #2025
Conversation
Hi @songrx1997. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/assign @swetharepakula |
7ef0fef
to
a750aae
Compare
/ok-to-test |
I thought we were going to rename the cmd name? The directory is still named gke-diagnoser. Let's not forget to fix this. |
|
||
func CheckServiceExistence(ns string, svcName string, client clientset.Interface) (*corev1.Service, string, string) { | ||
svc, err := client.CoreV1().Services(ns).Get(context.TODO(), svcName, metav1.GetOptions{}) | ||
if err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to check that the error is actually a not found error.
If there was a different kind of error, you need to surface that to the user and also print a different message.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated, thanks!
/hold |
a750aae
to
b7a4785
Compare
Will rename the directory after current PRs merged |
b7a4785
to
92c29d8
Compare
ff09911
to
ca3ebc4
Compare
ca3ebc4
to
8e515fd
Compare
8e515fd
to
efcf0fb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
/hold cancel
The rename will be handled in a separate PR
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: songrx1997, swetharepakula The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Rename util package in gke-diagnoser to report
Add CheckServiceExistence rule for gke-ingress-checker
Add unit test for CheckServiceExistence rule