Use controller-gen and code-generator latest version (#3133)
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>
This commit is contained in:
@@ -19,8 +19,8 @@ limitations under the License.
|
||||
package versioned
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
fmt "fmt"
|
||||
http "net/http"
|
||||
|
||||
corev1 "github.com/fission/fission/pkg/generated/clientset/versioned/typed/core/v1"
|
||||
discovery "k8s.io/client-go/discovery"
|
||||
|
||||
@@ -19,10 +19,10 @@ limitations under the License.
|
||||
package v1
|
||||
|
||||
import (
|
||||
"context"
|
||||
context "context"
|
||||
|
||||
v1 "github.com/fission/fission/pkg/apis/core/v1"
|
||||
corev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1"
|
||||
corev1 "github.com/fission/fission/pkg/apis/core/v1"
|
||||
applyconfigurationcorev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1"
|
||||
scheme "github.com/fission/fission/pkg/generated/clientset/versioned/scheme"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
@@ -38,36 +38,37 @@ type CanaryConfigsGetter interface {
|
||||
|
||||
// CanaryConfigInterface has methods to work with CanaryConfig resources.
|
||||
type CanaryConfigInterface interface {
|
||||
Create(ctx context.Context, _canaryConfig *v1.CanaryConfig, opts metav1.CreateOptions) (*v1.CanaryConfig, error)
|
||||
Update(ctx context.Context, _canaryConfig *v1.CanaryConfig, opts metav1.UpdateOptions) (*v1.CanaryConfig, error)
|
||||
Create(ctx context.Context, _canaryConfig *corev1.CanaryConfig, opts metav1.CreateOptions) (*corev1.CanaryConfig, error)
|
||||
Update(ctx context.Context, _canaryConfig *corev1.CanaryConfig, opts metav1.UpdateOptions) (*corev1.CanaryConfig, error)
|
||||
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
||||
UpdateStatus(ctx context.Context, _canaryConfig *v1.CanaryConfig, opts metav1.UpdateOptions) (*v1.CanaryConfig, error)
|
||||
UpdateStatus(ctx context.Context, _canaryConfig *corev1.CanaryConfig, opts metav1.UpdateOptions) (*corev1.CanaryConfig, error)
|
||||
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
|
||||
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
|
||||
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.CanaryConfig, error)
|
||||
List(ctx context.Context, opts metav1.ListOptions) (*v1.CanaryConfigList, error)
|
||||
Get(ctx context.Context, name string, opts metav1.GetOptions) (*corev1.CanaryConfig, error)
|
||||
List(ctx context.Context, opts metav1.ListOptions) (*corev1.CanaryConfigList, error)
|
||||
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
|
||||
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CanaryConfig, err error)
|
||||
Apply(ctx context.Context, _canaryConfig *corev1.CanaryConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.CanaryConfig, err error)
|
||||
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *corev1.CanaryConfig, err error)
|
||||
Apply(ctx context.Context, _canaryConfig *applyconfigurationcorev1.CanaryConfigApplyConfiguration, opts metav1.ApplyOptions) (result *corev1.CanaryConfig, err error)
|
||||
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
|
||||
ApplyStatus(ctx context.Context, _canaryConfig *corev1.CanaryConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.CanaryConfig, err error)
|
||||
ApplyStatus(ctx context.Context, _canaryConfig *applyconfigurationcorev1.CanaryConfigApplyConfiguration, opts metav1.ApplyOptions) (result *corev1.CanaryConfig, err error)
|
||||
CanaryConfigExpansion
|
||||
}
|
||||
|
||||
// canaryConfigs implements CanaryConfigInterface
|
||||
type canaryConfigs struct {
|
||||
*gentype.ClientWithListAndApply[*v1.CanaryConfig, *v1.CanaryConfigList, *corev1.CanaryConfigApplyConfiguration]
|
||||
*gentype.ClientWithListAndApply[*corev1.CanaryConfig, *corev1.CanaryConfigList, *applyconfigurationcorev1.CanaryConfigApplyConfiguration]
|
||||
}
|
||||
|
||||
// newCanaryConfigs returns a CanaryConfigs
|
||||
func newCanaryConfigs(c *CoreV1Client, namespace string) *canaryConfigs {
|
||||
return &canaryConfigs{
|
||||
gentype.NewClientWithListAndApply[*v1.CanaryConfig, *v1.CanaryConfigList, *corev1.CanaryConfigApplyConfiguration](
|
||||
gentype.NewClientWithListAndApply[*corev1.CanaryConfig, *corev1.CanaryConfigList, *applyconfigurationcorev1.CanaryConfigApplyConfiguration](
|
||||
"canaryconfigs",
|
||||
c.RESTClient(),
|
||||
scheme.ParameterCodec,
|
||||
namespace,
|
||||
func() *v1.CanaryConfig { return &v1.CanaryConfig{} },
|
||||
func() *v1.CanaryConfigList { return &v1.CanaryConfigList{} }),
|
||||
func() *corev1.CanaryConfig { return &corev1.CanaryConfig{} },
|
||||
func() *corev1.CanaryConfigList { return &corev1.CanaryConfigList{} },
|
||||
),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,10 +19,10 @@ limitations under the License.
|
||||
package v1
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
http "net/http"
|
||||
|
||||
v1 "github.com/fission/fission/pkg/apis/core/v1"
|
||||
"github.com/fission/fission/pkg/generated/clientset/versioned/scheme"
|
||||
corev1 "github.com/fission/fission/pkg/apis/core/v1"
|
||||
scheme "github.com/fission/fission/pkg/generated/clientset/versioned/scheme"
|
||||
rest "k8s.io/client-go/rest"
|
||||
)
|
||||
|
||||
@@ -120,10 +120,10 @@ func New(c rest.Interface) *CoreV1Client {
|
||||
}
|
||||
|
||||
func setConfigDefaults(config *rest.Config) error {
|
||||
gv := v1.SchemeGroupVersion
|
||||
gv := corev1.SchemeGroupVersion
|
||||
config.GroupVersion = &gv
|
||||
config.APIPath = "/apis"
|
||||
config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
|
||||
config.NegotiatedSerializer = rest.CodecFactoryForGeneratedClient(scheme.Scheme, scheme.Codecs).WithoutConversion()
|
||||
|
||||
if config.UserAgent == "" {
|
||||
config.UserAgent = rest.DefaultKubernetesUserAgent()
|
||||
|
||||
@@ -19,10 +19,10 @@ limitations under the License.
|
||||
package v1
|
||||
|
||||
import (
|
||||
"context"
|
||||
context "context"
|
||||
|
||||
v1 "github.com/fission/fission/pkg/apis/core/v1"
|
||||
corev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1"
|
||||
corev1 "github.com/fission/fission/pkg/apis/core/v1"
|
||||
applyconfigurationcorev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1"
|
||||
scheme "github.com/fission/fission/pkg/generated/clientset/versioned/scheme"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
@@ -38,32 +38,33 @@ type EnvironmentsGetter interface {
|
||||
|
||||
// EnvironmentInterface has methods to work with Environment resources.
|
||||
type EnvironmentInterface interface {
|
||||
Create(ctx context.Context, _environment *v1.Environment, opts metav1.CreateOptions) (*v1.Environment, error)
|
||||
Update(ctx context.Context, _environment *v1.Environment, opts metav1.UpdateOptions) (*v1.Environment, error)
|
||||
Create(ctx context.Context, _environment *corev1.Environment, opts metav1.CreateOptions) (*corev1.Environment, error)
|
||||
Update(ctx context.Context, _environment *corev1.Environment, opts metav1.UpdateOptions) (*corev1.Environment, error)
|
||||
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
|
||||
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
|
||||
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Environment, error)
|
||||
List(ctx context.Context, opts metav1.ListOptions) (*v1.EnvironmentList, error)
|
||||
Get(ctx context.Context, name string, opts metav1.GetOptions) (*corev1.Environment, error)
|
||||
List(ctx context.Context, opts metav1.ListOptions) (*corev1.EnvironmentList, error)
|
||||
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
|
||||
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Environment, err error)
|
||||
Apply(ctx context.Context, _environment *corev1.EnvironmentApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Environment, err error)
|
||||
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *corev1.Environment, err error)
|
||||
Apply(ctx context.Context, _environment *applyconfigurationcorev1.EnvironmentApplyConfiguration, opts metav1.ApplyOptions) (result *corev1.Environment, err error)
|
||||
EnvironmentExpansion
|
||||
}
|
||||
|
||||
// environments implements EnvironmentInterface
|
||||
type environments struct {
|
||||
*gentype.ClientWithListAndApply[*v1.Environment, *v1.EnvironmentList, *corev1.EnvironmentApplyConfiguration]
|
||||
*gentype.ClientWithListAndApply[*corev1.Environment, *corev1.EnvironmentList, *applyconfigurationcorev1.EnvironmentApplyConfiguration]
|
||||
}
|
||||
|
||||
// newEnvironments returns a Environments
|
||||
func newEnvironments(c *CoreV1Client, namespace string) *environments {
|
||||
return &environments{
|
||||
gentype.NewClientWithListAndApply[*v1.Environment, *v1.EnvironmentList, *corev1.EnvironmentApplyConfiguration](
|
||||
gentype.NewClientWithListAndApply[*corev1.Environment, *corev1.EnvironmentList, *applyconfigurationcorev1.EnvironmentApplyConfiguration](
|
||||
"environments",
|
||||
c.RESTClient(),
|
||||
scheme.ParameterCodec,
|
||||
namespace,
|
||||
func() *v1.Environment { return &v1.Environment{} },
|
||||
func() *v1.EnvironmentList { return &v1.EnvironmentList{} }),
|
||||
func() *corev1.Environment { return &corev1.Environment{} },
|
||||
func() *corev1.EnvironmentList { return &corev1.EnvironmentList{} },
|
||||
),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,179 +19,33 @@ limitations under the License.
|
||||
package fake
|
||||
|
||||
import (
|
||||
"context"
|
||||
json "encoding/json"
|
||||
"fmt"
|
||||
|
||||
v1 "github.com/fission/fission/pkg/apis/core/v1"
|
||||
corev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
labels "k8s.io/apimachinery/pkg/labels"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
testing "k8s.io/client-go/testing"
|
||||
typedcorev1 "github.com/fission/fission/pkg/generated/clientset/versioned/typed/core/v1"
|
||||
gentype "k8s.io/client-go/gentype"
|
||||
)
|
||||
|
||||
// FakeCanaryConfigs implements CanaryConfigInterface
|
||||
type FakeCanaryConfigs struct {
|
||||
// fakeCanaryConfigs implements CanaryConfigInterface
|
||||
type fakeCanaryConfigs struct {
|
||||
*gentype.FakeClientWithListAndApply[*v1.CanaryConfig, *v1.CanaryConfigList, *corev1.CanaryConfigApplyConfiguration]
|
||||
Fake *FakeCoreV1
|
||||
ns string
|
||||
}
|
||||
|
||||
var canaryconfigsResource = v1.SchemeGroupVersion.WithResource("canaryconfigs")
|
||||
|
||||
var canaryconfigsKind = v1.SchemeGroupVersion.WithKind("CanaryConfig")
|
||||
|
||||
// Get takes name of the _canaryConfig, and returns the corresponding canaryConfig object, and an error if there is any.
|
||||
func (c *FakeCanaryConfigs) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.CanaryConfig, err error) {
|
||||
emptyResult := &v1.CanaryConfig{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewGetActionWithOptions(canaryconfigsResource, c.ns, name, options), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
func newFakeCanaryConfigs(fake *FakeCoreV1, namespace string) typedcorev1.CanaryConfigInterface {
|
||||
return &fakeCanaryConfigs{
|
||||
gentype.NewFakeClientWithListAndApply[*v1.CanaryConfig, *v1.CanaryConfigList, *corev1.CanaryConfigApplyConfiguration](
|
||||
fake.Fake,
|
||||
namespace,
|
||||
v1.SchemeGroupVersion.WithResource("canaryconfigs"),
|
||||
v1.SchemeGroupVersion.WithKind("CanaryConfig"),
|
||||
func() *v1.CanaryConfig { return &v1.CanaryConfig{} },
|
||||
func() *v1.CanaryConfigList { return &v1.CanaryConfigList{} },
|
||||
func(dst, src *v1.CanaryConfigList) { dst.ListMeta = src.ListMeta },
|
||||
func(list *v1.CanaryConfigList) []*v1.CanaryConfig { return gentype.ToPointerSlice(list.Items) },
|
||||
func(list *v1.CanaryConfigList, items []*v1.CanaryConfig) {
|
||||
list.Items = gentype.FromPointerSlice(items)
|
||||
},
|
||||
),
|
||||
fake,
|
||||
}
|
||||
return obj.(*v1.CanaryConfig), err
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of CanaryConfigs that match those selectors.
|
||||
func (c *FakeCanaryConfigs) List(ctx context.Context, opts metav1.ListOptions) (result *v1.CanaryConfigList, err error) {
|
||||
emptyResult := &v1.CanaryConfigList{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewListActionWithOptions(canaryconfigsResource, canaryconfigsKind, c.ns, opts), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
}
|
||||
|
||||
label, _, _ := testing.ExtractFromListOptions(opts)
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &v1.CanaryConfigList{ListMeta: obj.(*v1.CanaryConfigList).ListMeta}
|
||||
for _, item := range obj.(*v1.CanaryConfigList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
}
|
||||
}
|
||||
return list, err
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested canaryConfigs.
|
||||
func (c *FakeCanaryConfigs) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
|
||||
return c.Fake.
|
||||
InvokesWatch(testing.NewWatchActionWithOptions(canaryconfigsResource, c.ns, opts))
|
||||
|
||||
}
|
||||
|
||||
// Create takes the representation of a _canaryConfig and creates it. Returns the server's representation of the canaryConfig, and an error, if there is any.
|
||||
func (c *FakeCanaryConfigs) Create(ctx context.Context, _canaryConfig *v1.CanaryConfig, opts metav1.CreateOptions) (result *v1.CanaryConfig, err error) {
|
||||
emptyResult := &v1.CanaryConfig{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewCreateActionWithOptions(canaryconfigsResource, c.ns, _canaryConfig, opts), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
}
|
||||
return obj.(*v1.CanaryConfig), err
|
||||
}
|
||||
|
||||
// Update takes the representation of a _canaryConfig and updates it. Returns the server's representation of the canaryConfig, and an error, if there is any.
|
||||
func (c *FakeCanaryConfigs) Update(ctx context.Context, _canaryConfig *v1.CanaryConfig, opts metav1.UpdateOptions) (result *v1.CanaryConfig, err error) {
|
||||
emptyResult := &v1.CanaryConfig{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewUpdateActionWithOptions(canaryconfigsResource, c.ns, _canaryConfig, opts), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
}
|
||||
return obj.(*v1.CanaryConfig), err
|
||||
}
|
||||
|
||||
// UpdateStatus was generated because the type contains a Status member.
|
||||
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
||||
func (c *FakeCanaryConfigs) UpdateStatus(ctx context.Context, _canaryConfig *v1.CanaryConfig, opts metav1.UpdateOptions) (result *v1.CanaryConfig, err error) {
|
||||
emptyResult := &v1.CanaryConfig{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewUpdateSubresourceActionWithOptions(canaryconfigsResource, "status", c.ns, _canaryConfig, opts), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
}
|
||||
return obj.(*v1.CanaryConfig), err
|
||||
}
|
||||
|
||||
// Delete takes name of the _canaryConfig and deletes it. Returns an error if one occurs.
|
||||
func (c *FakeCanaryConfigs) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
|
||||
_, err := c.Fake.
|
||||
Invokes(testing.NewDeleteActionWithOptions(canaryconfigsResource, c.ns, name, opts), &v1.CanaryConfig{})
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *FakeCanaryConfigs) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
|
||||
action := testing.NewDeleteCollectionActionWithOptions(canaryconfigsResource, c.ns, opts, listOpts)
|
||||
|
||||
_, err := c.Fake.Invokes(action, &v1.CanaryConfigList{})
|
||||
return err
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched canaryConfig.
|
||||
func (c *FakeCanaryConfigs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CanaryConfig, err error) {
|
||||
emptyResult := &v1.CanaryConfig{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewPatchSubresourceActionWithOptions(canaryconfigsResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
}
|
||||
return obj.(*v1.CanaryConfig), err
|
||||
}
|
||||
|
||||
// Apply takes the given apply declarative configuration, applies it and returns the applied canaryConfig.
|
||||
func (c *FakeCanaryConfigs) Apply(ctx context.Context, _canaryConfig *corev1.CanaryConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.CanaryConfig, err error) {
|
||||
if _canaryConfig == nil {
|
||||
return nil, fmt.Errorf("_canaryConfig provided to Apply must not be nil")
|
||||
}
|
||||
data, err := json.Marshal(_canaryConfig)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
name := _canaryConfig.Name
|
||||
if name == nil {
|
||||
return nil, fmt.Errorf("_canaryConfig.Name must be provided to Apply")
|
||||
}
|
||||
emptyResult := &v1.CanaryConfig{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewPatchSubresourceActionWithOptions(canaryconfigsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
}
|
||||
return obj.(*v1.CanaryConfig), err
|
||||
}
|
||||
|
||||
// ApplyStatus was generated because the type contains a Status member.
|
||||
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
|
||||
func (c *FakeCanaryConfigs) ApplyStatus(ctx context.Context, _canaryConfig *corev1.CanaryConfigApplyConfiguration, opts metav1.ApplyOptions) (result *v1.CanaryConfig, err error) {
|
||||
if _canaryConfig == nil {
|
||||
return nil, fmt.Errorf("_canaryConfig provided to Apply must not be nil")
|
||||
}
|
||||
data, err := json.Marshal(_canaryConfig)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
name := _canaryConfig.Name
|
||||
if name == nil {
|
||||
return nil, fmt.Errorf("_canaryConfig.Name must be provided to Apply")
|
||||
}
|
||||
emptyResult := &v1.CanaryConfig{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewPatchSubresourceActionWithOptions(canaryconfigsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
}
|
||||
return obj.(*v1.CanaryConfig), err
|
||||
}
|
||||
|
||||
@@ -29,35 +29,35 @@ type FakeCoreV1 struct {
|
||||
}
|
||||
|
||||
func (c *FakeCoreV1) CanaryConfigs(namespace string) v1.CanaryConfigInterface {
|
||||
return &FakeCanaryConfigs{c, namespace}
|
||||
return newFakeCanaryConfigs(c, namespace)
|
||||
}
|
||||
|
||||
func (c *FakeCoreV1) Environments(namespace string) v1.EnvironmentInterface {
|
||||
return &FakeEnvironments{c, namespace}
|
||||
return newFakeEnvironments(c, namespace)
|
||||
}
|
||||
|
||||
func (c *FakeCoreV1) Functions(namespace string) v1.FunctionInterface {
|
||||
return &FakeFunctions{c, namespace}
|
||||
return newFakeFunctions(c, namespace)
|
||||
}
|
||||
|
||||
func (c *FakeCoreV1) HTTPTriggers(namespace string) v1.HTTPTriggerInterface {
|
||||
return &FakeHTTPTriggers{c, namespace}
|
||||
return newFakeHTTPTriggers(c, namespace)
|
||||
}
|
||||
|
||||
func (c *FakeCoreV1) KubernetesWatchTriggers(namespace string) v1.KubernetesWatchTriggerInterface {
|
||||
return &FakeKubernetesWatchTriggers{c, namespace}
|
||||
return newFakeKubernetesWatchTriggers(c, namespace)
|
||||
}
|
||||
|
||||
func (c *FakeCoreV1) MessageQueueTriggers(namespace string) v1.MessageQueueTriggerInterface {
|
||||
return &FakeMessageQueueTriggers{c, namespace}
|
||||
return newFakeMessageQueueTriggers(c, namespace)
|
||||
}
|
||||
|
||||
func (c *FakeCoreV1) Packages(namespace string) v1.PackageInterface {
|
||||
return &FakePackages{c, namespace}
|
||||
return newFakePackages(c, namespace)
|
||||
}
|
||||
|
||||
func (c *FakeCoreV1) TimeTriggers(namespace string) v1.TimeTriggerInterface {
|
||||
return &FakeTimeTriggers{c, namespace}
|
||||
return newFakeTimeTriggers(c, namespace)
|
||||
}
|
||||
|
||||
// RESTClient returns a RESTClient that is used to communicate
|
||||
|
||||
@@ -19,142 +19,31 @@ limitations under the License.
|
||||
package fake
|
||||
|
||||
import (
|
||||
"context"
|
||||
json "encoding/json"
|
||||
"fmt"
|
||||
|
||||
v1 "github.com/fission/fission/pkg/apis/core/v1"
|
||||
corev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
labels "k8s.io/apimachinery/pkg/labels"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
testing "k8s.io/client-go/testing"
|
||||
typedcorev1 "github.com/fission/fission/pkg/generated/clientset/versioned/typed/core/v1"
|
||||
gentype "k8s.io/client-go/gentype"
|
||||
)
|
||||
|
||||
// FakeEnvironments implements EnvironmentInterface
|
||||
type FakeEnvironments struct {
|
||||
// fakeEnvironments implements EnvironmentInterface
|
||||
type fakeEnvironments struct {
|
||||
*gentype.FakeClientWithListAndApply[*v1.Environment, *v1.EnvironmentList, *corev1.EnvironmentApplyConfiguration]
|
||||
Fake *FakeCoreV1
|
||||
ns string
|
||||
}
|
||||
|
||||
var environmentsResource = v1.SchemeGroupVersion.WithResource("environments")
|
||||
|
||||
var environmentsKind = v1.SchemeGroupVersion.WithKind("Environment")
|
||||
|
||||
// Get takes name of the _environment, and returns the corresponding environment object, and an error if there is any.
|
||||
func (c *FakeEnvironments) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Environment, err error) {
|
||||
emptyResult := &v1.Environment{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewGetActionWithOptions(environmentsResource, c.ns, name, options), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
func newFakeEnvironments(fake *FakeCoreV1, namespace string) typedcorev1.EnvironmentInterface {
|
||||
return &fakeEnvironments{
|
||||
gentype.NewFakeClientWithListAndApply[*v1.Environment, *v1.EnvironmentList, *corev1.EnvironmentApplyConfiguration](
|
||||
fake.Fake,
|
||||
namespace,
|
||||
v1.SchemeGroupVersion.WithResource("environments"),
|
||||
v1.SchemeGroupVersion.WithKind("Environment"),
|
||||
func() *v1.Environment { return &v1.Environment{} },
|
||||
func() *v1.EnvironmentList { return &v1.EnvironmentList{} },
|
||||
func(dst, src *v1.EnvironmentList) { dst.ListMeta = src.ListMeta },
|
||||
func(list *v1.EnvironmentList) []*v1.Environment { return gentype.ToPointerSlice(list.Items) },
|
||||
func(list *v1.EnvironmentList, items []*v1.Environment) { list.Items = gentype.FromPointerSlice(items) },
|
||||
),
|
||||
fake,
|
||||
}
|
||||
return obj.(*v1.Environment), err
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of Environments that match those selectors.
|
||||
func (c *FakeEnvironments) List(ctx context.Context, opts metav1.ListOptions) (result *v1.EnvironmentList, err error) {
|
||||
emptyResult := &v1.EnvironmentList{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewListActionWithOptions(environmentsResource, environmentsKind, c.ns, opts), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
}
|
||||
|
||||
label, _, _ := testing.ExtractFromListOptions(opts)
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &v1.EnvironmentList{ListMeta: obj.(*v1.EnvironmentList).ListMeta}
|
||||
for _, item := range obj.(*v1.EnvironmentList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
}
|
||||
}
|
||||
return list, err
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested environments.
|
||||
func (c *FakeEnvironments) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
|
||||
return c.Fake.
|
||||
InvokesWatch(testing.NewWatchActionWithOptions(environmentsResource, c.ns, opts))
|
||||
|
||||
}
|
||||
|
||||
// Create takes the representation of a _environment and creates it. Returns the server's representation of the environment, and an error, if there is any.
|
||||
func (c *FakeEnvironments) Create(ctx context.Context, _environment *v1.Environment, opts metav1.CreateOptions) (result *v1.Environment, err error) {
|
||||
emptyResult := &v1.Environment{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewCreateActionWithOptions(environmentsResource, c.ns, _environment, opts), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
}
|
||||
return obj.(*v1.Environment), err
|
||||
}
|
||||
|
||||
// Update takes the representation of a _environment and updates it. Returns the server's representation of the environment, and an error, if there is any.
|
||||
func (c *FakeEnvironments) Update(ctx context.Context, _environment *v1.Environment, opts metav1.UpdateOptions) (result *v1.Environment, err error) {
|
||||
emptyResult := &v1.Environment{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewUpdateActionWithOptions(environmentsResource, c.ns, _environment, opts), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
}
|
||||
return obj.(*v1.Environment), err
|
||||
}
|
||||
|
||||
// Delete takes name of the _environment and deletes it. Returns an error if one occurs.
|
||||
func (c *FakeEnvironments) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
|
||||
_, err := c.Fake.
|
||||
Invokes(testing.NewDeleteActionWithOptions(environmentsResource, c.ns, name, opts), &v1.Environment{})
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *FakeEnvironments) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
|
||||
action := testing.NewDeleteCollectionActionWithOptions(environmentsResource, c.ns, opts, listOpts)
|
||||
|
||||
_, err := c.Fake.Invokes(action, &v1.EnvironmentList{})
|
||||
return err
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched environment.
|
||||
func (c *FakeEnvironments) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Environment, err error) {
|
||||
emptyResult := &v1.Environment{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewPatchSubresourceActionWithOptions(environmentsResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
}
|
||||
return obj.(*v1.Environment), err
|
||||
}
|
||||
|
||||
// Apply takes the given apply declarative configuration, applies it and returns the applied environment.
|
||||
func (c *FakeEnvironments) Apply(ctx context.Context, _environment *corev1.EnvironmentApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Environment, err error) {
|
||||
if _environment == nil {
|
||||
return nil, fmt.Errorf("_environment provided to Apply must not be nil")
|
||||
}
|
||||
data, err := json.Marshal(_environment)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
name := _environment.Name
|
||||
if name == nil {
|
||||
return nil, fmt.Errorf("_environment.Name must be provided to Apply")
|
||||
}
|
||||
emptyResult := &v1.Environment{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewPatchSubresourceActionWithOptions(environmentsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
}
|
||||
return obj.(*v1.Environment), err
|
||||
}
|
||||
|
||||
@@ -19,142 +19,31 @@ limitations under the License.
|
||||
package fake
|
||||
|
||||
import (
|
||||
"context"
|
||||
json "encoding/json"
|
||||
"fmt"
|
||||
|
||||
v1 "github.com/fission/fission/pkg/apis/core/v1"
|
||||
corev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
labels "k8s.io/apimachinery/pkg/labels"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
testing "k8s.io/client-go/testing"
|
||||
typedcorev1 "github.com/fission/fission/pkg/generated/clientset/versioned/typed/core/v1"
|
||||
gentype "k8s.io/client-go/gentype"
|
||||
)
|
||||
|
||||
// FakeFunctions implements FunctionInterface
|
||||
type FakeFunctions struct {
|
||||
// fakeFunctions implements FunctionInterface
|
||||
type fakeFunctions struct {
|
||||
*gentype.FakeClientWithListAndApply[*v1.Function, *v1.FunctionList, *corev1.FunctionApplyConfiguration]
|
||||
Fake *FakeCoreV1
|
||||
ns string
|
||||
}
|
||||
|
||||
var functionsResource = v1.SchemeGroupVersion.WithResource("functions")
|
||||
|
||||
var functionsKind = v1.SchemeGroupVersion.WithKind("Function")
|
||||
|
||||
// Get takes name of the _function, and returns the corresponding function object, and an error if there is any.
|
||||
func (c *FakeFunctions) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Function, err error) {
|
||||
emptyResult := &v1.Function{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewGetActionWithOptions(functionsResource, c.ns, name, options), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
func newFakeFunctions(fake *FakeCoreV1, namespace string) typedcorev1.FunctionInterface {
|
||||
return &fakeFunctions{
|
||||
gentype.NewFakeClientWithListAndApply[*v1.Function, *v1.FunctionList, *corev1.FunctionApplyConfiguration](
|
||||
fake.Fake,
|
||||
namespace,
|
||||
v1.SchemeGroupVersion.WithResource("functions"),
|
||||
v1.SchemeGroupVersion.WithKind("Function"),
|
||||
func() *v1.Function { return &v1.Function{} },
|
||||
func() *v1.FunctionList { return &v1.FunctionList{} },
|
||||
func(dst, src *v1.FunctionList) { dst.ListMeta = src.ListMeta },
|
||||
func(list *v1.FunctionList) []*v1.Function { return gentype.ToPointerSlice(list.Items) },
|
||||
func(list *v1.FunctionList, items []*v1.Function) { list.Items = gentype.FromPointerSlice(items) },
|
||||
),
|
||||
fake,
|
||||
}
|
||||
return obj.(*v1.Function), err
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of Functions that match those selectors.
|
||||
func (c *FakeFunctions) List(ctx context.Context, opts metav1.ListOptions) (result *v1.FunctionList, err error) {
|
||||
emptyResult := &v1.FunctionList{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewListActionWithOptions(functionsResource, functionsKind, c.ns, opts), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
}
|
||||
|
||||
label, _, _ := testing.ExtractFromListOptions(opts)
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &v1.FunctionList{ListMeta: obj.(*v1.FunctionList).ListMeta}
|
||||
for _, item := range obj.(*v1.FunctionList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
}
|
||||
}
|
||||
return list, err
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested functions.
|
||||
func (c *FakeFunctions) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
|
||||
return c.Fake.
|
||||
InvokesWatch(testing.NewWatchActionWithOptions(functionsResource, c.ns, opts))
|
||||
|
||||
}
|
||||
|
||||
// Create takes the representation of a _function and creates it. Returns the server's representation of the function, and an error, if there is any.
|
||||
func (c *FakeFunctions) Create(ctx context.Context, _function *v1.Function, opts metav1.CreateOptions) (result *v1.Function, err error) {
|
||||
emptyResult := &v1.Function{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewCreateActionWithOptions(functionsResource, c.ns, _function, opts), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
}
|
||||
return obj.(*v1.Function), err
|
||||
}
|
||||
|
||||
// Update takes the representation of a _function and updates it. Returns the server's representation of the function, and an error, if there is any.
|
||||
func (c *FakeFunctions) Update(ctx context.Context, _function *v1.Function, opts metav1.UpdateOptions) (result *v1.Function, err error) {
|
||||
emptyResult := &v1.Function{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewUpdateActionWithOptions(functionsResource, c.ns, _function, opts), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
}
|
||||
return obj.(*v1.Function), err
|
||||
}
|
||||
|
||||
// Delete takes name of the _function and deletes it. Returns an error if one occurs.
|
||||
func (c *FakeFunctions) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
|
||||
_, err := c.Fake.
|
||||
Invokes(testing.NewDeleteActionWithOptions(functionsResource, c.ns, name, opts), &v1.Function{})
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *FakeFunctions) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
|
||||
action := testing.NewDeleteCollectionActionWithOptions(functionsResource, c.ns, opts, listOpts)
|
||||
|
||||
_, err := c.Fake.Invokes(action, &v1.FunctionList{})
|
||||
return err
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched function.
|
||||
func (c *FakeFunctions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Function, err error) {
|
||||
emptyResult := &v1.Function{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewPatchSubresourceActionWithOptions(functionsResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
}
|
||||
return obj.(*v1.Function), err
|
||||
}
|
||||
|
||||
// Apply takes the given apply declarative configuration, applies it and returns the applied function.
|
||||
func (c *FakeFunctions) Apply(ctx context.Context, _function *corev1.FunctionApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Function, err error) {
|
||||
if _function == nil {
|
||||
return nil, fmt.Errorf("_function provided to Apply must not be nil")
|
||||
}
|
||||
data, err := json.Marshal(_function)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
name := _function.Name
|
||||
if name == nil {
|
||||
return nil, fmt.Errorf("_function.Name must be provided to Apply")
|
||||
}
|
||||
emptyResult := &v1.Function{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewPatchSubresourceActionWithOptions(functionsResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
}
|
||||
return obj.(*v1.Function), err
|
||||
}
|
||||
|
||||
@@ -19,142 +19,31 @@ limitations under the License.
|
||||
package fake
|
||||
|
||||
import (
|
||||
"context"
|
||||
json "encoding/json"
|
||||
"fmt"
|
||||
|
||||
v1 "github.com/fission/fission/pkg/apis/core/v1"
|
||||
corev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
labels "k8s.io/apimachinery/pkg/labels"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
testing "k8s.io/client-go/testing"
|
||||
typedcorev1 "github.com/fission/fission/pkg/generated/clientset/versioned/typed/core/v1"
|
||||
gentype "k8s.io/client-go/gentype"
|
||||
)
|
||||
|
||||
// FakeHTTPTriggers implements HTTPTriggerInterface
|
||||
type FakeHTTPTriggers struct {
|
||||
// fakeHTTPTriggers implements HTTPTriggerInterface
|
||||
type fakeHTTPTriggers struct {
|
||||
*gentype.FakeClientWithListAndApply[*v1.HTTPTrigger, *v1.HTTPTriggerList, *corev1.HTTPTriggerApplyConfiguration]
|
||||
Fake *FakeCoreV1
|
||||
ns string
|
||||
}
|
||||
|
||||
var httptriggersResource = v1.SchemeGroupVersion.WithResource("httptriggers")
|
||||
|
||||
var httptriggersKind = v1.SchemeGroupVersion.WithKind("HTTPTrigger")
|
||||
|
||||
// Get takes name of the _hTTPTrigger, and returns the corresponding hTTPTrigger object, and an error if there is any.
|
||||
func (c *FakeHTTPTriggers) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.HTTPTrigger, err error) {
|
||||
emptyResult := &v1.HTTPTrigger{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewGetActionWithOptions(httptriggersResource, c.ns, name, options), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
func newFakeHTTPTriggers(fake *FakeCoreV1, namespace string) typedcorev1.HTTPTriggerInterface {
|
||||
return &fakeHTTPTriggers{
|
||||
gentype.NewFakeClientWithListAndApply[*v1.HTTPTrigger, *v1.HTTPTriggerList, *corev1.HTTPTriggerApplyConfiguration](
|
||||
fake.Fake,
|
||||
namespace,
|
||||
v1.SchemeGroupVersion.WithResource("httptriggers"),
|
||||
v1.SchemeGroupVersion.WithKind("HTTPTrigger"),
|
||||
func() *v1.HTTPTrigger { return &v1.HTTPTrigger{} },
|
||||
func() *v1.HTTPTriggerList { return &v1.HTTPTriggerList{} },
|
||||
func(dst, src *v1.HTTPTriggerList) { dst.ListMeta = src.ListMeta },
|
||||
func(list *v1.HTTPTriggerList) []*v1.HTTPTrigger { return gentype.ToPointerSlice(list.Items) },
|
||||
func(list *v1.HTTPTriggerList, items []*v1.HTTPTrigger) { list.Items = gentype.FromPointerSlice(items) },
|
||||
),
|
||||
fake,
|
||||
}
|
||||
return obj.(*v1.HTTPTrigger), err
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of HTTPTriggers that match those selectors.
|
||||
func (c *FakeHTTPTriggers) List(ctx context.Context, opts metav1.ListOptions) (result *v1.HTTPTriggerList, err error) {
|
||||
emptyResult := &v1.HTTPTriggerList{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewListActionWithOptions(httptriggersResource, httptriggersKind, c.ns, opts), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
}
|
||||
|
||||
label, _, _ := testing.ExtractFromListOptions(opts)
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &v1.HTTPTriggerList{ListMeta: obj.(*v1.HTTPTriggerList).ListMeta}
|
||||
for _, item := range obj.(*v1.HTTPTriggerList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
}
|
||||
}
|
||||
return list, err
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested hTTPTriggers.
|
||||
func (c *FakeHTTPTriggers) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
|
||||
return c.Fake.
|
||||
InvokesWatch(testing.NewWatchActionWithOptions(httptriggersResource, c.ns, opts))
|
||||
|
||||
}
|
||||
|
||||
// Create takes the representation of a _hTTPTrigger and creates it. Returns the server's representation of the hTTPTrigger, and an error, if there is any.
|
||||
func (c *FakeHTTPTriggers) Create(ctx context.Context, _hTTPTrigger *v1.HTTPTrigger, opts metav1.CreateOptions) (result *v1.HTTPTrigger, err error) {
|
||||
emptyResult := &v1.HTTPTrigger{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewCreateActionWithOptions(httptriggersResource, c.ns, _hTTPTrigger, opts), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
}
|
||||
return obj.(*v1.HTTPTrigger), err
|
||||
}
|
||||
|
||||
// Update takes the representation of a _hTTPTrigger and updates it. Returns the server's representation of the hTTPTrigger, and an error, if there is any.
|
||||
func (c *FakeHTTPTriggers) Update(ctx context.Context, _hTTPTrigger *v1.HTTPTrigger, opts metav1.UpdateOptions) (result *v1.HTTPTrigger, err error) {
|
||||
emptyResult := &v1.HTTPTrigger{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewUpdateActionWithOptions(httptriggersResource, c.ns, _hTTPTrigger, opts), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
}
|
||||
return obj.(*v1.HTTPTrigger), err
|
||||
}
|
||||
|
||||
// Delete takes name of the _hTTPTrigger and deletes it. Returns an error if one occurs.
|
||||
func (c *FakeHTTPTriggers) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
|
||||
_, err := c.Fake.
|
||||
Invokes(testing.NewDeleteActionWithOptions(httptriggersResource, c.ns, name, opts), &v1.HTTPTrigger{})
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *FakeHTTPTriggers) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
|
||||
action := testing.NewDeleteCollectionActionWithOptions(httptriggersResource, c.ns, opts, listOpts)
|
||||
|
||||
_, err := c.Fake.Invokes(action, &v1.HTTPTriggerList{})
|
||||
return err
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched hTTPTrigger.
|
||||
func (c *FakeHTTPTriggers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.HTTPTrigger, err error) {
|
||||
emptyResult := &v1.HTTPTrigger{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewPatchSubresourceActionWithOptions(httptriggersResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
}
|
||||
return obj.(*v1.HTTPTrigger), err
|
||||
}
|
||||
|
||||
// Apply takes the given apply declarative configuration, applies it and returns the applied hTTPTrigger.
|
||||
func (c *FakeHTTPTriggers) Apply(ctx context.Context, _hTTPTrigger *corev1.HTTPTriggerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.HTTPTrigger, err error) {
|
||||
if _hTTPTrigger == nil {
|
||||
return nil, fmt.Errorf("_hTTPTrigger provided to Apply must not be nil")
|
||||
}
|
||||
data, err := json.Marshal(_hTTPTrigger)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
name := _hTTPTrigger.Name
|
||||
if name == nil {
|
||||
return nil, fmt.Errorf("_hTTPTrigger.Name must be provided to Apply")
|
||||
}
|
||||
emptyResult := &v1.HTTPTrigger{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewPatchSubresourceActionWithOptions(httptriggersResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
}
|
||||
return obj.(*v1.HTTPTrigger), err
|
||||
}
|
||||
|
||||
+23
-130
@@ -19,142 +19,35 @@ limitations under the License.
|
||||
package fake
|
||||
|
||||
import (
|
||||
"context"
|
||||
json "encoding/json"
|
||||
"fmt"
|
||||
|
||||
v1 "github.com/fission/fission/pkg/apis/core/v1"
|
||||
corev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
labels "k8s.io/apimachinery/pkg/labels"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
testing "k8s.io/client-go/testing"
|
||||
typedcorev1 "github.com/fission/fission/pkg/generated/clientset/versioned/typed/core/v1"
|
||||
gentype "k8s.io/client-go/gentype"
|
||||
)
|
||||
|
||||
// FakeKubernetesWatchTriggers implements KubernetesWatchTriggerInterface
|
||||
type FakeKubernetesWatchTriggers struct {
|
||||
// fakeKubernetesWatchTriggers implements KubernetesWatchTriggerInterface
|
||||
type fakeKubernetesWatchTriggers struct {
|
||||
*gentype.FakeClientWithListAndApply[*v1.KubernetesWatchTrigger, *v1.KubernetesWatchTriggerList, *corev1.KubernetesWatchTriggerApplyConfiguration]
|
||||
Fake *FakeCoreV1
|
||||
ns string
|
||||
}
|
||||
|
||||
var kuberneteswatchtriggersResource = v1.SchemeGroupVersion.WithResource("kuberneteswatchtriggers")
|
||||
|
||||
var kuberneteswatchtriggersKind = v1.SchemeGroupVersion.WithKind("KubernetesWatchTrigger")
|
||||
|
||||
// Get takes name of the _kubernetesWatchTrigger, and returns the corresponding kubernetesWatchTrigger object, and an error if there is any.
|
||||
func (c *FakeKubernetesWatchTriggers) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.KubernetesWatchTrigger, err error) {
|
||||
emptyResult := &v1.KubernetesWatchTrigger{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewGetActionWithOptions(kuberneteswatchtriggersResource, c.ns, name, options), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
func newFakeKubernetesWatchTriggers(fake *FakeCoreV1, namespace string) typedcorev1.KubernetesWatchTriggerInterface {
|
||||
return &fakeKubernetesWatchTriggers{
|
||||
gentype.NewFakeClientWithListAndApply[*v1.KubernetesWatchTrigger, *v1.KubernetesWatchTriggerList, *corev1.KubernetesWatchTriggerApplyConfiguration](
|
||||
fake.Fake,
|
||||
namespace,
|
||||
v1.SchemeGroupVersion.WithResource("kuberneteswatchtriggers"),
|
||||
v1.SchemeGroupVersion.WithKind("KubernetesWatchTrigger"),
|
||||
func() *v1.KubernetesWatchTrigger { return &v1.KubernetesWatchTrigger{} },
|
||||
func() *v1.KubernetesWatchTriggerList { return &v1.KubernetesWatchTriggerList{} },
|
||||
func(dst, src *v1.KubernetesWatchTriggerList) { dst.ListMeta = src.ListMeta },
|
||||
func(list *v1.KubernetesWatchTriggerList) []*v1.KubernetesWatchTrigger {
|
||||
return gentype.ToPointerSlice(list.Items)
|
||||
},
|
||||
func(list *v1.KubernetesWatchTriggerList, items []*v1.KubernetesWatchTrigger) {
|
||||
list.Items = gentype.FromPointerSlice(items)
|
||||
},
|
||||
),
|
||||
fake,
|
||||
}
|
||||
return obj.(*v1.KubernetesWatchTrigger), err
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of KubernetesWatchTriggers that match those selectors.
|
||||
func (c *FakeKubernetesWatchTriggers) List(ctx context.Context, opts metav1.ListOptions) (result *v1.KubernetesWatchTriggerList, err error) {
|
||||
emptyResult := &v1.KubernetesWatchTriggerList{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewListActionWithOptions(kuberneteswatchtriggersResource, kuberneteswatchtriggersKind, c.ns, opts), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
}
|
||||
|
||||
label, _, _ := testing.ExtractFromListOptions(opts)
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &v1.KubernetesWatchTriggerList{ListMeta: obj.(*v1.KubernetesWatchTriggerList).ListMeta}
|
||||
for _, item := range obj.(*v1.KubernetesWatchTriggerList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
}
|
||||
}
|
||||
return list, err
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested kubernetesWatchTriggers.
|
||||
func (c *FakeKubernetesWatchTriggers) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
|
||||
return c.Fake.
|
||||
InvokesWatch(testing.NewWatchActionWithOptions(kuberneteswatchtriggersResource, c.ns, opts))
|
||||
|
||||
}
|
||||
|
||||
// Create takes the representation of a _kubernetesWatchTrigger and creates it. Returns the server's representation of the kubernetesWatchTrigger, and an error, if there is any.
|
||||
func (c *FakeKubernetesWatchTriggers) Create(ctx context.Context, _kubernetesWatchTrigger *v1.KubernetesWatchTrigger, opts metav1.CreateOptions) (result *v1.KubernetesWatchTrigger, err error) {
|
||||
emptyResult := &v1.KubernetesWatchTrigger{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewCreateActionWithOptions(kuberneteswatchtriggersResource, c.ns, _kubernetesWatchTrigger, opts), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
}
|
||||
return obj.(*v1.KubernetesWatchTrigger), err
|
||||
}
|
||||
|
||||
// Update takes the representation of a _kubernetesWatchTrigger and updates it. Returns the server's representation of the kubernetesWatchTrigger, and an error, if there is any.
|
||||
func (c *FakeKubernetesWatchTriggers) Update(ctx context.Context, _kubernetesWatchTrigger *v1.KubernetesWatchTrigger, opts metav1.UpdateOptions) (result *v1.KubernetesWatchTrigger, err error) {
|
||||
emptyResult := &v1.KubernetesWatchTrigger{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewUpdateActionWithOptions(kuberneteswatchtriggersResource, c.ns, _kubernetesWatchTrigger, opts), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
}
|
||||
return obj.(*v1.KubernetesWatchTrigger), err
|
||||
}
|
||||
|
||||
// Delete takes name of the _kubernetesWatchTrigger and deletes it. Returns an error if one occurs.
|
||||
func (c *FakeKubernetesWatchTriggers) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
|
||||
_, err := c.Fake.
|
||||
Invokes(testing.NewDeleteActionWithOptions(kuberneteswatchtriggersResource, c.ns, name, opts), &v1.KubernetesWatchTrigger{})
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *FakeKubernetesWatchTriggers) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
|
||||
action := testing.NewDeleteCollectionActionWithOptions(kuberneteswatchtriggersResource, c.ns, opts, listOpts)
|
||||
|
||||
_, err := c.Fake.Invokes(action, &v1.KubernetesWatchTriggerList{})
|
||||
return err
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched kubernetesWatchTrigger.
|
||||
func (c *FakeKubernetesWatchTriggers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.KubernetesWatchTrigger, err error) {
|
||||
emptyResult := &v1.KubernetesWatchTrigger{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewPatchSubresourceActionWithOptions(kuberneteswatchtriggersResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
}
|
||||
return obj.(*v1.KubernetesWatchTrigger), err
|
||||
}
|
||||
|
||||
// Apply takes the given apply declarative configuration, applies it and returns the applied kubernetesWatchTrigger.
|
||||
func (c *FakeKubernetesWatchTriggers) Apply(ctx context.Context, _kubernetesWatchTrigger *corev1.KubernetesWatchTriggerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.KubernetesWatchTrigger, err error) {
|
||||
if _kubernetesWatchTrigger == nil {
|
||||
return nil, fmt.Errorf("_kubernetesWatchTrigger provided to Apply must not be nil")
|
||||
}
|
||||
data, err := json.Marshal(_kubernetesWatchTrigger)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
name := _kubernetesWatchTrigger.Name
|
||||
if name == nil {
|
||||
return nil, fmt.Errorf("_kubernetesWatchTrigger.Name must be provided to Apply")
|
||||
}
|
||||
emptyResult := &v1.KubernetesWatchTrigger{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewPatchSubresourceActionWithOptions(kuberneteswatchtriggersResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
}
|
||||
return obj.(*v1.KubernetesWatchTrigger), err
|
||||
}
|
||||
|
||||
@@ -19,142 +19,35 @@ limitations under the License.
|
||||
package fake
|
||||
|
||||
import (
|
||||
"context"
|
||||
json "encoding/json"
|
||||
"fmt"
|
||||
|
||||
v1 "github.com/fission/fission/pkg/apis/core/v1"
|
||||
corev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
labels "k8s.io/apimachinery/pkg/labels"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
testing "k8s.io/client-go/testing"
|
||||
typedcorev1 "github.com/fission/fission/pkg/generated/clientset/versioned/typed/core/v1"
|
||||
gentype "k8s.io/client-go/gentype"
|
||||
)
|
||||
|
||||
// FakeMessageQueueTriggers implements MessageQueueTriggerInterface
|
||||
type FakeMessageQueueTriggers struct {
|
||||
// fakeMessageQueueTriggers implements MessageQueueTriggerInterface
|
||||
type fakeMessageQueueTriggers struct {
|
||||
*gentype.FakeClientWithListAndApply[*v1.MessageQueueTrigger, *v1.MessageQueueTriggerList, *corev1.MessageQueueTriggerApplyConfiguration]
|
||||
Fake *FakeCoreV1
|
||||
ns string
|
||||
}
|
||||
|
||||
var messagequeuetriggersResource = v1.SchemeGroupVersion.WithResource("messagequeuetriggers")
|
||||
|
||||
var messagequeuetriggersKind = v1.SchemeGroupVersion.WithKind("MessageQueueTrigger")
|
||||
|
||||
// Get takes name of the _messageQueueTrigger, and returns the corresponding messageQueueTrigger object, and an error if there is any.
|
||||
func (c *FakeMessageQueueTriggers) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.MessageQueueTrigger, err error) {
|
||||
emptyResult := &v1.MessageQueueTrigger{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewGetActionWithOptions(messagequeuetriggersResource, c.ns, name, options), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
func newFakeMessageQueueTriggers(fake *FakeCoreV1, namespace string) typedcorev1.MessageQueueTriggerInterface {
|
||||
return &fakeMessageQueueTriggers{
|
||||
gentype.NewFakeClientWithListAndApply[*v1.MessageQueueTrigger, *v1.MessageQueueTriggerList, *corev1.MessageQueueTriggerApplyConfiguration](
|
||||
fake.Fake,
|
||||
namespace,
|
||||
v1.SchemeGroupVersion.WithResource("messagequeuetriggers"),
|
||||
v1.SchemeGroupVersion.WithKind("MessageQueueTrigger"),
|
||||
func() *v1.MessageQueueTrigger { return &v1.MessageQueueTrigger{} },
|
||||
func() *v1.MessageQueueTriggerList { return &v1.MessageQueueTriggerList{} },
|
||||
func(dst, src *v1.MessageQueueTriggerList) { dst.ListMeta = src.ListMeta },
|
||||
func(list *v1.MessageQueueTriggerList) []*v1.MessageQueueTrigger {
|
||||
return gentype.ToPointerSlice(list.Items)
|
||||
},
|
||||
func(list *v1.MessageQueueTriggerList, items []*v1.MessageQueueTrigger) {
|
||||
list.Items = gentype.FromPointerSlice(items)
|
||||
},
|
||||
),
|
||||
fake,
|
||||
}
|
||||
return obj.(*v1.MessageQueueTrigger), err
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of MessageQueueTriggers that match those selectors.
|
||||
func (c *FakeMessageQueueTriggers) List(ctx context.Context, opts metav1.ListOptions) (result *v1.MessageQueueTriggerList, err error) {
|
||||
emptyResult := &v1.MessageQueueTriggerList{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewListActionWithOptions(messagequeuetriggersResource, messagequeuetriggersKind, c.ns, opts), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
}
|
||||
|
||||
label, _, _ := testing.ExtractFromListOptions(opts)
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &v1.MessageQueueTriggerList{ListMeta: obj.(*v1.MessageQueueTriggerList).ListMeta}
|
||||
for _, item := range obj.(*v1.MessageQueueTriggerList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
}
|
||||
}
|
||||
return list, err
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested messageQueueTriggers.
|
||||
func (c *FakeMessageQueueTriggers) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
|
||||
return c.Fake.
|
||||
InvokesWatch(testing.NewWatchActionWithOptions(messagequeuetriggersResource, c.ns, opts))
|
||||
|
||||
}
|
||||
|
||||
// Create takes the representation of a _messageQueueTrigger and creates it. Returns the server's representation of the messageQueueTrigger, and an error, if there is any.
|
||||
func (c *FakeMessageQueueTriggers) Create(ctx context.Context, _messageQueueTrigger *v1.MessageQueueTrigger, opts metav1.CreateOptions) (result *v1.MessageQueueTrigger, err error) {
|
||||
emptyResult := &v1.MessageQueueTrigger{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewCreateActionWithOptions(messagequeuetriggersResource, c.ns, _messageQueueTrigger, opts), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
}
|
||||
return obj.(*v1.MessageQueueTrigger), err
|
||||
}
|
||||
|
||||
// Update takes the representation of a _messageQueueTrigger and updates it. Returns the server's representation of the messageQueueTrigger, and an error, if there is any.
|
||||
func (c *FakeMessageQueueTriggers) Update(ctx context.Context, _messageQueueTrigger *v1.MessageQueueTrigger, opts metav1.UpdateOptions) (result *v1.MessageQueueTrigger, err error) {
|
||||
emptyResult := &v1.MessageQueueTrigger{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewUpdateActionWithOptions(messagequeuetriggersResource, c.ns, _messageQueueTrigger, opts), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
}
|
||||
return obj.(*v1.MessageQueueTrigger), err
|
||||
}
|
||||
|
||||
// Delete takes name of the _messageQueueTrigger and deletes it. Returns an error if one occurs.
|
||||
func (c *FakeMessageQueueTriggers) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
|
||||
_, err := c.Fake.
|
||||
Invokes(testing.NewDeleteActionWithOptions(messagequeuetriggersResource, c.ns, name, opts), &v1.MessageQueueTrigger{})
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *FakeMessageQueueTriggers) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
|
||||
action := testing.NewDeleteCollectionActionWithOptions(messagequeuetriggersResource, c.ns, opts, listOpts)
|
||||
|
||||
_, err := c.Fake.Invokes(action, &v1.MessageQueueTriggerList{})
|
||||
return err
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched messageQueueTrigger.
|
||||
func (c *FakeMessageQueueTriggers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.MessageQueueTrigger, err error) {
|
||||
emptyResult := &v1.MessageQueueTrigger{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewPatchSubresourceActionWithOptions(messagequeuetriggersResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
}
|
||||
return obj.(*v1.MessageQueueTrigger), err
|
||||
}
|
||||
|
||||
// Apply takes the given apply declarative configuration, applies it and returns the applied messageQueueTrigger.
|
||||
func (c *FakeMessageQueueTriggers) Apply(ctx context.Context, _messageQueueTrigger *corev1.MessageQueueTriggerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.MessageQueueTrigger, err error) {
|
||||
if _messageQueueTrigger == nil {
|
||||
return nil, fmt.Errorf("_messageQueueTrigger provided to Apply must not be nil")
|
||||
}
|
||||
data, err := json.Marshal(_messageQueueTrigger)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
name := _messageQueueTrigger.Name
|
||||
if name == nil {
|
||||
return nil, fmt.Errorf("_messageQueueTrigger.Name must be provided to Apply")
|
||||
}
|
||||
emptyResult := &v1.MessageQueueTrigger{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewPatchSubresourceActionWithOptions(messagequeuetriggersResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
}
|
||||
return obj.(*v1.MessageQueueTrigger), err
|
||||
}
|
||||
|
||||
@@ -19,179 +19,31 @@ limitations under the License.
|
||||
package fake
|
||||
|
||||
import (
|
||||
"context"
|
||||
json "encoding/json"
|
||||
"fmt"
|
||||
|
||||
v1 "github.com/fission/fission/pkg/apis/core/v1"
|
||||
corev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
labels "k8s.io/apimachinery/pkg/labels"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
testing "k8s.io/client-go/testing"
|
||||
typedcorev1 "github.com/fission/fission/pkg/generated/clientset/versioned/typed/core/v1"
|
||||
gentype "k8s.io/client-go/gentype"
|
||||
)
|
||||
|
||||
// FakePackages implements PackageInterface
|
||||
type FakePackages struct {
|
||||
// fakePackages implements PackageInterface
|
||||
type fakePackages struct {
|
||||
*gentype.FakeClientWithListAndApply[*v1.Package, *v1.PackageList, *corev1.PackageApplyConfiguration]
|
||||
Fake *FakeCoreV1
|
||||
ns string
|
||||
}
|
||||
|
||||
var packagesResource = v1.SchemeGroupVersion.WithResource("packages")
|
||||
|
||||
var packagesKind = v1.SchemeGroupVersion.WithKind("Package")
|
||||
|
||||
// Get takes name of the _package, and returns the corresponding package object, and an error if there is any.
|
||||
func (c *FakePackages) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Package, err error) {
|
||||
emptyResult := &v1.Package{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewGetActionWithOptions(packagesResource, c.ns, name, options), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
func newFakePackages(fake *FakeCoreV1, namespace string) typedcorev1.PackageInterface {
|
||||
return &fakePackages{
|
||||
gentype.NewFakeClientWithListAndApply[*v1.Package, *v1.PackageList, *corev1.PackageApplyConfiguration](
|
||||
fake.Fake,
|
||||
namespace,
|
||||
v1.SchemeGroupVersion.WithResource("packages"),
|
||||
v1.SchemeGroupVersion.WithKind("Package"),
|
||||
func() *v1.Package { return &v1.Package{} },
|
||||
func() *v1.PackageList { return &v1.PackageList{} },
|
||||
func(dst, src *v1.PackageList) { dst.ListMeta = src.ListMeta },
|
||||
func(list *v1.PackageList) []*v1.Package { return gentype.ToPointerSlice(list.Items) },
|
||||
func(list *v1.PackageList, items []*v1.Package) { list.Items = gentype.FromPointerSlice(items) },
|
||||
),
|
||||
fake,
|
||||
}
|
||||
return obj.(*v1.Package), err
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of Packages that match those selectors.
|
||||
func (c *FakePackages) List(ctx context.Context, opts metav1.ListOptions) (result *v1.PackageList, err error) {
|
||||
emptyResult := &v1.PackageList{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewListActionWithOptions(packagesResource, packagesKind, c.ns, opts), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
}
|
||||
|
||||
label, _, _ := testing.ExtractFromListOptions(opts)
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &v1.PackageList{ListMeta: obj.(*v1.PackageList).ListMeta}
|
||||
for _, item := range obj.(*v1.PackageList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
}
|
||||
}
|
||||
return list, err
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested packages.
|
||||
func (c *FakePackages) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
|
||||
return c.Fake.
|
||||
InvokesWatch(testing.NewWatchActionWithOptions(packagesResource, c.ns, opts))
|
||||
|
||||
}
|
||||
|
||||
// Create takes the representation of a _package and creates it. Returns the server's representation of the package, and an error, if there is any.
|
||||
func (c *FakePackages) Create(ctx context.Context, _package *v1.Package, opts metav1.CreateOptions) (result *v1.Package, err error) {
|
||||
emptyResult := &v1.Package{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewCreateActionWithOptions(packagesResource, c.ns, _package, opts), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
}
|
||||
return obj.(*v1.Package), err
|
||||
}
|
||||
|
||||
// Update takes the representation of a _package and updates it. Returns the server's representation of the package, and an error, if there is any.
|
||||
func (c *FakePackages) Update(ctx context.Context, _package *v1.Package, opts metav1.UpdateOptions) (result *v1.Package, err error) {
|
||||
emptyResult := &v1.Package{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewUpdateActionWithOptions(packagesResource, c.ns, _package, opts), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
}
|
||||
return obj.(*v1.Package), err
|
||||
}
|
||||
|
||||
// UpdateStatus was generated because the type contains a Status member.
|
||||
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
||||
func (c *FakePackages) UpdateStatus(ctx context.Context, _package *v1.Package, opts metav1.UpdateOptions) (result *v1.Package, err error) {
|
||||
emptyResult := &v1.Package{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewUpdateSubresourceActionWithOptions(packagesResource, "status", c.ns, _package, opts), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
}
|
||||
return obj.(*v1.Package), err
|
||||
}
|
||||
|
||||
// Delete takes name of the _package and deletes it. Returns an error if one occurs.
|
||||
func (c *FakePackages) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
|
||||
_, err := c.Fake.
|
||||
Invokes(testing.NewDeleteActionWithOptions(packagesResource, c.ns, name, opts), &v1.Package{})
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *FakePackages) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
|
||||
action := testing.NewDeleteCollectionActionWithOptions(packagesResource, c.ns, opts, listOpts)
|
||||
|
||||
_, err := c.Fake.Invokes(action, &v1.PackageList{})
|
||||
return err
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched package.
|
||||
func (c *FakePackages) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Package, err error) {
|
||||
emptyResult := &v1.Package{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewPatchSubresourceActionWithOptions(packagesResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
}
|
||||
return obj.(*v1.Package), err
|
||||
}
|
||||
|
||||
// Apply takes the given apply declarative configuration, applies it and returns the applied package.
|
||||
func (c *FakePackages) Apply(ctx context.Context, _package *corev1.PackageApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Package, err error) {
|
||||
if _package == nil {
|
||||
return nil, fmt.Errorf("_package provided to Apply must not be nil")
|
||||
}
|
||||
data, err := json.Marshal(_package)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
name := _package.Name
|
||||
if name == nil {
|
||||
return nil, fmt.Errorf("_package.Name must be provided to Apply")
|
||||
}
|
||||
emptyResult := &v1.Package{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewPatchSubresourceActionWithOptions(packagesResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
}
|
||||
return obj.(*v1.Package), err
|
||||
}
|
||||
|
||||
// ApplyStatus was generated because the type contains a Status member.
|
||||
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
|
||||
func (c *FakePackages) ApplyStatus(ctx context.Context, _package *corev1.PackageApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Package, err error) {
|
||||
if _package == nil {
|
||||
return nil, fmt.Errorf("_package provided to Apply must not be nil")
|
||||
}
|
||||
data, err := json.Marshal(_package)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
name := _package.Name
|
||||
if name == nil {
|
||||
return nil, fmt.Errorf("_package.Name must be provided to Apply")
|
||||
}
|
||||
emptyResult := &v1.Package{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewPatchSubresourceActionWithOptions(packagesResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions(), "status"), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
}
|
||||
return obj.(*v1.Package), err
|
||||
}
|
||||
|
||||
@@ -19,142 +19,31 @@ limitations under the License.
|
||||
package fake
|
||||
|
||||
import (
|
||||
"context"
|
||||
json "encoding/json"
|
||||
"fmt"
|
||||
|
||||
v1 "github.com/fission/fission/pkg/apis/core/v1"
|
||||
corev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
labels "k8s.io/apimachinery/pkg/labels"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
testing "k8s.io/client-go/testing"
|
||||
typedcorev1 "github.com/fission/fission/pkg/generated/clientset/versioned/typed/core/v1"
|
||||
gentype "k8s.io/client-go/gentype"
|
||||
)
|
||||
|
||||
// FakeTimeTriggers implements TimeTriggerInterface
|
||||
type FakeTimeTriggers struct {
|
||||
// fakeTimeTriggers implements TimeTriggerInterface
|
||||
type fakeTimeTriggers struct {
|
||||
*gentype.FakeClientWithListAndApply[*v1.TimeTrigger, *v1.TimeTriggerList, *corev1.TimeTriggerApplyConfiguration]
|
||||
Fake *FakeCoreV1
|
||||
ns string
|
||||
}
|
||||
|
||||
var timetriggersResource = v1.SchemeGroupVersion.WithResource("timetriggers")
|
||||
|
||||
var timetriggersKind = v1.SchemeGroupVersion.WithKind("TimeTrigger")
|
||||
|
||||
// Get takes name of the _timeTrigger, and returns the corresponding timeTrigger object, and an error if there is any.
|
||||
func (c *FakeTimeTriggers) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.TimeTrigger, err error) {
|
||||
emptyResult := &v1.TimeTrigger{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewGetActionWithOptions(timetriggersResource, c.ns, name, options), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
func newFakeTimeTriggers(fake *FakeCoreV1, namespace string) typedcorev1.TimeTriggerInterface {
|
||||
return &fakeTimeTriggers{
|
||||
gentype.NewFakeClientWithListAndApply[*v1.TimeTrigger, *v1.TimeTriggerList, *corev1.TimeTriggerApplyConfiguration](
|
||||
fake.Fake,
|
||||
namespace,
|
||||
v1.SchemeGroupVersion.WithResource("timetriggers"),
|
||||
v1.SchemeGroupVersion.WithKind("TimeTrigger"),
|
||||
func() *v1.TimeTrigger { return &v1.TimeTrigger{} },
|
||||
func() *v1.TimeTriggerList { return &v1.TimeTriggerList{} },
|
||||
func(dst, src *v1.TimeTriggerList) { dst.ListMeta = src.ListMeta },
|
||||
func(list *v1.TimeTriggerList) []*v1.TimeTrigger { return gentype.ToPointerSlice(list.Items) },
|
||||
func(list *v1.TimeTriggerList, items []*v1.TimeTrigger) { list.Items = gentype.FromPointerSlice(items) },
|
||||
),
|
||||
fake,
|
||||
}
|
||||
return obj.(*v1.TimeTrigger), err
|
||||
}
|
||||
|
||||
// List takes label and field selectors, and returns the list of TimeTriggers that match those selectors.
|
||||
func (c *FakeTimeTriggers) List(ctx context.Context, opts metav1.ListOptions) (result *v1.TimeTriggerList, err error) {
|
||||
emptyResult := &v1.TimeTriggerList{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewListActionWithOptions(timetriggersResource, timetriggersKind, c.ns, opts), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
}
|
||||
|
||||
label, _, _ := testing.ExtractFromListOptions(opts)
|
||||
if label == nil {
|
||||
label = labels.Everything()
|
||||
}
|
||||
list := &v1.TimeTriggerList{ListMeta: obj.(*v1.TimeTriggerList).ListMeta}
|
||||
for _, item := range obj.(*v1.TimeTriggerList).Items {
|
||||
if label.Matches(labels.Set(item.Labels)) {
|
||||
list.Items = append(list.Items, item)
|
||||
}
|
||||
}
|
||||
return list, err
|
||||
}
|
||||
|
||||
// Watch returns a watch.Interface that watches the requested timeTriggers.
|
||||
func (c *FakeTimeTriggers) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
|
||||
return c.Fake.
|
||||
InvokesWatch(testing.NewWatchActionWithOptions(timetriggersResource, c.ns, opts))
|
||||
|
||||
}
|
||||
|
||||
// Create takes the representation of a _timeTrigger and creates it. Returns the server's representation of the timeTrigger, and an error, if there is any.
|
||||
func (c *FakeTimeTriggers) Create(ctx context.Context, _timeTrigger *v1.TimeTrigger, opts metav1.CreateOptions) (result *v1.TimeTrigger, err error) {
|
||||
emptyResult := &v1.TimeTrigger{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewCreateActionWithOptions(timetriggersResource, c.ns, _timeTrigger, opts), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
}
|
||||
return obj.(*v1.TimeTrigger), err
|
||||
}
|
||||
|
||||
// Update takes the representation of a _timeTrigger and updates it. Returns the server's representation of the timeTrigger, and an error, if there is any.
|
||||
func (c *FakeTimeTriggers) Update(ctx context.Context, _timeTrigger *v1.TimeTrigger, opts metav1.UpdateOptions) (result *v1.TimeTrigger, err error) {
|
||||
emptyResult := &v1.TimeTrigger{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewUpdateActionWithOptions(timetriggersResource, c.ns, _timeTrigger, opts), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
}
|
||||
return obj.(*v1.TimeTrigger), err
|
||||
}
|
||||
|
||||
// Delete takes name of the _timeTrigger and deletes it. Returns an error if one occurs.
|
||||
func (c *FakeTimeTriggers) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
|
||||
_, err := c.Fake.
|
||||
Invokes(testing.NewDeleteActionWithOptions(timetriggersResource, c.ns, name, opts), &v1.TimeTrigger{})
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
// DeleteCollection deletes a collection of objects.
|
||||
func (c *FakeTimeTriggers) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
|
||||
action := testing.NewDeleteCollectionActionWithOptions(timetriggersResource, c.ns, opts, listOpts)
|
||||
|
||||
_, err := c.Fake.Invokes(action, &v1.TimeTriggerList{})
|
||||
return err
|
||||
}
|
||||
|
||||
// Patch applies the patch and returns the patched timeTrigger.
|
||||
func (c *FakeTimeTriggers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.TimeTrigger, err error) {
|
||||
emptyResult := &v1.TimeTrigger{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewPatchSubresourceActionWithOptions(timetriggersResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
}
|
||||
return obj.(*v1.TimeTrigger), err
|
||||
}
|
||||
|
||||
// Apply takes the given apply declarative configuration, applies it and returns the applied timeTrigger.
|
||||
func (c *FakeTimeTriggers) Apply(ctx context.Context, _timeTrigger *corev1.TimeTriggerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.TimeTrigger, err error) {
|
||||
if _timeTrigger == nil {
|
||||
return nil, fmt.Errorf("_timeTrigger provided to Apply must not be nil")
|
||||
}
|
||||
data, err := json.Marshal(_timeTrigger)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
name := _timeTrigger.Name
|
||||
if name == nil {
|
||||
return nil, fmt.Errorf("_timeTrigger.Name must be provided to Apply")
|
||||
}
|
||||
emptyResult := &v1.TimeTrigger{}
|
||||
obj, err := c.Fake.
|
||||
Invokes(testing.NewPatchSubresourceActionWithOptions(timetriggersResource, c.ns, *name, types.ApplyPatchType, data, opts.ToPatchOptions()), emptyResult)
|
||||
|
||||
if obj == nil {
|
||||
return emptyResult, err
|
||||
}
|
||||
return obj.(*v1.TimeTrigger), err
|
||||
}
|
||||
|
||||
@@ -19,10 +19,10 @@ limitations under the License.
|
||||
package v1
|
||||
|
||||
import (
|
||||
"context"
|
||||
context "context"
|
||||
|
||||
v1 "github.com/fission/fission/pkg/apis/core/v1"
|
||||
corev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1"
|
||||
corev1 "github.com/fission/fission/pkg/apis/core/v1"
|
||||
applyconfigurationcorev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1"
|
||||
scheme "github.com/fission/fission/pkg/generated/clientset/versioned/scheme"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
@@ -38,32 +38,33 @@ type FunctionsGetter interface {
|
||||
|
||||
// FunctionInterface has methods to work with Function resources.
|
||||
type FunctionInterface interface {
|
||||
Create(ctx context.Context, _function *v1.Function, opts metav1.CreateOptions) (*v1.Function, error)
|
||||
Update(ctx context.Context, _function *v1.Function, opts metav1.UpdateOptions) (*v1.Function, error)
|
||||
Create(ctx context.Context, _function *corev1.Function, opts metav1.CreateOptions) (*corev1.Function, error)
|
||||
Update(ctx context.Context, _function *corev1.Function, opts metav1.UpdateOptions) (*corev1.Function, error)
|
||||
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
|
||||
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
|
||||
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Function, error)
|
||||
List(ctx context.Context, opts metav1.ListOptions) (*v1.FunctionList, error)
|
||||
Get(ctx context.Context, name string, opts metav1.GetOptions) (*corev1.Function, error)
|
||||
List(ctx context.Context, opts metav1.ListOptions) (*corev1.FunctionList, error)
|
||||
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
|
||||
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Function, err error)
|
||||
Apply(ctx context.Context, _function *corev1.FunctionApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Function, err error)
|
||||
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *corev1.Function, err error)
|
||||
Apply(ctx context.Context, _function *applyconfigurationcorev1.FunctionApplyConfiguration, opts metav1.ApplyOptions) (result *corev1.Function, err error)
|
||||
FunctionExpansion
|
||||
}
|
||||
|
||||
// functions implements FunctionInterface
|
||||
type functions struct {
|
||||
*gentype.ClientWithListAndApply[*v1.Function, *v1.FunctionList, *corev1.FunctionApplyConfiguration]
|
||||
*gentype.ClientWithListAndApply[*corev1.Function, *corev1.FunctionList, *applyconfigurationcorev1.FunctionApplyConfiguration]
|
||||
}
|
||||
|
||||
// newFunctions returns a Functions
|
||||
func newFunctions(c *CoreV1Client, namespace string) *functions {
|
||||
return &functions{
|
||||
gentype.NewClientWithListAndApply[*v1.Function, *v1.FunctionList, *corev1.FunctionApplyConfiguration](
|
||||
gentype.NewClientWithListAndApply[*corev1.Function, *corev1.FunctionList, *applyconfigurationcorev1.FunctionApplyConfiguration](
|
||||
"functions",
|
||||
c.RESTClient(),
|
||||
scheme.ParameterCodec,
|
||||
namespace,
|
||||
func() *v1.Function { return &v1.Function{} },
|
||||
func() *v1.FunctionList { return &v1.FunctionList{} }),
|
||||
func() *corev1.Function { return &corev1.Function{} },
|
||||
func() *corev1.FunctionList { return &corev1.FunctionList{} },
|
||||
),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,10 +19,10 @@ limitations under the License.
|
||||
package v1
|
||||
|
||||
import (
|
||||
"context"
|
||||
context "context"
|
||||
|
||||
v1 "github.com/fission/fission/pkg/apis/core/v1"
|
||||
corev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1"
|
||||
corev1 "github.com/fission/fission/pkg/apis/core/v1"
|
||||
applyconfigurationcorev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1"
|
||||
scheme "github.com/fission/fission/pkg/generated/clientset/versioned/scheme"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
@@ -38,32 +38,33 @@ type HTTPTriggersGetter interface {
|
||||
|
||||
// HTTPTriggerInterface has methods to work with HTTPTrigger resources.
|
||||
type HTTPTriggerInterface interface {
|
||||
Create(ctx context.Context, _hTTPTrigger *v1.HTTPTrigger, opts metav1.CreateOptions) (*v1.HTTPTrigger, error)
|
||||
Update(ctx context.Context, _hTTPTrigger *v1.HTTPTrigger, opts metav1.UpdateOptions) (*v1.HTTPTrigger, error)
|
||||
Create(ctx context.Context, _hTTPTrigger *corev1.HTTPTrigger, opts metav1.CreateOptions) (*corev1.HTTPTrigger, error)
|
||||
Update(ctx context.Context, _hTTPTrigger *corev1.HTTPTrigger, opts metav1.UpdateOptions) (*corev1.HTTPTrigger, error)
|
||||
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
|
||||
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
|
||||
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.HTTPTrigger, error)
|
||||
List(ctx context.Context, opts metav1.ListOptions) (*v1.HTTPTriggerList, error)
|
||||
Get(ctx context.Context, name string, opts metav1.GetOptions) (*corev1.HTTPTrigger, error)
|
||||
List(ctx context.Context, opts metav1.ListOptions) (*corev1.HTTPTriggerList, error)
|
||||
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
|
||||
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.HTTPTrigger, err error)
|
||||
Apply(ctx context.Context, _hTTPTrigger *corev1.HTTPTriggerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.HTTPTrigger, err error)
|
||||
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *corev1.HTTPTrigger, err error)
|
||||
Apply(ctx context.Context, _hTTPTrigger *applyconfigurationcorev1.HTTPTriggerApplyConfiguration, opts metav1.ApplyOptions) (result *corev1.HTTPTrigger, err error)
|
||||
HTTPTriggerExpansion
|
||||
}
|
||||
|
||||
// hTTPTriggers implements HTTPTriggerInterface
|
||||
type hTTPTriggers struct {
|
||||
*gentype.ClientWithListAndApply[*v1.HTTPTrigger, *v1.HTTPTriggerList, *corev1.HTTPTriggerApplyConfiguration]
|
||||
*gentype.ClientWithListAndApply[*corev1.HTTPTrigger, *corev1.HTTPTriggerList, *applyconfigurationcorev1.HTTPTriggerApplyConfiguration]
|
||||
}
|
||||
|
||||
// newHTTPTriggers returns a HTTPTriggers
|
||||
func newHTTPTriggers(c *CoreV1Client, namespace string) *hTTPTriggers {
|
||||
return &hTTPTriggers{
|
||||
gentype.NewClientWithListAndApply[*v1.HTTPTrigger, *v1.HTTPTriggerList, *corev1.HTTPTriggerApplyConfiguration](
|
||||
gentype.NewClientWithListAndApply[*corev1.HTTPTrigger, *corev1.HTTPTriggerList, *applyconfigurationcorev1.HTTPTriggerApplyConfiguration](
|
||||
"httptriggers",
|
||||
c.RESTClient(),
|
||||
scheme.ParameterCodec,
|
||||
namespace,
|
||||
func() *v1.HTTPTrigger { return &v1.HTTPTrigger{} },
|
||||
func() *v1.HTTPTriggerList { return &v1.HTTPTriggerList{} }),
|
||||
func() *corev1.HTTPTrigger { return &corev1.HTTPTrigger{} },
|
||||
func() *corev1.HTTPTriggerList { return &corev1.HTTPTriggerList{} },
|
||||
),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,10 +19,10 @@ limitations under the License.
|
||||
package v1
|
||||
|
||||
import (
|
||||
"context"
|
||||
context "context"
|
||||
|
||||
v1 "github.com/fission/fission/pkg/apis/core/v1"
|
||||
corev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1"
|
||||
corev1 "github.com/fission/fission/pkg/apis/core/v1"
|
||||
applyconfigurationcorev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1"
|
||||
scheme "github.com/fission/fission/pkg/generated/clientset/versioned/scheme"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
@@ -38,32 +38,33 @@ type KubernetesWatchTriggersGetter interface {
|
||||
|
||||
// KubernetesWatchTriggerInterface has methods to work with KubernetesWatchTrigger resources.
|
||||
type KubernetesWatchTriggerInterface interface {
|
||||
Create(ctx context.Context, _kubernetesWatchTrigger *v1.KubernetesWatchTrigger, opts metav1.CreateOptions) (*v1.KubernetesWatchTrigger, error)
|
||||
Update(ctx context.Context, _kubernetesWatchTrigger *v1.KubernetesWatchTrigger, opts metav1.UpdateOptions) (*v1.KubernetesWatchTrigger, error)
|
||||
Create(ctx context.Context, _kubernetesWatchTrigger *corev1.KubernetesWatchTrigger, opts metav1.CreateOptions) (*corev1.KubernetesWatchTrigger, error)
|
||||
Update(ctx context.Context, _kubernetesWatchTrigger *corev1.KubernetesWatchTrigger, opts metav1.UpdateOptions) (*corev1.KubernetesWatchTrigger, error)
|
||||
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
|
||||
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
|
||||
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.KubernetesWatchTrigger, error)
|
||||
List(ctx context.Context, opts metav1.ListOptions) (*v1.KubernetesWatchTriggerList, error)
|
||||
Get(ctx context.Context, name string, opts metav1.GetOptions) (*corev1.KubernetesWatchTrigger, error)
|
||||
List(ctx context.Context, opts metav1.ListOptions) (*corev1.KubernetesWatchTriggerList, error)
|
||||
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
|
||||
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.KubernetesWatchTrigger, err error)
|
||||
Apply(ctx context.Context, _kubernetesWatchTrigger *corev1.KubernetesWatchTriggerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.KubernetesWatchTrigger, err error)
|
||||
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *corev1.KubernetesWatchTrigger, err error)
|
||||
Apply(ctx context.Context, _kubernetesWatchTrigger *applyconfigurationcorev1.KubernetesWatchTriggerApplyConfiguration, opts metav1.ApplyOptions) (result *corev1.KubernetesWatchTrigger, err error)
|
||||
KubernetesWatchTriggerExpansion
|
||||
}
|
||||
|
||||
// kubernetesWatchTriggers implements KubernetesWatchTriggerInterface
|
||||
type kubernetesWatchTriggers struct {
|
||||
*gentype.ClientWithListAndApply[*v1.KubernetesWatchTrigger, *v1.KubernetesWatchTriggerList, *corev1.KubernetesWatchTriggerApplyConfiguration]
|
||||
*gentype.ClientWithListAndApply[*corev1.KubernetesWatchTrigger, *corev1.KubernetesWatchTriggerList, *applyconfigurationcorev1.KubernetesWatchTriggerApplyConfiguration]
|
||||
}
|
||||
|
||||
// newKubernetesWatchTriggers returns a KubernetesWatchTriggers
|
||||
func newKubernetesWatchTriggers(c *CoreV1Client, namespace string) *kubernetesWatchTriggers {
|
||||
return &kubernetesWatchTriggers{
|
||||
gentype.NewClientWithListAndApply[*v1.KubernetesWatchTrigger, *v1.KubernetesWatchTriggerList, *corev1.KubernetesWatchTriggerApplyConfiguration](
|
||||
gentype.NewClientWithListAndApply[*corev1.KubernetesWatchTrigger, *corev1.KubernetesWatchTriggerList, *applyconfigurationcorev1.KubernetesWatchTriggerApplyConfiguration](
|
||||
"kuberneteswatchtriggers",
|
||||
c.RESTClient(),
|
||||
scheme.ParameterCodec,
|
||||
namespace,
|
||||
func() *v1.KubernetesWatchTrigger { return &v1.KubernetesWatchTrigger{} },
|
||||
func() *v1.KubernetesWatchTriggerList { return &v1.KubernetesWatchTriggerList{} }),
|
||||
func() *corev1.KubernetesWatchTrigger { return &corev1.KubernetesWatchTrigger{} },
|
||||
func() *corev1.KubernetesWatchTriggerList { return &corev1.KubernetesWatchTriggerList{} },
|
||||
),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,10 +19,10 @@ limitations under the License.
|
||||
package v1
|
||||
|
||||
import (
|
||||
"context"
|
||||
context "context"
|
||||
|
||||
v1 "github.com/fission/fission/pkg/apis/core/v1"
|
||||
corev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1"
|
||||
corev1 "github.com/fission/fission/pkg/apis/core/v1"
|
||||
applyconfigurationcorev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1"
|
||||
scheme "github.com/fission/fission/pkg/generated/clientset/versioned/scheme"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
@@ -38,32 +38,33 @@ type MessageQueueTriggersGetter interface {
|
||||
|
||||
// MessageQueueTriggerInterface has methods to work with MessageQueueTrigger resources.
|
||||
type MessageQueueTriggerInterface interface {
|
||||
Create(ctx context.Context, _messageQueueTrigger *v1.MessageQueueTrigger, opts metav1.CreateOptions) (*v1.MessageQueueTrigger, error)
|
||||
Update(ctx context.Context, _messageQueueTrigger *v1.MessageQueueTrigger, opts metav1.UpdateOptions) (*v1.MessageQueueTrigger, error)
|
||||
Create(ctx context.Context, _messageQueueTrigger *corev1.MessageQueueTrigger, opts metav1.CreateOptions) (*corev1.MessageQueueTrigger, error)
|
||||
Update(ctx context.Context, _messageQueueTrigger *corev1.MessageQueueTrigger, opts metav1.UpdateOptions) (*corev1.MessageQueueTrigger, error)
|
||||
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
|
||||
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
|
||||
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.MessageQueueTrigger, error)
|
||||
List(ctx context.Context, opts metav1.ListOptions) (*v1.MessageQueueTriggerList, error)
|
||||
Get(ctx context.Context, name string, opts metav1.GetOptions) (*corev1.MessageQueueTrigger, error)
|
||||
List(ctx context.Context, opts metav1.ListOptions) (*corev1.MessageQueueTriggerList, error)
|
||||
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
|
||||
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.MessageQueueTrigger, err error)
|
||||
Apply(ctx context.Context, _messageQueueTrigger *corev1.MessageQueueTriggerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.MessageQueueTrigger, err error)
|
||||
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *corev1.MessageQueueTrigger, err error)
|
||||
Apply(ctx context.Context, _messageQueueTrigger *applyconfigurationcorev1.MessageQueueTriggerApplyConfiguration, opts metav1.ApplyOptions) (result *corev1.MessageQueueTrigger, err error)
|
||||
MessageQueueTriggerExpansion
|
||||
}
|
||||
|
||||
// messageQueueTriggers implements MessageQueueTriggerInterface
|
||||
type messageQueueTriggers struct {
|
||||
*gentype.ClientWithListAndApply[*v1.MessageQueueTrigger, *v1.MessageQueueTriggerList, *corev1.MessageQueueTriggerApplyConfiguration]
|
||||
*gentype.ClientWithListAndApply[*corev1.MessageQueueTrigger, *corev1.MessageQueueTriggerList, *applyconfigurationcorev1.MessageQueueTriggerApplyConfiguration]
|
||||
}
|
||||
|
||||
// newMessageQueueTriggers returns a MessageQueueTriggers
|
||||
func newMessageQueueTriggers(c *CoreV1Client, namespace string) *messageQueueTriggers {
|
||||
return &messageQueueTriggers{
|
||||
gentype.NewClientWithListAndApply[*v1.MessageQueueTrigger, *v1.MessageQueueTriggerList, *corev1.MessageQueueTriggerApplyConfiguration](
|
||||
gentype.NewClientWithListAndApply[*corev1.MessageQueueTrigger, *corev1.MessageQueueTriggerList, *applyconfigurationcorev1.MessageQueueTriggerApplyConfiguration](
|
||||
"messagequeuetriggers",
|
||||
c.RESTClient(),
|
||||
scheme.ParameterCodec,
|
||||
namespace,
|
||||
func() *v1.MessageQueueTrigger { return &v1.MessageQueueTrigger{} },
|
||||
func() *v1.MessageQueueTriggerList { return &v1.MessageQueueTriggerList{} }),
|
||||
func() *corev1.MessageQueueTrigger { return &corev1.MessageQueueTrigger{} },
|
||||
func() *corev1.MessageQueueTriggerList { return &corev1.MessageQueueTriggerList{} },
|
||||
),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,10 +19,10 @@ limitations under the License.
|
||||
package v1
|
||||
|
||||
import (
|
||||
"context"
|
||||
context "context"
|
||||
|
||||
v1 "github.com/fission/fission/pkg/apis/core/v1"
|
||||
corev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1"
|
||||
corev1 "github.com/fission/fission/pkg/apis/core/v1"
|
||||
applyconfigurationcorev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1"
|
||||
scheme "github.com/fission/fission/pkg/generated/clientset/versioned/scheme"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
@@ -38,36 +38,37 @@ type PackagesGetter interface {
|
||||
|
||||
// PackageInterface has methods to work with Package resources.
|
||||
type PackageInterface interface {
|
||||
Create(ctx context.Context, _package *v1.Package, opts metav1.CreateOptions) (*v1.Package, error)
|
||||
Update(ctx context.Context, _package *v1.Package, opts metav1.UpdateOptions) (*v1.Package, error)
|
||||
Create(ctx context.Context, _package *corev1.Package, opts metav1.CreateOptions) (*corev1.Package, error)
|
||||
Update(ctx context.Context, _package *corev1.Package, opts metav1.UpdateOptions) (*corev1.Package, error)
|
||||
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
||||
UpdateStatus(ctx context.Context, _package *v1.Package, opts metav1.UpdateOptions) (*v1.Package, error)
|
||||
UpdateStatus(ctx context.Context, _package *corev1.Package, opts metav1.UpdateOptions) (*corev1.Package, error)
|
||||
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
|
||||
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
|
||||
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.Package, error)
|
||||
List(ctx context.Context, opts metav1.ListOptions) (*v1.PackageList, error)
|
||||
Get(ctx context.Context, name string, opts metav1.GetOptions) (*corev1.Package, error)
|
||||
List(ctx context.Context, opts metav1.ListOptions) (*corev1.PackageList, error)
|
||||
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
|
||||
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Package, err error)
|
||||
Apply(ctx context.Context, _package *corev1.PackageApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Package, err error)
|
||||
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *corev1.Package, err error)
|
||||
Apply(ctx context.Context, _package *applyconfigurationcorev1.PackageApplyConfiguration, opts metav1.ApplyOptions) (result *corev1.Package, err error)
|
||||
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
|
||||
ApplyStatus(ctx context.Context, _package *corev1.PackageApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Package, err error)
|
||||
ApplyStatus(ctx context.Context, _package *applyconfigurationcorev1.PackageApplyConfiguration, opts metav1.ApplyOptions) (result *corev1.Package, err error)
|
||||
PackageExpansion
|
||||
}
|
||||
|
||||
// packages implements PackageInterface
|
||||
type packages struct {
|
||||
*gentype.ClientWithListAndApply[*v1.Package, *v1.PackageList, *corev1.PackageApplyConfiguration]
|
||||
*gentype.ClientWithListAndApply[*corev1.Package, *corev1.PackageList, *applyconfigurationcorev1.PackageApplyConfiguration]
|
||||
}
|
||||
|
||||
// newPackages returns a Packages
|
||||
func newPackages(c *CoreV1Client, namespace string) *packages {
|
||||
return &packages{
|
||||
gentype.NewClientWithListAndApply[*v1.Package, *v1.PackageList, *corev1.PackageApplyConfiguration](
|
||||
gentype.NewClientWithListAndApply[*corev1.Package, *corev1.PackageList, *applyconfigurationcorev1.PackageApplyConfiguration](
|
||||
"packages",
|
||||
c.RESTClient(),
|
||||
scheme.ParameterCodec,
|
||||
namespace,
|
||||
func() *v1.Package { return &v1.Package{} },
|
||||
func() *v1.PackageList { return &v1.PackageList{} }),
|
||||
func() *corev1.Package { return &corev1.Package{} },
|
||||
func() *corev1.PackageList { return &corev1.PackageList{} },
|
||||
),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,10 +19,10 @@ limitations under the License.
|
||||
package v1
|
||||
|
||||
import (
|
||||
"context"
|
||||
context "context"
|
||||
|
||||
v1 "github.com/fission/fission/pkg/apis/core/v1"
|
||||
corev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1"
|
||||
corev1 "github.com/fission/fission/pkg/apis/core/v1"
|
||||
applyconfigurationcorev1 "github.com/fission/fission/pkg/generated/applyconfiguration/core/v1"
|
||||
scheme "github.com/fission/fission/pkg/generated/clientset/versioned/scheme"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
@@ -38,32 +38,33 @@ type TimeTriggersGetter interface {
|
||||
|
||||
// TimeTriggerInterface has methods to work with TimeTrigger resources.
|
||||
type TimeTriggerInterface interface {
|
||||
Create(ctx context.Context, _timeTrigger *v1.TimeTrigger, opts metav1.CreateOptions) (*v1.TimeTrigger, error)
|
||||
Update(ctx context.Context, _timeTrigger *v1.TimeTrigger, opts metav1.UpdateOptions) (*v1.TimeTrigger, error)
|
||||
Create(ctx context.Context, _timeTrigger *corev1.TimeTrigger, opts metav1.CreateOptions) (*corev1.TimeTrigger, error)
|
||||
Update(ctx context.Context, _timeTrigger *corev1.TimeTrigger, opts metav1.UpdateOptions) (*corev1.TimeTrigger, error)
|
||||
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
|
||||
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
|
||||
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.TimeTrigger, error)
|
||||
List(ctx context.Context, opts metav1.ListOptions) (*v1.TimeTriggerList, error)
|
||||
Get(ctx context.Context, name string, opts metav1.GetOptions) (*corev1.TimeTrigger, error)
|
||||
List(ctx context.Context, opts metav1.ListOptions) (*corev1.TimeTriggerList, error)
|
||||
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
|
||||
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.TimeTrigger, err error)
|
||||
Apply(ctx context.Context, _timeTrigger *corev1.TimeTriggerApplyConfiguration, opts metav1.ApplyOptions) (result *v1.TimeTrigger, err error)
|
||||
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *corev1.TimeTrigger, err error)
|
||||
Apply(ctx context.Context, _timeTrigger *applyconfigurationcorev1.TimeTriggerApplyConfiguration, opts metav1.ApplyOptions) (result *corev1.TimeTrigger, err error)
|
||||
TimeTriggerExpansion
|
||||
}
|
||||
|
||||
// timeTriggers implements TimeTriggerInterface
|
||||
type timeTriggers struct {
|
||||
*gentype.ClientWithListAndApply[*v1.TimeTrigger, *v1.TimeTriggerList, *corev1.TimeTriggerApplyConfiguration]
|
||||
*gentype.ClientWithListAndApply[*corev1.TimeTrigger, *corev1.TimeTriggerList, *applyconfigurationcorev1.TimeTriggerApplyConfiguration]
|
||||
}
|
||||
|
||||
// newTimeTriggers returns a TimeTriggers
|
||||
func newTimeTriggers(c *CoreV1Client, namespace string) *timeTriggers {
|
||||
return &timeTriggers{
|
||||
gentype.NewClientWithListAndApply[*v1.TimeTrigger, *v1.TimeTriggerList, *corev1.TimeTriggerApplyConfiguration](
|
||||
gentype.NewClientWithListAndApply[*corev1.TimeTrigger, *corev1.TimeTriggerList, *applyconfigurationcorev1.TimeTriggerApplyConfiguration](
|
||||
"timetriggers",
|
||||
c.RESTClient(),
|
||||
scheme.ParameterCodec,
|
||||
namespace,
|
||||
func() *v1.TimeTrigger { return &v1.TimeTrigger{} },
|
||||
func() *v1.TimeTriggerList { return &v1.TimeTriggerList{} }),
|
||||
func() *corev1.TimeTrigger { return &corev1.TimeTrigger{} },
|
||||
func() *corev1.TimeTriggerList { return &corev1.TimeTriggerList{} },
|
||||
),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user