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

read target cluster from Space #441

Conversation

MatousJobanek
Copy link
Contributor

@MatousJobanek MatousJobanek commented Jun 26, 2024

KUBESAW-107

KUBESAW-108

Take the target cluster from Space (either the home one or the first Space the user has access to)

changes in go.sum are result of running go mod tidy

Copy link

codecov bot commented Jun 26, 2024

Codecov Report

Attention: Patch coverage is 93.33333% with 2 lines in your changes missing coverage. Please review.

Project coverage is 78.57%. Comparing base (0a3128a) to head (f31895a).

Files Patch % Lines
pkg/signup/service/signup_service.go 93.33% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #441      +/-   ##
==========================================
+ Coverage   78.54%   78.57%   +0.03%     
==========================================
  Files          38       38              
  Lines        2601     2600       -1     
==========================================
  Hits         2043     2043              
  Misses        462      462              
+ Partials       96       95       -1     
Flag Coverage Δ
unittests 78.57% <93.33%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

continue
}
space, err := provider.GetSpace(spaceName)
func GetDefaultUserTarget(provider ResourceProvider, spaceName, murName string) (string, string) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add a comment to the function stating that it returns <target-member-cluster>, <default-namespace>?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@mfrancisc mfrancisc left a comment

Choose a reason for hiding this comment

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

Looks great 👍

I have only some minor comments!

pkg/signup/service/signup_service.go Outdated Show resolved Hide resolved
pkg/signup/service/signup_service_test.go Show resolved Hide resolved
Copy link

openshift-ci bot commented Jun 28, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alexeykazakov, MatousJobanek, mfrancisc

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 [MatousJobanek,alexeykazakov,mfrancisc]

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

@MatousJobanek MatousJobanek merged commit 3002baf into codeready-toolchain:master Jun 28, 2024
9 of 10 checks passed
xcoulon pushed a commit to xcoulon/registration-service that referenced this pull request Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants