func (c *FakeSecrets) Create(secret *v1alpha1.Secret) (result *v1alpha1.Secret, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewCreateAction(secretsResource, c.ns, secret), &v1alpha1.Secret{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1alpha1.Secret), err
}
Create takes the representation of a secret and creates it.  Returns the server's representation of the secret, and an error, if there is any.
package fake
import (
	v1alpha1 "github.com/baetyl/baetyl-cloud/v2/plugin/kube/apis/cloud/v1alpha1"
	v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	labels "k8s.io/apimachinery/pkg/labels"
	schema "k8s.io/apimachinery/pkg/runtime/schema"
	types "k8s.io/apimachinery/pkg/types"
	watch "k8s.io/apimachinery/pkg/watch"
	testing "k8s.io/client-go/testing"
)
type FakeSecrets struct {
	Fake *FakeCloudV1alpha1
	ns   string
}
var secretsResource = schema.GroupVersionResource{Group: "cloud.baetyl.io", Version: "v1alpha1", Resource: "secrets"}
var secretsKind = schema.GroupVersionKind{Group: "cloud.baetyl.io", Version: "v1alpha1", Kind: "Secret"}
func (c *FakeSecrets) Get(name string, options v1.GetOptions) (result *v1alpha1.Secret, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewGetAction(secretsResource, c.ns, name), &v1alpha1.Secret{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1alpha1.Secret), err
}
func (c *FakeSecrets) List(opts v1.ListOptions) (result *v1alpha1.SecretList, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewListAction(secretsResource, secretsKind, c.ns, opts), &v1alpha1.SecretList{})
	if obj == nil {
		return nil, err
	}
	label, _, _ := testing.ExtractFromListOptions(opts)
	if label == nil {
		label = labels.Everything()
	}
	list := &v1alpha1.SecretList{ListMeta: obj.(*v1alpha1.SecretList).ListMeta}
	for _, item := range obj.(*v1alpha1.SecretList).Items {
		if label.Matches(labels.Set(item.Labels)) {
			list.Items = append(list.Items, item)
		}
	}
	return list, err
}
func (c *FakeSecrets) Watch(opts v1.ListOptions) (watch.Interface, error) {
	return c.Fake.
		InvokesWatch(testing.NewWatchAction(secretsResource, c.ns, opts))
}