From 734da6aec37c6fc0ded7a6185ab0084426febffb Mon Sep 17 00:00:00 2001 From: asubedy Date: Thu, 13 Jul 2023 22:55:35 +0545 Subject: [PATCH] added minified command on deploy scripts Signed-off-by: asubedy --- .github/workflows/scripts/istio_deploy.sh | 2 ++ .github/workflows/scripts/linkerd_deploy.sh | 2 ++ .github/workflows/scripts/osm_deploy.sh | 2 ++ 3 files changed, 6 insertions(+) diff --git a/.github/workflows/scripts/istio_deploy.sh b/.github/workflows/scripts/istio_deploy.sh index 116774a..dd08306 100644 --- a/.github/workflows/scripts/istio_deploy.sh +++ b/.github/workflows/scripts/istio_deploy.sh @@ -9,6 +9,8 @@ export SERVICE_MESH='ISTIO' # Check if mesheryctl is present, else install it if ! [ -x "$(command -v mesheryctl)" ]; then + kubectl config view --minify --flatten > ~/minified_config + mv ~/minified_config ~/.kube/config echo 'mesheryctl is not installed. Installing mesheryctl client... Standby... (Starting Meshery as well...)' >&2 curl -L https://meshery.io/install | ADAPTERS=istio PLATFORM=kubernetes bash - fi diff --git a/.github/workflows/scripts/linkerd_deploy.sh b/.github/workflows/scripts/linkerd_deploy.sh index f8ecd89..47a8a3a 100644 --- a/.github/workflows/scripts/linkerd_deploy.sh +++ b/.github/workflows/scripts/linkerd_deploy.sh @@ -10,6 +10,8 @@ export SERVICE_MESH='LINKERD' # Check if mesheryctl is present, else install it if ! [ -x "$(command -v mesheryctl)" ]; then + kubectl config view --minify --flatten > ~/minified_config + mv ~/minified_config ~/.kube/config echo 'mesheryctl is not installed. Installing mesheryctl client... Standby... (Starting Meshery as well...)' >&2 curl -L https://meshery.io/install | ADAPTERS=linkerd PLATFORM=kubernetes bash - fi diff --git a/.github/workflows/scripts/osm_deploy.sh b/.github/workflows/scripts/osm_deploy.sh index 5ee8d21..e9e0bcf 100755 --- a/.github/workflows/scripts/osm_deploy.sh +++ b/.github/workflows/scripts/osm_deploy.sh @@ -10,6 +10,8 @@ export SERVICE_MESH='OPEN_SERVICE_MESH' # Check if mesheryctl is present, else install it if ! [ -x "$(command -v mesheryctl)" ]; then + kubectl config view --minify --flatten > ~/minified_config + mv ~/minified_config ~/.kube/config echo 'mesheryctl is not installed. Installing mesheryctl client... Standby... (Starting Meshery as well...)' >&2 curl -L https://meshery.io/install | ADAPTERS=osm PLATFORM=kubernetes bash - fi