From d2a4c3d012d7863221ae059cc9cb7035fcdfcfb4 Mon Sep 17 00:00:00 2001 From: Angie Wang Date: Mon, 14 Jan 2019 14:53:10 -0500 Subject: [PATCH] Helm repository replication This updates the helm-upload to stop syncing charts to standby controller as charts are changed to store in drbd fs. Story: 2004520 Task: 28343 Depends-On: https://review.openstack.org/#/c/630763/ Change-Id: I12f17fae6124650d878ba7a560f94b7a8ed36e56 Signed-off-by: Angie Wang --- kubernetes/helm/centos/files/helm-upload | 27 ------------------------ 1 file changed, 27 deletions(-) diff --git a/kubernetes/helm/centos/files/helm-upload b/kubernetes/helm/centos/files/helm-upload index a7f8dcde5..824b7c93d 100644 --- a/kubernetes/helm/centos/files/helm-upload +++ b/kubernetes/helm/centos/files/helm-upload @@ -49,31 +49,4 @@ if [ $REINDEX -eq 1 ]; then /usr/sbin/helm repo index $REPO_DIR fi -if [ ! -f "/etc/platform/simplex" ]; then - # We're not a one node system, copy the files to the other - # controller if we can - if [ $HOSTNAME == "controller-0" ]; then - TARGET="controller-1" - else - TARGET="controller-0" - fi - - # We've modified etc/rsyncd.conf to allow access to /www/helm_charts - # To avoid races, copy over the index file last. - rsync -acv --exclude=index.yaml ${REPO_DIR}/ rsync://${TARGET}/helm_charts - if [ $? -ne 0 ]; then - echo Problem syncing helm charts to $TARGET - RETVAL=1 - fi - - rsync -acv ${REPO_DIR}/index.yaml rsync://${TARGET}/helm_charts - if [ $? -ne 0 ]; then - echo Problem syncing helm chart index file to $TARGET - RETVAL=1 - fi -fi - -# We also need to sync the helm charts on node startup -# in case they were added while the node was down. - exit $RETVAL