sgservicecontroller

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(sgc *SgController)

Options to pass when creating a new sgcontroller

func WithEventRecorder

func WithEventRecorder(ev record.EventRecorder) Option

Set an EventRecorder that will be notified of any events that occur

func WithStatefulSetSelector

func WithStatefulSetSelector(opts metav1.ListOptions) Option

type SgController

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

func NewSGServiceController

func NewSGServiceController(name string, kubeClient kubernetes.Interface, opts ...Option) *SgController

Create a new sgcontroller with the given Name, Kubernetes client and opts Can be customized by adding Option(s).

func (*SgController) HandleStatefulSetWatchEvent

func (sgc *SgController) HandleStatefulSetWatchEvent(ctx context.Context, ev watch.Event) error

func (*SgController) Run

func (sgc *SgController) Run(ctx context.Context, wg *sync.WaitGroup) error

Start monitoring the Kubernetes API for changes to the StatefulSet objects

Jump to

Keyboard shortcuts

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