Skip to content

Commit

Permalink
Add Azure Linux 3 test spec
Browse files Browse the repository at this point in the history
  • Loading branch information
mboersma committed Nov 19, 2024
1 parent 5b2cbce commit aa72481
Show file tree
Hide file tree
Showing 10 changed files with 636 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,8 @@ def get_addons(flavor_name):
addon_cmd += "; " + helm_cmd + " --kubeconfig ./${CLUSTER_NAME}.kubeconfig install --repo https://raw.githubusercontent.com/kubernetes-sigs/cloud-provider-azure/master/helm/repo cloud-provider-azure --generate-name --set infra.clusterName=${CLUSTER_NAME} --set cloudControllerManager.clusterCIDR=${CIDR_LIST}"
if "flatcar" in flavor_name: # append caCetDir location to the cloud-provider-azure helm install command for flatcar flavor
addon_cmd += " --set-string cloudControllerManager.caCertDir=/usr/share/ca-certificates"
elif "azurelinux" in flavor_name: # append caCetDir location to the cloud-provider-azure helm install command for Azure Linux flavor
addon_cmd += " --set-string cloudControllerManager.caCertDir=/etc/pki/tls"

if "azure-cni-v1" in flavor_name:
addon_cmd += "; " + kubectl_cmd + " apply -f ./templates/addons/azure-cni-v1.yaml --kubeconfig ./${CLUSTER_NAME}.kubeconfig"
Expand Down
223 changes: 223 additions & 0 deletions templates/cluster-template-azurelinux.yaml

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

11 changes: 11 additions & 0 deletions templates/flavors/azurelinux/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: default
resources:
- ../default
patches:
- path: patches/control-plane.yaml
- path: patches/nodepool-machine-template.yaml

sortOptions:
order: fifo
13 changes: 13 additions & 0 deletions templates/flavors/azurelinux/patches/control-plane.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: AzureMachineTemplate
metadata:
name: ${CLUSTER_NAME}-control-plane
spec:
template:
spec:
image:
computeGallery:
gallery: ClusterAPI-f72ceb4f-5159-4c26-a0fe-2ea738f0d019
name: capi-azurelinux-3
version: ${KUBERNETES_VERSION:1}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: AzureMachineTemplate
metadata:
name: ${CLUSTER_NAME}-md-0
spec:
template:
spec:
image:
computeGallery:
gallery: ClusterAPI-f72ceb4f-5159-4c26-a0fe-2ea738f0d019
name: capi-azurelinux-3
version: ${KUBERNETES_VERSION:1}
Loading

0 comments on commit aa72481

Please sign in to comment.