managed

package
v1.87.5 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SfsName = "cockroachdb"

	PublicServiceName = SfsName + "-public"

	Clean   = "clean"
	DBReady = "dbready"
)

Variables

This section is empty.

Functions

func Adapter

func Adapter(
	componentLabels *labels.Component,
	namespace string,
	timestamp string,
	nodeselector map[string]string,
	tolerations []corev1.Toleration,
	version string,
	features []string,
	customImageRegistry string,
) operator.AdaptFunc

func BackupList

func BackupList() func(monitor mntr.Monitor, k8sClient kubernetes.ClientInt, desired *tree.Tree) ([]string, error)

func SetClean

func SetClean(
	k8sClient *kubernetesmock.MockClientInt,
	namespace string,
	replicas int,
)

Types

type DesiredV0

type DesiredV0 struct {
	Common *tree.Common `yaml:",inline"`
	Spec   Spec
}

type Spec

type Spec struct {
	Verbose                     bool
	Force                       bool                  `yaml:"force,omitempty"`
	ReplicaCount                int                   `yaml:"replicaCount,omitempty"`
	StorageCapacity             string                `yaml:"storageCapacity,omitempty"`
	StorageClass                string                `yaml:"storageClass,omitempty"`
	NodeSelector                map[string]string     `yaml:"nodeSelector,omitempty"`
	Tolerations                 []corev1.Toleration   `yaml:"tolerations,omitempty"`
	ClusterDns                  string                `yaml:"clusterDNS,omitempty"`
	Backups                     map[string]*tree.Tree `yaml:"backups,omitempty"`
	Resources                   *k8s.Resources        `yaml:"resources,omitempty"`
	MaxSQLMemory                string                `yaml:"maxSqlMemory,omitempty"`
	Cache                       string                `yaml:"cache,omitempty"`
	ZitadelUserPassword         *secret.Secret        `yaml:"zitadelUserPassword,omitempty"`
	ZitadelUserPasswordExisting *secret.Existing      `yaml:"zitadelUserPasswordExisting,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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