Commit Graph

37 Commits

Author SHA1 Message Date
raul 3079c5dd8b Do not print error when there is an update status conflict 2024-01-19 15:44:32 +01:00
raul 0c19b9f506 Recreate job always if generation has changed
Co-authored-by: Corentin Néau <tan.neau@suse.com>
Co-authored-by: Xavi Garcia <xavi.garcia@suse.com>
2024-01-19 15:44:32 +01:00
Mario Manno e057c28e31 Switch to go.uber.org/mock
The golang/mock is archived.
2023-12-21 16:08:04 +01:00
Raul Cabello Martin a6325a385c
Add proxy env vars to job containers (#382) 2023-12-19 15:23:39 +01:00
Raul Cabello Martin 03f3ce12d5
Migrate to controller runtime (#368)
Co-authored-by: Alejandro Ruiz <4057165+aruiz14@users.noreply.github.com>
Co-authored-by: Corentin Néau <tan.neau@suse.com>
2023-12-12 12:12:32 +01:00
Alejandro Ruiz 46c3df39bd Bump wrangler to v2.1.1 2023-10-20 16:20:18 +02:00
Alejandro Ruiz 1fd4bd5a6f cleanup: remove unnecessary mocks 2023-10-20 16:18:46 +02:00
Alejandro Ruiz 0f7f4f8844 test: replace mocks with new generic/fake package 2023-10-20 16:18:46 +02:00
Raul Cabello Martin 1d4a2bbab9
Add SecurityContext to deployment and init container (#331)
* Add SecurityContext to deployment and init container
2023-10-16 14:58:36 +02:00
Raul Cabello Martin 873e7ba2a8
Remove tekton for cloning git repos (#302)
* Remove tekton

Tekton was used to clone a git repository in an init container. This
is replaced  by an internal tool called gitcloner that uses go-git to clone the
repositories.

gitcloner is a cli tool that clones a specific branch of a git
repository.

GitJob uses gitcloner in an init-container to clone a git repository
into a emptyDir volume. Then the job container uses this emptyDir volume
that contains the repo cloned
2023-09-20 11:31:14 +02:00
Mario Manno 75c0c1db16
Fix gitrepo retry failed jobs (#286)
Add propagationPolicy to delete job

Deleting jobs via the API does not remove their pods. This PR adds the
propagationPolicy to both delete request, the ForceUpdateGeneration one,
which previously didn't work and the new one, which is used to retrigger
failed jobs.

* Revert "Merge pull request #272 from rancher/add-default-ttl"
* Remove unused context value
* Add debug logging to job controller
* Remove the job cache from apply, so jobs can be recreated
2023-08-10 08:44:19 +02:00
Mario Manno ea7c7c9c73 Add default ttl for jobs of 24h 2023-07-21 14:45:31 +02:00
Mario Manno bae51dbf19 Delete job so retry happens, if forcing or job failed 2023-07-19 13:04:42 +02:00
Mario Manno e156ce7a32 Remove pprof and fix linter warnings
Add more linters, but still not the full set from fleet/fleet.
2023-04-21 10:57:10 +02:00
Tim Hardeck bf72b51624
Retry git repo updates after errors
to allow git repos to be usable after short network outages or similar
issues.

Without this change it was necessary to manually force an update to
make the gitrepo reusable again.
2022-11-28 11:44:43 +01:00
Mario Manno d21a9dc19b Add double-dash to job's args
Otherwise tekton-entrypoint will parse some of the options
2022-08-16 18:27:55 +02:00
Daishan ef5fe7ff24 Add webhook support 2021-04-08 13:50:37 -07:00
bgoareguer 171cf63340
Add support for HTTP_PROXY variables when fetching public Helm charts (#25)
* Add support for HTTP_PROXY variables when fetching public Helm charts

Co-authored-by: Bertrand Goareguer <bertrand.goareguer@orange.com>
2021-01-21 09:20:11 -07:00
Daishan dfbcffa7af Add user 1000 2021-01-08 14:08:57 -07:00
Daishan 69cedcf781 Fix custom ca cert and insecureSkipTls
This PR fixed several things:
1. Support cabundle to be specified for git repo
2. Fix insecureSkipTLS is wrong
3. Fix bug where git repo has extra port
2020-12-10 21:37:57 -07:00
Timofey Ilinykh 5b1ff60fdb
Wire http proxy settings to clone container 2020-11-03 01:32:39 +01:00
Daishan 731c348657 Update wrangler, fix http and ssh auth 2020-10-19 17:47:24 -07:00
Daishan 1b9cc0b1ce Use forceUpdateGeneration for force-update job
Use field(int64) forceUpdateGeneration to replace forceUpdate timestamp
to control when it should re-run the job.
2020-10-01 11:27:36 -07:00
Daishan f81893a4f0 Remove no delete 2020-09-30 23:49:22 -07:00
Daishan df1abf1be1 Mark gitjob to active if job completes 2020-09-30 16:15:33 -07:00
Daishan 9223171f73 Set termination message and stall condition 2020-09-28 10:27:20 -07:00
Daishan 44b2fbc506 Make tekton images configrable 2020-09-17 12:38:14 -07:00
Daishan 4d862e306b Add custom column, forceUpdate 2020-08-28 09:04:48 -07:00
Daishan d705dae227 More kstatus, use new wrangler git library 2020-08-27 12:39:58 -07:00
Daishan 3feee6d7cc Add kstatus, sync job to gitjob, webhook auto-creation 2020-08-20 13:01:45 -07:00
Daishan 080f323787 Add helm chart support 2020-08-15 12:27:54 -07:00
Darren Shepherd 0fd77b2d88 Rename GitjobSpec to GitJobSpec 2020-08-14 21:00:52 -07:00
Daishan 636b91c9b2 Update vendor 2020-08-12 11:46:22 -07:00
Daishan 32b9596355 Rename crd and groups, add CA and skipssl 2020-08-12 11:42:29 -07:00
Daishan 87b4dcaf5a Multiple fixes 2020-06-29 15:34:27 -07:00
Daishan 1b7f495892 Webhook support 2020-06-26 16:48:27 -07:00
Daishan 7f4eca3cb5 Initial commit 2020-06-25 10:54:34 -07:00