Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#4660 from nawazkh/set_defaults_to_…
Browse files Browse the repository at this point in the history
…templates

Set nonzero default control plane node count in templates
  • Loading branch information
k8s-ci-robot authored Mar 26, 2024
2 parents 7f385fd + b8f15c3 commit 8be2ad2
Show file tree
Hide file tree
Showing 49 changed files with 89 additions and 89 deletions.
4 changes: 2 additions & 2 deletions templates/cluster-template-aad.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions templates/cluster-template-aks.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions templates/cluster-template-azure-bastion.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions templates/cluster-template-azure-cni-v1.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions templates/cluster-template-dual-stack.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions templates/cluster-template-edgezone.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions templates/cluster-template-ephemeral.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions templates/cluster-template-flatcar.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions templates/cluster-template-ipv6.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions templates/cluster-template-machinepool-windows.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions templates/cluster-template-machinepool.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions templates/cluster-template-nvidia-gpu.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions templates/cluster-template-private.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions templates/cluster-template-topology.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions templates/cluster-template-windows.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions templates/cluster-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ spec:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: AzureMachineTemplate
name: ${CLUSTER_NAME}-control-plane
replicas: ${CONTROL_PLANE_MACHINE_COUNT}
replicas: ${CONTROL_PLANE_MACHINE_COUNT:=1}
version: ${KUBERNETES_VERSION}
---
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
Expand Down Expand Up @@ -134,7 +134,7 @@ metadata:
namespace: default
spec:
clusterName: ${CLUSTER_NAME}
replicas: ${WORKER_MACHINE_COUNT}
replicas: ${WORKER_MACHINE_COUNT:=2}
selector:
matchLabels: null
template:
Expand Down
2 changes: 1 addition & 1 deletion templates/flavors/aad/machine-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
name: "${CLUSTER_NAME}-md-0"
spec:
clusterName: "${CLUSTER_NAME}"
replicas: ${WORKER_MACHINE_COUNT}
replicas: ${WORKER_MACHINE_COUNT:=2}
selector:
matchLabels:
template:
Expand Down
4 changes: 2 additions & 2 deletions templates/flavors/aks/cluster-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ metadata:
name: "${CLUSTER_NAME}-pool0"
spec:
clusterName: "${CLUSTER_NAME}"
replicas: ${WORKER_MACHINE_COUNT}
replicas: ${WORKER_MACHINE_COUNT:=2}
template:
metadata: {}
spec:
Expand Down Expand Up @@ -84,7 +84,7 @@ metadata:
name: "${CLUSTER_NAME}-pool1"
spec:
clusterName: "${CLUSTER_NAME}"
replicas: ${WORKER_MACHINE_COUNT}
replicas: ${WORKER_MACHINE_COUNT:=2}
template:
metadata: {}
spec:
Expand Down
2 changes: 1 addition & 1 deletion templates/flavors/base/cluster-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ apiVersion: controlplane.cluster.x-k8s.io/v1beta1
metadata:
name: "${CLUSTER_NAME}-control-plane"
spec:
replicas: ${CONTROL_PLANE_MACHINE_COUNT}
replicas: ${CONTROL_PLANE_MACHINE_COUNT:=1}
machineTemplate:
infrastructureRef:
kind: AzureMachineTemplate
Expand Down
2 changes: 1 addition & 1 deletion templates/flavors/default/machine-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
name: "${CLUSTER_NAME}-md-0"
spec:
clusterName: "${CLUSTER_NAME}"
replicas: ${WORKER_MACHINE_COUNT}
replicas: ${WORKER_MACHINE_COUNT:=2}
selector:
matchLabels:
template:
Expand Down
2 changes: 1 addition & 1 deletion templates/flavors/dual-stack/machine-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
name: "${CLUSTER_NAME}-md-0"
spec:
clusterName: "${CLUSTER_NAME}"
replicas: ${WORKER_MACHINE_COUNT}
replicas: ${WORKER_MACHINE_COUNT:=2}
selector:
matchLabels:
template:
Expand Down
2 changes: 1 addition & 1 deletion templates/flavors/flatcar/machine-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
name: ${CLUSTER_NAME}-md-0
spec:
clusterName: ${CLUSTER_NAME}
replicas: ${WORKER_MACHINE_COUNT}
replicas: ${WORKER_MACHINE_COUNT:=2}
selector:
matchLabels: null
template:
Expand Down
2 changes: 1 addition & 1 deletion templates/flavors/ipv6/machine-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
name: "${CLUSTER_NAME}-md-0"
spec:
clusterName: "${CLUSTER_NAME}"
replicas: ${WORKER_MACHINE_COUNT}
replicas: ${WORKER_MACHINE_COUNT:=2}
selector:
matchLabels:
template:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
name: "${CLUSTER_NAME}-mp-win"
spec:
clusterName: "${CLUSTER_NAME}"
replicas: ${WORKER_MACHINE_COUNT}
replicas: ${WORKER_MACHINE_COUNT:=2}
template:
spec:
clusterName: "${CLUSTER_NAME}"
Expand Down
2 changes: 1 addition & 1 deletion templates/flavors/machinepool/machine-pool-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
name: "${CLUSTER_NAME}-mp-0"
spec:
clusterName: "${CLUSTER_NAME}"
replicas: ${WORKER_MACHINE_COUNT}
replicas: ${WORKER_MACHINE_COUNT:=2}
template:
spec:
clusterName: "${CLUSTER_NAME}"
Expand Down
2 changes: 1 addition & 1 deletion templates/flavors/nvidia-gpu/machine-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
name: "${CLUSTER_NAME}-md-0"
spec:
clusterName: "${CLUSTER_NAME}"
replicas: ${WORKER_MACHINE_COUNT}
replicas: ${WORKER_MACHINE_COUNT:=2}
selector:
matchLabels:
template:
Expand Down
Loading

0 comments on commit 8be2ad2

Please sign in to comment.