quarksrestart

package
v1.0.1-0...-b3ee44d Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2021 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Overview

Package quarksrestart restarts deployments and such if their pod's secrets/configmaps changes

Index

Constants

This section is empty.

Variables

View Source
var AnnotationRestartOnUpdate = fmt.Sprintf("%s/restart-on-update", apis.GroupName)

AnnotationRestartOnUpdate is the annotation required on the secret/configmap for the quarks restart feature

View Source
var RestartKey = fmt.Sprintf("%s/restart", apis.GroupName)

RestartKey has the timestamp of the last restart triggered by this reconciler

Functions

func AddRestart

func AddRestart(ctx context.Context, config *config.Config, mgr manager.Manager) error

AddRestart creates a new controller to restart statefulsets,deployments & jobs if one of their pod's referred secrets/configmaps has changed

func NewRestartReconciler

func NewRestartReconciler(ctx context.Context, config *config.Config, mgr manager.Manager) reconcile.Reconciler

NewRestartReconciler returns a new reconciler to restart deployments & statefulsets

Types

type ReconcileRestart

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

ReconcileRestart contains necessary state for the reconcile

func (*ReconcileRestart) Reconcile

func (r *ReconcileRestart) Reconcile(_ context.Context, request reconcile.Request) (reconcile.Result, error)

Reconcile adds an annotation to deployments, statefulsets & jobs which own the pod whose referred secret has changed

Jump to

Keyboard shortcuts

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