diff --git a/ironic/templates/configmap-bin.yaml b/ironic/templates/configmap-bin.yaml index 1b6852c8eb..4b2d254b67 100644 --- a/ironic/templates/configmap-bin.yaml +++ b/ironic/templates/configmap-bin.yaml @@ -36,6 +36,8 @@ data: {{ tuple "bin/_retreive-cleaning-network.sh.tpl" . | include "helm-toolkit.utils.template" | indent 4 }} retreive-swift-config.sh: | {{ tuple "bin/_retreive-swift-config.sh.tpl" . | include "helm-toolkit.utils.template" | indent 4 }} + db-drop.py: | +{{- include "helm-toolkit.scripts.db_drop" . | indent 4 }} db-init.py: | {{- include "helm-toolkit.scripts.db_init" . | indent 4 }} db-sync.sh: | diff --git a/ironic/values.yaml b/ironic/values.yaml index 30fdf8ef54..eafebacc29 100644 --- a/ironic/values.yaml +++ b/ironic/values.yaml @@ -37,6 +37,7 @@ images: ironic_retrive_swift_config: docker.io/openstackhelm/heat:ocata # Bootstrap image requires curl bootstrap: docker.io/openstackhelm/heat:ocata + db_drop: docker.io/openstackhelm/heat:ocata db_init: docker.io/openstackhelm/heat:ocata ironic_db_sync: docker.io/openstackhelm/ironic:ocata ks_user: docker.io/openstackhelm/heat:ocata @@ -301,6 +302,10 @@ dependencies: service: baremetal - endpoint: internal service: oslo_messaging + db_drop: + services: + - endpoint: internal + service: oslo_db db_init: services: - endpoint: internal @@ -596,6 +601,13 @@ pod: limits: memory: "1024Mi" cpu: "2000m" + db_drop: + requests: + memory: "128Mi" + cpu: "100m" + limits: + memory: "1024Mi" + cpu: "2000m" db_init: requests: memory: "128Mi"