From b3b926a54b01feb50d5ba537c8e3ccdbad598d2f Mon Sep 17 00:00:00 2001 From: Jont828 Date: Tue, 17 Dec 2024 14:24:33 -0500 Subject: [PATCH] Uncomment code for az storage --- Makefile | 4 +--- hack/create-dev-cluster.sh | 2 +- scripts/ci-build-azure-ccm.sh | 2 +- scripts/ci-build-kubernetes.sh | 2 +- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 23e42cd3c4a..a2562a58a7c 100644 --- a/Makefile +++ b/Makefile @@ -331,7 +331,7 @@ create-management-cluster: $(KUSTOMIZE) $(ENVSUBST) $(KUBECTL) $(KIND) ## Create timeout --foreground 300 bash -c "until curl --retry $(CURL_RETRIES) -sSL https://github.com/kubernetes-sigs/cluster-api-addon-provider-helm/releases/download/v0.2.5/addon-components.yaml | $(ENVSUBST) | $(KUBECTL) apply -f -; do sleep 5; done" # Deploy CAPZ - $(KIND) load docker-image $(CONTROLLER_IMG)-$(ARCH):$(TAG) --name=$(KIND_CLUSTER_NAME) ; \ + $(KIND) load docker-image $(CONTROLLER_IMG)-$(ARCH):$(TAG) --name=$(KIND_CLUSTER_NAME) timeout --foreground 300 bash -c "until $(KUSTOMIZE) build config/default | $(ENVSUBST) | $(KUBECTL) apply -f - --server-side=true; do sleep 5; done" # Wait for CAPI deployments @@ -380,8 +380,6 @@ create-workload-cluster: $(ENVSUBST) $(KUBECTL) ## Create a workload cluster. $(KUBECTL) get secret/$(CLUSTER_NAME)-kubeconfig -n default -o json | jq -r .data.value | base64 --decode > ./kubeconfig $(KUBECTL) -n default wait --for=condition=Ready --timeout=10m cluster "$(CLUSTER_NAME)" - ./scripts/peer-vnets.sh - @echo 'run "$(KUBECTL) --kubeconfig=./kubeconfig ..." to work with the new target cluster' .PHONY: create-cluster diff --git a/hack/create-dev-cluster.sh b/hack/create-dev-cluster.sh index 8d5e1f711d8..43b44f68c09 100755 --- a/hack/create-dev-cluster.sh +++ b/hack/create-dev-cluster.sh @@ -64,7 +64,7 @@ export ASO_CREDENTIAL_SECRET_NAME=${ASO_CREDENTIAL_SECRET_NAME:="aso-credentials capz::util::generate_ssh_key echo "================ DOCKER BUILD ===============" -PULL_POLICY=IfNotPresent make modules docker-build docker-push +PULL_POLICY=IfNotPresent make modules docker-build setup() { echo "================ MAKE CLEAN ===============" diff --git a/scripts/ci-build-azure-ccm.sh b/scripts/ci-build-azure-ccm.sh index e90ae2717d0..586c99d38a3 100755 --- a/scripts/ci-build-azure-ccm.sh +++ b/scripts/ci-build-azure-ccm.sh @@ -70,7 +70,7 @@ main() { echo "Creating ${AZURE_BLOB_CONTAINER_NAME} storage container" az storage container create --name "${AZURE_BLOB_CONTAINER_NAME}" --auth-mode login > /dev/null # if the storage account has public access disabled at the account level this will return 404 - # AZURE_STORAGE_AUTH_MODE=login az storage container set-permission --name "${AZURE_BLOB_CONTAINER_NAME}" --public-access container > /dev/null + AZURE_STORAGE_AUTH_MODE=login az storage container set-permission --name "${AZURE_BLOB_CONTAINER_NAME}" --public-access container > /dev/null fi az storage blob upload --overwrite --container-name "${AZURE_BLOB_CONTAINER_NAME}" --file "${AZURE_CLOUD_PROVIDER_ROOT}/bin/azure-acr-credential-provider" --name "${IMAGE_TAG_ACR_CREDENTIAL_PROVIDER}/azure-acr-credential-provider" --auth-mode login diff --git a/scripts/ci-build-kubernetes.sh b/scripts/ci-build-kubernetes.sh index 42b672afdd1..c7d71c4339b 100755 --- a/scripts/ci-build-kubernetes.sh +++ b/scripts/ci-build-kubernetes.sh @@ -80,7 +80,7 @@ main() { if [[ "$(az storage container exists --name "${AZURE_BLOB_CONTAINER_NAME}" --query exists --output tsv --auth-mode login)" == "false" ]]; then echo "Creating ${AZURE_BLOB_CONTAINER_NAME} storage container" az storage container create --name "${AZURE_BLOB_CONTAINER_NAME}" --auth-mode login > /dev/null - # az storage container set-permission --name "${AZURE_BLOB_CONTAINER_NAME}" --auth-mode login --public-access container > /dev/null + az storage container set-permission --name "${AZURE_BLOB_CONTAINER_NAME}" --auth-mode login --public-access container > /dev/null fi if [[ "${KUBE_BUILD_CONFORMANCE:-}" =~ [yY] ]]; then