actions-runner-controller/controllers
Yusuke Kuoka 0b88b246d3
Fix additionalPrinterColumns (#556)
This fixes human-readable output of `kubectl get` on `runnerdeployment`, `runnerreplicaset`, and `runner`.

Most notably, CURRENT and READY of runner replicasets are now computed and printed correctly. Runner deployments now have UP-TO-DATE and AVAILABLE instead of READY so that it is consistent with columns of K8s deployments.

A few fixes has been also made to runner deployment and runner replicaset controllers so that those numbers stored in Status objects are reliably updated and in-sync with actual values.

Finally, `AGE` columns are added to runnerdeployment, runnerreplicaset, runnner to make that more visible to users.

`kubectl get` outputs should now look like the below examples:

```
# Immediately after runnerdeployment updated/created
$ k get runnerdeployment
NAME                   DESIRED   CURRENT   UP-TO-DATE   AVAILABLE   AGE
example-runnerdeploy   0         0         0            0           8d
org-runnerdeploy       5         5         5            0           8d

# A few dozens of seconds after update/create all the runners are registered that "available" numbers increase
$ k get runnerdeployment
NAME                   DESIRED   CURRENT   UP-TO-DATE   AVAILABLE   AGE
example-runnerdeploy   0         0         0            0           8d
org-runnerdeploy       5         5         5            5           8d
```

```
$ k get runnerreplicaset
NAME                         DESIRED   CURRENT   READY   AGE
example-runnerdeploy-wnpf6   0         0         0       61m
org-runnerdeploy-fsnmr       2         2         0       8m41s
```

```
$ k get runner
NAME                                           ENTERPRISE   ORGANIZATION                REPOSITORY                                       LABELS                      STATUS    AGE
example-runnerdeploy-wnpf6-registration-only                                            actions-runner-controller/mumoshu-actions-test                               Running   61m
org-runnerdeploy-fsnmr-n8kkx                                actions-runner-controller                                                    ["mylabel 1","mylabel 2"]             21s
org-runnerdeploy-fsnmr-sq6m8                                actions-runner-controller                                                    ["mylabel 1","mylabel 2"]             21s
```

Fixes #490
2021-05-21 09:10:47 +09:00
..
metrics Add metrics of RunnerDeployment and HRA (#408) 2021-03-19 16:14:02 +09:00
testdata Fix panic on webhook for user-owned repository (#344) 2021-02-23 08:05:25 +09:00
autoscaling.go edge: Enable scaling from zero with PercentageRunnersBusy (#524) 2021-05-05 14:27:17 +09:00
autoscaling_test.go Do not delay min/maxReplicas propagation from HRA to RD due to caching (#406) 2021-03-19 12:58:02 +09:00
horizontal_runner_autoscaler_webhook.go Improve debug log in webhook-based autoscaling 2021-05-11 15:49:03 +09:00
horizontal_runner_autoscaler_webhook_on_check_run.go Add CheckRun.Names scale-up trigger configuration (#390) 2021-03-14 10:21:42 +09:00
horizontal_runner_autoscaler_webhook_on_pull_request.go feat: HorizontalRunnerAutoscaler Webhook server (#282) 2021-02-07 17:37:27 +09:00
horizontal_runner_autoscaler_webhook_on_push.go feat: HorizontalRunnerAutoscaler Webhook server (#282) 2021-02-07 17:37:27 +09:00
horizontal_runner_autoscaler_webhook_test.go handle GET requests in webhook hra (#378) 2021-03-09 08:46:27 +09:00
horizontalrunnerautoscaler_controller.go chore: Add debug logs for scheduledOverrides (#540) 2021-05-11 17:30:22 +09:00
horizontalrunnerautoscaler_controller_test.go Fix HRA expired cache entries not cleaned up (#357) 2021-02-26 09:54:24 +09:00
integration_test.go feat: Support for scaling from/to zero (#465) 2021-05-02 16:11:36 +09:00
runner_controller.go feat: allow ephemeral runner to be optional (#498) 2021-05-02 19:04:14 +09:00
runnerdeployment_controller.go Fix additionalPrinterColumns (#556) 2021-05-21 09:10:47 +09:00
runnerdeployment_controller_test.go Do include Runner controller in integration test (#409) 2021-03-19 16:14:15 +09:00
runnerreplicaset_controller.go Fix additionalPrinterColumns (#556) 2021-05-21 09:10:47 +09:00
runnerreplicaset_controller_test.go Fix scale-from-zero to retain the reg-only runner until other pods come up (#523) 2021-05-05 12:13:51 +09:00
schedule.go Experimental support for ScheduledOverrides (#515) 2021-05-03 23:31:17 +09:00
schedule_test.go Experimental support for ScheduledOverrides (#515) 2021-05-03 23:31:17 +09:00
suite_test.go Do include Runner controller in integration test (#409) 2021-03-19 16:14:15 +09:00
utils.go feat: EKS IAM Roles for Service Accounts for Runner Pods (#226) 2020-12-08 17:56:06 +09:00
utils_test.go feat: EKS IAM Roles for Service Accounts for Runner Pods (#226) 2020-12-08 17:56:06 +09:00