diff --git a/helm-charts/understackdb/README.md b/helm-charts/understackdb/README.md index 82327d0f3..bb8853ae2 100644 --- a/helm-charts/understackdb/README.md +++ b/helm-charts/understackdb/README.md @@ -36,7 +36,8 @@ Helm chart to deploy MariaDB Database instances for Understack | grants[0].table | string | `"*"` | list of tables that grant is for | | image | string | `"mariadb:11.0.3"` | | | imagePullPolicy | string | `"IfNotPresent"` | | -| instanceName | string | mariadb | instanceName is the name of the database instance | +| instanceName | string | `"mariadb"` | instanceName is the name of the database instance | +| instanceNamespace | string | `"openstack"` | instanceNamespace is the namespace where the MariaDB will be created | | rootPasswordSecretKeyRef | object | name: mariadb, key: root-password, generate: false | rootPasswordSecretKeyRef is a reference to a Secret containing the root password | | rootPasswordSecretKeyRef.generate | bool | false | generate determines whether a password should be generated if it's missing | | rootPasswordSecretKeyRef.key | string | root-password | key is the key in the Secret containing the root password | diff --git a/helm-charts/understackdb/templates/mariadb-instance.yaml b/helm-charts/understackdb/templates/mariadb-instance.yaml index 9a485e8f2..fb1f231bc 100644 --- a/helm-charts/understackdb/templates/mariadb-instance.yaml +++ b/helm-charts/understackdb/templates/mariadb-instance.yaml @@ -3,6 +3,7 @@ apiVersion: k8s.mariadb.com/v1alpha1 kind: MariaDB metadata: name: {{ .Values.instanceName }} + namespace: {{ .Values.instanceNamespace }} spec: rootPasswordSecretKeyRef: name: {{ .Values.rootPasswordSecretKeyRef.name }} diff --git a/helm-charts/understackdb/values.yaml b/helm-charts/understackdb/values.yaml index 58e5ec7ca..6ab2e226d 100644 --- a/helm-charts/understackdb/values.yaml +++ b/helm-charts/understackdb/values.yaml @@ -1,7 +1,8 @@ # Default values for understackdb. # -- instanceName is the name of the database instance -# @default -- mariadb instanceName: mariadb +# -- instanceNamespace is the namespace where the MariaDB will be created +instanceNamespace: openstack # -- rootPasswordSecretKeyRef is a reference to a Secret containing the root password # @default -- name: mariadb, key: root-password, generate: false rootPasswordSecretKeyRef: