Documentation ¶
Index ¶
- type WatcherConfig
- type WatcherReconciler
- func (r *WatcherReconciler) HandleDeletingState(ctx context.Context, logger logr.Logger, obj *watcherv1alpha1.Watcher) error
- func (r *WatcherReconciler) HandleErrorState(ctx context.Context, obj *watcherv1alpha1.Watcher) error
- func (r *WatcherReconciler) HandleInitialState(ctx context.Context, obj *watcherv1alpha1.Watcher) error
- func (r *WatcherReconciler) HandleProcessingState(ctx context.Context, logger logr.Logger, obj *watcherv1alpha1.Watcher) error
- func (r *WatcherReconciler) HandleReadyState(ctx context.Context, logger logr.Logger, obj *watcherv1alpha1.Watcher) error
- func (r *WatcherReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *WatcherReconciler) SetIstioClient() error
- func (r *WatcherReconciler) SetupWithManager(mgr ctrl.Manager) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WatcherConfig ¶
type WatcherConfig struct { // VirtualServiceObjKey represents the object key (name and namespace) of the virtual service resource to be updated VirtualServiceObjKey client.ObjectKey // RequeueInterval represents requeue interval in seconds RequeueInterval int // WebhookChartPath represents the path of the webhook chart // to be installed on SKR clusters upon reconciling watcher CRs WebhookChartPath string // WebhookChartReleaseName represents the helm release name of the webhook chart // to be installed on SKR clusters upon reconciling watcher CRs WebhookChartReleaseName string }
type WatcherReconciler ¶
type WatcherReconciler struct { client.Client *custom.IstioClient RestConfig *rest.Config Scheme *runtime.Scheme Config *WatcherConfig }
WatcherReconciler reconciles a Watcher object.
func (*WatcherReconciler) HandleDeletingState ¶
func (r *WatcherReconciler) HandleDeletingState(ctx context.Context, logger logr.Logger, obj *watcherv1alpha1.Watcher, ) error
func (*WatcherReconciler) HandleErrorState ¶
func (r *WatcherReconciler) HandleErrorState(ctx context.Context, obj *watcherv1alpha1.Watcher) error
func (*WatcherReconciler) HandleInitialState ¶
func (r *WatcherReconciler) HandleInitialState(ctx context.Context, obj *watcherv1alpha1.Watcher) error
func (*WatcherReconciler) HandleProcessingState ¶
func (r *WatcherReconciler) HandleProcessingState(ctx context.Context, logger logr.Logger, obj *watcherv1alpha1.Watcher, ) error
func (*WatcherReconciler) HandleReadyState ¶
func (r *WatcherReconciler) HandleReadyState(ctx context.Context, logger logr.Logger, obj *watcherv1alpha1.Watcher, ) error
func (*WatcherReconciler) Reconcile ¶
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
func (*WatcherReconciler) SetIstioClient ¶
func (r *WatcherReconciler) SetIstioClient() error
func (*WatcherReconciler) SetupWithManager ¶
func (r *WatcherReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Click to show internal directories.
Click to hide internal directories.