From 86a2c836ea16e105183890e7c08cf56fa8906526 Mon Sep 17 00:00:00 2001 From: Matt McEuen Date: Mon, 12 Apr 2021 11:02:26 -0500 Subject: [PATCH] init_site.sh: sed in managementConfiguration `airshipctl config` doesn't yet support setting a context's managementConfiguration value. This change adds in a sed to set all managementConfigurations to default. Change-Id: I0d8d0fb285a0b82e348640ef689eb3f0efb9e547 (cherry picked from commit bbd0ca28955c462077d05e2b77d18bfac8c47c45) --- tools/init_site.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/init_site.sh b/tools/init_site.sh index 8286a5442..702882f17 100755 --- a/tools/init_site.sh +++ b/tools/init_site.sh @@ -103,3 +103,6 @@ airshipctl config set-manifest "${SITE}" \ airshipctl config set-context ephemeral-cluster --manifest "${SITE}" airshipctl config set-context target-cluster --manifest "${SITE}" airshipctl config use-context ephemeral-cluster + +# TODO: use airshipctl for this once `airshipctl config` supports it +sed -i "s|^ managementConfiguration:.*| managementConfiguration: default|g" ~/.airship/config