From add5be2d10593bdd2d3064e15053bb04fbbaa87e Mon Sep 17 00:00:00 2001 From: Jon Huhn Date: Thu, 7 Aug 2025 16:46:54 -0500 Subject: [PATCH] Add MachineHealthCheck for control plane to private cluster e2e template --- .../ci/cluster-template-prow-private.yaml | 19 +++++++++++++++++++ .../test/ci/prow-private/kustomization.yaml | 1 + 2 files changed, 20 insertions(+) diff --git a/templates/test/ci/cluster-template-prow-private.yaml b/templates/test/ci/cluster-template-prow-private.yaml index bb20003e2cd..2954d0c5452 100644 --- a/templates/test/ci/cluster-template-prow-private.yaml +++ b/templates/test/ci/cluster-template-prow-private.yaml @@ -251,6 +251,25 @@ spec: tenantID: ${AZURE_TENANT_ID} type: UserAssignedMSI --- +apiVersion: cluster.x-k8s.io/v1beta1 +kind: MachineHealthCheck +metadata: + name: ${CLUSTER_NAME}-control-plane + namespace: default +spec: + clusterName: ${CLUSTER_NAME} + maxUnhealthy: 100% + selector: + matchLabels: + cluster.x-k8s.io/control-plane: "" + unhealthyConditions: + - status: Unknown + timeout: 300s + type: Ready + - status: "False" + timeout: 300s + type: Ready +--- apiVersion: addons.cluster.x-k8s.io/v1beta1 kind: ClusterResourceSet metadata: diff --git a/templates/test/ci/prow-private/kustomization.yaml b/templates/test/ci/prow-private/kustomization.yaml index 059607b987f..8ef2fc2dfde 100644 --- a/templates/test/ci/prow-private/kustomization.yaml +++ b/templates/test/ci/prow-private/kustomization.yaml @@ -3,6 +3,7 @@ kind: Kustomization namespace: default resources: - ../../../flavors/private +- ../prow/mhc-kubeadmcontrolplane.yaml - cni-resource-set.yaml - ../../../addons/cluster-api-helm/calico.yaml - ../../../addons/cluster-api-helm/azuredisk-csi-driver.yaml