arkbriar / ctrlkit

CtrlKit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CtrlKit -- Prototype & Demo

Structure

  • ctrlkit, includes a set of core functions and an ugly implementation of CLI.
  • demo, includes partially implemented operator demo for CronJob.

Run Demo

Demo isn't fully developed. Currently only a test could be run.

$ go test -timeout 30s -run "^Test_CronJobController_Reconcile$" demo/pkg/controller -v

=== RUN   Test_CronJobController_Reconcile
{"level":"info","msg":"TODO","cronjob":"default/example","action":"RunNextScheduledJob"}
{"level":"info","msg":"TODO","cronjob":"default/example","action":"CleanUpOldJobsExceedsHistoryLimits"}
{"level":"info","msg":"TODO","cronjob":"default/example","action":"ListActiveJobsAndUpdateStatus"}
{"level":"info","msg":"Status hasn't been changed, skip update.","cronjob":"default/example","action":"UpdateCronJobStatus"}
--- PASS: Test_CronJobController_Reconcile (0.00s)
PASS
ok      demo/pkg/controller     0.643s

About

CtrlKit


Languages

Language:Go 99.5%Language:Makefile 0.5%