32 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Go
		
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Go
		
	
	
	
package constants
 | 
						|
 | 
						|
const (
 | 
						|
	//Constants
 | 
						|
	TPRName                   = "postgresql"
 | 
						|
	TPRVendor                 = "acid.zalan.do"
 | 
						|
	TPRDescription            = "Managed PostgreSQL clusters"
 | 
						|
	TPRApiVersion             = "v1"
 | 
						|
	ListClustersURITemplate   = "/apis/" + TPRVendor + "/" + TPRApiVersion + "/namespaces/%s/" + ResourceName       // Namespace
 | 
						|
	WatchClustersURITemplate  = "/apis/" + TPRVendor + "/" + TPRApiVersion + "/watch/namespaces/%s/" + ResourceName // Namespace
 | 
						|
	K8sVersion                = "v1"
 | 
						|
	K8sApiPath                = "/api"
 | 
						|
	DataVolumeName            = "pgdata"
 | 
						|
	PasswordLength            = 64
 | 
						|
	UserSecretTemplate        = "%s.%s.credentials." + TPRName + "." + TPRVendor // Username, ClusterName
 | 
						|
	ZalandoDnsNameAnnotation  = "external-dns.alpha.kubernetes.io/hostname"
 | 
						|
	ElbTimeoutAnnotationName  = "service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout"
 | 
						|
	ElbTimeoutAnnotationValue = "3600"
 | 
						|
	KubeIAmAnnotation         = "iam.amazonaws.com/role"
 | 
						|
	ResourceName              = TPRName + "s"
 | 
						|
	PodRoleMaster             = "master"
 | 
						|
	PodRoleReplica            = "replica"
 | 
						|
	SuperuserKeyName          = "superuser"
 | 
						|
	ReplicationUserKeyName    = "replication"
 | 
						|
	RoleFlagSuperuser         = "SUPERUSER"
 | 
						|
	RoleFlagInherit           = "INHERIT"
 | 
						|
	RoleFlagLogin             = "LOGIN"
 | 
						|
	RoleFlagNoLogin           = "NOLOGIN"
 | 
						|
	RoleFlagCreateRole        = "CREATEROLE"
 | 
						|
	RoleFlagCreateDB          = "CREATEDB"
 | 
						|
)
 |