firecow / gitlab-ci-local

Tired of pushing to test your .gitlab-ci.yml?
MIT License
2.36k stars 134 forks source link

Support kubernetes executor #1064

Open tan-wei-xin-alez opened 10 months ago

tan-wei-xin-alez commented 10 months ago

Is your feature request related to a problem? Please describe. As mentioned in this issue and this issue, it would be nice to have gitlab's kubernetes executor supported along with its docker executor since both do benefit from not having to push to test job changes

Describe the solution you'd like I'm not too familiar with the internals of gitlab-ci-local so I am assuming it is non-trivial to support another executor, but the end result would probably be a CLI option or parameter which users can utilize to switch between executors (since I don't think there's a .gitlab-ci.yml keyword that allows specifying whether to use the kubernetes or docker executor unlike with the shell and image keywords unless I'm mistaken?)

Describe alternatives you've considered Currently, the only alternatives I've considered are changing the original job so that it works with the docker executor (not ideal since it may mask some other bug) or simply pushing the changes to test (which usually takes more time than testing with gitlab-ci-local)

Additional context Even if this takes a long time to implement, I think it's worth keeping the issue open since others may bump into similar issues and not realize it is a problem with the kubernetes executor not being supported