📝 "*" 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.
This commit is contained in:
MisguidedEmails 2024-01-03 15:47:59 +00:00 committed by GitHub
parent 39fcf2e6b9
commit 957e8722c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 0 deletions

View File

@ -45,6 +45,7 @@ envs:
operatorApiUrl: "http://postgres-operator:8080" operatorApiUrl: "http://postgres-operator:8080"
operatorClusterNameLabel: "cluster-name" operatorClusterNameLabel: "cluster-name"
resourcesVisible: "False" resourcesVisible: "False"
# Set to "*" to allow viewing/creation of clusters in all namespaces
targetNamespace: "default" targetNamespace: "default"
teams: teams:
- "acid" - "acid"

View File

@ -1348,6 +1348,8 @@ You can also expose the operator API through a [service](https://github.com/zala
Some displayed options can be disabled from UI using simple flags under the Some displayed options can be disabled from UI using simple flags under the
`OPERATOR_UI_CONFIG` field in the deployment. `OPERATOR_UI_CONFIG` field in the deployment.
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 `*`.
### Deploy the UI on K8s ### Deploy the UI on K8s
Now, apply all manifests from the `ui/manifests` folder to deploy the Postgres Now, apply all manifests from the `ui/manifests` folder to deploy the Postgres

View File

@ -45,6 +45,7 @@ spec:
- name: "RESOURCES_VISIBLE" - name: "RESOURCES_VISIBLE"
value: "False" value: "False"
- name: "TARGET_NAMESPACE" - name: "TARGET_NAMESPACE"
# Set to "*" to allow viewing/creation of clusters in all namespaces
value: "default" value: "default"
- name: "TEAMS" - name: "TEAMS"
value: |- value: |-