Commit Graph

12 Commits

Author SHA1 Message Date
Prashant Rewar fef5da99bd
Replace all usages of deprecated wait.PollImmediate with wait.PollUntilContextTimeout (#3004)
Signed-off-by: Prashant Rewar <108176843+prashantrewar@users.noreply.github.com>
2024-04-02 14:44:03 +00:00
navin de3e9cc204
Fixing all deprecated use of sets.String (#2915)
* Fixing all deprecated use of sets.String

* review comments

* Fixing deprecated use of sets.String
2024-01-08 15:21:18 +00:00
Julian Friedman 50410e0b83
Use consistent case for "Deprecated" comments (#2216)
* Use consistent case for "Deprecated" comments

Not the most important thing ever, but the canonical string to use for
Deprecated warnings is case sensitive, and also it's nice to be
consistent.

* Add nolint comment
2021-08-17 09:15:16 -07:00
Dave Protasowski 803d2ba3ba
use more general kubernetes.Interface (#2135) 2021-05-31 06:44:32 -07:00
Markus Thömmes 980a33719a
Fix revive related linting issues (#2131) 2021-05-26 01:10:28 -07:00
Scott Nichols 5a5f68637e
use k8s.interface (#1808)
* use k8s.interface

* start to remove test client

* don't use test/KubeClient
2020-10-14 09:51:31 -07:00
Zbynek Roubalik 2d4efecc6b
bump to k8s 1.18 (#1428)
* bump to k8s 1.18.8

Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>

* plumbing ctx through

Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>

* add more ctx plumbing

Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>

* ctx WithCancel()

Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>
2020-09-11 07:54:00 -07:00
Matt Moore 906cdfd465
Remove ha.ExtractDeployment dependency. (#1484)
This was part of the review feedback, but it inadvertently introduced a dependency that redefined a flag causing the duck to crash loop.

This copies the function instead of pulling in the dependency.
2020-07-13 23:52:18 -07:00
Matt Moore 5f4f82f095
Add a new "chaosduck" e2e test tool for leaderelection. (#1333)
* Add a new "chaosduck" e2e test tool for leaderelection.

This adds a new main package under knative.dev/pkg/leaderelection/chaosduck, which
decodes the leases in the system namespace to establish the set of components and
their leader pod names and kills a leader pod for each component on a certain period.

* Incorporate feedback from vagababov

* super nit
2020-07-13 15:41:18 -07:00
Victor Agababov 44f55abf7a
Fun with lambdas etc (#1475)
* Fun with funcs and tests

* duplicates
2020-07-10 12:29:37 -07:00
Matt Moore a0cb3d6895
Make HA test helpers deal with sets. (#1474)
* Make HA test helpers deal with sets.

The previous helpers dealt with singleton leaders, change them to accomodate bucketing.

* vagababov feedback

* Add logging that was useful downstream debugging.
2020-07-10 09:35:19 -07:00
Martin Gencur e80bcb7e66
Functions common to HA tests (#1259)
* Functions common to HA tests

* Fix format errors

* More robust GetEndpoints function

* Do not use listOptions in getting endpoints

* re-use more existing code

* Fix format

* Rename GetLeader to WaitForNewLeader

* Fix fmt

* Simplify WaitForPodDeleted

* Remove span from WaitForChangedEndpoints
2020-05-14 11:11:00 -07:00