Skip to content

Commit 957e872

Browse files
📝 "*" can be used for UI TARGET_NAMESPACE option (#2412)
Similar to "WATCHED_NAMESPACE" for the operator itself, "*" is a valid option for the UI. Without it clusters in multiple namespaces - rather, those not in the TARGET_NAMESPACE - will not show in the UI. Which can be confusing for users.
1 parent 39fcf2e commit 957e872

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

charts/postgres-operator-ui/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ envs:
4545
operatorApiUrl: "http://postgres-operator:8080"
4646
operatorClusterNameLabel: "cluster-name"
4747
resourcesVisible: "False"
48+
# Set to "*" to allow viewing/creation of clusters in all namespaces
4849
targetNamespace: "default"
4950
teams:
5051
- "acid"

docs/administrator.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1348,6 +1348,8 @@ You can also expose the operator API through a [service](https://github.com/zala
13481348
Some displayed options can be disabled from UI using simple flags under the
13491349
`OPERATOR_UI_CONFIG` field in the deployment.
13501350

1351+
The viewing and creation of clusters within the UI is limited to the namespace specified by the `TARGET_NAMESPACE` option. To allow the creation and viewing of clusters in all namespaces, set `TARGET_NAMESPACE` to `*`.
1352+
13511353
### Deploy the UI on K8s
13521354

13531355
Now, apply all manifests from the `ui/manifests` folder to deploy the Postgres

ui/manifests/deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ spec:
4545
- name: "RESOURCES_VISIBLE"
4646
value: "False"
4747
- name: "TARGET_NAMESPACE"
48+
# Set to "*" to allow viewing/creation of clusters in all namespaces
4849
value: "default"
4950
- name: "TEAMS"
5051
value: |-

0 commit comments

Comments
 (0)