You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a5799b8
Browse filesBrowse the repository at this point in the historyBrowse files
feat(CNP-7965): accept env field in extension configuration CRD (#10387)
Allow the CRD schema for Cluster, ImageCatalog, and ClusterImageCatalog
to include the env field introduced in 1.29, letting users share a
single manifest across clusters running different CNPG versions.
Signed-off-by: Marco Nenciarini <[email protected]>
Copy file name to clipboardExpand all lines: docs/src/cloudnative-pg.v1.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -990,6 +990,26 @@ _Appears in:_
990
990
|`dynamic_library_path`_string array_| The list of directories inside the image which should be added to dynamic_library_path.<br />If not defined, defaults to "/lib". ||||
991
991
|`ld_library_path`_string array_| The list of directories inside the image which should be added to ld_library_path. ||||
992
992
|`bin_path`_string array_| A list of directories within the image to be appended to the<br />PostgreSQL process's `PATH` environment variable. ||||
993
+
|`env`_[ExtensionEnvVar](#extensionenvvar) array_| Env is a list of custom environment variables to be set in the<br />PostgreSQL process for this extension. It is the responsibility of the<br />cluster administrator to ensure the variables are correct for the<br />specific extension. Note that changes to these variables require<br />a manual cluster restart to take effect. ||||
994
+
995
+
996
+
#### ExtensionEnvVar
997
+
998
+
999
+
1000
+
ExtensionEnvVar defines an environment variable for a specific extension
|`name`_string_| Name of the environment variable to be injected into the<br />PostgreSQL process. | True || MinLength: 1 <br />Pattern: `^[a-zA-Z_][a-zA-Z0-9_]*$` <br /> |
1012
+
|`value`_string_| Value of the environment variable. CloudNativePG performs a direct<br />replacement of this value, with support for placeholder expansion.<br />The $\{`image_root`\} placeholder resolves to the absolute mount path<br />of the extension's volume (e.g., `/extensions/my-extension`). This<br />is particularly useful for allowing applications or libraries to<br />locate specific directories within the mounted image.<br />Unrecognized placeholders are rejected. To include a literal $\{...\}<br />in the value, escape it as $$\{...\}. | True || MinLength: 1 <br /> |
0 commit comments