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{