Commit Graph
1528 Commits
Author SHA1 Message Date
Ryan Richard f81d65bcb7 update code for compatibility with Go 1.27
Fix some test expectations and also fix the production code in
impersonator.go to make them compatible with both Go 1.27 and also
with older versions, e.g. Go 1.26. With these changes, all unit
tests pass when run with either Go 1.26 or Go 1.27.

Signed-off-by: Ryan Richard <richardry@vmware.com>
2026-08-28 11:45:56 -07:00
Ryan Richard 4a18bd939d upgrade linter to 2.13.1
Signed-off-by: Ryan Richard <richardry@vmware.com>
2026-08-27 14:48:37 -07:00
Ryan Richard d1f84f8f9e switch from github.com/google/cel-go to cel.dev/cel-go
Signed-off-by: Ryan Richard <richardry@vmware.com>
2026-08-20 11:38:15 -07:00
Pinny 1daeedc56a Bump dependencies 2026-08-11 13:07:16 +00:00
Ryan Richard 1e7023bfb2 fix flake in TestLegacyPodCleanerController
Signed-off-by: Ryan Richard <richardry@vmware.com>
2026-07-23 11:29:38 -07:00
Volkan Özçelik 0be27de282 fix flaky TestKubeCertAgent by waiting for informer's watch action
`hasDeploymentSynced` asserts the exact order of the fake client's
deployment actions, expecting the informer's initial `"list"` and
`"watch"` to precede any actions caused by `Sync.WaitForCacheSync()`
can return before the reflector issues its "watch" request, since
the cache is considered synced once the initial "list" is
processed.

Wait for the `"watch"` action to be recorded before
proceeding, since this function runs at the start of every Sync.

Signed-off-by: Volkan Özçelik <volkan.ozcelik@broadcom.com>
2026-07-23 10:30:41 -07:00
Ryan Richard 3f760fd1e4 update test expectation which references version of logr package
Signed-off-by: Ryan Richard <richardry@vmware.com>
2026-07-21 10:20:14 -07:00
Pinny c12ea5d3c7 Bump dependencies 2026-07-08 13:03:09 +00:00
Ryan Richard 85c548bca2 fix lint errors
Signed-off-by: Ryan Richard <richardry@vmware.com>
2026-07-06 11:08:16 -07:00
Ryan Richard 434a6be821 update fips log statement
Signed-off-by: Ryan Richard <richardry@vmware.com>
2026-07-06 10:35:16 -07:00
Ryan Richard a6fca1d101 support building with GOFIPS140
Signed-off-by: Ryan Richard <richardry@vmware.com>
2026-07-06 10:35:16 -07:00
Pinny ee83fb4dfe Bump dependencies 2026-07-03 00:30:14 +00:00
Ryan Richard 6223b41286 retry when github user api 401's during login
Signed-off-by: Ryan Richard <richardry@vmware.com>
2026-07-02 13:43:45 -07:00
Ryan Richard 414af00ff4 limit req body size in login_handler.go
Signed-off-by: Ryan Richard <richardry@vmware.com>
2026-06-30 11:15:30 -07:00
Ryan Richard fce9b9ed1b fix a parsing mistake in ActiveDirectory code
Signed-off-by: Ryan Richard <richardry@vmware.com>
2026-06-30 11:15:23 -07:00
Volkan ÖzçelikandRyan Richard a0ee4b945e fix unit test failure in celformer_test.
Co-authored-by: Ryan Richard <richardry@vmware.com>
Signed-off-by: Volkan Özçelik <volkan.ozcelik@broadcom.com>
2026-06-30 11:13:14 -07:00
Volkan ÖzçelikandRyan Richard d14722396a Fixed API changes based on new dependencies
The "github.com/google/go-github/v87/github" has API shape changes, therefore a mere go.mod dependency update was inadequate; this PR adds necessary changes for feature parity and tests.

