-
Notifications
You must be signed in to change notification settings - Fork 187
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
gitrepo: set conditions in gitCheckout #741
Conversation
Looks like we have more test flakes https://github.com/fluxcd/source-controller/runs/6623628981?check_suite_focus=true#step:5:446. |
@@ -744,9 +745,10 @@ func (r *GitRepositoryReconciler) gitCheckout(ctx context.Context, | |||
authOpts.TransportOptionsURL = fmt.Sprintf("ssh://%s/%s/%d", obj.Name, obj.UID, obj.Generation) | |||
} else { | |||
e := &serror.Stalling{ | |||
Err: fmt.Errorf("git repository URL has invalid transport type: '%s'", obj.Spec.URL), | |||
Err: fmt.Errorf("git repository URL '%s' has invalid transport type, expected to be one of http, https, ssh", obj.Spec.URL), |
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.
Maybe we should say "supported protocols", instead of expected?
Thinking in terms of what the user would see.
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.
Currently the CLI does something similar:
✗ git URL scheme 'stl' not supported, can be: ssh, http and https
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!
The messaging recommendation can be changed if it makes it any better.
Signed-off-by: Sanskar Jaiswal <[email protected]>
d70962f
to
613ccc0
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
Signed-off-by: Sanskar Jaiswal [email protected]
Refer: #727 (comment)