cluster

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2020 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager, logger log.Logger) error

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

Types

type ClusterController

type ClusterController struct {
	client.Client
	UncachedClient client.Client
	Recorder       record.EventRecorder
	OperatorImage  string
	// 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
	// contains filtered or unexported fields
}

ClusterController reconciles a Cluster object

func (*ClusterController) Reconcile

func (cc *ClusterController) Reconcile(request reconcile.Request) (reconcile.Result, error)

Reconcile reads that state of the cluster for a Cluster object and makes changes based on the state read and what is in the Cluster.Spec Automatically generate RBAC rules to allow the Controller to read and write Deployments +kubebuilder:rbac:groups=,resources=pods,verbs=get;list;watch;delete +kubebuilder:rbac:groups=,resources=services,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=,resources=persistentvolumeclaims,verbs=get;list;watch;delete +kubebuilder:rbac:groups=,resources=events,verbs=create;update;patch +kubebuilder:rbac:groups=apps,resources=statefulsets,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=scylla.scylladb.com,resources=clusters,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=scylla.scylladb.com,resources=clusters/status,verbs=update

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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