Skip to content

Commit

Permalink
update db subchart
Browse files Browse the repository at this point in the history
Signed-off-by: Mayank Shah <[email protected]>
  • Loading branch information
mayankshah1607 committed Oct 30, 2024
1 parent 13be8d2 commit 7156445
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions charts/everest/charts/everest-db-namespace/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ A sub-chart for provisioning Everest DB namespaces.
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| cleanupOnUninstall | bool | `true` | If set, cleans up the DB resources on uninstall. |
| compatibility.openshift | bool | `false` | If set, enable OpenShift compatibility. |
| namespaceOverride | string | `""` | Namespace override. Defaults to the value of .Release.Namespace. |
| olm.namespace | string | `"everest-olm"` | Namespace where OLM is installed in the cluster. |
| pg | bool | `true` | If set, installs the Percona Postgresql Server operator. |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,13 @@ Allows overriding the install namespace in combined charts.
{{- end }}

{{/*
Allow overriding OLM namespacse
Allow overriding OLM namespace
*/}}
{{- define "db.olmNamespace"}}
{{- define "everest.olmNamespace"}}
{{- if .Values.compatibility.openshift }}
{{- "openshift-marketplace" }}
{{- else }}
{{- .Values.olm.namespace }}
{{- end }}
{{- end }}

3 changes: 3 additions & 0 deletions charts/everest/charts/everest-db-namespace/values.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
compatibility:
# -- If set, enable OpenShift compatibility.
openshift: false
# -- Namespace override. Defaults to the value of .Release.Namespace.
namespaceOverride: ""
# -- If set, enabled sending telemetry information.
Expand Down

0 comments on commit 7156445

Please sign in to comment.