-
Notifications
You must be signed in to change notification settings - Fork 787
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
fix: push modifications to boot repo directly to master #5756
Conversation
3afe96a
to
43cb736
Compare
38f6373
to
024639f
Compare
return errors.Wrapf(err, "resolving %s to absolute path", o.Dir) | ||
} | ||
|
||
environmentRepo, err := o.createDevEnvironmentRemote(envGitInfo, dir, fromGitURL, fromBaseRef, !public, requirements, provider, gitter) |
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.
@pmuir one thing I don't understand is why we create the remote and push the original repo data to it, but ony in the jx boot
case add a commit with the modifications?
I also find it odd that we push something to the remote, then fork and pull, add a commit and then push again. Could we not do everything locally on then do a single push?
Apart from this, afaict the refactored code does not what the original code did, except that the changes to config are pushed to master instead of creating a pull request.
Still cannot shake off the feeling that we only should push once.
48923a7
to
9a9611a
Compare
- when using `jx boot` with gitops enabled there is no PR generated anymore for the initial changes to the boot config. - moving check for intepret mode into StepVerifyPreInstallOptions#IsJXBoot - introduce StepVerifyEnvironmentsOptions#readEnvironment and StepVerifyEnvironmentsOptions#isJXBoot fixes jenkins-x#5672
315f6dc
to
6715b40
Compare
6715b40
to
379f05c
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: abayer 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:
Approvers can indicate their approval by writing |
fixes #5672
NOTE: You won't be able to re-run
jx boot
after the first bootstrap from the initial boot config directory. You will get errors of the form:I'll create a new issue for that. The problem even exists already exists in master as it stands now, so it is not new.
Here is the follow up issue - #5772