Fix copy command

This commit is contained in:
2022-03-21 16:14:44 +03:00
parent 68b5db014b
commit 516b6ac0d3
3 changed files with 4 additions and 7 deletions

View File

@ -2,6 +2,6 @@ apiVersion: v2
name: hasura
description: A Helm chart for Kubernetes
type: application
version: 0.2.3
version: 0.2.4
appVersion: v2.3.1
icon: https://raw.githubusercontent.com/hasura/graphql-engine/master/assets/brand/powered_by_hasura_primary_lightbg.svg

View File

@ -27,11 +27,7 @@ spec:
initContainers:
- name: copy
image: "{{ .Values.migrations.image.registry }}/{{ .Values.migrations.image.repository }}:{{ .Values.migrations.image.tag | default "latest" }}"
command:
- cp
- -R
- '*'
- /shared/data
command: ["/bin/sh", "-c", "cp -R /{{ .Values.migrations.image.path }}/* /shared-data/"]
workingDir: /data
volumeMounts:
- name: data

View File

@ -15,12 +15,13 @@ image:
extraEnvVarsSecret: ""
migrations:
# Docker image which contain migrations,metadata,config.yml inside /data directory
# Docker image which contain migrations,metadata,config.yml
image:
registry: *registry
repository: ""
tag: ""
pullSecrets: [ ]
path: /data
nameOverride: ""
fullnameOverride: ""