controllers

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2020 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultLog4jConfig = `` /* 481-byte string literal not displayed */

	DefaultLogbackConfig = `` /* 912-byte string literal not displayed */

)
View Source
const (
	ControlSavepointTriggerID = "SavepointTriggerID"
	ControlJobID              = "jobID"
	ControlRetries            = "retries"
	ControlMaxRetries         = "3"

	SavepointTimeoutSec = 60

	RevisionNameLabel = "flinkoperator.k8s.io/revision-name"

	// TODO: need to be user configurable
	SavepointAgeForJobUpdateSec      = 300
	SavepointRequestRetryIntervalSec = 10
)

Variables

This section is empty.

Functions

func ToOwnerReference

func ToOwnerReference(
	flinkCluster *v1beta1.FlinkCluster) metav1.OwnerReference

Converts the FlinkCluster as owner reference for its child resources.

Types

type ClusterReconciler

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

ClusterReconciler takes actions to drive the observed state towards the desired state.

type ClusterStateObserver

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

ClusterStateObserver gets the observed state of the cluster.

type ClusterStatusUpdater

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

ClusterStatusUpdater updates the status of the FlinkCluster CR.

type FlinkClusterHandler

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

FlinkClusterHandler holds the context and state for a reconcile request.

type FlinkClusterReconciler

type FlinkClusterReconciler struct {
	Client client.Client
	Log    logr.Logger
	Mgr    ctrl.Manager
}

FlinkClusterReconciler reconciles a FlinkCluster object

func (*FlinkClusterReconciler) Reconcile

func (reconciler *FlinkClusterReconciler) Reconcile(
	request ctrl.Request) (ctrl.Result, error)

Reconcile the observed state towards the desired state for a FlinkCluster custom resource.

func (*FlinkClusterReconciler) SetupWithManager

func (reconciler *FlinkClusterReconciler) SetupWithManager(
	mgr ctrl.Manager) error

SetupWithManager registers this reconciler with the controller manager and starts watching FlinkCluster, Deployment and Service resources.

type ObservedClusterState

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

ObservedClusterState holds observed state of a cluster.

type RevisionStatus

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

type TimeConverter

type TimeConverter struct{}

TimeConverter converts between time.Time and string.

func (*TimeConverter) FromString

func (tc *TimeConverter) FromString(timeStr string) time.Time

FromString converts string to time.Time.

func (*TimeConverter) ToString

func (tc *TimeConverter) ToString(timestamp time.Time) string

ToString converts time.Time to string.

type UpdateState

type UpdateState string
const (
	UpdateStateStoppingJob UpdateState = "StoppingJob"
	UpdateStateUpdating    UpdateState = "Updating"
	UpdateStateFinished    UpdateState = "Finished"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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