-
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
jx boot should not mutate files on disk if the user doesn't change anything explicitly #6056
Comments
cc @garethjevans since I know you're behind some of the git operations going on in As mentioned in a slack thread, I have some ideas about the problems specifically with |
Dependent on @abayer discovery to identify and propose solutions to address related issues. |
Issues go stale after 90d of inactivity. |
Issues go stale after 90d of inactivity. |
Stale issues rot after 30d of inactivity. |
Rotten issues close after 30d of inactivity. |
@jenkins-x-bot: Closing this issue. In response to this:
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 jenkins-x/lighthouse repository. |
Summary
You can summarise this as "
jx boot
should be idempotent" - run it again and again with the same config and there should be no change to the cluster or to the git repo.Currently when you run
jx boot
with an existingparameters.yaml
andjx-requirements.yaml
there can/will be still be agit diff
after runningjx boot
(which we then push back up). This is not the right behavior for boot the config is supposed to be the requested state andjx boot
is supposed to attempt to implement it (think of the Kubernetes model for an analogy).Note this is different to when the user explicitly makes a change either by editing files or by answering a question. Then it is legitimate to change the git state.
Steps to reproduce the behavior
Run
jx boot
(or it's pipeline using tekton in non interpreted mode) in an pipeline and see that it does agit push
Expected behavior
If I add a step in the pipeline at the end that run's this target in a
Makefile
and see the pipeline exit successfullyVerifies that generated code is in sync with implementation
The text was updated successfully, but these errors were encountered: