-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Use project name instead of project number in createIgmRef() #7004
Conversation
Hi @damikag. 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. |
9bf2e24
to
af02541
Compare
@@ -425,6 +425,7 @@ func createIgmRef(gceInstance *gce.Instance, loggingQuota *klogx.Quota) GceRef { | |||
klogx.V(5).UpTo(loggingQuota).Infof("Unable to parse IGM for %v because of %v", gceInstance.SelfLink, err) | |||
return GceRef{} | |||
} | |||
igmRef.Project = project |
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.
Please leave a comment on why we need to overwrite the project. I'm wondering also if it would be better for ParseIgmUrl to only fill in zone and igm name and not the project. WDYT?
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.
Added a comment to describe why we overwrite the project.
What do you think of keeping the PraseIgmUrl as it is since it is a generic function that somebody can use elsewhere?
af02541
to
0c81155
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
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bskiba, damikag, x13n 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 |
0c81155
to
f4f6914
Compare
/lgtm Looks like a rebase, reapplying lgtm. |
f4f6914
to
aff0072
Compare
/lgtm |
What type of PR is this?
/kind bug
What this PR does / why we need it:
This PR updates project field of
GceRef
returned bycreateIgmRef()
inautoscaling_gce_client.go
to use project name instead of project number.created-by
field in instances returned byInstances.List()
have project id but CA use project names in MIG refs.Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?
NONE
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: