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
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
Ziqi Zhao
dfc1838379
Migrated pkg/controller/volume|util|replicaset|nodeipam to contextual logging
...
Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
2023-07-06 07:39:52 +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
Kante Yin
a7035f5459
Pass Context to StartTestServer
...
Signed-off-by: Kante Yin <kerthcet@gmail.com>
2023-05-04 10:25:09 +08:00
Andy Goldstein
71ec5ed81d
resourcequota: use contexual logging ( #113315 )
...
Signed-off-by: Andy Goldstein <andy.goldstein@redhat.com>
2023-02-14 07:19:31 -08:00
Davanum Srinivas
a9593d634c
Generate and format files
...
- Run hack/update-codegen.sh
- Run hack/update-generated-device-plugin.sh
- Run hack/update-generated-protobuf.sh
- Run hack/update-generated-runtime.sh
- Run hack/update-generated-swagger-docs.sh
- Run hack/update-openapi-spec.sh
- Run hack/update-gofmt.sh
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-07-26 13:14:05 -04:00
Wojciech Tyczyński
8a87681a39
Clean shutdown of resourcequota integration tests
2022-06-14 13:55:31 +02:00
Wojciech Tyczyński
f8211d7e44
Fix ResourceQuota admission shutdown
2022-05-23 12:34:50 +02:00
Wojciech Tyczyński
11b679c66a
Fix event broadcaster shutdown in multiple controllers
2022-05-17 22:14:19 +02:00
Wojciech Tyczyński
deef9e40de
Simplify Create/Delete-TestingNamespace functions
2022-05-15 23:06:26 +02:00
Lars Ekman
1ef96752da
Mark ServiceLBNodePortControl as GA
2021-12-16 16:48:58 +01:00
Mike Dame
4960d0976a
Wire contexts to Core controllers
2021-11-01 10:29:00 -04:00
Mike Dame
41fcb95f2f
Wire contexts to Apps controllers
2021-10-13 16:32:13 -04:00
Andrew Sy Kim
edbaf9d5d3
test/integration/quota: poll for ResourceQuota used status in TestQuotaLimitService
...
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
Co-authored-by: Antonio Ojea <aojea@redhat.com>
2021-07-06 07:10:20 -04:00
Andrew Sy Kim
caf42fde43
test/integration/quota: refactor Service forbidden check into helper function
...
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2021-07-06 06:39:26 -04:00
Andrew Sy Kim
54bc1babe1
test/integration/quota: update TestQuotaLimitService to explicitly check for Forbidden status when quota limit is exceeded
...
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2021-07-06 06:39:26 -04:00
Andrew Sy Kim
87cef2ca73
test/integration/quota: deflake TestQuotaLimitService by collapsing test
...
cases and adding a short delay for resource quota to propagate
Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2021-07-06 06:39:26 -04:00
Hanlin Shi
c96c809539
Add integration test for LB node port control
...
Signed-off-by: Hanlin Shi <shihanlin9@gmail.com>
2021-07-02 21:58:49 +00:00
Mengjiao Liu
6871b2b3c7
Rename masterConfig to controlPlaneConfig
2021-06-04 20:55:08 +08:00
Mengjiao Liu
77b5ad2fb0
Part of master to controlplane in test/integration(1.22)
2021-06-03 18:29:05 +08:00
Mengjiao Liu
387154f1a9
Part3: master to controlplane in test/integration
...
Rename RunAMaster to RunAControlPlane
2021-06-03 11:06:19 +08:00
Mengjiao Liu
c9ec486287
Part of master to controlplane in test/integration
...
Rename NewIntegrationTestMasterConfig to NewIntegrationTestControlPlaneConfig
2021-05-25 13:26:28 +08:00
pacoxu
ce50018a76
part1 of e2e: master to apiserver/control-plane
...
Signed-off-by: pacoxu <paco.xu@daocloud.io>
2021-03-31 15:50:18 +08:00
Tim Usner
70d440bc7e
Move ResourceQuota admission to k8s.io/apiserver
2020-09-04 14:53:52 +02:00
Alexander Zimmermann
86dc0364f4
Refactored pkg/controllers/resourcequota
...
* Fixed golint issues
* Removed redundant package import names
* Improved some variables and names
Co-authored-by: Mike Danese <mikedanese@gmail.com>
2020-08-20 14:37:27 +02: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
Jordan Liggitt
d1e865ee34
Update client callers to use explicit versions
2019-02-26 08:36:30 -05:00
yue9944882
7f1ef6672c
align imports for test
2018-08-27 21:50:30 +08:00
Tomas Nozicka
3d4a02abb5
Rename Until to UntilWithoutRetry and move to using context so it's
...
cancelable
2018-08-10 09:55:41 +02:00
David Eads
94e3d94d67
update tests to be specific about the versions they are testing instead of floating
2018-05-01 13:18:41 -04:00
Dr. Stefan Schimanski
131905cdb8
admission: unify plugin constructors
2017-10-30 16:56:38 +01:00
Derek Carr
a9765bcebe
Update e2e and integration tests
2017-10-27 11:08:30 -04:00
deads2k
62157572cf
tighten quota controller interface
2017-07-19 15:36:45 -04:00
Jacob Simpson
8bcbbd4d08
Migrate api.Registry to testapi.Groups in tests.
2017-07-17 15:05:38 -07:00
Jacob Simpson
29c1b81d4c
Scripted migration from clientset_generated to client-go.
2017-07-17 15:05:37 -07:00
Chao Xu
60604f8818
run hack/update-all
2017-06-22 11:31:03 -07:00
Chao Xu
f4989a45a5
run root-rewrite-v1-..., compile
2017-06-22 10:25:57 -07:00
Derek Carr
a71bea312a
ResourceQuota admission control injects registry
2017-05-18 23:17:13 -04:00
deads2k
be39283923
plumb stopch to post start hook index since many of them are starting go funcs
2017-05-11 09:16:13 -04:00
Mike Danese
21617a60ae
don't use build tags to mark integration tests
2017-04-28 14:19:39 -07:00
deads2k
d89862beca
update names for kube plugin initializer to avoid conflicts
2017-03-06 10:18:21 -05:00
Anthony Yeh
ca13b9e532
RC/RS: Use ControllerRef to route watch events.
...
This is part of the completion of ControllerRef, as described here:
https://github.com/kubernetes/community/blob/master/contributors/design-proposals/controller-ref.md#watches
This also removes the need for the Pod->Controller mapping cache in RC
and RS. This mapping is now persisted in the Pod's ControllerRef
instead.
2017-03-01 15:43:50 -08:00
Mayank Kumar
6b35ff72ce
Enable Garbage collection by default for RS and RC
2017-02-23 22:37:52 -08:00
Andy Goldstein
022bff7fbe
Switch admission to use shared informers
2017-02-23 11:16:09 -05:00
Derek Carr
b8676e4763
Fix flake in quota integration test
2017-02-22 09:57:20 -05:00
Derek Carr
3fad0cb52a
Implement support for limited resources in quota
2017-02-18 12:10:22 -05:00
Andy Goldstein
d820e3928c
Switch resourcequota controller to shared informers
2017-02-14 12:20:27 -05:00