From 143b7a83a8ab774104f7da593b461d3f567c563c Mon Sep 17 00:00:00 2001 From: Piyush Garg Date: Tue, 28 Nov 2023 08:20:09 +0530 Subject: [PATCH] Fix config leader election configmap name This will update the name of the configmap responsible for controller to contain config of leader election Based on the PR on pipeline upstream https://github.com/tektoncd/pipeline/pull/7014 --- pkg/reconciler/kubernetes/tektonpipeline/transform.go | 2 +- pkg/reconciler/kubernetes/tektonpipeline/transform_test.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/reconciler/kubernetes/tektonpipeline/transform.go b/pkg/reconciler/kubernetes/tektonpipeline/transform.go index 2fe0bfd466..1bc6487ea5 100644 --- a/pkg/reconciler/kubernetes/tektonpipeline/transform.go +++ b/pkg/reconciler/kubernetes/tektonpipeline/transform.go @@ -43,7 +43,7 @@ const ( clusterResolverConfig = "cluster-resolver-config" hubResolverConfig = "hubresolver-config" gitResolverConfig = "git-resolver-config" - leaderElectionConfig = "config-leader-election" + leaderElectionConfig = "config-leader-election-controller" pipelinesControllerDeployment = "tekton-pipelines-controller" pipelinesControllerContainer = "tekton-pipelines-controller" pipelinesRemoteResolversControllerDeployment = "tekton-pipelines-remote-resolvers" diff --git a/pkg/reconciler/kubernetes/tektonpipeline/transform_test.go b/pkg/reconciler/kubernetes/tektonpipeline/transform_test.go index d5aa3771cc..60b6c5dd08 100644 --- a/pkg/reconciler/kubernetes/tektonpipeline/transform_test.go +++ b/pkg/reconciler/kubernetes/tektonpipeline/transform_test.go @@ -87,9 +87,9 @@ func TestUpdatePerformanceFlagsInDeployment(t *testing.T) { // update expected output depExpected := depInput.DeepCopy() depExpected.Spec.Template.Labels = map[string]string{ - "app": "hello", - "config-leader-election.data.buckets": "2", - "deployment.spec.replicas": "1", + "app": "hello", + "config-leader-election-controller.data.buckets": "2", + "deployment.spec.replicas": "1", } // flags order is important depExpected.Spec.Template.Spec.Containers[1].Args = []string{