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

helm: update helm API to be multi cluster aware #11030

Closed
wants to merge 1 commit into from

Conversation

zonggen
Copy link

@zonggen zonggen commented Feb 10, 2022

Adds a handler that picks the correct cluster according to requests,
before handing the request to the corresponding helm handler.

Closes: https://issues.redhat.com/browse/HELM-220
Signed-off-by: Allen Bai carpe.diem.allen@gmail.com

Adds a handler that picks the correct cluster according to requests,
     before handing the request to the corresponding helm handler.

Closes: https://issues.redhat.com/browse/HELM-220
Signed-off-by: Allen Bai <carpe.diem.allen@gmail.com>
@openshift-ci openshift-ci bot added the component/backend Related to backend label Feb 10, 2022
@zonggen
Copy link
Author

zonggen commented Feb 10, 2022

/test e2e-gcp-console

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 10, 2022

@zonggen: all tests passed!

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

Copy link
Contributor

@dperaza4dustbit dperaza4dustbit left a comment

Choose a reason for hiding this comment

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

lgtm

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 10, 2022

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: dperaza4dustbit, zonggen
To complete the pull request process, please assign florkbr after the PR has been reviewed.
You can assign the PR to them by writing /assign @florkbr in a comment when ready.

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@dperaza4dustbit
Copy link
Contributor

/assign @TheRealJon

Comment on lines +585 to +586
helmHandlers.ApiServerHost = s.K8sProxyConfigs[cluster].Endpoint.String()
helmHandlers.Transport = s.K8sClients[cluster].Transport
Copy link
Member

Choose a reason for hiding this comment

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

Is this thread safe? What if two clients make requests for different clusters at the same time?

Copy link
Member

Choose a reason for hiding this comment

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

No I don't think this is thread safe since we're changing the state of the server with each request. We probably need a solution that refactors the helm handler package to include mulitcluster config that sets up the handlers for each managed cluster at startup. Requests then can be directed to a pre-configured handler for the appropriate cluster without changing any state on the server.

@spadgett
Copy link
Member

We plan to change how multi-cluster works in 4.11 to use the ACM reverse proxy. We might hold off on the Helm changes until that's in place. Otherwise we'll need to rework this later.

@zonggen
Copy link
Author

zonggen commented Feb 11, 2022

/hold

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 11, 2022
@openshift-bot
Copy link
Contributor

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci openshift-ci bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label May 17, 2022
@openshift-bot
Copy link
Contributor

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten
/remove-lifecycle stale

@openshift-ci openshift-ci bot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Jun 16, 2022
@openshift-bot
Copy link
Contributor

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.

/close

@openshift-ci openshift-ci bot closed this Jul 16, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 16, 2022

@openshift-bot: Closed this PR.

In response to this:

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.

/close

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/backend Related to backend do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants