Documentation ¶
Index ¶
Constants ¶
View Source
const ( RbacObjCtxKey = rbacObjCtxKey("RbacObjects") RbacObjNamePrefix = "sts-resize-sync-job-" )
View Source
const ManagedLabel = "sts-resize.vshn.net/managed"
ManagedLabel is a label to mark resources to be managed by the controller
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CriticalError ¶
CriticalError is an unrecoverable error.
func (CriticalError) Error ¶
func (err CriticalError) Error() string
Error implements the Error interface
func (*CriticalError) Unwrap ¶
func (err *CriticalError) Unwrap() error
Unwrap is used to make it work with errors.Is, errors.As.
type RbacObjects ¶ added in v0.2.0
type RbacObjects struct { Name string ServiceAccount corev1.ServiceAccount RoleBinding rbacv1.RoleBinding Created bool }
type StatefulSetReconciler ¶
type StatefulSetReconciler struct { client.Client Scheme *runtime.Scheme Recorder record.EventRecorder SyncContainerImage string SyncClusterRole string RequeueAfter time.Duration }
StatefulSetReconciler reconciles a StatefulSet object
func (*StatefulSetReconciler) Reconcile ¶
func (r *StatefulSetReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is the main work loop, reacting to changes in statefulsets and initiating resizing of StatefulSets.
func (*StatefulSetReconciler) SetupWithManager ¶
func (r *StatefulSetReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Click to show internal directories.
Click to hide internal directories.