From 0d025447ed03859e9cdfd0a1d6e99f7c0718fb02 Mon Sep 17 00:00:00 2001 From: Stefan Bueringer Date: Tue, 19 Nov 2024 20:07:11 +0100 Subject: [PATCH] KCP: Change Pod does not exist message to allow aggregation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stefan Büringer buringerst@vmware.com --- controlplane/kubeadm/internal/workload_cluster_conditions.go | 2 +- .../kubeadm/internal/workload_cluster_conditions_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/controlplane/kubeadm/internal/workload_cluster_conditions.go b/controlplane/kubeadm/internal/workload_cluster_conditions.go index 20c168ccd509..c5b2878f30c8 100644 --- a/controlplane/kubeadm/internal/workload_cluster_conditions.go +++ b/controlplane/kubeadm/internal/workload_cluster_conditions.go @@ -655,7 +655,7 @@ func (w *Workload) updateStaticPodCondition(ctx context.Context, machine *cluste Type: staticPodV1beta2Condition, Status: metav1.ConditionFalse, Reason: controlplanev1.KubeadmControlPlaneMachinePodDoesNotExistV1Beta2Reason, - Message: fmt.Sprintf("Pod %s does not exist", podKey.Name), + Message: "Pod does not exist", }) return } diff --git a/controlplane/kubeadm/internal/workload_cluster_conditions_test.go b/controlplane/kubeadm/internal/workload_cluster_conditions_test.go index 2e44c9258a54..b3d200fd3738 100644 --- a/controlplane/kubeadm/internal/workload_cluster_conditions_test.go +++ b/controlplane/kubeadm/internal/workload_cluster_conditions_test.go @@ -1193,7 +1193,7 @@ func TestUpdateStaticPodCondition(t *testing.T) { Type: v1beta2Condition, Status: metav1.ConditionFalse, Reason: controlplanev1.KubeadmControlPlaneMachinePodDoesNotExistV1Beta2Reason, - Message: "Pod kube-component-node does not exist", + Message: "Pod does not exist", }, }, {