Co-authored-by: Ryan Richard <richardry@vmware.com>
Signed-off-by: Volkan Özçelik <volkan.ozcelik@broadcom.com>
2026-06-30 11:12:15 -07:00
PinnyandRyan Richard 1ccfd13194 Bump dependencies 2026-06-30 11:10:51 -07:00
Pinny 556b732b37 Bump dependencies 2026-05-08 15:38:51 +00:00
Ryan Richard c8e98d350e remove usages of WithStack, removes github.com/pkg/errors as direct dep
Signed-off-by: Ryan Richard <richardry@vmware.com>
2026-05-07 10:57:39 -07:00
Ryan Richard f9a863f220 replace some usages of github.com/pkg/errors
Signed-off-by: Ryan Richard <richardry@vmware.com>
2026-05-07 10:38:14 -07:00
Ryan Richard 06b85bf841 auto-disable MutatingAdmissionPolicy admission plugin when that kind does not exist
Signed-off-by: Ryan Richard <richardry@vmware.com>
2026-05-06 12:25:35 -07:00
Ryan Richard 55a1f20d2b update impersonator test expectations for kube 1.36 libs
Signed-off-by: Ryan Richard <richardry@vmware.com>
2026-05-06 08:53:00 -07:00
Ryan Richard 531d40a82e fix some unit test failures caused by k8s bump
Signed-off-by: Ryan Richard <richardry@vmware.com>
2026-05-06 08:53:00 -07:00
Ryan Richard d863e77b19 fix linters errors about deprecated functions
Signed-off-by: Ryan Richard <richardry@vmware.com>
2026-05-06 08:34:17 -07:00
Pinny 85abad32f1 Bump dependencies 2026-05-06 13:10:14 +00:00
Ryan Richard da602dfb35 update expected error message 2026-04-16 14:06:33 -07:00
Ryan Richard 9456461192 update lint ignores regarding no-longer deprecated NewClientset() func 2026-03-27 10:54:09 -07:00
Ryan Richard 5f38bc05c4 upgrade linter and fix/ignore all new lint warnings 2026-03-27 10:08:17 -07:00
Ryan Richard e3b0f65c4c impersonator config controller ignores service labels added by others 2026-03-26 10:52:41 -07:00
Ryan Richard 333847234c remove tests made redundant in Go 1.26.1 by https://github.com/golang/go/issues/70942 2026-03-23 12:26:03 -07:00
Ryan Richard fb6ec15f24 remove some now-unused linter directives 2026-03-23 11:12:59 -07:00
Ryan Richard 6855ccba9d remove tests made redundant in Go 1.26.1 by https://github.com/golang/go/issues/77578 2026-03-23 11:12:59 -07:00
Pinny 8101d0b540 Bump dependencies 2026-03-06 16:54:48 +00:00
Pinny 8572b56aec Bump dependencies 2026-02-18 14:02:11 +00:00
Pinny 6f9858a6b5 Bump dependencies 2026-02-17 14:04:15 +00:00
Ryan Richard e5366d782d fix new linter warnings from prealloc linter 2026-02-13 15:19:15 -08:00
Pinny fda421fa87 Bump dependencies 2026-02-13 14:04:33 +00:00
Pinny 325ef5c2a2 Bump dependencies 2026-02-05 14:02:20 +00:00
Pinny 2a24d09a01 Bump dependencies 2026-02-02 14:08:30 +00:00
Pinny a72c51f823 Bump dependencies 2026-01-29 14:06:00 +00:00
Pinny 13cc7b147d Bump dependencies 2026-01-27 19:05:42 +00:00
Ryan Richard 0f0f3997a0 support partial enablement of anonymous authentication in impersonator 2026-01-23 13:11:29 -08:00
Ryan Richard 54d530784d upgrade to golangci-lint v2.7.2, bring back some nolint directives 2025-12-22 11:03:46 -08:00
Ryan Richard 44509d016e standardize import of "k8s.io/client-go/kubernetes/fake" 2025-12-22 10:34:53 -08:00
Ryan Richard bc88faa50d upgrade dep to github.com/google/go-github/v76 from v75 2025-12-19 12:08:02 -08:00
Ryan Richard 9d1c65c3e6 fix deprecation of NewSimpleClientset by using NewClientset or ignoring 2025-12-19 12:00:56 -08:00
Ryan Richard 10444fb9a3 update unit test expectations for kube 1.35 libraries 2025-12-19 11:11:31 -08:00
Ryan Richard ebfd7d0600 delete test table entries that were accidentally duplicated 2025-12-19 10:58:27 -08:00
Ryan Richard b2747a0ebe bump deps to kube 1.35 with new codegen 2025-12-18 13:20:41 -08:00