core

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ConfigHashAnnotation is the key of the annotation on the PodTemplate that
	// holds the configuratio hash
	ConfigHashAnnotation = "wave.pusher.com/config-hash"

	// FinalizerString is the finalizer added to deployments to allow Wave to
	// perform advanced deletion logic
	FinalizerString = "wave.pusher.com/finalizer"

	// RequiredAnnotation is the key of the annotation on the Deployment that Wave
	// checks for before processing the deployment
	RequiredAnnotation = "wave.pusher.com/update-on-config-change"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	client.Client
	// contains filtered or unexported fields
}

Handler performs the main business logic of the Wave controller

func NewHandler

func NewHandler(c client.Client, r record.EventRecorder) *Handler

NewHandler constructs a new instance of Handler

func (*Handler) HandleDaemonSet added in v0.3.0

func (h *Handler) HandleDaemonSet(instance *appsv1.DaemonSet) (reconcile.Result, error)

HandleDaemonSet is called by the DaemonSet controller to reconcile DaemonSets

func (*Handler) HandleDeployment

func (h *Handler) HandleDeployment(instance *appsv1.Deployment) (reconcile.Result, error)

HandleDeployment is called by the deployment controller to reconcile deployments

func (*Handler) HandleStatefulSet added in v0.3.0

func (h *Handler) HandleStatefulSet(instance *appsv1.StatefulSet) (reconcile.Result, error)

HandleStatefulSet is called by the StatefulSet controller to reconcile StatefulSets

type Object

type Object interface {
	runtime.Object
	metav1.Object
}

Object is used as a helper interface when passing Kubernetes resources between methods. All Kubernetes resources should implement both of these interfaces

Jump to

Keyboard shortcuts

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