cluster

package
v1.3.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2021 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Messages to display when experiencing an error.
	MessageHeadlessServiceSyncFailed     = "Failed to sync Headless Service for cluster"
	MessagePodDisruptionBudgetSyncFailed = "Failed to sync Pod Disruption Budget for cluster"
	MessageMemberServicesSyncFailed      = "Failed to sync MemberServices for cluster"
	MessageUpdateStatusFailed            = "Failed to update status for cluster: %+v"
	MessageCleanupFailed                 = "Failed to clean up cluster resources"
	MessageClusterSyncFailed             = "Failed to sync cluster, got error: %+v"
)

Variables

This section is empty.

Functions

func GetOperatorImage added in v1.1.0

func GetOperatorImage(ctx context.Context, kubeClient kubernetes.Interface, opts *options.OperatorOptions) (string, error)

Types

type ClusterReconciler

type ClusterReconciler struct {
	client.Client

	// Original k8s client needed for patch ops
	// Will replace once the dynamic client adds this feature
	// https://github.com/kubernetes-sigs/controller-runtime/pull/235
	// Feature depends on server-side apply, landing in 1.14
	// https://github.com/kubernetes/enhancements/issues/555
	KubeClient     kubernetes.Interface
	UncachedClient client.Client
	Recorder       record.EventRecorder
	OperatorImage  string

	Scheme *runtime.Scheme
	Logger log.Logger
}

ClusterReconciler reconciles a Cluster object

func New

func New(ctx context.Context, mgr ctrl.Manager, logger log.Logger) (*ClusterReconciler, error)

func (*ClusterReconciler) Reconcile

func (cc *ClusterReconciler) Reconcile(ctx context.Context, request ctrl.Request) (ctrl.Result, error)

func (*ClusterReconciler) SetupWithManager

func (r *ClusterReconciler) SetupWithManager(mgr ctrl.Manager) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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