mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-01-03 11:45:45 +00:00
fix deprecation of NewSimpleClientset by using NewClientset or ignoring
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Copyright 2020-2024 the Pinniped contributors. All Rights Reserved.
|
||||
// Copyright 2020-2025 the Pinniped contributors. All Rights Reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package controller
|
||||
@@ -93,7 +93,7 @@ func TestNewExampleCreatingController(t *testing.T) {
|
||||
}
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
kubeClient := fake.NewSimpleClientset()
|
||||
kubeClient := fake.NewClientset()
|
||||
for i := range tt.args.services {
|
||||
service := tt.args.services[i]
|
||||
err := kubeClient.Tracker().Add(service)
|
||||
|
||||
Reference in New Issue
Block a user