kubernetes/cmd/kube-controller-manager/app
Yuki Iwai 201c30fba8
Job: Handle error returned from AddEventHandler function (#119917)
* Job: Handle error returned from AddEventHandler function

Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>

* Use the error message the similar to CronJob

Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>

* Clean up error messages

Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>

* Put the tesing.T on the second place in the args for the newControllerFromClient function

Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>

* Put the testing.T on the second place in the args for the newControllerFromClientWithClock function

Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>

* Call t.Helper()

Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>

* Put the testing.TB on the second place in the args for the createJobControllerWithSharedInformers function and call tb.Helper() there

Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>

* Put the testing.TB on the second place in the args for the startJobControllerAndWaitForCaches function and call tb.Helper() there

Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>

* Adapt TestFinializerCleanup to the eventhandler error

Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>

---------

Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
2023-10-17 21:28:34 +02:00
..
config controller-manager: remove deprecated insecure serving from Config 2022-08-31 17:32:21 +08:00
options ValidatingAdmissionPolicy controller for Type Checking (#117377) 2023-07-13 13:41:50 -07:00
testing component-base/logs: improve handling of re-applying a configuration 2023-07-05 19:08:54 +02:00
apps.go kube-controller-manager: convert to structured logging 2023-03-14 19:16:32 +01:00
autoscaling.go Drop AvailableResources from controller context 2023-08-01 14:52:45 -04:00
batch.go Job: Handle error returned from AddEventHandler function (#119917) 2023-10-17 21:28:34 +02:00
bootstrap.go kube-controller-manager: convert to structured logging 2023-03-14 19:16:32 +01:00
certificates_test.go allow setting different certificates for kube-controller-managed CSR signers 2020-07-09 08:14:55 -04:00
certificates.go certificate controller: use contextual logging 2023-03-15 11:26:08 +08:00
cloudproviders.go kube-controller-manager: convert to structured logging 2023-03-14 19:16:32 +01:00
controllermanager_test.go deduplicate cloud provider controller names 2023-06-19 15:01:01 +02:00
controllermanager.go Merge pull request #120606 from f4nd0y/replace-hardcode-with-exists-variable 2023-10-15 05:55:50 +02:00
core_test.go Remove Stop from ControllerContext and pass ctx.Done 2021-09-27 09:16:38 -04:00
core.go remove ClusterCIDR 2023-10-14 19:06:22 +00:00
discovery.go kube-controller-manager: finish conversion to contextual logging 2023-07-12 14:57:29 +02:00
flags_providerless.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
flags_providers.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
import_known_versions.go kube-controller-manager: add ResourceClaim controller 2022-11-10 20:23:50 +01:00
plugins_providerless.go kube-controller-manager: convert to structured logging 2023-03-14 19:16:32 +01:00
plugins_providers.go remove CSI-migration gate 2023-06-04 18:40:17 +08:00
plugins.go kube-controller-manager: convert to structured logging 2023-03-14 19:16:32 +01:00
policy.go Migrate /pkg/controller/disruption to structured and contextual logging 2023-07-12 11:30:45 +08:00
rbac.go Drop AvailableResources from controller context 2023-08-01 14:52:45 -04:00
validatingadmissionpolicystatus.go replace hardcode string with exists variable 2023-09-15 08:37:15 +08:00