From cdf97b3ade50e224bfedaa79c46dcf4071d94580 Mon Sep 17 00:00:00 2001 From: Keerthana Routhu <111544828+k-routhu@users.noreply.github.com> Date: Wed, 15 Jan 2025 15:37:59 -0800 Subject: [PATCH] parameterize ip v4 & v6 Co-authored-by: Evan Baker Signed-off-by: Keerthana Routhu <111544828+k-routhu@users.noreply.github.com> --- hack/aks/Makefile | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/hack/aks/Makefile b/hack/aks/Makefile index e003b52042..81a8aff161 100644 --- a/hack/aks/Makefile +++ b/hack/aks/Makefile @@ -46,25 +46,22 @@ azcfg: ## Set the $AZCLI to use aks-preview @$(AZCLI) extension add --name aks-preview --yes @$(AZCLI) extension update --name aks-preview -public-ipv4: - $(AZCLI) network public-ip create --name $(PUBLIC_IPv4) \ +ip: + $(AZCLI) network public-ip create --name $(IP_PREFIX)-$(CLUSTER)-$(IPVERSION) \ --resource-group $(GROUP) \ --allocation-method Static \ --ip-tags $(IP_TAG) \ --location $(REGION) \ --sku Standard \ --tier Regional \ - --version IPv4 + --version IP$(IPVERSION) + +ipv4: + @$(MAKE) ip IPVERSION=v4 + +ipv6: + @$(MAKE) ip IPVERSION=v6 -public-ipv6: - $(AZCLI) network public-ip create --name $(PUBLIC_IPv6) \ - --resource-group $(GROUP) \ - --allocation-method Static \ - --ip-tags $(IP_TAG) \ - --location $(REGION) \ - --sku Standard \ - --tier Regional \ - --version IPv6 set-kubeconf: ## Adds the kubeconf for $CLUSTER $(AZCLI) aks get-credentials -n $(CLUSTER) -g $(GROUP)