Documentation ¶
Index ¶
- Constants
- type CanaryJob
- type CanaryReconciler
- func (r *CanaryReconciler) Patch(ctx *context.Context, 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 ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CanaryJob ¶
type CanaryJob struct { Client CanaryReconciler Canary v1.Canary Context *context.Context logr.Logger }
func (CanaryJob) GetNamespacedName ¶
func (c CanaryJob) GetNamespacedName() types.NamespacedName
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(ctx *context.Context, 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.