Skip to content

Commit

Permalink
Fix config leader election configmap name
Browse files Browse the repository at this point in the history
This will update the name of the configmap responsible for
controller to contain config of leader election

Based on the PR on pipeline upstream
tektoncd/pipeline#7014
  • Loading branch information
piyush-garg committed Nov 28, 2023
1 parent 73f14d0 commit 7d03077
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/reconciler/kubernetes/tektonpipeline/transform.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions pkg/reconciler/kubernetes/tektonpipeline/transform_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 7d03077

Please sign in to comment.