mirror of
https://github.com/kubernetes/sample-controller.git
synced 2025-03-26 16:51:14 +08:00

For compatibility reasons, the old functions without the ctx parameter still get generated, now with context.Background instead of context.TODO. In practice that code won't be used by the client-go reflector code because it prefers the *WithContext functions, but it cannot be ruled out that some other code only supports the old fields. Kubernetes-commit: 8cc74e8a266e1042be1c60adfa3091852036f48a