You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 30, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+28-18Lines changed: 28 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -12,29 +12,39 @@ Before running `cf-onprem` script it is needed to:
12
12
* make configuration changes specific for each customer
13
13
14
14
There are three files that customize `codefresh` chart deployment:
15
-
*`sa-dec.json` contains GCP service account that enables a customer to pull codefresh images
16
-
*`values.yaml` contains different parameters for chart customization
17
-
*`values-dec.yaml` contains secrets such as `githubClientSecret`, etc.
15
+
*`values.yaml.tpl` contains template of values.yaml for different parameters for chart customization
18
16
19
-
Also to be able to encrypt `*-dec.*` files and decrypt `*-enc.*` files `aws cli` should be configured with permissions to use AWS KMS service and [sops](https://github.com/mozilla/sops/releases) binary installed on your system.
status=$(kubectl -nkube-system get pod -l app=helm -l name=tiller -o=go-template --template='{{ range $i, $v := .items }}{{ if eq $v.status.phase "Running" }}{{ $v.status.phase }}{{ end }}{{ end }}')
114
-
if [ "$status"=="Running" ];then
115
-
msg "Tiller is installed and running"
116
-
helm init -c
117
-
helm_version=$(helm version --client --short | sed 's/.*\: v//'| sed 's/+.*//')
118
-
tiller_version=$(helm version --server --short | sed 's/.*\: v//'| sed 's/+.*//')
119
-
if [[ !"$YES"=='true' ]] && [ $(ver $tiller_version)-lt$(ver $helm_version) ];then
120
-
warning "You're running helm v$helm_version but tiller has v$tiller_version."
121
-
read -p " Do you want to upgrade tiller to v$helm_version ? [y/n] " yn
if [[ "$YES"=='true' ]] && [ $(ver $tiller_version)-lt$(ver $helm_version) ];then
133
-
err "You're running helm v$helm_version but tiller has v$tiller_version . You need to upgrade tiller ! Exiting..."
134
-
fi
135
-
else
136
-
warning "Unable to determine tiller at its default location."
137
-
if [[ !"$YES"=='true' ]];then
138
-
read -p " Do you want to deploy tiller ? [y/n] " yn
139
-
case${yn}in
140
-
y|Y)
141
-
kubectl create -f ./tiller-rbac-config.yaml
142
-
helm init --service-account tiller --wait
143
-
;;
144
-
*)
145
-
err "Need to deploy tiller ! Exiting..."
146
-
exit 1
147
-
;;
148
-
esac
149
-
else
150
-
kubectl create -f ./tiller-rbac-config.yaml
151
-
helm init --service-account tiller --wait
152
-
fi
153
-
fi
154
-
155
-
}
156
-
157
-
checkTillerStatus() {
158
-
whiletrue;do
159
-
status=$(kubectl -nkube-system get pod -l app=helm -l name=tiller -o=go-template --template='{{ range $i, $v := .items }}{{ if eq $v.status.phase "Running" }}{{ $v.status.phase }}{{ end }}{{ end }}')
160
-
161
-
msg "Tiller status = $status"
162
-
[ "$status"=="Running" ] &&break
163
-
164
-
msg "Sleeping 5 seconds ..."
165
-
sleep 5
166
-
167
-
done
168
-
}
169
-
170
29
generateWebTlsValuesFile() {
171
30
172
31
WEBTLSKEY=$(cat ${WebTlsKey}| sed 's/^/ /')
@@ -177,6 +36,11 @@ WEBTLSCERT_CFUI=$(cat ${WebTlsCert} | sed 's/^/ /')
177
36
178
37
cat <<-EOF >${WEBTLS_VALUES_FILE}
179
38
---
39
+
ingress:
40
+
webTlsSecretName: "star.codefresh.io"
41
+
nomios:
42
+
ingress:
43
+
webTlsSecretName: "star.codefresh.io"
180
44
webTLS:
181
45
secretName: star.codefresh.io
182
46
key: |
@@ -199,7 +63,7 @@ EOF
199
63
200
64
# run_as_root
201
65
202
-
while [[ $1=~ ^(-(y)|--(yes|web-tls-key|web-tls-cert|set)) ]]
66
+
while [[ $1=~ ^(-(y)|--(yes|web-tls-key|web-tls-cert|set|debug)) ]]
0 commit comments