Skip to content

Commit f3bb698

Browse files
fix: suppress NewSimpleClientset deprecation warning in tokengetter test
The fake.NewSimpleClientset is deprecated in client-go in favor of fake.NewClientset which requires generated apply configurations. Since this project doesn't currently generate apply configurations, we suppress the deprecation warning with a nolint comment explaining the situation. This can be properly fixed once apply configurations are generated for the project's API types. Assisted-by: Cursor/Claude
1 parent 349e568 commit f3bb698

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/operator-controller/authentication/tokengetter_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import (
1616
)
1717

1818
func TestTokenGetterGet(t *testing.T) {
19+
// nolint:staticcheck // SA1019: NewSimpleClientset is deprecated but NewClientset requires apply configurations
1920
fakeClient := fake.NewSimpleClientset()
2021
fakeClient.PrependReactor("create", "serviceaccounts/token",
2122
func(action ctest.Action) (bool, runtime.Object, error) {

0 commit comments

Comments
 (0)