core

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ConfigHashAnnotation is the annotation key in PodTemplate for config hash
	ConfigHashAnnotation = "rekonfig.gitops.in/konfig-hash"

	// FinalizerString is the finalizer added to deployments to allow rekonfig to
	// perform advanced deletion logic
	FinalizerString = "rekonfig.gitops.in/finalizer"

	// RequiredAnnotation is the annotation key in the Deployment that
	// we check for before processing the deployment
	RequiredAnnotation = "rekonfig.gitops.in/update-on-konfig-change"
)

Variables

This section is empty.

Functions

func GetNameFromAnnoteKey

func GetNameFromAnnoteKey(annoteKey string) string

GetNameFromAnnoteKey extracts name from Config annotation key

Types

type Handler

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

Handler performs main controller business logic

func NewHandler

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

NewHandler creates a new Handler instance

func (*Handler) HandleDaemonSet

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

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 a helper interface when passing Kubernetes resources between methods. All Kubernetes resources should implement both of the interfaces

Jump to

Keyboard shortcuts

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