Skip to content

Commit fca46aa

Browse files
authored
capz: fix typos in run-capz-e2e.sh (#523)
addresses spelling mistakes in the script.
1 parent a3c8c8b commit fca46aa

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

capz/run-capz-e2e.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ main() {
5858

5959
install_tools
6060
create_cluster
61-
apply_workload_configuraiton
61+
apply_workload_configuration
6262
apply_cloud_provider_azure
6363
wait_for_nodes
6464
if [[ "${HYPERV}" == "true" ]]; then apply_hyperv_configuration; fi
@@ -227,7 +227,7 @@ create_cluster(){
227227
export AKS_INFRA_RG_NAME="${aks_infra_rg_name}"
228228
export AKS_VNET_NAME="${ask_vnet}"
229229

230-
# In a prod set up we probably would want a seperate identity for this operation but for ease of use we are re-using the one created by AKS for kubelet
230+
# In a prod set up we probably would want a separate identity for this operation but for ease of use we are re-using the one created by AKS for kubelet
231231
log "applying role assignment to management cluster identity to have permissions to create workload cluster"
232232
MANAGEMENT_IDENTITY=$(az aks show -n "${CLUSTER_NAME}" -g "${CLUSTER_NAME}" --output json | jq -r '.identityProfile.kubeletidentity.clientId')
233233
export MANAGEMENT_IDENTITY
@@ -251,7 +251,7 @@ create_cluster(){
251251
timeout --foreground 300 bash -c "until kubectl get kubeadmcontrolplanes -A > /dev/null 2>&1; do sleep 3; done"
252252

253253

254-
log "Provisiion workload cluster"
254+
log "Provision workload cluster"
255255
"$TOOLS_BIN_DIR"/clusterctl generate cluster "${CLUSTER_NAME}" --kubernetes-version "$KUBERNETES_VERSION" --from "$template" > "$SCRIPT_ROOT"/"${CLUSTER_NAME}-template.yaml"
256256
kubectl apply -f "$SCRIPT_ROOT"/"${CLUSTER_NAME}-template.yaml"
257257

@@ -279,7 +279,7 @@ create_cluster(){
279279
export KUBECONFIG="$SCRIPT_ROOT"/"${CLUSTER_NAME}".kubeconfig
280280
}
281281

282-
apply_workload_configuraiton(){
282+
apply_workload_configuration(){
283283
log "wait for cluster to stabilize"
284284
timeout --foreground 300 bash -c "until kubectl get --raw /version --request-timeout 5s > /dev/null 2>&1; do sleep 3; done"
285285

@@ -354,7 +354,7 @@ apply_cloud_provider_azure() {
354354

355355
apply_hyperv_configuration(){
356356
set -x
357-
log "applying contirguration for testing hyperv isolated containers"
357+
log "applying configuration for testing hyperv isolated containers"
358358

359359
log "installing hyperv runtime class"
360360
kubectl apply -f "${SCRIPT_ROOT}/../helpers/hyper-v-mutating-webhook/hyperv-runtimeclass.yaml"
@@ -368,7 +368,7 @@ apply_hyperv_configuration(){
368368
mapfile -t windows_nodes < <(kubectl get nodes -o wide | grep Windows | awk '{print $1}')
369369
kubectl taint nodes "${windows_nodes[@]}" os=windows:NoSchedule
370370

371-
log "installing cer-manager"
371+
log "installing cert-manager"
372372
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.14.5/cert-manager.yaml
373373

374374
log "wait for cert-manager pods to start"
@@ -383,7 +383,7 @@ apply_hyperv_configuration(){
383383
log "untainting Windows agent nodes"
384384
kubectl taint nodes "${windows_nodes[@]}" os=windows:NoSchedule-
385385

386-
log "taining master nodes again"
386+
log "tainting master nodes again"
387387
kubectl taint nodes "${cp_nodes[@]}" node-role.kubernetes.io/control-plane:NoSchedule || true
388388

389389
log "done configuring testing for hyperv isolated containers"
@@ -431,7 +431,7 @@ run_e2e_test() {
431431
export KUBE_TEST_REPO_LIST="$SCRIPT_ROOT/../images/image-repo-list-private-registry-community"
432432
fi
433433

434-
# K8s 1.24 and below use ginkgo v1 which has slighly different args
434+
# K8s 1.24 and below use ginkgo v1 which has slightly different args
435435
ginkgo_v1="false"
436436
if [[ "${KUBERNETES_VERSION}" =~ 1.24 ]]; then
437437
ginkgo_v1="true"
@@ -550,7 +550,7 @@ set_azure_envs() {
550550
# Generate SSH key.
551551
capz::util::generate_ssh_key
552552

553-
# Set the Azure Location, preferred locationc can be set through the AZURE_LOCATION environment variable.
553+
# Set the Azure Location, preferred location can be set through the AZURE_LOCATION environment variable.
554554
AZURE_LOCATION="${AZURE_LOCATION:-$(get_random_region)}"
555555
export AZURE_LOCATION
556556
if [[ "${CI:-}" == "true" ]]; then

0 commit comments

Comments
 (0)