Documentation ¶
Index ¶
- Constants
- func GenerateCapacityConfig(kafkaCluster *v1beta1.KafkaCluster, log logr.Logger, config *corev1.ConfigMap) (string, error)
- func GeneratePodAnnotations(cruiseControlAnnotations, cruiseControlConfig map[string]string) map[string]string
- type BrokerCapacity
- type Capacity
- type CapacityConfig
- type CapacityConfigAnnotation
- type JBODInvariantCapacityConfig
- type Reconciler
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
Types ¶
type BrokerCapacity ¶
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
}
Reconciler implements the Component Reconciler
func New ¶
func New(client client.Client, cluster *v1beta1.KafkaCluster) *Reconciler
New creates a new reconciler for CC
Click to show internal directories.
Click to hide internal directories.