From 5841b2a4a6dace8619fe275d028cc7fceceed58e Mon Sep 17 00:00:00 2001 From: Jont828 Date: Thu, 24 Oct 2024 12:21:38 -0400 Subject: [PATCH] Add ephemeral os disk config --- .../dev/cluster-template-custom-builds-load.yaml | 6 ++++++ .../test/dev/custom-builds-load/kustomization.yaml | 12 ++++++++++++ 2 files changed, 18 insertions(+) diff --git a/templates/test/dev/cluster-template-custom-builds-load.yaml b/templates/test/dev/cluster-template-custom-builds-load.yaml index b2b0b302908..1f52650dcee 100644 --- a/templates/test/dev/cluster-template-custom-builds-load.yaml +++ b/templates/test/dev/cluster-template-custom-builds-load.yaml @@ -230,6 +230,9 @@ spec: sku: ubuntu-2204-gen1 version: latest osDisk: + cachingType: ReadOnly + diffDiskSettings: + option: Local diskSizeGB: 128 osType: Linux sshPublicKey: ${AZURE_SSH_PUBLIC_KEY_B64:=""} @@ -279,6 +282,9 @@ spec: sku: ubuntu-2204-gen1 version: latest osDisk: + cachingType: ReadOnly + diffDiskSettings: + option: Local diskSizeGB: 128 osType: Linux sshPublicKey: ${AZURE_SSH_PUBLIC_KEY_B64:=""} diff --git a/templates/test/dev/custom-builds-load/kustomization.yaml b/templates/test/dev/custom-builds-load/kustomization.yaml index ae9cf29326f..ef7a1f09463 100644 --- a/templates/test/dev/custom-builds-load/kustomization.yaml +++ b/templates/test/dev/custom-builds-load/kustomization.yaml @@ -8,6 +8,18 @@ patches: - path: patches/cluster-label-storageclass.yaml - path: patches/cluster-label-azuredisk.yaml - path: patches/kcp-scheduler.yaml +- path: patches/ephemeral.yaml + target: + group: infrastructure.cluster.x-k8s.io + kind: AzureMachineTemplate + name: .*-md-0 + version: v1beta1 +- path: patches/ephemeral.yaml + target: + group: infrastructure.cluster.x-k8s.io + kind: AzureMachineTemplate + name: .*-control-plane + version: v1beta1 configMapGenerator: - files: - storageclass=../../../addons/storageclass-azure-disk.yaml