This repository was archived by the owner on May 30, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +29
-18
lines changed
validator/templates/storageclasses Expand file tree Collapse file tree 4 files changed +29
-18
lines changed Original file line number Diff line number Diff line change 185
185
186
186
cf_status=$( helm status $RELEASE 2> /dev/null | awk -F' : ' ' $1 == "STATUS" {print $2}' )
187
187
188
- [ -z " ${cf_status} " ] && SEEDJOBS=" --set global.seedJobs=true" && CERTJOBS=" --set global.certsJobs=true"
188
+ if [[ -z " ${cf_status} " ]]; then
189
+ SEEDJOBS=" --set global.seedJobs=true"
190
+ CERTJOBS=" --set global.certsJobs=true"
191
+ IN_INSTALLER=" true" ${DIR} /run-validator.sh
192
+ if [[ $? != 0 ]]; then
193
+ echo " Validation failed"
194
+ exit 1
195
+ fi
196
+ fi
197
+
189
198
190
199
msg " Installing/Updating Codefresh..."
191
200
helm upgrade ${RELEASE} codefresh-onprem-${CHANNEL} /codefresh \
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
#
3
-
3
+ echo " Starting validator "
4
4
DIR=$( dirname $0 )
5
5
RELEASE=cf-validator
6
6
CHART=${DIR} /validator
15
15
16
16
source ${DIR} /scripts/helpers.sh
17
17
18
- approveContext
18
+ if [[ -z " ${IN_INSTALLER} " ]]; then
19
+ approveContext
19
20
20
- msg " Checking helm binary on your system"
21
- checkHelmInstalled " helm"
21
+ msg " Checking helm binary on your system"
22
+ checkHelmInstalled " helm"
22
23
23
- msg " Checking if tiller is installed on kubernetes cluster"
24
- checkTillerInstalled
24
+ msg " Checking if tiller is installed on kubernetes cluster"
25
+ checkTillerInstalled
25
26
26
- msg " Checking tiller status..."
27
- checkTillerStatus
27
+ msg " Checking tiller status..."
28
+ checkTillerStatus
29
+ fi
28
30
29
31
# # Get default storage class
30
32
SC_DEFAULT_QUERY=' {{ range .items }}'
Original file line number Diff line number Diff line change 5
5
6
6
{{/* Fill dict persistent services */}}
7
7
{{- $persistentServices := dict -}}
8
- {{- $persistentServiceNames := list "mongodb" "postgresql" "consul" "redis" "rabbitmq" "registry" "cronus" -}}
8
+ {{- $persistentServiceNames := list "mongodb" "postgresql" "consul" "redis" "rabbitmq" "registry" "cronus" "runner" "builder" -}}
9
9
{{- range $persistentServiceNames -}}
10
10
{{- if (index $.Values . ) -}}
11
11
{{- $_ := set $persistentServices . (index $.Values .) -}}
@@ -104,12 +104,14 @@ spec:
104
104
---
105
105
{{- end -}}
106
106
107
+ {{- end -}}
108
+
109
+ ---
107
110
apiVersion : v1
108
111
kind : ConfigMap
109
112
metadata :
110
113
name : test-pvc-dummy-cm
111
114
labels :
112
115
app : {{ $.Release.Name }}
113
116
data :
114
- dd : " 11"
115
- {{- end -}}
117
+ dd : " 11"
Original file line number Diff line number Diff line change @@ -139,19 +139,17 @@ builder:
139
139
## Set time to run docker cleaner
140
140
dockerCleanerCron: 0 0 * * *
141
141
## Override builder PV initial size
142
- varLibDockerVolume:
143
- storageSize: 100Gi
144
- storageClass:
142
+ storageSize: 100Gi
143
+ storageClass:
145
144
#existingPvc: cf-builder-0
146
145
147
146
runner:
148
147
nodeSelector: { }
149
148
## Set time to run docker cleaner
150
149
dockerCleanerCron: 0 0 * * *
151
150
## Override runner PV initial size
152
- varLibDockerVolume:
153
- storageSize: 100Gi
154
- storageClass:
151
+ storageSize: 100Gi
152
+ storageClass:
155
153
#existingPvc: cf-runner-0
156
154
157
155
You can’t perform that action at this time.
0 commit comments