add migrate
All checks were successful
lint-test-helm / helm-lint (push) Successful in 8s
renovate / renovate (push) Successful in 1m11s

This commit is contained in:
2025-10-03 00:59:09 -05:00
parent e20c93a1de
commit 671b8d1658

View File

@@ -101,6 +101,42 @@ komodo:
requests: requests:
cpu: 10m cpu: 10m
memory: 128Mi memory: 128Mi
copy:
image:
repository: ghcr.io/moghtech/komodo-cli
tag: latest
pullPolicy: IfNotPresent
command: ["km"]
args: ["database", "copy", "-y"]
env:
- name: DB_USERNAME
valueFrom:
secretKeyRef:
name: komodo-postgresql-17-cluster-app
key: user
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
name: komodo-postgresql-17-cluster-app
key: password
- name: KOMODO_DATABASE_URI
value: mongodb://$(DB_USERNAME):$(DB_PASSWORD)@localhost:27017/komodo?authMechanism=PLAIN
- name: KOMODO_DATABASE_DB_NAME
value: komodo
- name: TARGETDB_PASSWORD
valueFrom:
secretKeyRef:
name: komodo-postgresql-17-fdb-cluster-superuser
key: password
- name: TARGETDB_HOST
valueFrom:
secretKeyRef:
name: komodo-postgresql-17-fdb-cluster-superuser
key: host
- name: KOMODO_CLI_DATABASE_TARGET_URI
value: mongodb://postgres:${TARGETDB_PASSWORD}@${TARGETDB_HOST}:27017
- name: KOMODO_CLI_DATABASE_TARGET_DB_NAME
value: komodo
migrate: migrate:
type: deployment type: deployment
replicas: 1 replicas: 1