Commit 8cd1c341 authored by Fabian Jucker's avatar Fabian Jucker

Provide k8s 1.8 backwards compatibility for init-container secret copying, solves #1208

parent 37474df2
---
title: Provide Kubernetes 1.8 backwards compatibility for init-container secret copying
merge_request:
author:
type: fixed
......@@ -13,12 +13,12 @@ secret_dir="/init-secrets"
for secret in {{ default "shell gitaly registry postgres rails-secrets gitlab-workhorse" $.required }} ; do
mkdir -p "${secret_dir}/${secret}"
cp -v -r "${config_dir}/${secret}/." "${secret_dir}/${secret}/"
cp -v -r -L "${config_dir}/${secret}/." "${secret_dir}/${secret}/"
done
for secret in {{ default "redis minio objectstorage ldap omniauth smtp" $.optional }} ; do
if [ -e "${config_dir}/${secret}" ]; then
mkdir -p "${secret_dir}/${secret}"
cp -v -r "${config_dir}/${secret}/." "${secret_dir}/${secret}/"
cp -v -r -L "${config_dir}/${secret}/." "${secret_dir}/${secret}/"
fi
done
{{ end -}}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment