presto

package
v0.0.0-...-8b5ec9c Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ControllerName string = "presto-controller"
)
View Source
const (
	DefaultTerminationGracePeriodSeconds = 7200
)

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager, metricsClient *metrics.MetricsV1beta1Client,
	cmdLineParams CommandLineParams, log logr.Logger) error

Add creates a new Presto Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.

Types

type ClusterUpdateAction

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

type CommandLineParams

type CommandLineParams struct {
	StatusUpdateInterval int
}

type GenerationChangedPredicate

type GenerationChangedPredicate struct {
	predicate.Funcs
}

func (GenerationChangedPredicate) Update

Predicate to ignore the Update events where the resource version has not been changed This is needed to avoid the events generated by the status updates. The idea has been picked up from here: https://www.openshift.com/blog/kubernetes-operators-best-practices

type OperatorError

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

func (*OperatorError) Error

func (e *OperatorError) Error() string

type ReconcilePresto

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

ReconcilePresto reconciles a Presto object

func (*ReconcilePresto) Reconcile

func (r *ReconcilePresto) Reconcile(request reconcile.Request) (reconcile.Result, error)

Reconcile reads that state of the cluster for a Presto object and makes changes based on the state read and what is in the Presto.Spec

Jump to

Keyboard shortcuts

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