Skip to content

Commit

Permalink
Added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
sssash18 committed Nov 22, 2023
1 parent eec1fce commit dd4e634
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cluster-autoscaler/cloudprovider/mcm/fakeclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,10 @@ func NewCoreClientSet(objects ...runtime.Object) (*Clientset, *FakeObjectTracker
return cs, o
}

// NewAppsV1ClientSet returns a clientset that will respond with the provided objects.
// It's backed by a very simple object tracker that processes creates, updates and deletions as-is,
// without applying any validations and/or defaults. It shouldn't be considered a replacement
// for a real clientset and is mostly useful in simple unit tests.
func NewAppsV1ClientSet(objects ...runtime.Object) (*Clientset, *FakeObjectTracker) {

var scheme = runtime.NewScheme()
Expand Down

0 comments on commit dd4e634

Please sign in to comment.