File tree 2 files changed +25
-1
lines changed
2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ apiVersion: v2
2
2
name : plural
3
3
description : A helm chart for installing plural
4
4
appVersion : 0.11.8
5
- version : 0.10.94
5
+ version : 0.10.95
6
6
dependencies :
7
7
- name : hydra
8
8
version : 0.26.5
Original file line number Diff line number Diff line change 55
55
resources :
56
56
{{- toYaml .Values.cron.resources | nindent 10 }}
57
57
{{ end }}
58
+ {{ if .Values.createHydraDb }}
59
+ ---
60
+ apiVersion : batch/v1
61
+ kind : Job
62
+ metadata :
63
+ name : create-hydra-db
64
+ spec :
65
+ template :
66
+ spec :
67
+ restartPolicy : Never
68
+ serviceAccountName : plural
69
+ containers :
70
+ - name : createdb
71
+ image : postgres:14
72
+ command :
73
+ - " /bin/sh"
74
+ - " -c"
75
+ - |
76
+ psql "$POSTGRES_URL" -c "CREATE DATABASE hydra"
77
+ envFrom :
78
+ - secretRef :
79
+ name : plural-env
80
+ backoffLimit : 5
81
+ {{ end }}
58
82
---
59
83
apiVersion : batch/v1
60
84
kind : Job
You can’t perform that action at this time.
0 commit comments