Skip to content
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 a flag a logic to override k8scp compute api endpoint #2526

Merged
merged 1 commit into from
Apr 23, 2024

Conversation

panslava
Copy link
Contributor

@panslava panslava commented Apr 11, 2024

  • Should not change any behaviour when flag is not set

/assign @swetharepakula @spencerhance

This is mostly rollforward of #2060 but with changing to override endpoint conditionally, and using flag as a value

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Apr 11, 2024
@k8s-ci-robot k8s-ci-robot requested review from aojea and sawsa307 April 11, 2024 21:49
@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 11, 2024
@panslava panslava force-pushed the override-compute-api branch from 0f2216c to 54ce503 Compare April 11, 2024 21:54
Copy link
Member

@swetharepakula swetharepakula left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 11, 2024
@spencerhance
Copy link
Contributor

/lgtm
/approve

cmd/glbc/main.go Outdated
// The cloud object is configured by the gce.conf file and parsed in app.NewGCEClient().
// basePath will be of the form <URL>/v1
domain := utils.GetDomainFromGABasePath(flags.F.OverrideComputeAPIEndpoint)
klog.Infof("Overriding k8s-cloud-provider API Domain to %q", domain)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use context logger, rootLogger in this case

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you, fixed!

- Should not change any behaviour when flag is not set
@panslava panslava force-pushed the override-compute-api branch from 54ce503 to 8056a07 Compare April 15, 2024 19:10
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 15, 2024
@alexkats
Copy link
Member

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 15, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alexkats, panslava, spencerhance, 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:
  • OWNERS [alexkats,panslava,spencerhance,swetharepakula]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit 614c6ca into kubernetes:master Apr 23, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants