diff --git a/go.mod b/go.mod index 1857f25a..25e8829a 100644 --- a/go.mod +++ b/go.mod @@ -11,5 +11,5 @@ require ( k8s.io/code-generator v0.22.5 k8s.io/kube-openapi v0.0.0-20211109043538-20434351676c knative.dev/hack v0.0.0-20220111151514-59b0cf17578e - knative.dev/pkg v0.0.0-20220111210214-785eb637f693 + knative.dev/pkg v0.0.0-20220113045912-c0e1594c2fb1 ) diff --git a/go.sum b/go.sum index daaee071..ac8e326d 100644 --- a/go.sum +++ b/go.sum @@ -1108,11 +1108,10 @@ k8s.io/kube-openapi v0.0.0-20211109043538-20434351676c h1:jvamsI1tn9V0S8jicyX82q k8s.io/kube-openapi v0.0.0-20211109043538-20434351676c/go.mod h1:vHXdDvt9+2spS2Rx9ql3I8tycm3H9FDfdUoIuKCefvw= k8s.io/utils v0.0.0-20210819203725-bdf08cb9a70a h1:8dYfu/Fc9Gz2rNJKB9IQRGgQOh2clmRzNIPPY1xLY5g= k8s.io/utils v0.0.0-20210819203725-bdf08cb9a70a/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= -knative.dev/hack v0.0.0-20220110200259-f08cb0dcdee7/go.mod h1:PHt8x8yX5Z9pPquBEfIj0X66f8iWkWfR0S/sarACJrI= knative.dev/hack v0.0.0-20220111151514-59b0cf17578e h1:tESsFI1iMD2Al+6FZueFN9CddxJ8Fa2cd9KmyNINe3w= knative.dev/hack v0.0.0-20220111151514-59b0cf17578e/go.mod h1:PHt8x8yX5Z9pPquBEfIj0X66f8iWkWfR0S/sarACJrI= -knative.dev/pkg v0.0.0-20220111210214-785eb637f693 h1:uOIXXDSMBe50XmdVwORYzN5zh/drNDAtkzmpT+yCvns= -knative.dev/pkg v0.0.0-20220111210214-785eb637f693/go.mod h1:YVa0jO4t3eLg9YD/4IDs9TsZsF+g1nx8T9szmlbY/Yc= +knative.dev/pkg v0.0.0-20220113045912-c0e1594c2fb1 h1:vingyaoZbiMRLha4JCVxPG0ghcpjKVN9VGikAHwpqqs= +knative.dev/pkg v0.0.0-20220113045912-c0e1594c2fb1/go.mod h1:X5B0/SR3tzOioS2WQtS9uJTO71M52qcrDkWQ5wtyLVc= pgregory.net/rapid v0.3.3/go.mod h1:UYpPVyjFHzYBGHIxLFoupi8vwk6rXNzRY9OMvVxFIOU= rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= diff --git a/vendor/knative.dev/pkg/leaderelection/config.go b/vendor/knative.dev/pkg/leaderelection/config.go index 0694395b..f07c30ce 100644 --- a/vendor/knative.dev/pkg/leaderelection/config.go +++ b/vendor/knative.dev/pkg/leaderelection/config.go @@ -98,9 +98,9 @@ func (c *Config) GetComponentConfig(name string) ComponentConfig { func defaultConfig() *Config { return &Config{ Buckets: 1, - LeaseDuration: 15 * time.Second, - RenewDeadline: 10 * time.Second, - RetryPeriod: 2 * time.Second, + LeaseDuration: 60 * time.Second, + RenewDeadline: 40 * time.Second, + RetryPeriod: 10 * time.Second, } } diff --git a/vendor/knative.dev/pkg/leaderelection/doc.go b/vendor/knative.dev/pkg/leaderelection/doc.go new file mode 100644 index 00000000..fb7e162f --- /dev/null +++ b/vendor/knative.dev/pkg/leaderelection/doc.go @@ -0,0 +1,27 @@ +/* +Copyright 2020 The Knative Authors + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// LeaderElection provides an interface for controllers implementing using +// controller injection: +// https://github.com/knative/pkg/blob/main/injection/README.md +// +// Leaderelection uses the context-stuffing mechanism to provide config-driven +// management of multiple election strategies (currently, using Kubernetes +// etcd-based election primitives or StatefulSet indexes and counts). +// +// For more details, see the original design document: +// https://docs.google.com/document/d/e/2PACX-1vTh40N-Kk6EPNzYpITiLg8YJk0qZyZv7KgMpcQS72T9Lv_F2PQeGybx4TtH0E1N1aUgLQer7b8u3lDc/pub +package leaderelection diff --git a/vendor/modules.txt b/vendor/modules.txt index ab9508f0..54a7756e 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -582,7 +582,7 @@ k8s.io/utils/trace # knative.dev/hack v0.0.0-20220111151514-59b0cf17578e ## explicit knative.dev/hack -# knative.dev/pkg v0.0.0-20220111210214-785eb637f693 +# knative.dev/pkg v0.0.0-20220113045912-c0e1594c2fb1 ## explicit knative.dev/pkg/apis knative.dev/pkg/apis/duck