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 ¶
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
Click to show internal directories.
Click to hide internal directories.