-
Notifications
You must be signed in to change notification settings - Fork 215
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
update gke-networking-api in order to use nodetopology CRD #782
base: master
Are you sure you want to change the base?
update gke-networking-api in order to use nodetopology CRD #782
Conversation
This issue is currently awaiting triage. If the repository mantainers determine this is a relevant issue, they will accept it by applying the The 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-sigs/prow repository. |
Hi @YifeiZhuang. 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-sigs/prow repository. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: YifeiZhuang The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/ok-to-test |
/assign @basantsa1989 |
@YifeiZhuang: GitHub didn't allow me to assign the following users: basantsa1989. Note that only kubernetes members with read permissions, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. In response to this:
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-sigs/prow repository. |
/lgtm |
@basantsa1989: changing LGTM is restricted to collaborators In response to this:
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-sigs/prow repository. |
/assign @bowei |
@bowei could you approve the PR? |
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.
minor comments
// InterfaceStatusAnnotationKey is the key of the annotation which shows information of each interface of a pod. | ||
InterfaceStatusAnnotationKey = "networking.gke.io/interface-status" | ||
// NetworkGatewayIPAnnotationKey is the network annotation key used to hold egress NAT gateway IP. | ||
NetworkGatewayIPAnnotationKey = "networking.gke.io/gateway-ip" |
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.
suggest networking.gke.io/nat-gateway-ip
unless this is meant to be more generic.
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.
This change was reverted in the original vendor gke-networking-aip repo
So we will update the dependency next time to revert it. (We can not bring in the latest dependency because of bug b/380100355) Hope this is not a blocker, it seems not being used anywhere in CCM yet. @liuyuan10 please confirm it is safe and the path forward in the next CCM release.
// ParseInterfaceStatusAnnotation parses the given annotation to InterfaceStatusAnnotation | ||
func ParseInterfaceStatusAnnotation(annotation string) (InterfaceStatusAnnotation, error) { | ||
ret := &InterfaceStatusAnnotation{} | ||
err := json.Unmarshal([]byte(annotation), ret) |
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.
suggest, to avoid partially converted results...
if err := json.Unmarshal(); err != nil { return InterfaceStatusAnnotation{}, err }
return ret, 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.
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.
yes, this has to be fixed in https://github.com/GoogleCloudPlatform/gke-networking-api
@bowei could you review and approve the PR? |
this is just a dependency update, let's have owners of the dependency update in https://github.com/GoogleCloudPlatform/gke-networking-api, and merge this to unblock development /lgtm |
Thanks @mmamczur could you merge the PR. I do not have the write access. |
To use nodetopology CRD, upgrade
gke-networking-api
version.go get github.com/GoogleCloudPlatform/gke-networking-api@bc15495fd43f01b9d0cc9e244f71d024d81450d4 && ./tools/update_vendor.sh
cc. @basantsa1989 @sawsa307