Documentation
¶
Index ¶
Constants ¶
View Source
const ( InstanceStatusRunning string = "RUNNING" InstanceStatusSaturated string = "SATURATED" InstanceStatusPendingScaleUp string = "PENDING_SCALE_UP" InstanceStatusPendingScaleDown string = "PENDING_SCALE_DOWN" PartitionAnnotation = "konsumerator.lwolf.org/partition" ConsumerAnnotation = "konsumerator.lwolf.org/consumer-id" DisableAutoscalerAnnotation = "konsumerator.lwolf.org/disable-autoscaler" GenerationAnnotation = "konsumerator.lwolf.org/generation" CPUSaturationLevel = "konsumerator.lwolf.org/cpu-saturation-level" ScalingStatusAnnotation = "konsumerator.lwolf.org/scaling-status" ScalingStatusChangeAnnotation = "konsumerator.lwolf.org/scaling-status-change" VerboseLoggingAnnotation = "konsumerator.lwolf.org/verbose" )
View Source
const (
AnnotationIsManaged = "konsumerator.lwolf.org/managed"
)
Variables ¶
This section is empty.
Functions ¶
func PopulateStatusFromAnnotation ¶ added in v0.9.1
func PopulateStatusFromAnnotation(a map[string]string, status *konsumeratorv1.ConsumerStatus)
func UpdateStatusAnnotations ¶ added in v0.9.1
func UpdateStatusAnnotations(cm *corev1.ConfigMap, status *konsumeratorv1.ConsumerStatus) error
Types ¶
type ConfigMapReconciler ¶ added in v0.9.1
type ConfigMapReconciler struct { client.Client Log logr.Logger Recorder record.EventRecorder Scheme *runtime.Scheme Clock clock.Clock }
ConfigMapReconciler reconciles a ConfigMap object
func (*ConfigMapReconciler) SetupWithManager ¶ added in v0.9.1
func (r *ConfigMapReconciler) SetupWithManager(mgr ctrl.Manager) error
type ConsumerReconciler ¶
type ConsumerReconciler struct { client.Client Log logr.Logger Recorder record.EventRecorder Scheme *runtime.Scheme Clock clock.Clock }
ConsumerReconciler reconciles a Consumer object
func (*ConsumerReconciler) SetupWithManager ¶
func (r *ConsumerReconciler) SetupWithManager(mgr ctrl.Manager) error
type Controller ¶ added in v0.9.1
type InstanceState ¶ added in v1.1.0
type InstanceState struct {
// contains filtered or unexported fields
}
InstanceState in a current form just caches the values in a single struct to reduce the duplication inside the operator.
Click to show internal directories.
Click to hide internal directories.