Skip to content

Commit

Permalink
Merge pull request #441 from jsturtevant/gmsa-template-fix
Browse files Browse the repository at this point in the history
Use calculated template and save it for debugging
  • Loading branch information
k8s-ci-robot authored Jun 25, 2024
2 parents 18f0231 + 3b2de95 commit dd4f6bf
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions capz/run-capz-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -225,14 +225,15 @@ create_cluster(){


log "Provisiion workload cluster"
"$TOOLS_BIN_DIR"/clusterctl generate cluster "${CLUSTER_NAME}" --kubernetes-version "$KUBERNETES_VERSION" --from "$SCRIPT_ROOT"/templates/windows-ci.yaml | kubectl apply -f -

"$TOOLS_BIN_DIR"/clusterctl generate cluster "${CLUSTER_NAME}" --kubernetes-version "$KUBERNETES_VERSION" --from "$template" > "$SCRIPT_ROOT"/"${CLUSTER_NAME}-template.yaml"
kubectl apply -f "$SCRIPT_ROOT"/"${CLUSTER_NAME}-template.yaml"

log "wait for workload cluster config"
timeout --foreground 300 bash -c "until $TOOLS_BIN_DIR/clusterctl get kubeconfig ${CLUSTER_NAME} > ${CLUSTER_NAME}.kubeconfig 2>/dev/null; do sleep 3; done"

# copy generated template to logs
mkdir -p "${ARTIFACTS}"/clusters/bootstrap
cp "${CLUSTER_NAME}.yaml" "${ARTIFACTS}"/clusters/bootstrap || true
cp "$SCRIPT_ROOT"/"${CLUSTER_NAME}-template.yaml" "${ARTIFACTS}"/clusters/bootstrap || true
log "cluster creation complete"
fi

Expand Down Expand Up @@ -303,7 +304,7 @@ apply_cloud_provider_azure() {
--set-string cloudNodeManager.imageTag="${IMAGE_TAG_CNM}")

echo "Installing cloud-provider-azure components via helm"
"$TOOLS_BIN_DIR"/helm upgrade cloud-provider-azure --install --repo https://raw.githubusercontent.com/kubernetes-sigs/cloud-provider-azure/master/helm/repo cloud-provider-azure "${CCM_IMG_ARGS[@]}"
"$TOOLS_BIN_DIR"/helm upgrade cloud-provider-azure --install --namespace kube-system --repo https://raw.githubusercontent.com/kubernetes-sigs/cloud-provider-azure/master/helm/repo cloud-provider-azure "${CCM_IMG_ARGS[@]}"
}

apply_hyperv_configuration(){
Expand Down

0 comments on commit dd4f6bf

Please sign in to comment.