controllers

package
v0.0.0-...-82207cb Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

TODO: describe package here.

Index

Constants

View Source
const (
	CloudstateStatefulServiceLabel            = "cloudstate.io/stateful-service"
	CloudstateStatefulServiceConfigAnnotation = "cloudstate.io/stateful-service-config"
	CloudstateEnabledAnnotation               = "cloudstate.io/enabled"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type StatefulServiceReconciler

type StatefulServiceReconciler struct {
	client.Client
	Log              logr.Logger
	Scheme           *runtime.Scheme
	ReconcileTimeout time.Duration
	OperatorConfig   *config.OperatorConfig
	Stores           stores.Stores
	Listener         listeners.StatefulServiceListener
}

StatefulServiceReconciler reconciles a StatefulService object.

func (*StatefulServiceReconciler) Reconcile

func (r *StatefulServiceReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

func (*StatefulServiceReconciler) SetupWithManager

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

type StatefulStoreConfig

type StatefulStoreConfig struct {
	// This is the DB type and version as used by GCP. Must start with "POSTGRES_" to ensure we get a Postgres DB.
	DBTypeVersion         string `yaml:"dbTypeVersion" env-description:"DB descriptor for GCP"`
	DBRegion              string `yaml:"dbRegion" env-description:"GCP region for instances/databases"`
	PostgresDefaultCores  int32  `yaml:"postgresDefaultCores" env-description:"default number of cores for Postgres SQLInstances"`
	PostgresDefaultMemory string `yaml:"postgresDefaultMemory" env-description:"default memory allocation (MiB) for Postgres SQLInstances"`
}

func (*StatefulStoreConfig) SetDefaults

func (cfg *StatefulStoreConfig) SetDefaults()

SetDefaults initializes the structure with default values.

type StatefulStoreReconciler

type StatefulStoreReconciler struct {
	client.Client
	Log              logr.Logger
	Scheme           *runtime.Scheme
	ReconcileTimeout time.Duration
	OperatorConfig   *config.OperatorConfig
	Stores           stores.Stores
}

StatefulStoreReconciler reconciles a StatefulStore object.

func (*StatefulStoreReconciler) Reconcile

func (r *StatefulStoreReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

Reconcile StatefulStore.

func (*StatefulStoreReconciler) SetupWithManager

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

Jump to

Keyboard shortcuts

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