Commit c5b3cc9
Pavel Zaytsev
Allow user env vars to override operator-generated ones
This change modifies appendEnvVars() to allow environment variables
defined in the PostgreSQL CRD spec.env to override operator-generated
environment variables (like SPILO_CONFIGURATION) instead of being
silently ignored.
Previously, if an env var already existed in the list, user-provided
values were skipped. Now, user values take precedence and replace
the operator-generated ones.
This enables users to customize SPILO_CONFIGURATION and other
operator-managed env vars through the CRD, which is useful for
adding custom Patroni DCS configuration like ignore_slots.1 parent 2c57498 commit c5b3cc9
1 file changed
+14
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1088 | 1088 | | |
1089 | 1089 | | |
1090 | 1090 | | |
1091 | | - | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
1092 | 1105 | | |
1093 | 1106 | | |
1094 | 1107 | | |
| |||
0 commit comments