// Copyright (c) 2025 Tigera, Inc. All rights reserved.

// Code generated by client-gen. DO NOT EDIT.

package fake

import (
	v3 "github.com/projectcalico/api/pkg/apis/projectcalico/v3"
	projectcalicov3 "github.com/projectcalico/api/pkg/client/clientset_generated/clientset/typed/projectcalico/v3"
	gentype "k8s.io/client-go/gentype"
)

// fakeKubeControllersConfigurations implements KubeControllersConfigurationInterface
type fakeKubeControllersConfigurations struct {
	*gentype.FakeClientWithList[*v3.KubeControllersConfiguration, *v3.KubeControllersConfigurationList]
	Fake *FakeProjectcalicoV3
}

func newFakeKubeControllersConfigurations(fake *FakeProjectcalicoV3) projectcalicov3.KubeControllersConfigurationInterface {
	return &fakeKubeControllersConfigurations{
		gentype.NewFakeClientWithList[*v3.KubeControllersConfiguration, *v3.KubeControllersConfigurationList](
			fake.Fake,
			"",
			v3.SchemeGroupVersion.WithResource("kubecontrollersconfigurations"),
			v3.SchemeGroupVersion.WithKind("KubeControllersConfiguration"),
			func() *v3.KubeControllersConfiguration { return &v3.KubeControllersConfiguration{} },
			func() *v3.KubeControllersConfigurationList { return &v3.KubeControllersConfigurationList{} },
			func(dst, src *v3.KubeControllersConfigurationList) { dst.ListMeta = src.ListMeta },
			func(list *v3.KubeControllersConfigurationList) []*v3.KubeControllersConfiguration {
				return gentype.ToPointerSlice(list.Items)
			},
			func(list *v3.KubeControllersConfigurationList, items []*v3.KubeControllersConfiguration) {
				list.Items = gentype.FromPointerSlice(items)
			},
		),
		fake,
	}
}
