Documentation ¶
Index ¶
- Constants
- Variables
- func ScanCanaryConfigs()
- func ScheduleSystemFunc(schedule string, fn func()) (interface{}, error)
- func Start()
- func StartScanCanaryConfigs(dataFile string, configFiles []string)
- func SyncCanaryJobs()
- type CanaryJob
- type CanaryReconciler
- func (r *CanaryReconciler) Patch(canary *v1.Canary)
- func (r *CanaryReconciler) Reconcile(ctx gocontext.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *CanaryReconciler) Report(ctx *context.Context, canary v1.Canary, results []*pkg.CheckResult)
- func (r *CanaryReconciler) SetupWithManager(mgr ctrl.Manager) error
Constants ¶
View Source
const FinalizerName = "canary.canaries.flanksource.com"
Variables ¶
View Source
var CanaryConfigFiles []string
View Source
var DataFile string
View Source
var Kommons *kommons.Client
View Source
var Scheduler = cron.New()
View Source
var SystemScheduler = cron.New()
Functions ¶
func ScanCanaryConfigs ¶ added in v0.38.85
func ScanCanaryConfigs()
func ScheduleSystemFunc ¶ added in v0.38.85
func StartScanCanaryConfigs ¶ added in v0.38.85
func SyncCanaryJobs ¶ added in v0.38.85
func SyncCanaryJobs()
Types ¶
type CanaryJob ¶
func (CanaryJob) GetNamespacedName ¶
func (job CanaryJob) GetNamespacedName() types.NamespacedName
func (*CanaryJob) NewContext ¶ added in v0.38.85
type CanaryReconciler ¶
type CanaryReconciler struct { IncludeCheck string IncludeNamespaces []string LogPass, LogFail bool client.Client Kubernetes kubernetes.Interface Kommons *kommons.Client Log logr.Logger Scheme *runtime.Scheme Events record.EventRecorder Cron *cron.Cron RunnerName string Done chan *pkg.CheckResult }
CanaryReconciler reconciles a Canary object
func (*CanaryReconciler) Patch ¶
func (r *CanaryReconciler) Patch(canary *v1.Canary)
func (*CanaryReconciler) Reconcile ¶
+kubebuilder:rbac:groups=canaries.flanksource.com,resources=canaries,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=canaries.flanksource.com,resources=canaries/status,verbs=get;update;patch +kubebuilder:rbac:groups="",resources=pods/exec,verbs=* +kubebuilder:rbac:groups="",resources=pods/logs,verbs=*
func (*CanaryReconciler) Report ¶
func (r *CanaryReconciler) Report(ctx *context.Context, canary v1.Canary, results []*pkg.CheckResult)
func (*CanaryReconciler) SetupWithManager ¶
func (r *CanaryReconciler) SetupWithManager(mgr ctrl.Manager) error
Click to show internal directories.
Click to hide internal directories.