constants

package
v1.0.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2019 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package constants contains constants used by other packages.

Index

Constants

View Source
const (
	// AllowDeletionAnnotationKey is the key of the annotation that specifies whether deletion of a given resource is allowed.
	AllowDeletionAnnotationKey = annotationKeyPrefix + "allow-deletion"
	// PostgresqlInstanceNameAnnotationKey is the key of the annotation that specifies which PostgresqlInstance a given pod wants to connect to.
	PostgresqlInstanceNameAnnotationKey = annotationKeyPrefix + "postgresqlinstance-name"
	// ProxyInjectedAnnotationKey is the key of the annotation set on Pod resources which have been injected with the Cloud SQL proxy sidecar.
	ProxyInjectedAnnotationKey = annotationKeyPrefix + "proxy-injected"
)
View Source
const (
	// ApplicationName holds the name of the application.
	ApplicationName = "cloudsql-postgres-operator"
	// DefaultCloudsqlPostgresOperatorNamespace is the namespace where cloudsql-postgres-operator is deployed by default.
	DefaultCloudsqlPostgresOperatorNamespace = "cloudsql-postgres-operator"
	// DefaultWebhookBindAddress is the address to which the admission webhook binds by default.
	DefaultWebhookBindAddress = "0.0.0.0:443"
	// DefaultControllersResyncPeriodSeconds is the resync period (in seconds) to use by default.
	DefaultControllersResyncPeriodSeconds = 120
	// DefaultCloudSQLProxyImage is the image of the Cloud SQL proxy to inject by default.
	DefaultCloudSQLProxyImage = "gcr.io/cloudsql-docker/gce-proxy:1.14"
)
View Source
const (
	// DatabaseInstanceActivationPolicyAlways is the activation policy of a running, healthy CSQLP instance.
	DatabaseInstanceActivationPolicyAlways = "ALWAYS"
	// DatabaseInstanceIPAddressTypePublic is the type associated with a CSQLP instance's public IP.
	DatabaseInstanceIPAddressTypePublic = "PRIMARY"
	// DatabaseInstanceIPAddressTypePrivate is the type associated with a CSQLP instance's private IP.
	DatabaseInstanceIPAddressTypePrivate = "PRIVATE"
	// DatabaseInstanceStateRunnable is the state of a running, healthy CSQLP instance.
	DatabaseInstanceStateRunnable = "RUNNABLE"
	// OperationStatusDone is the status of an operation that has terminated.
	OperationStatusDone = "DONE"
)
View Source
const (
	// Kind is the "kind" field used in logging statements.
	Kind = "kind"
	// Version is the "version" field used in logging statements.
	Version = "version"
)
View Source
const (
	// PostgresqlInstancePasswordKey is the secret key that holds a given CSQLP instance's password.
	PostgresqlInstancePasswordKey = "PGPASS"
	// PostgresqlInstanceUsernameKey is the secret key that holds a given CSQLP instance's username.
	PostgresqlInstanceUsernameKey = "PGUSER"
	// PostgresqlInstanceUsernameValue is the fixed value of the secret key that holds a given CSQLP instance's username.
	PostgresqlInstanceUsernameValue = "postgres"
)
View Source
const (
	CleanupFinalizer = "cleanup.cloudsql.travelaudience.com"
)
View Source
const (
	// LabelAppKey is the key of the "app" label set on all resources created by cloudsql-postgres-operator.
	LabelAppKey = "app"
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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