From bc44940835db0b81e20f380812648bfc6d99cde3 Mon Sep 17 00:00:00 2001 From: Rohit Ramkumar Date: Tue, 11 Dec 2018 17:22:14 -0800 Subject: [PATCH] Modify dns addons dir to prepend 0 on dir name. Ensures proper ordering upon creation by addon manager --- cluster/gce/gci/configure-helper.sh | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/cluster/gce/gci/configure-helper.sh b/cluster/gce/gci/configure-helper.sh index d6550212ef..81a996af18 100644 --- a/cluster/gce/gci/configure-helper.sh +++ b/cluster/gce/gci/configure-helper.sh @@ -2296,8 +2296,9 @@ function update-dashboard-controller { # Sets up the manifests of coreDNS for k8s addons. function setup-coredns-manifest { - local -r coredns_file="${dst_dir}/dns/coredns/coredns.yaml" - mv "${dst_dir}/dns/coredns/coredns.yaml.in" "${coredns_file}" + setup-addon-manifests "addons" "0-dns/coredns" + local -r coredns_file="${dst_dir}/0-dns/coredns/coredns.yaml" + mv "${dst_dir}/0-dns/coredns/coredns.yaml.in" "${coredns_file}" # Replace the salt configurations with variable values. sed -i -e "s@{{ *pillar\['dns_domain'\] *}}@${DNS_DOMAIN}@g" "${coredns_file}" sed -i -e "s@{{ *pillar\['dns_server'\] *}}@${DNS_SERVER_IP}@g" "${coredns_file}" @@ -2340,8 +2341,9 @@ function setup-fluentd { # Sets up the manifests of kube-dns for k8s addons. function setup-kube-dns-manifest { - local -r kubedns_file="${dst_dir}/dns/kube-dns/kube-dns.yaml" - mv "${dst_dir}/dns/kube-dns/kube-dns.yaml.in" "${kubedns_file}" + setup-addon-manifests "addons" "0-dns/kube-dns" + local -r kubedns_file="${dst_dir}/0-dns/kube-dns/kube-dns.yaml" + mv "${dst_dir}/0-dns/kube-dns/kube-dns.yaml.in" "${kubedns_file}" if [ -n "${CUSTOM_KUBE_DNS_YAML:-}" ]; then # Replace with custom GKE kube-dns deployment. cat > "${kubedns_file}" <