We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54757a0 commit bf7100fCopy full SHA for bf7100f
1 file changed
router/image/templates/generate-certs
@@ -27,13 +27,17 @@ while read etcd_path; do
27
{{ range $cert := .deis_certs }}{{ if $cert.Nodes }}
28
{{ range $certFields := $cert.Nodes }}
29
{{ if eq (Base $certFields.Key) "cert" }}
30
+ if [[ "$(basename $etcd_path)" == "{{ Base $cert.Key }}" ]]; then
31
cat << EOF > "$CERT_PATH/$(basename $etcd_path).cert"
32
{{ $certFields.Value }}
33
EOF
34
+ fi
35
{{ else if eq (Base $certFields.Key) "key" }}
36
37
cat << EOF > "$KEY_PATH/$(basename $etcd_path).key"
38
39
40
41
{{ end }}
42
43
{{ end }}{{ end }}
0 commit comments