cruisecontrol

package
v0.25.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2023 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

View Source
const MinLogDirSizeInMB = int64(1)

Variables

This section is empty.

Functions

func GenerateCapacityConfig

func GenerateCapacityConfig(kafkaCluster *v1beta1.KafkaCluster, log logr.Logger, config *corev1.ConfigMap) (string, error)

GenerateCapacityConfig generates a CC capacity config with default values or returns the manually overridden value if it exists

func GeneratePodAnnotations

func GeneratePodAnnotations(cruiseControlAnnotations, cruiseControlConfig map[string]string) map[string]string

Types

type BrokerCapacity

type BrokerCapacity struct {
	BrokerID string   `json:"brokerId"`
	Capacity Capacity `json:"capacity"`
	Doc      string   `json:"doc"`
}

type Capacity

type Capacity struct {
	DISK  map[string]string `json:"DISK"`
	CPU   string            `json:"CPU"`
	NWIN  string            `json:"NW_IN"`
	NWOUT string            `json:"NW_OUT"`
}

type CapacityConfig

type CapacityConfig struct {
	BrokerCapacities []BrokerCapacity `json:"brokerCapacities"`
}

type CapacityConfigAnnotation

type CapacityConfigAnnotation string

type JBODInvariantCapacityConfig

type JBODInvariantCapacityConfig struct {
	Capacities []interface{} `json:"brokerCapacities"`
}

type Reconciler

type Reconciler struct {
	resources.Reconciler
	KafkaClientProvider kafkaclient.Provider
}

Reconciler implements the Component Reconciler

func New

func New(client client.Client, cluster *v1beta1.KafkaCluster, kafkaClientProvider kafkaclient.Provider) *Reconciler

New creates a new reconciler for CC

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(log logr.Logger) error

Reconcile implements the reconcile logic for CC

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL