apiVersion: v1
kind: Pod
metadata:
  name: airbyte-secrets-migration
spec:
  containers:
    - name: airbyte-secrets-migration
      image: airbyte/secrets-migration:dev
      env:
        - name: DATABASE_PASSWORD
          valueFrom:
            secretKeyRef:
              name: airbyte-secrets
              key: DATABASE_PASSWORD
        - name: DATABASE_URL
          valueFrom:
            configMapKeyRef:
              name: airbyte-env
              key: DATABASE_URL
        - name: DATABASE_USER
          valueFrom:
            secretKeyRef:
              name: airbyte-secrets
              key: DATABASE_USER
  restartPolicy: Never
