Antonio Ojea
6552f2710f
use default flags for apiserver on integration tests
2024-06-04 22:09:35 +00:00
Patrick Ohly
1d653e6185
test: use cancelation from ktesting
...
The return type of ktesting.NewTestContext is now a TContext. Code
which combined it WithCancel often didn't compile anymore (cannot overwrite
ktesting.TContext with context.Context). This is a good thing because all of
that code can be simplified to let ktesting handle the cancelation.
2024-03-01 07:51:22 +01:00
Mengjiao Liu
b584b87a94
kube-controller-manager: readjust log verbosity
...
- Increase the global level for broadcaster's logging to 3 so that users can ignore event messages by lowering the logging level. It reduces information noise.
- Making sure the context is properly injected into the broadcaster, this will allow the -v flag value to be used also in that broadcaster, rather than the above global value.
- test: use cancellation from ktesting
- golangci-hints: checked error return value
2024-02-26 14:51:56 +08:00
Kevin Hannon
1a41ed394d
convert pointer to ptr for sig-apps integration tests
2023-10-19 10:35:38 -04:00
Kubernetes Prow Robot
67c33faddd
Merge pull request #117631 from skitt/intstr-fromint32-testing
...
Test: use new intstr functions
2023-08-15 15:16:27 -07:00
carlory
850dc6123a
Remove ability to re-enable serving deprecated policyv1beta1 APIs
2023-07-18 10:24:26 +08:00
Mengjiao Liu
19869478c1
Migrate /pkg/controller/disruption to structured and contextual logging
2023-07-12 11:30:45 +08:00
Stephen Kitt
3418ceaca6
test: replace intstr.FromInt with intstr.FromInt32
...
This touches cases where FromInt() is used on numeric constants, or
values which are already int32s, or int variables which are defined
close by and can be changed to int32s with little impact.
Signed-off-by: Stephen Kitt <skitt@redhat.com>
2023-05-10 09:34:16 +02:00
Michal Wozniak
c803892bd8
Enable the feature into beta
2022-11-09 09:02:40 +01:00
Michal Wozniak
52cd6755eb
Add pod disruption conditions for kubelet initiated failures
2022-11-07 11:23:22 +01:00
Aldo Culquicondor
4188d9b646
Add worker to clean up stale DisruptionTarget condition
...
Change-Id: I907fbdf01e7ff08d823fb23aa168ff271d8ff1ee
2022-08-02 11:25:01 -04:00
Aldo Culquicondor
dad8454ebb
Add clock interface to disruption controller
...
To be able to write more precise unit tests in the future
Change-Id: I8f45947dfacca501acd856849bd978fad0f735cd
2022-08-02 11:17:29 -04:00
Wojciech Tyczyński
783da34f54
Clean shutdown of disruption integration tests
2022-06-02 21:02:04 +02:00
David Eads
d323a30f60
remove PDB v1beta1 usage where v1 is equivalent
2022-05-10 13:32:07 -04:00
Jordan Liggitt
33fc0b9651
Add PDB selector patch integration test
2022-02-15 14:45:22 -05:00
ravisantoshgudimetla
65ff81757d
Wire contexts to Disruption controllers
2022-02-04 10:32:04 -05:00
Morten Torkildsen
621aed4d32
generated
2021-03-09 10:29:11 -05:00
Morten Torkildsen
21fba79d45
Promote PDBs to GA
2021-03-09 10:29:11 -05:00
David Eads
c14ff1a674
remove more CRD v1beta1 client dependencies
2021-03-05 08:10:47 -05:00
Morten Torkildsen
96ea28aa77
Check if resources implement scale in disruption controller
2021-02-03 20:19:35 -08:00
Jordan Liggitt
b7c2faf26c
client-go dynamic client: add context to callers
2020-03-06 10:56:23 -05:00
Mike Danese
25651408ae
generated: run refactor
2020-02-08 12:30:21 -05:00
Mike Danese
3aa59f7f30
generated: run refactor
2020-02-07 18:16:47 -08:00
SataQiu
17b0b77026
fix staticcheck failures of test/integration/client test/integration/disruption
2020-01-03 17:23:35 +08:00
Nan Yu
1fb0dd4ec5
Rename PodDisruptionsAllowed to DisruptionsAllowed in type PodDisruptionBudgetStatus
2019-12-03 14:26:35 -08:00
Morten Torkildsen
f1883c9e8c
Support scale subresource for PDBs ( #76294 )
...
* Support scale subresource for PDBs
* Check group in finder functions
* Small fixes and more tests
2019-05-23 22:24:17 -07:00