move2kube icon indicating copy to clipboard operation
move2kube copied to clipboard

Integration with application git repo to get code and commit changes

Open rmarting opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe.

Many applications are managed in Git repositories with all the source code needed, documentation and other artifacts needed to build, package and deploy the application. These git repositories are the source of truth of the application.

Now move2kube requires to have a local instance of that code or a zip (if you are using the UI) to analyze, traslate and transform the application. It could be a great feature that move2kube uses directly the git repository of the application to:

  • checkout the code
  • execute the actions locally, including the transformations
  • Optionally push the changes into the original source code (in the same branch, in other, in a specific folder, ...)

After you use the application, not only have a transformed version to be deployed in your kubernetes cluster, also you have the new code updated to be used in the next iterations of the application. Otherwise you have to commit the resources manually. As developer I am getting the new resources automatically and integrated in my git repo to be used for the next steps of the migration process.

Describe the solution you'd like

Integrate automatically the new changes of the application into the original git repository to advance in the migration project. Avoid to have everything locally and avoid loss something.

Describe alternatives you've considered

Additional context

rmarting avatar Oct 15 '21 10:10 rmarting

Thanks for creating the issue. This is an feature that we have seen often. We have tried to stay away from it till now since git might use many different types of authentication.

But thinking about it again, using the current local git authentication might help get around the authentication issue.

The pushing of new artifacts to a new branch is also something that can be done.

Once the team has some cycles, we will look into it.

ashokponkumar avatar Oct 15 '21 15:10 ashokponkumar

Hi @rmarting @ashokponkumar , I have applied for the CNCF - Konveyor: Move2Kube Allow customizations to be added as remote git repo path as an LFX Mentee.

Looking forward to hearing soon from the team and working with you all :-)

Rahulkhinchi03 avatar Feb 14 '23 06:02 Rahulkhinchi03

Heyy @ashokponkumar and @rmarting ,I have applied for this project CNCF Konveyor: Move2Kube Allow customizations to be added as remote git repo path as a mentee.I am really excited to work on this project and looking forward to hearing from you soon!

avinabneogy23 avatar Feb 15 '23 07:02 avinabneogy23

Hi @rmarting and @ashokponkumar, I just applied for the CNCF Konveyor: Move2Kube Allow customizations to be added as remote git repo path as a mentee. Looking forward to making meaningful contributions to this project.

c0d33ngr avatar Feb 19 '23 18:02 c0d33ngr

Maybe relevant https://docs.github.com/en/rest/repos/contents?apiVersion=2022-11-28#get-repository-content

HarikrishnanBalagopal avatar Feb 20 '23 11:02 HarikrishnanBalagopal

Sorry @Rahulkhinchi03, @avinabneogy23, and @c0d33ngr but I am not sure why you are tagging me about ... as I don't know anything about the topic you are speaking on.

rmarting avatar Feb 20 '23 11:02 rmarting

We have this feature implemented by @venkatbandarupalli, can we close this? @ashokponkumar

https://github.com/konveyor/move2kube/pulls?q=is%3Apr+author%3Avenkatbandarupalli+remote+

kmehant avatar May 25 '23 05:05 kmehant

We have this feature implemented by @venkatbandarupalli, can we close this? @ashokponkumar

https://github.com/konveyor/move2kube/pulls?q=is%3Apr+author%3Avenkatbandarupalli+remote+

sure. Thanks @kmehant @venkatbandarupalli .

ashokponkumar avatar May 25 '23 05:05 ashokponkumar