Yusuke Kuoka
07f822bb08
Do include Runner controller in integration test ( #409 )
...
So that we could catch bugs in runner controller like seen in #398 , #404 , and #407 .
Ref #400
2021-03-19 16:14:15 +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
Yusuke Kuoka
991535e567
Fix panic on webhook for user-owned repository ( #344 )
...
* Fix panic on webhook for user-owned repository
Follow-up for #282 and #334
2021-02-23 08:05:25 +09:00
Yusuke Kuoka
67f6de010b
feat: Common runner labels configurable per controller ( #327 )
...
* feat: Common runner labels configurable per controller
Ref #321
2021-02-18 20:19:08 +09:00
Moto Ishizawa
b1da3092fb
Revert test comment
2020-03-15 21:55:38 +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
Yusuke Kuoka
9d634d88ff
feat: RunnerDeployment
...
Adds the initial version of RunnerDeployment that is intended to manage RunnerSets(#1 ), like Deployment manages ReplicaSets.
This is the initial version and therefore is bare bone. The only update strategy it supports is `Recreate`, which recreates the underlying RunnerSet when the runner template changes. I'd like to add `RollingUpdate` strategy once this is merged.
This depends on #1 so the diff contains that of #1 , too. Please see only the latest commit for review.
Also see https://github.com/mumoshu/actions-runner-controller-ci/runs/471329823?check_suite_focus=true to confirm that `make tests` is passing after changes made in this commit.
2020-02-27 10:46:23 +09:00