Unverified Commit 8063774f authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #63898 from bowei/backport-ingress

Automatic merge from submit-queue. Cherrypick: Enable CUSTOM_INGRESS_YAML to replace the glbc manifest This allows for customized versions of the Ingress YAML separate from stock Kubernetes. ```release-note NONE ```
parents 9dee8190 bb7c2598
...@@ -2364,11 +2364,19 @@ function start-lb-controller { ...@@ -2364,11 +2364,19 @@ function start-lb-controller {
prepare-log-file /var/log/glbc.log prepare-log-file /var/log/glbc.log
setup-addon-manifests "addons" "cluster-loadbalancing/glbc" setup-addon-manifests "addons" "cluster-loadbalancing/glbc"
local -r glbc_manifest="${KUBE_HOME}/kube-manifests/kubernetes/gci-trusty/glbc.manifest" local -r src_manifest="${KUBE_HOME}/kube-manifests/kubernetes/gci-trusty/glbc.manifest"
if [[ ! -z "${GCE_GLBC_IMAGE:-}" ]]; then local -r dest_manifest="/etc/kubernetes/manifests/glbc.manifest"
sed -i "s@image:.*@image: ${GCE_GLBC_IMAGE}@" "${glbc_manifest}"
if [[ -n "${CUSTOM_INGRESS_YAML:-}" ]]; then
echo "${CUSTOM_INGRESS_YAML}" > "${dest_manifest}"
else
cp "${src_manifest}" "${dest_manifest}"
fi
# Override the glbc image if GCE_GLBC_IMAGE is specified.
if [[ -n "${GCE_GLBC_IMAGE:-}" ]]; then
sed -i "s|image:.*|image: ${GCE_GLBC_IMAGE}|" "${dest_manifest}"
fi fi
cp "${glbc_manifest}" /etc/kubernetes/manifests/
fi fi
} }
......
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