File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# !/usr/bin/env pwsh
22
3- az aks get-credentials -- resource- group ${AZURE_RESOURCE_GROUP} -- name ${AZURE_AKS_CLUSTER_NAME} -- overwrite- existing
3+ # #########################################################
4+ # Check kubelogin and install if not exists
5+ # #########################################################
6+ if (-not (Get-Command kubelogin - ErrorAction SilentlyContinue)) {
7+ az aks install-cli
8+ }
49
510# ##########################################################
611# Create the custom-values.yaml file
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- az aks get-credentials --resource-group ${AZURE_RESOURCE_GROUP} --name ${AZURE_AKS_CLUSTER_NAME} --overwrite-existing
3+ # #########################################################
4+ # Check kubelogin and install if not exists
5+ # #########################################################
6+ if ! command -v kubelogin & > /dev/null; then
7+ echo " kubelogin could not be found. Installing kubelogin..."
8+ az aks install-cli
9+ fi
410
511# #########################################################
612# Create the custom-values.yaml file
You can’t perform that action at this time.
0 commit comments