common

package
v0.0.0-...-13d25fa Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PasswordCharNumSpace = "abcdefghijklmnopqrstuvwxyz0123456789"
	PasswordCharSpace    = "abcdefghijklmnopqrstuvwxyz"

	LabelAirflowCR                   = "airflow-cr"
	ValueAirflowCRBase               = "airflow-base"
	ValueAirflowCRCluster            = "airflow-cluster"
	LabelAirflowCRName               = "airflow-cr-name"
	LabelAirflowComponent            = "airflow-component"
	ValueAirflowComponentMemoryStore = "redis"
	ValueAirflowComponentMySQL       = "mysql"
	ValueAirflowComponentPostgres    = "postgres"
	ValueAirflowComponentSQLProxy    = "sqlproxy"
	ValueAirflowComponentBase        = "base"
	ValueAirflowComponentCluster     = "cluster"
	ValueAirflowComponentSQL         = "sql"
	ValueAirflowComponentUI          = "airflowui"
	ValueAirflowComponentNFS         = "nfs"
	ValueAirflowComponentRedis       = "redis"
	ValueAirflowComponentScheduler   = "scheduler"
	ValueAirflowComponentWorker      = "worker"
	ValueAirflowComponentFlower      = "flower"
	ValueSQLProxyTypeMySQL           = "mysql"
	ValueSQLProxyTypePostgres        = "postgres"
	LabelApp                         = "app"

	KindAirflowBase    = "AirflowBase"
	KindAirflowCluster = "AirflowCluster"

	PodManagementPolicyParallel = "Parallel"

	TemplatePath = "templates/"
)

Constants

Variables

This section is empty.

Functions

func RandomAlphanumericString

func RandomAlphanumericString(strlen int) []byte

RandomAlphanumericString generates a random password of some fixed length.

func RsrcName

func RsrcName(name string, component string, suffix string) string

RsrcName - create name

Types

type TemplateValue

type TemplateValue struct {
	Name        string
	Namespace   string
	SecretName  string
	SvcName     string
	Base        *alpha1.AirflowBase
	Cluster     *alpha1.AirflowCluster
	Labels      reconciler.KVMap
	Selector    reconciler.KVMap
	Ports       map[string]string
	Secret      map[string]string
	PDBMinAvail string
	Expected    []reconciler.Object
	SQLConn     string
}

TemplateValue replacer

Jump to

Keyboard shortcuts

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