-
Notifications
You must be signed in to change notification settings - Fork 243
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 binary definition to build source #595
Conversation
0ae8e1e
to
000ea83
Compare
29d737e
to
7116042
Compare
pkg/occlient/occlient.go
Outdated
@@ -537,6 +537,10 @@ func (c *Client) NewAppS2I(name string, builderImage string, gitUrl string, labe | |||
} | |||
|
|||
// if gitUrl set change buildSource to git and use given repo | |||
if gitUrl == "" { | |||
return errors.Wrap(err, "unable to create buildSource with empty gitUrl") |
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.
What err
are you wrapping here?
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.
ouch, nice catch
updated the PR
pkg/occlient/occlient.go
Outdated
@@ -507,7 +507,7 @@ func getAppRootVolumeName(dcName string) string { | |||
} | |||
|
|||
// NewAppS2I create new application using S2I | |||
// gitUrl is the url of the git repo | |||
// if gitUrl is "" then it throws error otherwise uses gitUrl as buildSource |
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.
You may as well move this comment, as you comment on this on line 540.
pkg/occlient/occlient.go
Outdated
@@ -537,6 +537,10 @@ func (c *Client) NewAppS2I(name string, builderImage string, gitUrl string, labe | |||
} | |||
|
|||
// if gitUrl set change buildSource to git and use given repo |
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 change this comment in this PR.
if gitUrl is not set, error out.
01992ba
to
6a80a57
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..
But I feel you might need to rebase
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 but rebase needed :)
…empty giturl modified buildSource definition part to throw error in case of empty gitUrl in fun NewAppS2I fix issue redhat-developer#594
change wantErr to false in case of empty gitURL on TestNewAppS2I
rebased |
it looks like @cdrage comments were addressed, and there are 2 LGTMs -> merging |
add binary definition to build source
fix issue #594