Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 18 additions & 3 deletions scripts/01-system-assigned-managed-identity.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
#!/bin/bash

# Check prerequisites
missing=0
for tool in az kubectl; do
if ! command -v "$tool" >/dev/null 2>&1; then
echo "Error: required tool '$tool' is not installed or not in PATH." >&2
missing=1
fi
done
if [ "$missing" -ne 0 ]; then
echo "Please install the missing tool(s) and re-run the script." >&2
echo " az: https://learn.microsoft.com/cli/azure/install-azure-cli" >&2
echo " kubectl: https://kubernetes.io/docs/tasks/tools/ (or: az aks install-cli)" >&2
exit 1
fi

# Variables

# Azure Kubernetes Service (AKS) cluster
Expand Down Expand Up @@ -82,9 +97,9 @@ registering_extensions=()
ok=0

# Print the menu
echo "===================================="
echo "Run Docker Container (1-3): "
echo "===================================="
echo "======================================"
echo "Select Network Plugin and Policy (1-3): "
echo "======================================"
options=(
"Azure Network Plugin + Azure Network Policy"
"Azure Network Plugin + Cilium Network Policy"
Expand Down
15 changes: 15 additions & 0 deletions scripts/01-user-assigned-managed-identity.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
#!/bin/bash

# Check prerequisites
missing=0
for tool in az kubectl; do
if ! command -v "$tool" >/dev/null 2>&1; then
echo "Error: required tool '$tool' is not installed or not in PATH." >&2
missing=1
fi
done
if [ "$missing" -ne 0 ]; then
echo "Please install the missing tool(s) and re-run the script." >&2
echo " az: https://learn.microsoft.com/cli/azure/install-azure-cli" >&2
echo " kubectl: https://kubernetes.io/docs/tasks/tools/ (or: az aks install-cli)" >&2
exit 1
fi

# Variables

# Azure Kubernetes Service (AKS) cluster
Expand Down
Loading