mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-05 23:21:17 +02:00
Respond to code review
This commit is contained in:
@@ -67,7 +67,7 @@ type Config struct {
|
||||
Resources
|
||||
Auth
|
||||
Scalyr
|
||||
WatchedNamespace string `name:"watched_namespace"` // may be v1.NamespaceAll, meaning watch all namespaces
|
||||
WatchedNamespace string `name:"watched_namespace"` // may be "*", meaning watch all namespaces
|
||||
EtcdHost string `name:"etcd_host" default:"etcd-client.default.svc.cluster.local:2379"`
|
||||
DockerImage string `name:"docker_image" default:"registry.opensource.zalan.do/acid/spiloprivate-9.6:1.2-p4"`
|
||||
ServiceAccountName string `name:"service_account_name" default:"operator"`
|
||||
|
||||
@@ -119,3 +119,10 @@ func MapContains(haystack, needle map[string]string) bool {
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
func Coalesce(val, defaultVal string) string {
|
||||
if val == "" {
|
||||
return defaultVal
|
||||
}
|
||||
return val
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user