Commit Graph

1698 Commits

Author SHA1 Message Date
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
Yusuke Kuoka d8d829b734 feat: RunnerSets
RunnerSet is basically ReplicaSet for Runners.

It is responsible for maintaining number of runners to match the desired one. That is, it creates missing runners from `.Spec.Template` and deletes redundant runners.

Similar to ReplicaSet, this does not support rolling update of runners on its own. We might want to later add `RunnerDeployment` for that. But that's another story.
2020-02-24 10:32:44 +09:00
Moto Ishizawa 7dd3ab43d7 Update default container image 2020-02-19 22:41:11 +09:00
Moto Ishizawa 58cac20109 Docker CLI v19.03.6 2020-02-19 22:39:58 +09:00
Moto Ishizawa cac45f284a actions/runner v2.165.2 2020-02-19 22:37:38 +09:00
Moto Ishizawa f2d3ca672f Unset environment variables for runner config 2020-02-06 22:15:26 +09:00
Moto Ishizawa 829a167303 Add 'env' field to runner resource 2020-02-06 22:09:07 +09:00
Moto Ishizawa c66916a4ee Use dumb-init to handle signal properly 2020-02-06 18:47:50 +09:00
Moto Ishizawa f5c8a0e655 Update README 2020-02-03 21:52:28 +09:00
Moto Ishizawa a436216d5e Implement finalizer 2020-02-03 21:35:01 +09:00
Moto Ishizawa 497ddba82d Record event of runner resource 2020-02-03 18:40:59 +09:00
Moto Ishizawa 10f6cb5e90 Add additional printer columns 2020-02-03 17:37:48 +09:00
Moto Ishizawa 13ef78ce20 Sync runner status with pod status 2020-02-03 17:25:38 +09:00
Moto Ishizawa 0061979e3e Add '-github-token' flag 2020-02-03 17:02:27 +09:00
Moto Ishizawa e6952f5ca1 Add '-runner-image' and '-docker-image' flags 2020-02-03 16:56:52 +09:00
Moto Ishizawa ffdbe5cee9 Set container image version properly in the release task 2020-02-03 16:55:38 +09:00
Moto Ishizawa 4970814b6c Do not run build workflow when .github changed 2020-02-03 16:54:49 +09:00
Moto Ishizawa fabcddb3df Fix version format 2020-02-03 12:09:34 +09:00
Moto Ishizawa c2e6438483 Fix kustomize install command 2020-02-03 12:06:34 +09:00
Moto Ishizawa 80ebb57a81 Install kustomize in release workflow 2020-02-03 12:00:05 +09:00
Moto Ishizawa c33cc6b245 Fix ghr install command 2020-02-03 11:53:24 +09:00
Moto Ishizawa cab4d3811a Update .gitignore 2020-02-03 10:52:07 +09:00
Moto Ishizawa 1a7c9677ac Add release workflow 2020-02-03 10:51:57 +09:00
Moto Ishizawa 4635a10778 Add tasks for releasing 2020-02-03 10:28:50 +09:00
Moto Ishizawa 56fc3bcb2b Fix tag name 2020-02-03 10:27:37 +09:00
Moto Ishizawa 6d8f833d4f Update README 2020-02-03 10:10:40 +09:00
Moto Ishizawa b2b235f6a5 Enable build workflow 2020-02-02 21:38:11 +09:00
Moto Ishizawa 6e400a70ed Enable build runner workflow 2020-02-02 21:29:33 +09:00
Moto Ishizawa d554f4e3f4 Set GITHUB_TOKEN environment variable from secret resource 2020-02-02 19:55:11 +09:00
Moto Ishizawa c6a591d3fe Change namespace name 2020-02-02 19:51:21 +09:00
Moto Ishizawa 2f69329fce Fix permission for pods 2020-02-02 19:49:10 +09:00
Moto Ishizawa 7db5340595 Update CRD validation and RBAC 2020-02-02 10:30:42 +09:00
Moto Ishizawa 127a601fb7 Improve error message 2020-02-01 20:18:16 +09:00
Moto Ishizawa a86f2db2dc Update container name 2020-02-01 00:07:15 +09:00
Moto Ishizawa 960befeade Restart runner pod on completion 2020-02-01 00:06:30 +09:00
Moto Ishizawa 65f479d749 Always restart container 2020-01-31 22:50:08 +09:00
Moto Ishizawa 3f02153257 Ignore pods being deleted 2020-01-31 22:47:53 +09:00
Moto Ishizawa d0d6238963 Run once 2020-01-31 19:29:29 +09:00
Moto Ishizawa bd0d276347 Remove archive file 2020-01-31 19:29:15 +09:00
Moto Ishizawa ec3e7de701 Add docker container to a runner pod 2020-01-30 23:52:40 +09:00
Moto Ishizawa 75c30631a7 Add docker binary 2020-01-30 23:48:55 +09:00
Moto Ishizawa 5460ff2abc Add LICENSE 2020-01-30 20:12:12 +09:00
Moto Ishizawa 1cd3bdbe25 Add README.md 2020-01-29 23:19:23 +09:00
Moto Ishizawa 5b887add53 Reconcile when runner pod is updated 2020-01-29 23:12:07 +09:00
Moto Ishizawa aaf6b0bcae Implement runner controller 2020-01-28 21:58:01 +09:00
Moto Ishizawa cea4d084e4 Add runner container image 2020-01-28 21:56:54 +09:00
Moto Ishizawa 6b392aedda Implement Runner resource 2020-01-28 21:56:09 +09:00
Moto Ishizawa 04a8e562c0 Initial commit 2020-01-28 15:03:23 +09:00