processor

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2017 License: Apache-2.0 Imports: 9 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Processor

type Processor struct {
	// contains filtered or unexported fields
}

func New

func New(client k8sclient.Clientset, image string, util util.ClientUtil, crdClient controller.CustomResourceController, control chan int) (*Processor, error)

func (*Processor) CreateKafkaCluster

func (p *Processor) CreateKafkaCluster(clusterSpec spec.Kafkacluster)

CreateKafkaCluster with the following components: Service, Volumes, StatefulSet. Maybe move this also into util

func (*Processor) DetectChangeType

func (p *Processor) DetectChangeType(event spec.KafkaclusterWatchEvent) spec.KafkaclusterEvent

We detect basic change through the event type, beyond that we use the API server to find differences. Functions compares the KafkaClusterSpec with the real Pods/Services which are there. We do that because otherwise we would have to use a local state to track changes.

func (*Processor) Run

func (p *Processor) Run() error

Jump to

Keyboard shortcuts

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