Brandon Kimbrough
2273b198a1
Add ability to set the MTU size of the docker in docker container ( #385 )
...
* adding abilitiy to set docker in docker MTU size
* safeguards to only set MTU env var if it is set
2021-03-12 08:44:49 +09:00
Hiroshi Muraoka
11e58fcc41
Manage runner with label ( #355 )
...
* Update RunnerDeploymentSpec to have Selector field
Signed-off-by: Hiroshi Muraoka <h.muraoka714@gmail.com >
* Update RunnerReplicaSetSpec to have Selector field
Signed-off-by: Hiroshi Muraoka <h.muraoka714@gmail.com >
* Add CloneSelectorAndAddLabel to add Selector field
Signed-off-by: Hiroshi Muraoka <h.muraoka714@gmail.com >
* Fix tests
Signed-off-by: Hiroshi Muraoka <h.muraoka714@gmail.com >
* Use label to find RunnerReplicaSet/Runner
Signed-off-by: binoue <banji-inoue@cybozu.co.jp >
* Update controller-gen versions in CRD
Signed-off-by: Hiroshi Muraoka <h.muraoka714@gmail.com >
* Update autoscaler to list Pods with labels
Signed-off-by: Hiroshi Muraoka <h.muraoka714@gmail.com >
* Add debug log
Signed-off-by: Hiroshi Muraoka <h.muraoka714@gmail.com >
* Modify RunnerDeployment tests
Signed-off-by: binoue <banji-inoue@cybozu.co.jp >
* Modify RunnerReplicaset test
Signed-off-by: binoue <banji-inoue@cybozu.co.jp >
* Modify integration test
Signed-off-by: Hiroshi Muraoka <h.muraoka714@gmail.com >
* Use RunnerDeployment Template Labels as the default selector for backward compatibility
* Fix labeling
Signed-off-by: Hiroshi Muraoka <h.muraoka714@gmail.com >
* Update func in Eventually to return (int, error)
Signed-off-by: Hiroshi Muraoka <h.muraoka714@gmail.com >
* Update RunnerDeployment controller not to use label selector
Signed-off-by: Hiroshi Muraoka <h.muraoka714@gmail.com >
* Fix potential replicaset controller breakage on replicaset created before v0.17.0
* Fix errors on existing runner replica sets
* Ensure RunnerReplicaSet Spec Selector addition does not break controller
* Ensure RunnerDeployment Template.Spec.Labels change does result in template hash change
* Fix comment
Co-authored-by: binoue <banji-inoue@cybozu.co.jp >
Co-authored-by: Yusuke Kuoka <ykuoka@gmail.com >
2021-03-05 10:15:39 +09:00
Jesse Haka
28e80a2d28
Add support for enterprise runners ( #290 )
...
* Add support for enterprise runners
* update docs
2021-02-05 09:31:06 +09:00
Reinier Timmer
ee8fb5a388
parametrized working directory ( #185 )
...
* parametrized working directory
* manifests v3.0
2020-11-25 08:55:26 +09:00
Shinnosuke Sawada
4371de9733
add dockerEnabled option ( #191 )
...
Add dockerEnabled option for users who does not need docker and want not to run privileged container.
if `dockerEnabled == false`, dind container not run, and there are no privileged container.
Do the same as closed #96
2020-11-16 09:41:12 +09:00
Yusuke Kuoka
1658f51fcb
Make Runner{Deployment,ReplicaSet} replicas actually optional ( #186 )
...
If omitted, it properly defaults to 1.
Fixes #64
2020-11-14 22:06:33 +09:00
Dan Webb
dcf8524b5c
Adds RUNNER_GROUP argument to the runner registration ( #157 )
...
* Adds RUNNER_GROUP argument to the runner registration
Adds the ability to register a runner to a predefined runner_group
Resolves #137
* Update README with runner group example
- Updates the README with instructions of how to add the runner to a
group
- Fix code fencing for shell and yaml blocks in the README
- Use consistent bullet points (dash not asterisk)
2020-11-10 17:15:54 +09:00
Yusuke Kuoka
faaca10fba
Rename Runner.Spec.dockerWithinRunnerContainer to docker"d"WithinRunnerContainer ( #134 )
...
* Rename Runner.Spec.dockerWithinRunnerContainer to dockerdWithinRunnerContainer
Ref https://github.com/summerwind/actions-runner-controller/pull/126#issuecomment-712501790
2020-10-21 21:32:40 +09:00
Juho Saarinen
af483d83da
Possibility to define resources for DIND container ( #125 )
...
Ref #119
2020-10-21 10:26:19 +09:00
Juho Saarinen
92920926fe
Configurable "runner and DinD in a single container" ( #126 )
2020-10-20 08:48:28 +09:00
Juho Saarinen
da818a898a
Manifests valid for K8s 1.18 and 1.19 ( #123 )
...
Fixes #113
Fixes #116
2020-10-15 08:39:46 +09:00
Helder Moreira
7a2fa7fbce
runner-controller: do not delete runner if it is busy ( #103 )
...
Currently, after refreshing the token, the controller re-creates the runner with the new token. This results in jobs being interrupted. This PR makes sure the pod is not restarted if it is busy.
Closes #74
2020-10-05 09:06:37 +09:00
David Liao
c0914743b0
add config to respect image pull policy
2020-07-08 23:53:52 -07:00
Reinier Timmer
9f57f52e36
organization and repository are now exclusive
2020-04-28 11:14:31 +02:00
Reinier Timmer
8c5b776807
support runner labels
2020-04-28 11:14:31 +02:00
Reinier Timmer
fb35dd4131
support for organization runners
2020-04-28 11:14:31 +02:00
Aleksandr Stepanov
d4c849ee09
Add variants of PodTemplate spec fields into the Runner spec ( #7 )
...
Resolves #5
Fixes #11
Fixes #12
Changes:
* Added podtemplate spec
* Rework pod creation logic
* Added most using podspecs
* Added copy of podspec
* Fixed Github List method
* Fixed containers
* Added ability to override runner's containers
* Added ability to override runner's containers
* Added ability to override runner's containers
* Update controllers/runner_controller.go
Co-Authored-By: Moto Ishizawa <summerwind.jp@gmail.com >
* Remove optional restartpolicy
* Changed naming convention
Co-authored-by: Moto Ishizawa <summerwind.jp@gmail.com >
2020-03-20 22:50:50 +09:00
Moto Ishizawa
a897eee402
Fix RBAC role for RunnerDeployment and RunnerReplicaSet
2020-03-15 18:08:11 +09:00
Yusuke Kuoka
c19a1b3ffe
Rename RunnerSet to RunnerReplicaSet
...
To hand over the name `RunnerSet` to the new StatefulSet-based implementation of that being developed at #4
2020-03-10 09:14:34 +09:00