|
| 1 | +# Copyright 2023 Tekton Authors LLC |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# https://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | + |
| 15 | +apiVersion: v1 |
| 16 | +kind: ConfigMap |
| 17 | +metadata: |
| 18 | + name: config-leader-election-webhook |
| 19 | + namespace: tekton-pipelines |
| 20 | + labels: |
| 21 | + app.kubernetes.io/instance: default |
| 22 | + app.kubernetes.io/part-of: tekton-pipelines |
| 23 | +data: |
| 24 | + _example: | |
| 25 | + ################################ |
| 26 | + # # |
| 27 | + # EXAMPLE CONFIGURATION # |
| 28 | + # # |
| 29 | + ################################ |
| 30 | + # This block is not actually functional configuration, |
| 31 | + # but serves to illustrate the available configuration |
| 32 | + # options and document them in a way that is accessible |
| 33 | + # to users that `kubectl edit` this config map. |
| 34 | + # |
| 35 | + # These sample configuration options may be copied out of |
| 36 | + # this example block and unindented to be in the data block |
| 37 | + # to actually change the configuration. |
| 38 | + # lease-duration is how long non-leaders will wait to try to acquire the |
| 39 | + # lock; 15 seconds is the value used by core kubernetes controllers. |
| 40 | + lease-duration: "60s" |
| 41 | + # renew-deadline is how long a leader will try to renew the lease before |
| 42 | + # giving up; 10 seconds is the value used by core kubernetes controllers. |
| 43 | + renew-deadline: "40s" |
| 44 | + # retry-period is how long the leader election client waits between tries of |
| 45 | + # actions; 2 seconds is the value used by core kubernetes controllers. |
| 46 | + retry-period: "10s" |
| 47 | + # buckets is the number of buckets used to partition key space of each |
| 48 | + # Reconciler. If this number is M and the replica number of the controller |
| 49 | + # is N, the N replicas will compete for the M buckets. The owner of a |
| 50 | + # bucket will take care of the reconciling for the keys partitioned into |
| 51 | + # that bucket. |
| 52 | + buckets: "1" |
0 commit comments