mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-06 05:21:53 +02:00
Watch the namespace where operator deploys to unless told otherwise
This commit is contained in:
@@ -37,7 +37,10 @@ func init() {
|
||||
if configMapRawName != "" {
|
||||
|
||||
operatorNamespace := string(operatorNamespaceBytes)
|
||||
config.Namespace = operatorNamespace
|
||||
|
||||
namespacedConfigMapName := operatorNamespace + "/" + configMapRawName
|
||||
|
||||
log.Printf("Looking for the operator configmap at the same namespace the operator resides. Fully qualified configmap name: %v", namespacedConfigMapName)
|
||||
|
||||
err := config.ConfigMapName.Decode(namespacedConfigMapName)
|
||||
|
||||
Reference in New Issue
Block a user