@@ -264,6 +264,13 @@ configuration they are grouped under the `kubernetes` key.
264264 [ admin docs] ( ../administrator.md#pod-disruption-budget ) for more information.
265265 Default is true.
266266
267+ * ** enable_cross_namespace_secrets**
268+ To allow secrets in a different namespace other than the Postgres cluster
269+ namespace. Once enabled, specify the namespace in the user name under the
270+ ` users ` section in the form ` {namespace}.{username} ` . The operator will then
271+ create the user secret in that namespace. The part after the first ` . ` is
272+ considered to be the user name. The default is ` false ` .
273+
267274* ** enable_init_containers**
268275 global option to allow for creating init containers in the cluster manifest to
269276 run actions before Spilo is started. Default is true.
@@ -275,13 +282,12 @@ configuration they are grouped under the `kubernetes` key.
275282
276283* ** secret_name_template**
277284 a template for the name of the database user secrets generated by the
278- operator. ` {namespace} ` is replaced with name of the namespace (if cross
279- namespace secrets are enabled via EnableNamespacedSecret flag, otherwise the
280- secret is in cluster's namespace and in that case it is not present in secret
281- name), ` {username} ` is replaced with name of the secret, ` {cluster} ` with the
282- name of the cluster, ` {tprkind} ` with the kind of CRD (formerly known as TPR)
283- and ` {tprgroup} ` with the group of the CRD. No other placeholders are allowed.
284- The default is
285+ operator. ` {namespace} ` is replaced with name of the namespace if
286+ ` enable_cross_namespace_secret ` is set, otherwise the
287+ secret is in cluster's namespace. ` {username} ` is replaced with name of the
288+ secret, ` {cluster} ` with the name of the cluster, ` {tprkind} ` with the kind
289+ of CRD (formerly known as TPR) and ` {tprgroup} ` with the group of the CRD.
290+ No other placeholders are allowed. The default is
285291 ` {namespace}.{username}.{cluster}.credentials.{tprkind}.{tprgroup} ` .
286292
287293* ** cluster_domain**
0 commit comments