Merge pull request #124963 from p0lyn0mial/upstream-data-consistency-checker-for-list-requests
client-go: data consistency checker for list requests
This commit is contained in:
		| @@ -31,6 +31,7 @@ import ( | |||||||
| 	types "k8s.io/apimachinery/pkg/types" | 	types "k8s.io/apimachinery/pkg/types" | ||||||
| 	watch "k8s.io/apimachinery/pkg/watch" | 	watch "k8s.io/apimachinery/pkg/watch" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // ExamplesGetter has a method to return a ExampleInterface. | // ExamplesGetter has a method to return a ExampleInterface. | ||||||
| @@ -82,6 +83,16 @@ func (c *examples) Get(ctx context.Context, name string, options metav1.GetOptio | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of Examples that match those selectors. | // List takes label and field selectors, and returns the list of Examples that match those selectors. | ||||||
| func (c *examples) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ExampleList, err error) { | func (c *examples) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ExampleList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for examples", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of Examples that match those selectors. | ||||||
|  | func (c *examples) list(ctx context.Context, opts metav1.ListOptions) (result *v1.ExampleList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	types "k8s.io/apimachinery/pkg/types" | 	types "k8s.io/apimachinery/pkg/types" | ||||||
| 	watch "k8s.io/apimachinery/pkg/watch" | 	watch "k8s.io/apimachinery/pkg/watch" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // CustomResourceDefinitionsGetter has a method to return a CustomResourceDefinitionInterface. | // CustomResourceDefinitionsGetter has a method to return a CustomResourceDefinitionInterface. | ||||||
| @@ -81,6 +82,16 @@ func (c *customResourceDefinitions) Get(ctx context.Context, name string, option | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of CustomResourceDefinitions that match those selectors. | // List takes label and field selectors, and returns the list of CustomResourceDefinitions that match those selectors. | ||||||
| func (c *customResourceDefinitions) List(ctx context.Context, opts metav1.ListOptions) (result *v1.CustomResourceDefinitionList, err error) { | func (c *customResourceDefinitions) List(ctx context.Context, opts metav1.ListOptions) (result *v1.CustomResourceDefinitionList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for customresourcedefinitions", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of CustomResourceDefinitions that match those selectors. | ||||||
|  | func (c *customResourceDefinitions) list(ctx context.Context, opts metav1.ListOptions) (result *v1.CustomResourceDefinitionList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	types "k8s.io/apimachinery/pkg/types" | 	types "k8s.io/apimachinery/pkg/types" | ||||||
| 	watch "k8s.io/apimachinery/pkg/watch" | 	watch "k8s.io/apimachinery/pkg/watch" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // CustomResourceDefinitionsGetter has a method to return a CustomResourceDefinitionInterface. | // CustomResourceDefinitionsGetter has a method to return a CustomResourceDefinitionInterface. | ||||||
| @@ -81,6 +82,16 @@ func (c *customResourceDefinitions) Get(ctx context.Context, name string, option | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of CustomResourceDefinitions that match those selectors. | // List takes label and field selectors, and returns the list of CustomResourceDefinitions that match those selectors. | ||||||
| func (c *customResourceDefinitions) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.CustomResourceDefinitionList, err error) { | func (c *customResourceDefinitions) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.CustomResourceDefinitionList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for customresourcedefinitions", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of CustomResourceDefinitions that match those selectors. | ||||||
|  | func (c *customResourceDefinitions) list(ctx context.Context, opts v1.ListOptions) (result *v1beta1.CustomResourceDefinitionList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	admissionregistrationv1 "k8s.io/client-go/applyconfigurations/admissionregistration/v1" | 	admissionregistrationv1 "k8s.io/client-go/applyconfigurations/admissionregistration/v1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // MutatingWebhookConfigurationsGetter has a method to return a MutatingWebhookConfigurationInterface. | // MutatingWebhookConfigurationsGetter has a method to return a MutatingWebhookConfigurationInterface. | ||||||
| @@ -79,6 +80,16 @@ func (c *mutatingWebhookConfigurations) Get(ctx context.Context, name string, op | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of MutatingWebhookConfigurations that match those selectors. | // List takes label and field selectors, and returns the list of MutatingWebhookConfigurations that match those selectors. | ||||||
| func (c *mutatingWebhookConfigurations) List(ctx context.Context, opts metav1.ListOptions) (result *v1.MutatingWebhookConfigurationList, err error) { | func (c *mutatingWebhookConfigurations) List(ctx context.Context, opts metav1.ListOptions) (result *v1.MutatingWebhookConfigurationList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for mutatingwebhookconfigurations", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of MutatingWebhookConfigurations that match those selectors. | ||||||
|  | func (c *mutatingWebhookConfigurations) list(ctx context.Context, opts metav1.ListOptions) (result *v1.MutatingWebhookConfigurationList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	admissionregistrationv1 "k8s.io/client-go/applyconfigurations/admissionregistration/v1" | 	admissionregistrationv1 "k8s.io/client-go/applyconfigurations/admissionregistration/v1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // ValidatingAdmissionPoliciesGetter has a method to return a ValidatingAdmissionPolicyInterface. | // ValidatingAdmissionPoliciesGetter has a method to return a ValidatingAdmissionPolicyInterface. | ||||||
| @@ -81,6 +82,16 @@ func (c *validatingAdmissionPolicies) Get(ctx context.Context, name string, opti | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of ValidatingAdmissionPolicies that match those selectors. | // List takes label and field selectors, and returns the list of ValidatingAdmissionPolicies that match those selectors. | ||||||
| func (c *validatingAdmissionPolicies) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ValidatingAdmissionPolicyList, err error) { | func (c *validatingAdmissionPolicies) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ValidatingAdmissionPolicyList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for validatingadmissionpolicies", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of ValidatingAdmissionPolicies that match those selectors. | ||||||
|  | func (c *validatingAdmissionPolicies) list(ctx context.Context, opts metav1.ListOptions) (result *v1.ValidatingAdmissionPolicyList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	admissionregistrationv1 "k8s.io/client-go/applyconfigurations/admissionregistration/v1" | 	admissionregistrationv1 "k8s.io/client-go/applyconfigurations/admissionregistration/v1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // ValidatingAdmissionPolicyBindingsGetter has a method to return a ValidatingAdmissionPolicyBindingInterface. | // ValidatingAdmissionPolicyBindingsGetter has a method to return a ValidatingAdmissionPolicyBindingInterface. | ||||||
| @@ -79,6 +80,16 @@ func (c *validatingAdmissionPolicyBindings) Get(ctx context.Context, name string | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of ValidatingAdmissionPolicyBindings that match those selectors. | // List takes label and field selectors, and returns the list of ValidatingAdmissionPolicyBindings that match those selectors. | ||||||
| func (c *validatingAdmissionPolicyBindings) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ValidatingAdmissionPolicyBindingList, err error) { | func (c *validatingAdmissionPolicyBindings) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ValidatingAdmissionPolicyBindingList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for validatingadmissionpolicybindings", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of ValidatingAdmissionPolicyBindings that match those selectors. | ||||||
|  | func (c *validatingAdmissionPolicyBindings) list(ctx context.Context, opts metav1.ListOptions) (result *v1.ValidatingAdmissionPolicyBindingList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	admissionregistrationv1 "k8s.io/client-go/applyconfigurations/admissionregistration/v1" | 	admissionregistrationv1 "k8s.io/client-go/applyconfigurations/admissionregistration/v1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // ValidatingWebhookConfigurationsGetter has a method to return a ValidatingWebhookConfigurationInterface. | // ValidatingWebhookConfigurationsGetter has a method to return a ValidatingWebhookConfigurationInterface. | ||||||
| @@ -79,6 +80,16 @@ func (c *validatingWebhookConfigurations) Get(ctx context.Context, name string, | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of ValidatingWebhookConfigurations that match those selectors. | // List takes label and field selectors, and returns the list of ValidatingWebhookConfigurations that match those selectors. | ||||||
| func (c *validatingWebhookConfigurations) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ValidatingWebhookConfigurationList, err error) { | func (c *validatingWebhookConfigurations) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ValidatingWebhookConfigurationList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for validatingwebhookconfigurations", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of ValidatingWebhookConfigurations that match those selectors. | ||||||
|  | func (c *validatingWebhookConfigurations) list(ctx context.Context, opts metav1.ListOptions) (result *v1.ValidatingWebhookConfigurationList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	admissionregistrationv1alpha1 "k8s.io/client-go/applyconfigurations/admissionregistration/v1alpha1" | 	admissionregistrationv1alpha1 "k8s.io/client-go/applyconfigurations/admissionregistration/v1alpha1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // ValidatingAdmissionPoliciesGetter has a method to return a ValidatingAdmissionPolicyInterface. | // ValidatingAdmissionPoliciesGetter has a method to return a ValidatingAdmissionPolicyInterface. | ||||||
| @@ -81,6 +82,16 @@ func (c *validatingAdmissionPolicies) Get(ctx context.Context, name string, opti | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of ValidatingAdmissionPolicies that match those selectors. | // List takes label and field selectors, and returns the list of ValidatingAdmissionPolicies that match those selectors. | ||||||
| func (c *validatingAdmissionPolicies) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ValidatingAdmissionPolicyList, err error) { | func (c *validatingAdmissionPolicies) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ValidatingAdmissionPolicyList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for validatingadmissionpolicies", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of ValidatingAdmissionPolicies that match those selectors. | ||||||
|  | func (c *validatingAdmissionPolicies) list(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ValidatingAdmissionPolicyList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	admissionregistrationv1alpha1 "k8s.io/client-go/applyconfigurations/admissionregistration/v1alpha1" | 	admissionregistrationv1alpha1 "k8s.io/client-go/applyconfigurations/admissionregistration/v1alpha1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // ValidatingAdmissionPolicyBindingsGetter has a method to return a ValidatingAdmissionPolicyBindingInterface. | // ValidatingAdmissionPolicyBindingsGetter has a method to return a ValidatingAdmissionPolicyBindingInterface. | ||||||
| @@ -79,6 +80,16 @@ func (c *validatingAdmissionPolicyBindings) Get(ctx context.Context, name string | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of ValidatingAdmissionPolicyBindings that match those selectors. | // List takes label and field selectors, and returns the list of ValidatingAdmissionPolicyBindings that match those selectors. | ||||||
| func (c *validatingAdmissionPolicyBindings) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ValidatingAdmissionPolicyBindingList, err error) { | func (c *validatingAdmissionPolicyBindings) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ValidatingAdmissionPolicyBindingList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for validatingadmissionpolicybindings", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of ValidatingAdmissionPolicyBindings that match those selectors. | ||||||
|  | func (c *validatingAdmissionPolicyBindings) list(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ValidatingAdmissionPolicyBindingList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	admissionregistrationv1beta1 "k8s.io/client-go/applyconfigurations/admissionregistration/v1beta1" | 	admissionregistrationv1beta1 "k8s.io/client-go/applyconfigurations/admissionregistration/v1beta1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // MutatingWebhookConfigurationsGetter has a method to return a MutatingWebhookConfigurationInterface. | // MutatingWebhookConfigurationsGetter has a method to return a MutatingWebhookConfigurationInterface. | ||||||
| @@ -79,6 +80,16 @@ func (c *mutatingWebhookConfigurations) Get(ctx context.Context, name string, op | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of MutatingWebhookConfigurations that match those selectors. | // List takes label and field selectors, and returns the list of MutatingWebhookConfigurations that match those selectors. | ||||||
| func (c *mutatingWebhookConfigurations) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.MutatingWebhookConfigurationList, err error) { | func (c *mutatingWebhookConfigurations) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.MutatingWebhookConfigurationList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for mutatingwebhookconfigurations", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of MutatingWebhookConfigurations that match those selectors. | ||||||
|  | func (c *mutatingWebhookConfigurations) list(ctx context.Context, opts v1.ListOptions) (result *v1beta1.MutatingWebhookConfigurationList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	admissionregistrationv1beta1 "k8s.io/client-go/applyconfigurations/admissionregistration/v1beta1" | 	admissionregistrationv1beta1 "k8s.io/client-go/applyconfigurations/admissionregistration/v1beta1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // ValidatingAdmissionPoliciesGetter has a method to return a ValidatingAdmissionPolicyInterface. | // ValidatingAdmissionPoliciesGetter has a method to return a ValidatingAdmissionPolicyInterface. | ||||||
| @@ -81,6 +82,16 @@ func (c *validatingAdmissionPolicies) Get(ctx context.Context, name string, opti | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of ValidatingAdmissionPolicies that match those selectors. | // List takes label and field selectors, and returns the list of ValidatingAdmissionPolicies that match those selectors. | ||||||
| func (c *validatingAdmissionPolicies) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.ValidatingAdmissionPolicyList, err error) { | func (c *validatingAdmissionPolicies) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.ValidatingAdmissionPolicyList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for validatingadmissionpolicies", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of ValidatingAdmissionPolicies that match those selectors. | ||||||
|  | func (c *validatingAdmissionPolicies) list(ctx context.Context, opts v1.ListOptions) (result *v1beta1.ValidatingAdmissionPolicyList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	admissionregistrationv1beta1 "k8s.io/client-go/applyconfigurations/admissionregistration/v1beta1" | 	admissionregistrationv1beta1 "k8s.io/client-go/applyconfigurations/admissionregistration/v1beta1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // ValidatingAdmissionPolicyBindingsGetter has a method to return a ValidatingAdmissionPolicyBindingInterface. | // ValidatingAdmissionPolicyBindingsGetter has a method to return a ValidatingAdmissionPolicyBindingInterface. | ||||||
| @@ -79,6 +80,16 @@ func (c *validatingAdmissionPolicyBindings) Get(ctx context.Context, name string | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of ValidatingAdmissionPolicyBindings that match those selectors. | // List takes label and field selectors, and returns the list of ValidatingAdmissionPolicyBindings that match those selectors. | ||||||
| func (c *validatingAdmissionPolicyBindings) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.ValidatingAdmissionPolicyBindingList, err error) { | func (c *validatingAdmissionPolicyBindings) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.ValidatingAdmissionPolicyBindingList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for validatingadmissionpolicybindings", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of ValidatingAdmissionPolicyBindings that match those selectors. | ||||||
|  | func (c *validatingAdmissionPolicyBindings) list(ctx context.Context, opts v1.ListOptions) (result *v1beta1.ValidatingAdmissionPolicyBindingList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	admissionregistrationv1beta1 "k8s.io/client-go/applyconfigurations/admissionregistration/v1beta1" | 	admissionregistrationv1beta1 "k8s.io/client-go/applyconfigurations/admissionregistration/v1beta1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // ValidatingWebhookConfigurationsGetter has a method to return a ValidatingWebhookConfigurationInterface. | // ValidatingWebhookConfigurationsGetter has a method to return a ValidatingWebhookConfigurationInterface. | ||||||
| @@ -79,6 +80,16 @@ func (c *validatingWebhookConfigurations) Get(ctx context.Context, name string, | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of ValidatingWebhookConfigurations that match those selectors. | // List takes label and field selectors, and returns the list of ValidatingWebhookConfigurations that match those selectors. | ||||||
| func (c *validatingWebhookConfigurations) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.ValidatingWebhookConfigurationList, err error) { | func (c *validatingWebhookConfigurations) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.ValidatingWebhookConfigurationList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for validatingwebhookconfigurations", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of ValidatingWebhookConfigurations that match those selectors. | ||||||
|  | func (c *validatingWebhookConfigurations) list(ctx context.Context, opts v1.ListOptions) (result *v1beta1.ValidatingWebhookConfigurationList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	apiserverinternalv1alpha1 "k8s.io/client-go/applyconfigurations/apiserverinternal/v1alpha1" | 	apiserverinternalv1alpha1 "k8s.io/client-go/applyconfigurations/apiserverinternal/v1alpha1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // StorageVersionsGetter has a method to return a StorageVersionInterface. | // StorageVersionsGetter has a method to return a StorageVersionInterface. | ||||||
| @@ -81,6 +82,16 @@ func (c *storageVersions) Get(ctx context.Context, name string, options v1.GetOp | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of StorageVersions that match those selectors. | // List takes label and field selectors, and returns the list of StorageVersions that match those selectors. | ||||||
| func (c *storageVersions) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.StorageVersionList, err error) { | func (c *storageVersions) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.StorageVersionList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for storageversions", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of StorageVersions that match those selectors. | ||||||
|  | func (c *storageVersions) list(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.StorageVersionList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	appsv1 "k8s.io/client-go/applyconfigurations/apps/v1" | 	appsv1 "k8s.io/client-go/applyconfigurations/apps/v1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // ControllerRevisionsGetter has a method to return a ControllerRevisionInterface. | // ControllerRevisionsGetter has a method to return a ControllerRevisionInterface. | ||||||
| @@ -82,6 +83,16 @@ func (c *controllerRevisions) Get(ctx context.Context, name string, options meta | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of ControllerRevisions that match those selectors. | // List takes label and field selectors, and returns the list of ControllerRevisions that match those selectors. | ||||||
| func (c *controllerRevisions) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ControllerRevisionList, err error) { | func (c *controllerRevisions) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ControllerRevisionList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for controllerrevisions", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of ControllerRevisions that match those selectors. | ||||||
|  | func (c *controllerRevisions) list(ctx context.Context, opts metav1.ListOptions) (result *v1.ControllerRevisionList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	appsv1 "k8s.io/client-go/applyconfigurations/apps/v1" | 	appsv1 "k8s.io/client-go/applyconfigurations/apps/v1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // DaemonSetsGetter has a method to return a DaemonSetInterface. | // DaemonSetsGetter has a method to return a DaemonSetInterface. | ||||||
| @@ -84,6 +85,16 @@ func (c *daemonSets) Get(ctx context.Context, name string, options metav1.GetOpt | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of DaemonSets that match those selectors. | // List takes label and field selectors, and returns the list of DaemonSets that match those selectors. | ||||||
| func (c *daemonSets) List(ctx context.Context, opts metav1.ListOptions) (result *v1.DaemonSetList, err error) { | func (c *daemonSets) List(ctx context.Context, opts metav1.ListOptions) (result *v1.DaemonSetList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for daemonsets", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of DaemonSets that match those selectors. | ||||||
|  | func (c *daemonSets) list(ctx context.Context, opts metav1.ListOptions) (result *v1.DaemonSetList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -33,6 +33,7 @@ import ( | |||||||
| 	applyconfigurationsautoscalingv1 "k8s.io/client-go/applyconfigurations/autoscaling/v1" | 	applyconfigurationsautoscalingv1 "k8s.io/client-go/applyconfigurations/autoscaling/v1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // DeploymentsGetter has a method to return a DeploymentInterface. | // DeploymentsGetter has a method to return a DeploymentInterface. | ||||||
| @@ -90,6 +91,16 @@ func (c *deployments) Get(ctx context.Context, name string, options metav1.GetOp | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of Deployments that match those selectors. | // List takes label and field selectors, and returns the list of Deployments that match those selectors. | ||||||
| func (c *deployments) List(ctx context.Context, opts metav1.ListOptions) (result *v1.DeploymentList, err error) { | func (c *deployments) List(ctx context.Context, opts metav1.ListOptions) (result *v1.DeploymentList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for deployments", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of Deployments that match those selectors. | ||||||
|  | func (c *deployments) list(ctx context.Context, opts metav1.ListOptions) (result *v1.DeploymentList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -33,6 +33,7 @@ import ( | |||||||
| 	applyconfigurationsautoscalingv1 "k8s.io/client-go/applyconfigurations/autoscaling/v1" | 	applyconfigurationsautoscalingv1 "k8s.io/client-go/applyconfigurations/autoscaling/v1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // ReplicaSetsGetter has a method to return a ReplicaSetInterface. | // ReplicaSetsGetter has a method to return a ReplicaSetInterface. | ||||||
| @@ -90,6 +91,16 @@ func (c *replicaSets) Get(ctx context.Context, name string, options metav1.GetOp | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of ReplicaSets that match those selectors. | // List takes label and field selectors, and returns the list of ReplicaSets that match those selectors. | ||||||
| func (c *replicaSets) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ReplicaSetList, err error) { | func (c *replicaSets) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ReplicaSetList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for replicasets", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of ReplicaSets that match those selectors. | ||||||
|  | func (c *replicaSets) list(ctx context.Context, opts metav1.ListOptions) (result *v1.ReplicaSetList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -33,6 +33,7 @@ import ( | |||||||
| 	applyconfigurationsautoscalingv1 "k8s.io/client-go/applyconfigurations/autoscaling/v1" | 	applyconfigurationsautoscalingv1 "k8s.io/client-go/applyconfigurations/autoscaling/v1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // StatefulSetsGetter has a method to return a StatefulSetInterface. | // StatefulSetsGetter has a method to return a StatefulSetInterface. | ||||||
| @@ -90,6 +91,16 @@ func (c *statefulSets) Get(ctx context.Context, name string, options metav1.GetO | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of StatefulSets that match those selectors. | // List takes label and field selectors, and returns the list of StatefulSets that match those selectors. | ||||||
| func (c *statefulSets) List(ctx context.Context, opts metav1.ListOptions) (result *v1.StatefulSetList, err error) { | func (c *statefulSets) List(ctx context.Context, opts metav1.ListOptions) (result *v1.StatefulSetList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for statefulsets", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of StatefulSets that match those selectors. | ||||||
|  | func (c *statefulSets) list(ctx context.Context, opts metav1.ListOptions) (result *v1.StatefulSetList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	appsv1beta1 "k8s.io/client-go/applyconfigurations/apps/v1beta1" | 	appsv1beta1 "k8s.io/client-go/applyconfigurations/apps/v1beta1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // ControllerRevisionsGetter has a method to return a ControllerRevisionInterface. | // ControllerRevisionsGetter has a method to return a ControllerRevisionInterface. | ||||||
| @@ -82,6 +83,16 @@ func (c *controllerRevisions) Get(ctx context.Context, name string, options v1.G | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of ControllerRevisions that match those selectors. | // List takes label and field selectors, and returns the list of ControllerRevisions that match those selectors. | ||||||
| func (c *controllerRevisions) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.ControllerRevisionList, err error) { | func (c *controllerRevisions) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.ControllerRevisionList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for controllerrevisions", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of ControllerRevisions that match those selectors. | ||||||
|  | func (c *controllerRevisions) list(ctx context.Context, opts v1.ListOptions) (result *v1beta1.ControllerRevisionList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	appsv1beta1 "k8s.io/client-go/applyconfigurations/apps/v1beta1" | 	appsv1beta1 "k8s.io/client-go/applyconfigurations/apps/v1beta1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // DeploymentsGetter has a method to return a DeploymentInterface. | // DeploymentsGetter has a method to return a DeploymentInterface. | ||||||
| @@ -84,6 +85,16 @@ func (c *deployments) Get(ctx context.Context, name string, options v1.GetOption | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of Deployments that match those selectors. | // List takes label and field selectors, and returns the list of Deployments that match those selectors. | ||||||
| func (c *deployments) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.DeploymentList, err error) { | func (c *deployments) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.DeploymentList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for deployments", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of Deployments that match those selectors. | ||||||
|  | func (c *deployments) list(ctx context.Context, opts v1.ListOptions) (result *v1beta1.DeploymentList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	appsv1beta1 "k8s.io/client-go/applyconfigurations/apps/v1beta1" | 	appsv1beta1 "k8s.io/client-go/applyconfigurations/apps/v1beta1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // StatefulSetsGetter has a method to return a StatefulSetInterface. | // StatefulSetsGetter has a method to return a StatefulSetInterface. | ||||||
| @@ -84,6 +85,16 @@ func (c *statefulSets) Get(ctx context.Context, name string, options v1.GetOptio | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of StatefulSets that match those selectors. | // List takes label and field selectors, and returns the list of StatefulSets that match those selectors. | ||||||
| func (c *statefulSets) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.StatefulSetList, err error) { | func (c *statefulSets) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.StatefulSetList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for statefulsets", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of StatefulSets that match those selectors. | ||||||
|  | func (c *statefulSets) list(ctx context.Context, opts v1.ListOptions) (result *v1beta1.StatefulSetList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	appsv1beta2 "k8s.io/client-go/applyconfigurations/apps/v1beta2" | 	appsv1beta2 "k8s.io/client-go/applyconfigurations/apps/v1beta2" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // ControllerRevisionsGetter has a method to return a ControllerRevisionInterface. | // ControllerRevisionsGetter has a method to return a ControllerRevisionInterface. | ||||||
| @@ -82,6 +83,16 @@ func (c *controllerRevisions) Get(ctx context.Context, name string, options v1.G | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of ControllerRevisions that match those selectors. | // List takes label and field selectors, and returns the list of ControllerRevisions that match those selectors. | ||||||
| func (c *controllerRevisions) List(ctx context.Context, opts v1.ListOptions) (result *v1beta2.ControllerRevisionList, err error) { | func (c *controllerRevisions) List(ctx context.Context, opts v1.ListOptions) (result *v1beta2.ControllerRevisionList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for controllerrevisions", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of ControllerRevisions that match those selectors. | ||||||
|  | func (c *controllerRevisions) list(ctx context.Context, opts v1.ListOptions) (result *v1beta2.ControllerRevisionList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	appsv1beta2 "k8s.io/client-go/applyconfigurations/apps/v1beta2" | 	appsv1beta2 "k8s.io/client-go/applyconfigurations/apps/v1beta2" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // DaemonSetsGetter has a method to return a DaemonSetInterface. | // DaemonSetsGetter has a method to return a DaemonSetInterface. | ||||||
| @@ -84,6 +85,16 @@ func (c *daemonSets) Get(ctx context.Context, name string, options v1.GetOptions | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of DaemonSets that match those selectors. | // List takes label and field selectors, and returns the list of DaemonSets that match those selectors. | ||||||
| func (c *daemonSets) List(ctx context.Context, opts v1.ListOptions) (result *v1beta2.DaemonSetList, err error) { | func (c *daemonSets) List(ctx context.Context, opts v1.ListOptions) (result *v1beta2.DaemonSetList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for daemonsets", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of DaemonSets that match those selectors. | ||||||
|  | func (c *daemonSets) list(ctx context.Context, opts v1.ListOptions) (result *v1beta2.DaemonSetList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	appsv1beta2 "k8s.io/client-go/applyconfigurations/apps/v1beta2" | 	appsv1beta2 "k8s.io/client-go/applyconfigurations/apps/v1beta2" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // DeploymentsGetter has a method to return a DeploymentInterface. | // DeploymentsGetter has a method to return a DeploymentInterface. | ||||||
| @@ -84,6 +85,16 @@ func (c *deployments) Get(ctx context.Context, name string, options v1.GetOption | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of Deployments that match those selectors. | // List takes label and field selectors, and returns the list of Deployments that match those selectors. | ||||||
| func (c *deployments) List(ctx context.Context, opts v1.ListOptions) (result *v1beta2.DeploymentList, err error) { | func (c *deployments) List(ctx context.Context, opts v1.ListOptions) (result *v1beta2.DeploymentList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for deployments", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of Deployments that match those selectors. | ||||||
|  | func (c *deployments) list(ctx context.Context, opts v1.ListOptions) (result *v1beta2.DeploymentList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	appsv1beta2 "k8s.io/client-go/applyconfigurations/apps/v1beta2" | 	appsv1beta2 "k8s.io/client-go/applyconfigurations/apps/v1beta2" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // ReplicaSetsGetter has a method to return a ReplicaSetInterface. | // ReplicaSetsGetter has a method to return a ReplicaSetInterface. | ||||||
| @@ -84,6 +85,16 @@ func (c *replicaSets) Get(ctx context.Context, name string, options v1.GetOption | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of ReplicaSets that match those selectors. | // List takes label and field selectors, and returns the list of ReplicaSets that match those selectors. | ||||||
| func (c *replicaSets) List(ctx context.Context, opts v1.ListOptions) (result *v1beta2.ReplicaSetList, err error) { | func (c *replicaSets) List(ctx context.Context, opts v1.ListOptions) (result *v1beta2.ReplicaSetList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for replicasets", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of ReplicaSets that match those selectors. | ||||||
|  | func (c *replicaSets) list(ctx context.Context, opts v1.ListOptions) (result *v1beta2.ReplicaSetList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	appsv1beta2 "k8s.io/client-go/applyconfigurations/apps/v1beta2" | 	appsv1beta2 "k8s.io/client-go/applyconfigurations/apps/v1beta2" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // StatefulSetsGetter has a method to return a StatefulSetInterface. | // StatefulSetsGetter has a method to return a StatefulSetInterface. | ||||||
| @@ -88,6 +89,16 @@ func (c *statefulSets) Get(ctx context.Context, name string, options v1.GetOptio | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of StatefulSets that match those selectors. | // List takes label and field selectors, and returns the list of StatefulSets that match those selectors. | ||||||
| func (c *statefulSets) List(ctx context.Context, opts v1.ListOptions) (result *v1beta2.StatefulSetList, err error) { | func (c *statefulSets) List(ctx context.Context, opts v1.ListOptions) (result *v1beta2.StatefulSetList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for statefulsets", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of StatefulSets that match those selectors. | ||||||
|  | func (c *statefulSets) list(ctx context.Context, opts v1.ListOptions) (result *v1beta2.StatefulSetList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	autoscalingv1 "k8s.io/client-go/applyconfigurations/autoscaling/v1" | 	autoscalingv1 "k8s.io/client-go/applyconfigurations/autoscaling/v1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // HorizontalPodAutoscalersGetter has a method to return a HorizontalPodAutoscalerInterface. | // HorizontalPodAutoscalersGetter has a method to return a HorizontalPodAutoscalerInterface. | ||||||
| @@ -84,6 +85,16 @@ func (c *horizontalPodAutoscalers) Get(ctx context.Context, name string, options | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of HorizontalPodAutoscalers that match those selectors. | // List takes label and field selectors, and returns the list of HorizontalPodAutoscalers that match those selectors. | ||||||
| func (c *horizontalPodAutoscalers) List(ctx context.Context, opts metav1.ListOptions) (result *v1.HorizontalPodAutoscalerList, err error) { | func (c *horizontalPodAutoscalers) List(ctx context.Context, opts metav1.ListOptions) (result *v1.HorizontalPodAutoscalerList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for horizontalpodautoscalers", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of HorizontalPodAutoscalers that match those selectors. | ||||||
|  | func (c *horizontalPodAutoscalers) list(ctx context.Context, opts metav1.ListOptions) (result *v1.HorizontalPodAutoscalerList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	autoscalingv2 "k8s.io/client-go/applyconfigurations/autoscaling/v2" | 	autoscalingv2 "k8s.io/client-go/applyconfigurations/autoscaling/v2" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // HorizontalPodAutoscalersGetter has a method to return a HorizontalPodAutoscalerInterface. | // HorizontalPodAutoscalersGetter has a method to return a HorizontalPodAutoscalerInterface. | ||||||
| @@ -84,6 +85,16 @@ func (c *horizontalPodAutoscalers) Get(ctx context.Context, name string, options | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of HorizontalPodAutoscalers that match those selectors. | // List takes label and field selectors, and returns the list of HorizontalPodAutoscalers that match those selectors. | ||||||
| func (c *horizontalPodAutoscalers) List(ctx context.Context, opts v1.ListOptions) (result *v2.HorizontalPodAutoscalerList, err error) { | func (c *horizontalPodAutoscalers) List(ctx context.Context, opts v1.ListOptions) (result *v2.HorizontalPodAutoscalerList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for horizontalpodautoscalers", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of HorizontalPodAutoscalers that match those selectors. | ||||||
|  | func (c *horizontalPodAutoscalers) list(ctx context.Context, opts v1.ListOptions) (result *v2.HorizontalPodAutoscalerList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	autoscalingv2beta1 "k8s.io/client-go/applyconfigurations/autoscaling/v2beta1" | 	autoscalingv2beta1 "k8s.io/client-go/applyconfigurations/autoscaling/v2beta1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // HorizontalPodAutoscalersGetter has a method to return a HorizontalPodAutoscalerInterface. | // HorizontalPodAutoscalersGetter has a method to return a HorizontalPodAutoscalerInterface. | ||||||
| @@ -84,6 +85,16 @@ func (c *horizontalPodAutoscalers) Get(ctx context.Context, name string, options | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of HorizontalPodAutoscalers that match those selectors. | // List takes label and field selectors, and returns the list of HorizontalPodAutoscalers that match those selectors. | ||||||
| func (c *horizontalPodAutoscalers) List(ctx context.Context, opts v1.ListOptions) (result *v2beta1.HorizontalPodAutoscalerList, err error) { | func (c *horizontalPodAutoscalers) List(ctx context.Context, opts v1.ListOptions) (result *v2beta1.HorizontalPodAutoscalerList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for horizontalpodautoscalers", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of HorizontalPodAutoscalers that match those selectors. | ||||||
|  | func (c *horizontalPodAutoscalers) list(ctx context.Context, opts v1.ListOptions) (result *v2beta1.HorizontalPodAutoscalerList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	autoscalingv2beta2 "k8s.io/client-go/applyconfigurations/autoscaling/v2beta2" | 	autoscalingv2beta2 "k8s.io/client-go/applyconfigurations/autoscaling/v2beta2" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // HorizontalPodAutoscalersGetter has a method to return a HorizontalPodAutoscalerInterface. | // HorizontalPodAutoscalersGetter has a method to return a HorizontalPodAutoscalerInterface. | ||||||
| @@ -84,6 +85,16 @@ func (c *horizontalPodAutoscalers) Get(ctx context.Context, name string, options | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of HorizontalPodAutoscalers that match those selectors. | // List takes label and field selectors, and returns the list of HorizontalPodAutoscalers that match those selectors. | ||||||
| func (c *horizontalPodAutoscalers) List(ctx context.Context, opts v1.ListOptions) (result *v2beta2.HorizontalPodAutoscalerList, err error) { | func (c *horizontalPodAutoscalers) List(ctx context.Context, opts v1.ListOptions) (result *v2beta2.HorizontalPodAutoscalerList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for horizontalpodautoscalers", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of HorizontalPodAutoscalers that match those selectors. | ||||||
|  | func (c *horizontalPodAutoscalers) list(ctx context.Context, opts v1.ListOptions) (result *v2beta2.HorizontalPodAutoscalerList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	batchv1 "k8s.io/client-go/applyconfigurations/batch/v1" | 	batchv1 "k8s.io/client-go/applyconfigurations/batch/v1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // CronJobsGetter has a method to return a CronJobInterface. | // CronJobsGetter has a method to return a CronJobInterface. | ||||||
| @@ -84,6 +85,16 @@ func (c *cronJobs) Get(ctx context.Context, name string, options metav1.GetOptio | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of CronJobs that match those selectors. | // List takes label and field selectors, and returns the list of CronJobs that match those selectors. | ||||||
| func (c *cronJobs) List(ctx context.Context, opts metav1.ListOptions) (result *v1.CronJobList, err error) { | func (c *cronJobs) List(ctx context.Context, opts metav1.ListOptions) (result *v1.CronJobList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for cronjobs", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of CronJobs that match those selectors. | ||||||
|  | func (c *cronJobs) list(ctx context.Context, opts metav1.ListOptions) (result *v1.CronJobList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	batchv1 "k8s.io/client-go/applyconfigurations/batch/v1" | 	batchv1 "k8s.io/client-go/applyconfigurations/batch/v1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // JobsGetter has a method to return a JobInterface. | // JobsGetter has a method to return a JobInterface. | ||||||
| @@ -84,6 +85,16 @@ func (c *jobs) Get(ctx context.Context, name string, options metav1.GetOptions) | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of Jobs that match those selectors. | // List takes label and field selectors, and returns the list of Jobs that match those selectors. | ||||||
| func (c *jobs) List(ctx context.Context, opts metav1.ListOptions) (result *v1.JobList, err error) { | func (c *jobs) List(ctx context.Context, opts metav1.ListOptions) (result *v1.JobList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for jobs", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of Jobs that match those selectors. | ||||||
|  | func (c *jobs) list(ctx context.Context, opts metav1.ListOptions) (result *v1.JobList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	batchv1beta1 "k8s.io/client-go/applyconfigurations/batch/v1beta1" | 	batchv1beta1 "k8s.io/client-go/applyconfigurations/batch/v1beta1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // CronJobsGetter has a method to return a CronJobInterface. | // CronJobsGetter has a method to return a CronJobInterface. | ||||||
| @@ -84,6 +85,16 @@ func (c *cronJobs) Get(ctx context.Context, name string, options v1.GetOptions) | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of CronJobs that match those selectors. | // List takes label and field selectors, and returns the list of CronJobs that match those selectors. | ||||||
| func (c *cronJobs) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.CronJobList, err error) { | func (c *cronJobs) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.CronJobList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for cronjobs", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of CronJobs that match those selectors. | ||||||
|  | func (c *cronJobs) list(ctx context.Context, opts v1.ListOptions) (result *v1beta1.CronJobList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	certificatesv1 "k8s.io/client-go/applyconfigurations/certificates/v1" | 	certificatesv1 "k8s.io/client-go/applyconfigurations/certificates/v1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // CertificateSigningRequestsGetter has a method to return a CertificateSigningRequestInterface. | // CertificateSigningRequestsGetter has a method to return a CertificateSigningRequestInterface. | ||||||
| @@ -83,6 +84,16 @@ func (c *certificateSigningRequests) Get(ctx context.Context, name string, optio | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of CertificateSigningRequests that match those selectors. | // List takes label and field selectors, and returns the list of CertificateSigningRequests that match those selectors. | ||||||
| func (c *certificateSigningRequests) List(ctx context.Context, opts metav1.ListOptions) (result *v1.CertificateSigningRequestList, err error) { | func (c *certificateSigningRequests) List(ctx context.Context, opts metav1.ListOptions) (result *v1.CertificateSigningRequestList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for certificatesigningrequests", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of CertificateSigningRequests that match those selectors. | ||||||
|  | func (c *certificateSigningRequests) list(ctx context.Context, opts metav1.ListOptions) (result *v1.CertificateSigningRequestList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	certificatesv1alpha1 "k8s.io/client-go/applyconfigurations/certificates/v1alpha1" | 	certificatesv1alpha1 "k8s.io/client-go/applyconfigurations/certificates/v1alpha1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // ClusterTrustBundlesGetter has a method to return a ClusterTrustBundleInterface. | // ClusterTrustBundlesGetter has a method to return a ClusterTrustBundleInterface. | ||||||
| @@ -79,6 +80,16 @@ func (c *clusterTrustBundles) Get(ctx context.Context, name string, options v1.G | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of ClusterTrustBundles that match those selectors. | // List takes label and field selectors, and returns the list of ClusterTrustBundles that match those selectors. | ||||||
| func (c *clusterTrustBundles) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ClusterTrustBundleList, err error) { | func (c *clusterTrustBundles) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ClusterTrustBundleList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for clustertrustbundles", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of ClusterTrustBundles that match those selectors. | ||||||
|  | func (c *clusterTrustBundles) list(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ClusterTrustBundleList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	certificatesv1beta1 "k8s.io/client-go/applyconfigurations/certificates/v1beta1" | 	certificatesv1beta1 "k8s.io/client-go/applyconfigurations/certificates/v1beta1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // CertificateSigningRequestsGetter has a method to return a CertificateSigningRequestInterface. | // CertificateSigningRequestsGetter has a method to return a CertificateSigningRequestInterface. | ||||||
| @@ -81,6 +82,16 @@ func (c *certificateSigningRequests) Get(ctx context.Context, name string, optio | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of CertificateSigningRequests that match those selectors. | // List takes label and field selectors, and returns the list of CertificateSigningRequests that match those selectors. | ||||||
| func (c *certificateSigningRequests) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.CertificateSigningRequestList, err error) { | func (c *certificateSigningRequests) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.CertificateSigningRequestList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for certificatesigningrequests", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of CertificateSigningRequests that match those selectors. | ||||||
|  | func (c *certificateSigningRequests) list(ctx context.Context, opts v1.ListOptions) (result *v1beta1.CertificateSigningRequestList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	coordinationv1 "k8s.io/client-go/applyconfigurations/coordination/v1" | 	coordinationv1 "k8s.io/client-go/applyconfigurations/coordination/v1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // LeasesGetter has a method to return a LeaseInterface. | // LeasesGetter has a method to return a LeaseInterface. | ||||||
| @@ -82,6 +83,16 @@ func (c *leases) Get(ctx context.Context, name string, options metav1.GetOptions | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of Leases that match those selectors. | // List takes label and field selectors, and returns the list of Leases that match those selectors. | ||||||
| func (c *leases) List(ctx context.Context, opts metav1.ListOptions) (result *v1.LeaseList, err error) { | func (c *leases) List(ctx context.Context, opts metav1.ListOptions) (result *v1.LeaseList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for leases", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of Leases that match those selectors. | ||||||
|  | func (c *leases) list(ctx context.Context, opts metav1.ListOptions) (result *v1.LeaseList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	coordinationv1beta1 "k8s.io/client-go/applyconfigurations/coordination/v1beta1" | 	coordinationv1beta1 "k8s.io/client-go/applyconfigurations/coordination/v1beta1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // LeasesGetter has a method to return a LeaseInterface. | // LeasesGetter has a method to return a LeaseInterface. | ||||||
| @@ -82,6 +83,16 @@ func (c *leases) Get(ctx context.Context, name string, options v1.GetOptions) (r | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of Leases that match those selectors. | // List takes label and field selectors, and returns the list of Leases that match those selectors. | ||||||
| func (c *leases) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.LeaseList, err error) { | func (c *leases) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.LeaseList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for leases", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of Leases that match those selectors. | ||||||
|  | func (c *leases) list(ctx context.Context, opts v1.ListOptions) (result *v1beta1.LeaseList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	corev1 "k8s.io/client-go/applyconfigurations/core/v1" | 	corev1 "k8s.io/client-go/applyconfigurations/core/v1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // ComponentStatusesGetter has a method to return a ComponentStatusInterface. | // ComponentStatusesGetter has a method to return a ComponentStatusInterface. | ||||||
| @@ -79,6 +80,16 @@ func (c *componentStatuses) Get(ctx context.Context, name string, options metav1 | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of ComponentStatuses that match those selectors. | // List takes label and field selectors, and returns the list of ComponentStatuses that match those selectors. | ||||||
| func (c *componentStatuses) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ComponentStatusList, err error) { | func (c *componentStatuses) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ComponentStatusList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for componentstatuses", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of ComponentStatuses that match those selectors. | ||||||
|  | func (c *componentStatuses) list(ctx context.Context, opts metav1.ListOptions) (result *v1.ComponentStatusList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	corev1 "k8s.io/client-go/applyconfigurations/core/v1" | 	corev1 "k8s.io/client-go/applyconfigurations/core/v1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // ConfigMapsGetter has a method to return a ConfigMapInterface. | // ConfigMapsGetter has a method to return a ConfigMapInterface. | ||||||
| @@ -82,6 +83,16 @@ func (c *configMaps) Get(ctx context.Context, name string, options metav1.GetOpt | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of ConfigMaps that match those selectors. | // List takes label and field selectors, and returns the list of ConfigMaps that match those selectors. | ||||||
| func (c *configMaps) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ConfigMapList, err error) { | func (c *configMaps) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ConfigMapList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for configmaps", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of ConfigMaps that match those selectors. | ||||||
|  | func (c *configMaps) list(ctx context.Context, opts metav1.ListOptions) (result *v1.ConfigMapList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	corev1 "k8s.io/client-go/applyconfigurations/core/v1" | 	corev1 "k8s.io/client-go/applyconfigurations/core/v1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // EndpointsGetter has a method to return a EndpointsInterface. | // EndpointsGetter has a method to return a EndpointsInterface. | ||||||
| @@ -82,6 +83,16 @@ func (c *endpoints) Get(ctx context.Context, name string, options metav1.GetOpti | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of Endpoints that match those selectors. | // List takes label and field selectors, and returns the list of Endpoints that match those selectors. | ||||||
| func (c *endpoints) List(ctx context.Context, opts metav1.ListOptions) (result *v1.EndpointsList, err error) { | func (c *endpoints) List(ctx context.Context, opts metav1.ListOptions) (result *v1.EndpointsList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for endpoints", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of Endpoints that match those selectors. | ||||||
|  | func (c *endpoints) list(ctx context.Context, opts metav1.ListOptions) (result *v1.EndpointsList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	corev1 "k8s.io/client-go/applyconfigurations/core/v1" | 	corev1 "k8s.io/client-go/applyconfigurations/core/v1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // EventsGetter has a method to return a EventInterface. | // EventsGetter has a method to return a EventInterface. | ||||||
| @@ -82,6 +83,16 @@ func (c *events) Get(ctx context.Context, name string, options metav1.GetOptions | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of Events that match those selectors. | // List takes label and field selectors, and returns the list of Events that match those selectors. | ||||||
| func (c *events) List(ctx context.Context, opts metav1.ListOptions) (result *v1.EventList, err error) { | func (c *events) List(ctx context.Context, opts metav1.ListOptions) (result *v1.EventList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for events", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of Events that match those selectors. | ||||||
|  | func (c *events) list(ctx context.Context, opts metav1.ListOptions) (result *v1.EventList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	corev1 "k8s.io/client-go/applyconfigurations/core/v1" | 	corev1 "k8s.io/client-go/applyconfigurations/core/v1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // LimitRangesGetter has a method to return a LimitRangeInterface. | // LimitRangesGetter has a method to return a LimitRangeInterface. | ||||||
| @@ -82,6 +83,16 @@ func (c *limitRanges) Get(ctx context.Context, name string, options metav1.GetOp | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of LimitRanges that match those selectors. | // List takes label and field selectors, and returns the list of LimitRanges that match those selectors. | ||||||
| func (c *limitRanges) List(ctx context.Context, opts metav1.ListOptions) (result *v1.LimitRangeList, err error) { | func (c *limitRanges) List(ctx context.Context, opts metav1.ListOptions) (result *v1.LimitRangeList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for limitranges", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of LimitRanges that match those selectors. | ||||||
|  | func (c *limitRanges) list(ctx context.Context, opts metav1.ListOptions) (result *v1.LimitRangeList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	corev1 "k8s.io/client-go/applyconfigurations/core/v1" | 	corev1 "k8s.io/client-go/applyconfigurations/core/v1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // NamespacesGetter has a method to return a NamespaceInterface. | // NamespacesGetter has a method to return a NamespaceInterface. | ||||||
| @@ -80,6 +81,16 @@ func (c *namespaces) Get(ctx context.Context, name string, options metav1.GetOpt | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of Namespaces that match those selectors. | // List takes label and field selectors, and returns the list of Namespaces that match those selectors. | ||||||
| func (c *namespaces) List(ctx context.Context, opts metav1.ListOptions) (result *v1.NamespaceList, err error) { | func (c *namespaces) List(ctx context.Context, opts metav1.ListOptions) (result *v1.NamespaceList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for namespaces", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of Namespaces that match those selectors. | ||||||
|  | func (c *namespaces) list(ctx context.Context, opts metav1.ListOptions) (result *v1.NamespaceList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	corev1 "k8s.io/client-go/applyconfigurations/core/v1" | 	corev1 "k8s.io/client-go/applyconfigurations/core/v1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // NodesGetter has a method to return a NodeInterface. | // NodesGetter has a method to return a NodeInterface. | ||||||
| @@ -81,6 +82,16 @@ func (c *nodes) Get(ctx context.Context, name string, options metav1.GetOptions) | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of Nodes that match those selectors. | // List takes label and field selectors, and returns the list of Nodes that match those selectors. | ||||||
| func (c *nodes) List(ctx context.Context, opts metav1.ListOptions) (result *v1.NodeList, err error) { | func (c *nodes) List(ctx context.Context, opts metav1.ListOptions) (result *v1.NodeList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for nodes", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of Nodes that match those selectors. | ||||||
|  | func (c *nodes) list(ctx context.Context, opts metav1.ListOptions) (result *v1.NodeList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	corev1 "k8s.io/client-go/applyconfigurations/core/v1" | 	corev1 "k8s.io/client-go/applyconfigurations/core/v1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // PersistentVolumesGetter has a method to return a PersistentVolumeInterface. | // PersistentVolumesGetter has a method to return a PersistentVolumeInterface. | ||||||
| @@ -81,6 +82,16 @@ func (c *persistentVolumes) Get(ctx context.Context, name string, options metav1 | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of PersistentVolumes that match those selectors. | // List takes label and field selectors, and returns the list of PersistentVolumes that match those selectors. | ||||||
| func (c *persistentVolumes) List(ctx context.Context, opts metav1.ListOptions) (result *v1.PersistentVolumeList, err error) { | func (c *persistentVolumes) List(ctx context.Context, opts metav1.ListOptions) (result *v1.PersistentVolumeList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for persistentvolumes", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of PersistentVolumes that match those selectors. | ||||||
|  | func (c *persistentVolumes) list(ctx context.Context, opts metav1.ListOptions) (result *v1.PersistentVolumeList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	corev1 "k8s.io/client-go/applyconfigurations/core/v1" | 	corev1 "k8s.io/client-go/applyconfigurations/core/v1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // PersistentVolumeClaimsGetter has a method to return a PersistentVolumeClaimInterface. | // PersistentVolumeClaimsGetter has a method to return a PersistentVolumeClaimInterface. | ||||||
| @@ -84,6 +85,16 @@ func (c *persistentVolumeClaims) Get(ctx context.Context, name string, options m | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of PersistentVolumeClaims that match those selectors. | // List takes label and field selectors, and returns the list of PersistentVolumeClaims that match those selectors. | ||||||
| func (c *persistentVolumeClaims) List(ctx context.Context, opts metav1.ListOptions) (result *v1.PersistentVolumeClaimList, err error) { | func (c *persistentVolumeClaims) List(ctx context.Context, opts metav1.ListOptions) (result *v1.PersistentVolumeClaimList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for persistentvolumeclaims", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of PersistentVolumeClaims that match those selectors. | ||||||
|  | func (c *persistentVolumeClaims) list(ctx context.Context, opts metav1.ListOptions) (result *v1.PersistentVolumeClaimList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	corev1 "k8s.io/client-go/applyconfigurations/core/v1" | 	corev1 "k8s.io/client-go/applyconfigurations/core/v1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // PodsGetter has a method to return a PodInterface. | // PodsGetter has a method to return a PodInterface. | ||||||
| @@ -86,6 +87,16 @@ func (c *pods) Get(ctx context.Context, name string, options metav1.GetOptions) | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of Pods that match those selectors. | // List takes label and field selectors, and returns the list of Pods that match those selectors. | ||||||
| func (c *pods) List(ctx context.Context, opts metav1.ListOptions) (result *v1.PodList, err error) { | func (c *pods) List(ctx context.Context, opts metav1.ListOptions) (result *v1.PodList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for pods", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of Pods that match those selectors. | ||||||
|  | func (c *pods) list(ctx context.Context, opts metav1.ListOptions) (result *v1.PodList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	corev1 "k8s.io/client-go/applyconfigurations/core/v1" | 	corev1 "k8s.io/client-go/applyconfigurations/core/v1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // PodTemplatesGetter has a method to return a PodTemplateInterface. | // PodTemplatesGetter has a method to return a PodTemplateInterface. | ||||||
| @@ -82,6 +83,16 @@ func (c *podTemplates) Get(ctx context.Context, name string, options metav1.GetO | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of PodTemplates that match those selectors. | // List takes label and field selectors, and returns the list of PodTemplates that match those selectors. | ||||||
| func (c *podTemplates) List(ctx context.Context, opts metav1.ListOptions) (result *v1.PodTemplateList, err error) { | func (c *podTemplates) List(ctx context.Context, opts metav1.ListOptions) (result *v1.PodTemplateList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for podtemplates", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of PodTemplates that match those selectors. | ||||||
|  | func (c *podTemplates) list(ctx context.Context, opts metav1.ListOptions) (result *v1.PodTemplateList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -32,6 +32,7 @@ import ( | |||||||
| 	corev1 "k8s.io/client-go/applyconfigurations/core/v1" | 	corev1 "k8s.io/client-go/applyconfigurations/core/v1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // ReplicationControllersGetter has a method to return a ReplicationControllerInterface. | // ReplicationControllersGetter has a method to return a ReplicationControllerInterface. | ||||||
| @@ -88,6 +89,16 @@ func (c *replicationControllers) Get(ctx context.Context, name string, options m | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of ReplicationControllers that match those selectors. | // List takes label and field selectors, and returns the list of ReplicationControllers that match those selectors. | ||||||
| func (c *replicationControllers) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ReplicationControllerList, err error) { | func (c *replicationControllers) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ReplicationControllerList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for replicationcontrollers", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of ReplicationControllers that match those selectors. | ||||||
|  | func (c *replicationControllers) list(ctx context.Context, opts metav1.ListOptions) (result *v1.ReplicationControllerList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	corev1 "k8s.io/client-go/applyconfigurations/core/v1" | 	corev1 "k8s.io/client-go/applyconfigurations/core/v1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // ResourceQuotasGetter has a method to return a ResourceQuotaInterface. | // ResourceQuotasGetter has a method to return a ResourceQuotaInterface. | ||||||
| @@ -84,6 +85,16 @@ func (c *resourceQuotas) Get(ctx context.Context, name string, options metav1.Ge | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of ResourceQuotas that match those selectors. | // List takes label and field selectors, and returns the list of ResourceQuotas that match those selectors. | ||||||
| func (c *resourceQuotas) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ResourceQuotaList, err error) { | func (c *resourceQuotas) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ResourceQuotaList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for resourcequotas", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of ResourceQuotas that match those selectors. | ||||||
|  | func (c *resourceQuotas) list(ctx context.Context, opts metav1.ListOptions) (result *v1.ResourceQuotaList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	corev1 "k8s.io/client-go/applyconfigurations/core/v1" | 	corev1 "k8s.io/client-go/applyconfigurations/core/v1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // SecretsGetter has a method to return a SecretInterface. | // SecretsGetter has a method to return a SecretInterface. | ||||||
| @@ -82,6 +83,16 @@ func (c *secrets) Get(ctx context.Context, name string, options metav1.GetOption | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of Secrets that match those selectors. | // List takes label and field selectors, and returns the list of Secrets that match those selectors. | ||||||
| func (c *secrets) List(ctx context.Context, opts metav1.ListOptions) (result *v1.SecretList, err error) { | func (c *secrets) List(ctx context.Context, opts metav1.ListOptions) (result *v1.SecretList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for secrets", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of Secrets that match those selectors. | ||||||
|  | func (c *secrets) list(ctx context.Context, opts metav1.ListOptions) (result *v1.SecretList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	corev1 "k8s.io/client-go/applyconfigurations/core/v1" | 	corev1 "k8s.io/client-go/applyconfigurations/core/v1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // ServicesGetter has a method to return a ServiceInterface. | // ServicesGetter has a method to return a ServiceInterface. | ||||||
| @@ -83,6 +84,16 @@ func (c *services) Get(ctx context.Context, name string, options metav1.GetOptio | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of Services that match those selectors. | // List takes label and field selectors, and returns the list of Services that match those selectors. | ||||||
| func (c *services) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ServiceList, err error) { | func (c *services) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ServiceList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for services", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of Services that match those selectors. | ||||||
|  | func (c *services) list(ctx context.Context, opts metav1.ListOptions) (result *v1.ServiceList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -32,6 +32,7 @@ import ( | |||||||
| 	corev1 "k8s.io/client-go/applyconfigurations/core/v1" | 	corev1 "k8s.io/client-go/applyconfigurations/core/v1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // ServiceAccountsGetter has a method to return a ServiceAccountInterface. | // ServiceAccountsGetter has a method to return a ServiceAccountInterface. | ||||||
| @@ -85,6 +86,16 @@ func (c *serviceAccounts) Get(ctx context.Context, name string, options metav1.G | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of ServiceAccounts that match those selectors. | // List takes label and field selectors, and returns the list of ServiceAccounts that match those selectors. | ||||||
| func (c *serviceAccounts) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ServiceAccountList, err error) { | func (c *serviceAccounts) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ServiceAccountList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for serviceaccounts", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of ServiceAccounts that match those selectors. | ||||||
|  | func (c *serviceAccounts) list(ctx context.Context, opts metav1.ListOptions) (result *v1.ServiceAccountList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	discoveryv1 "k8s.io/client-go/applyconfigurations/discovery/v1" | 	discoveryv1 "k8s.io/client-go/applyconfigurations/discovery/v1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // EndpointSlicesGetter has a method to return a EndpointSliceInterface. | // EndpointSlicesGetter has a method to return a EndpointSliceInterface. | ||||||
| @@ -82,6 +83,16 @@ func (c *endpointSlices) Get(ctx context.Context, name string, options metav1.Ge | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of EndpointSlices that match those selectors. | // List takes label and field selectors, and returns the list of EndpointSlices that match those selectors. | ||||||
| func (c *endpointSlices) List(ctx context.Context, opts metav1.ListOptions) (result *v1.EndpointSliceList, err error) { | func (c *endpointSlices) List(ctx context.Context, opts metav1.ListOptions) (result *v1.EndpointSliceList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for endpointslices", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of EndpointSlices that match those selectors. | ||||||
|  | func (c *endpointSlices) list(ctx context.Context, opts metav1.ListOptions) (result *v1.EndpointSliceList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	discoveryv1beta1 "k8s.io/client-go/applyconfigurations/discovery/v1beta1" | 	discoveryv1beta1 "k8s.io/client-go/applyconfigurations/discovery/v1beta1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // EndpointSlicesGetter has a method to return a EndpointSliceInterface. | // EndpointSlicesGetter has a method to return a EndpointSliceInterface. | ||||||
| @@ -82,6 +83,16 @@ func (c *endpointSlices) Get(ctx context.Context, name string, options v1.GetOpt | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of EndpointSlices that match those selectors. | // List takes label and field selectors, and returns the list of EndpointSlices that match those selectors. | ||||||
| func (c *endpointSlices) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.EndpointSliceList, err error) { | func (c *endpointSlices) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.EndpointSliceList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for endpointslices", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of EndpointSlices that match those selectors. | ||||||
|  | func (c *endpointSlices) list(ctx context.Context, opts v1.ListOptions) (result *v1beta1.EndpointSliceList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	eventsv1 "k8s.io/client-go/applyconfigurations/events/v1" | 	eventsv1 "k8s.io/client-go/applyconfigurations/events/v1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // EventsGetter has a method to return a EventInterface. | // EventsGetter has a method to return a EventInterface. | ||||||
| @@ -82,6 +83,16 @@ func (c *events) Get(ctx context.Context, name string, options metav1.GetOptions | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of Events that match those selectors. | // List takes label and field selectors, and returns the list of Events that match those selectors. | ||||||
| func (c *events) List(ctx context.Context, opts metav1.ListOptions) (result *v1.EventList, err error) { | func (c *events) List(ctx context.Context, opts metav1.ListOptions) (result *v1.EventList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for events", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of Events that match those selectors. | ||||||
|  | func (c *events) list(ctx context.Context, opts metav1.ListOptions) (result *v1.EventList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	eventsv1beta1 "k8s.io/client-go/applyconfigurations/events/v1beta1" | 	eventsv1beta1 "k8s.io/client-go/applyconfigurations/events/v1beta1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // EventsGetter has a method to return a EventInterface. | // EventsGetter has a method to return a EventInterface. | ||||||
| @@ -82,6 +83,16 @@ func (c *events) Get(ctx context.Context, name string, options v1.GetOptions) (r | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of Events that match those selectors. | // List takes label and field selectors, and returns the list of Events that match those selectors. | ||||||
| func (c *events) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.EventList, err error) { | func (c *events) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.EventList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for events", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of Events that match those selectors. | ||||||
|  | func (c *events) list(ctx context.Context, opts v1.ListOptions) (result *v1beta1.EventList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	extensionsv1beta1 "k8s.io/client-go/applyconfigurations/extensions/v1beta1" | 	extensionsv1beta1 "k8s.io/client-go/applyconfigurations/extensions/v1beta1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // DaemonSetsGetter has a method to return a DaemonSetInterface. | // DaemonSetsGetter has a method to return a DaemonSetInterface. | ||||||
| @@ -84,6 +85,16 @@ func (c *daemonSets) Get(ctx context.Context, name string, options v1.GetOptions | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of DaemonSets that match those selectors. | // List takes label and field selectors, and returns the list of DaemonSets that match those selectors. | ||||||
| func (c *daemonSets) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.DaemonSetList, err error) { | func (c *daemonSets) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.DaemonSetList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for daemonsets", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of DaemonSets that match those selectors. | ||||||
|  | func (c *daemonSets) list(ctx context.Context, opts v1.ListOptions) (result *v1beta1.DaemonSetList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	extensionsv1beta1 "k8s.io/client-go/applyconfigurations/extensions/v1beta1" | 	extensionsv1beta1 "k8s.io/client-go/applyconfigurations/extensions/v1beta1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // DeploymentsGetter has a method to return a DeploymentInterface. | // DeploymentsGetter has a method to return a DeploymentInterface. | ||||||
| @@ -88,6 +89,16 @@ func (c *deployments) Get(ctx context.Context, name string, options v1.GetOption | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of Deployments that match those selectors. | // List takes label and field selectors, and returns the list of Deployments that match those selectors. | ||||||
| func (c *deployments) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.DeploymentList, err error) { | func (c *deployments) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.DeploymentList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for deployments", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of Deployments that match those selectors. | ||||||
|  | func (c *deployments) list(ctx context.Context, opts v1.ListOptions) (result *v1beta1.DeploymentList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	extensionsv1beta1 "k8s.io/client-go/applyconfigurations/extensions/v1beta1" | 	extensionsv1beta1 "k8s.io/client-go/applyconfigurations/extensions/v1beta1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // IngressesGetter has a method to return a IngressInterface. | // IngressesGetter has a method to return a IngressInterface. | ||||||
| @@ -84,6 +85,16 @@ func (c *ingresses) Get(ctx context.Context, name string, options v1.GetOptions) | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of Ingresses that match those selectors. | // List takes label and field selectors, and returns the list of Ingresses that match those selectors. | ||||||
| func (c *ingresses) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.IngressList, err error) { | func (c *ingresses) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.IngressList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for ingresses", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of Ingresses that match those selectors. | ||||||
|  | func (c *ingresses) list(ctx context.Context, opts v1.ListOptions) (result *v1beta1.IngressList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	extensionsv1beta1 "k8s.io/client-go/applyconfigurations/extensions/v1beta1" | 	extensionsv1beta1 "k8s.io/client-go/applyconfigurations/extensions/v1beta1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // NetworkPoliciesGetter has a method to return a NetworkPolicyInterface. | // NetworkPoliciesGetter has a method to return a NetworkPolicyInterface. | ||||||
| @@ -82,6 +83,16 @@ func (c *networkPolicies) Get(ctx context.Context, name string, options v1.GetOp | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of NetworkPolicies that match those selectors. | // List takes label and field selectors, and returns the list of NetworkPolicies that match those selectors. | ||||||
| func (c *networkPolicies) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.NetworkPolicyList, err error) { | func (c *networkPolicies) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.NetworkPolicyList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for networkpolicies", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of NetworkPolicies that match those selectors. | ||||||
|  | func (c *networkPolicies) list(ctx context.Context, opts v1.ListOptions) (result *v1beta1.NetworkPolicyList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	extensionsv1beta1 "k8s.io/client-go/applyconfigurations/extensions/v1beta1" | 	extensionsv1beta1 "k8s.io/client-go/applyconfigurations/extensions/v1beta1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // ReplicaSetsGetter has a method to return a ReplicaSetInterface. | // ReplicaSetsGetter has a method to return a ReplicaSetInterface. | ||||||
| @@ -88,6 +89,16 @@ func (c *replicaSets) Get(ctx context.Context, name string, options v1.GetOption | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of ReplicaSets that match those selectors. | // List takes label and field selectors, and returns the list of ReplicaSets that match those selectors. | ||||||
| func (c *replicaSets) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.ReplicaSetList, err error) { | func (c *replicaSets) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.ReplicaSetList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for replicasets", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of ReplicaSets that match those selectors. | ||||||
|  | func (c *replicaSets) list(ctx context.Context, opts v1.ListOptions) (result *v1beta1.ReplicaSetList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	flowcontrolv1 "k8s.io/client-go/applyconfigurations/flowcontrol/v1" | 	flowcontrolv1 "k8s.io/client-go/applyconfigurations/flowcontrol/v1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // FlowSchemasGetter has a method to return a FlowSchemaInterface. | // FlowSchemasGetter has a method to return a FlowSchemaInterface. | ||||||
| @@ -81,6 +82,16 @@ func (c *flowSchemas) Get(ctx context.Context, name string, options metav1.GetOp | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of FlowSchemas that match those selectors. | // List takes label and field selectors, and returns the list of FlowSchemas that match those selectors. | ||||||
| func (c *flowSchemas) List(ctx context.Context, opts metav1.ListOptions) (result *v1.FlowSchemaList, err error) { | func (c *flowSchemas) List(ctx context.Context, opts metav1.ListOptions) (result *v1.FlowSchemaList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for flowschemas", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of FlowSchemas that match those selectors. | ||||||
|  | func (c *flowSchemas) list(ctx context.Context, opts metav1.ListOptions) (result *v1.FlowSchemaList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	flowcontrolv1 "k8s.io/client-go/applyconfigurations/flowcontrol/v1" | 	flowcontrolv1 "k8s.io/client-go/applyconfigurations/flowcontrol/v1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // PriorityLevelConfigurationsGetter has a method to return a PriorityLevelConfigurationInterface. | // PriorityLevelConfigurationsGetter has a method to return a PriorityLevelConfigurationInterface. | ||||||
| @@ -81,6 +82,16 @@ func (c *priorityLevelConfigurations) Get(ctx context.Context, name string, opti | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of PriorityLevelConfigurations that match those selectors. | // List takes label and field selectors, and returns the list of PriorityLevelConfigurations that match those selectors. | ||||||
| func (c *priorityLevelConfigurations) List(ctx context.Context, opts metav1.ListOptions) (result *v1.PriorityLevelConfigurationList, err error) { | func (c *priorityLevelConfigurations) List(ctx context.Context, opts metav1.ListOptions) (result *v1.PriorityLevelConfigurationList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for prioritylevelconfigurations", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of PriorityLevelConfigurations that match those selectors. | ||||||
|  | func (c *priorityLevelConfigurations) list(ctx context.Context, opts metav1.ListOptions) (result *v1.PriorityLevelConfigurationList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	flowcontrolv1beta1 "k8s.io/client-go/applyconfigurations/flowcontrol/v1beta1" | 	flowcontrolv1beta1 "k8s.io/client-go/applyconfigurations/flowcontrol/v1beta1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // FlowSchemasGetter has a method to return a FlowSchemaInterface. | // FlowSchemasGetter has a method to return a FlowSchemaInterface. | ||||||
| @@ -81,6 +82,16 @@ func (c *flowSchemas) Get(ctx context.Context, name string, options v1.GetOption | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of FlowSchemas that match those selectors. | // List takes label and field selectors, and returns the list of FlowSchemas that match those selectors. | ||||||
| func (c *flowSchemas) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.FlowSchemaList, err error) { | func (c *flowSchemas) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.FlowSchemaList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for flowschemas", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of FlowSchemas that match those selectors. | ||||||
|  | func (c *flowSchemas) list(ctx context.Context, opts v1.ListOptions) (result *v1beta1.FlowSchemaList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	flowcontrolv1beta1 "k8s.io/client-go/applyconfigurations/flowcontrol/v1beta1" | 	flowcontrolv1beta1 "k8s.io/client-go/applyconfigurations/flowcontrol/v1beta1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // PriorityLevelConfigurationsGetter has a method to return a PriorityLevelConfigurationInterface. | // PriorityLevelConfigurationsGetter has a method to return a PriorityLevelConfigurationInterface. | ||||||
| @@ -81,6 +82,16 @@ func (c *priorityLevelConfigurations) Get(ctx context.Context, name string, opti | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of PriorityLevelConfigurations that match those selectors. | // List takes label and field selectors, and returns the list of PriorityLevelConfigurations that match those selectors. | ||||||
| func (c *priorityLevelConfigurations) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.PriorityLevelConfigurationList, err error) { | func (c *priorityLevelConfigurations) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.PriorityLevelConfigurationList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for prioritylevelconfigurations", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of PriorityLevelConfigurations that match those selectors. | ||||||
|  | func (c *priorityLevelConfigurations) list(ctx context.Context, opts v1.ListOptions) (result *v1beta1.PriorityLevelConfigurationList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	flowcontrolv1beta2 "k8s.io/client-go/applyconfigurations/flowcontrol/v1beta2" | 	flowcontrolv1beta2 "k8s.io/client-go/applyconfigurations/flowcontrol/v1beta2" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // FlowSchemasGetter has a method to return a FlowSchemaInterface. | // FlowSchemasGetter has a method to return a FlowSchemaInterface. | ||||||
| @@ -81,6 +82,16 @@ func (c *flowSchemas) Get(ctx context.Context, name string, options v1.GetOption | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of FlowSchemas that match those selectors. | // List takes label and field selectors, and returns the list of FlowSchemas that match those selectors. | ||||||
| func (c *flowSchemas) List(ctx context.Context, opts v1.ListOptions) (result *v1beta2.FlowSchemaList, err error) { | func (c *flowSchemas) List(ctx context.Context, opts v1.ListOptions) (result *v1beta2.FlowSchemaList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for flowschemas", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of FlowSchemas that match those selectors. | ||||||
|  | func (c *flowSchemas) list(ctx context.Context, opts v1.ListOptions) (result *v1beta2.FlowSchemaList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	flowcontrolv1beta2 "k8s.io/client-go/applyconfigurations/flowcontrol/v1beta2" | 	flowcontrolv1beta2 "k8s.io/client-go/applyconfigurations/flowcontrol/v1beta2" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // PriorityLevelConfigurationsGetter has a method to return a PriorityLevelConfigurationInterface. | // PriorityLevelConfigurationsGetter has a method to return a PriorityLevelConfigurationInterface. | ||||||
| @@ -81,6 +82,16 @@ func (c *priorityLevelConfigurations) Get(ctx context.Context, name string, opti | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of PriorityLevelConfigurations that match those selectors. | // List takes label and field selectors, and returns the list of PriorityLevelConfigurations that match those selectors. | ||||||
| func (c *priorityLevelConfigurations) List(ctx context.Context, opts v1.ListOptions) (result *v1beta2.PriorityLevelConfigurationList, err error) { | func (c *priorityLevelConfigurations) List(ctx context.Context, opts v1.ListOptions) (result *v1beta2.PriorityLevelConfigurationList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for prioritylevelconfigurations", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of PriorityLevelConfigurations that match those selectors. | ||||||
|  | func (c *priorityLevelConfigurations) list(ctx context.Context, opts v1.ListOptions) (result *v1beta2.PriorityLevelConfigurationList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	flowcontrolv1beta3 "k8s.io/client-go/applyconfigurations/flowcontrol/v1beta3" | 	flowcontrolv1beta3 "k8s.io/client-go/applyconfigurations/flowcontrol/v1beta3" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // FlowSchemasGetter has a method to return a FlowSchemaInterface. | // FlowSchemasGetter has a method to return a FlowSchemaInterface. | ||||||
| @@ -81,6 +82,16 @@ func (c *flowSchemas) Get(ctx context.Context, name string, options v1.GetOption | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of FlowSchemas that match those selectors. | // List takes label and field selectors, and returns the list of FlowSchemas that match those selectors. | ||||||
| func (c *flowSchemas) List(ctx context.Context, opts v1.ListOptions) (result *v1beta3.FlowSchemaList, err error) { | func (c *flowSchemas) List(ctx context.Context, opts v1.ListOptions) (result *v1beta3.FlowSchemaList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for flowschemas", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of FlowSchemas that match those selectors. | ||||||
|  | func (c *flowSchemas) list(ctx context.Context, opts v1.ListOptions) (result *v1beta3.FlowSchemaList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	flowcontrolv1beta3 "k8s.io/client-go/applyconfigurations/flowcontrol/v1beta3" | 	flowcontrolv1beta3 "k8s.io/client-go/applyconfigurations/flowcontrol/v1beta3" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // PriorityLevelConfigurationsGetter has a method to return a PriorityLevelConfigurationInterface. | // PriorityLevelConfigurationsGetter has a method to return a PriorityLevelConfigurationInterface. | ||||||
| @@ -81,6 +82,16 @@ func (c *priorityLevelConfigurations) Get(ctx context.Context, name string, opti | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of PriorityLevelConfigurations that match those selectors. | // List takes label and field selectors, and returns the list of PriorityLevelConfigurations that match those selectors. | ||||||
| func (c *priorityLevelConfigurations) List(ctx context.Context, opts v1.ListOptions) (result *v1beta3.PriorityLevelConfigurationList, err error) { | func (c *priorityLevelConfigurations) List(ctx context.Context, opts v1.ListOptions) (result *v1beta3.PriorityLevelConfigurationList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for prioritylevelconfigurations", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of PriorityLevelConfigurations that match those selectors. | ||||||
|  | func (c *priorityLevelConfigurations) list(ctx context.Context, opts v1.ListOptions) (result *v1beta3.PriorityLevelConfigurationList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	networkingv1 "k8s.io/client-go/applyconfigurations/networking/v1" | 	networkingv1 "k8s.io/client-go/applyconfigurations/networking/v1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // IngressesGetter has a method to return a IngressInterface. | // IngressesGetter has a method to return a IngressInterface. | ||||||
| @@ -84,6 +85,16 @@ func (c *ingresses) Get(ctx context.Context, name string, options metav1.GetOpti | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of Ingresses that match those selectors. | // List takes label and field selectors, and returns the list of Ingresses that match those selectors. | ||||||
| func (c *ingresses) List(ctx context.Context, opts metav1.ListOptions) (result *v1.IngressList, err error) { | func (c *ingresses) List(ctx context.Context, opts metav1.ListOptions) (result *v1.IngressList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for ingresses", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of Ingresses that match those selectors. | ||||||
|  | func (c *ingresses) list(ctx context.Context, opts metav1.ListOptions) (result *v1.IngressList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	networkingv1 "k8s.io/client-go/applyconfigurations/networking/v1" | 	networkingv1 "k8s.io/client-go/applyconfigurations/networking/v1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // IngressClassesGetter has a method to return a IngressClassInterface. | // IngressClassesGetter has a method to return a IngressClassInterface. | ||||||
| @@ -79,6 +80,16 @@ func (c *ingressClasses) Get(ctx context.Context, name string, options metav1.Ge | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of IngressClasses that match those selectors. | // List takes label and field selectors, and returns the list of IngressClasses that match those selectors. | ||||||
| func (c *ingressClasses) List(ctx context.Context, opts metav1.ListOptions) (result *v1.IngressClassList, err error) { | func (c *ingressClasses) List(ctx context.Context, opts metav1.ListOptions) (result *v1.IngressClassList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for ingressclasses", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of IngressClasses that match those selectors. | ||||||
|  | func (c *ingressClasses) list(ctx context.Context, opts metav1.ListOptions) (result *v1.IngressClassList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	networkingv1 "k8s.io/client-go/applyconfigurations/networking/v1" | 	networkingv1 "k8s.io/client-go/applyconfigurations/networking/v1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // NetworkPoliciesGetter has a method to return a NetworkPolicyInterface. | // NetworkPoliciesGetter has a method to return a NetworkPolicyInterface. | ||||||
| @@ -82,6 +83,16 @@ func (c *networkPolicies) Get(ctx context.Context, name string, options metav1.G | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of NetworkPolicies that match those selectors. | // List takes label and field selectors, and returns the list of NetworkPolicies that match those selectors. | ||||||
| func (c *networkPolicies) List(ctx context.Context, opts metav1.ListOptions) (result *v1.NetworkPolicyList, err error) { | func (c *networkPolicies) List(ctx context.Context, opts metav1.ListOptions) (result *v1.NetworkPolicyList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for networkpolicies", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of NetworkPolicies that match those selectors. | ||||||
|  | func (c *networkPolicies) list(ctx context.Context, opts metav1.ListOptions) (result *v1.NetworkPolicyList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	networkingv1alpha1 "k8s.io/client-go/applyconfigurations/networking/v1alpha1" | 	networkingv1alpha1 "k8s.io/client-go/applyconfigurations/networking/v1alpha1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // IPAddressesGetter has a method to return a IPAddressInterface. | // IPAddressesGetter has a method to return a IPAddressInterface. | ||||||
| @@ -79,6 +80,16 @@ func (c *iPAddresses) Get(ctx context.Context, name string, options v1.GetOption | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of IPAddresses that match those selectors. | // List takes label and field selectors, and returns the list of IPAddresses that match those selectors. | ||||||
| func (c *iPAddresses) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.IPAddressList, err error) { | func (c *iPAddresses) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.IPAddressList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for ipaddresses", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of IPAddresses that match those selectors. | ||||||
|  | func (c *iPAddresses) list(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.IPAddressList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	networkingv1alpha1 "k8s.io/client-go/applyconfigurations/networking/v1alpha1" | 	networkingv1alpha1 "k8s.io/client-go/applyconfigurations/networking/v1alpha1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // ServiceCIDRsGetter has a method to return a ServiceCIDRInterface. | // ServiceCIDRsGetter has a method to return a ServiceCIDRInterface. | ||||||
| @@ -81,6 +82,16 @@ func (c *serviceCIDRs) Get(ctx context.Context, name string, options v1.GetOptio | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of ServiceCIDRs that match those selectors. | // List takes label and field selectors, and returns the list of ServiceCIDRs that match those selectors. | ||||||
| func (c *serviceCIDRs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ServiceCIDRList, err error) { | func (c *serviceCIDRs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ServiceCIDRList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for servicecidrs", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of ServiceCIDRs that match those selectors. | ||||||
|  | func (c *serviceCIDRs) list(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ServiceCIDRList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	networkingv1beta1 "k8s.io/client-go/applyconfigurations/networking/v1beta1" | 	networkingv1beta1 "k8s.io/client-go/applyconfigurations/networking/v1beta1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // IngressesGetter has a method to return a IngressInterface. | // IngressesGetter has a method to return a IngressInterface. | ||||||
| @@ -84,6 +85,16 @@ func (c *ingresses) Get(ctx context.Context, name string, options v1.GetOptions) | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of Ingresses that match those selectors. | // List takes label and field selectors, and returns the list of Ingresses that match those selectors. | ||||||
| func (c *ingresses) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.IngressList, err error) { | func (c *ingresses) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.IngressList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for ingresses", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of Ingresses that match those selectors. | ||||||
|  | func (c *ingresses) list(ctx context.Context, opts v1.ListOptions) (result *v1beta1.IngressList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	networkingv1beta1 "k8s.io/client-go/applyconfigurations/networking/v1beta1" | 	networkingv1beta1 "k8s.io/client-go/applyconfigurations/networking/v1beta1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // IngressClassesGetter has a method to return a IngressClassInterface. | // IngressClassesGetter has a method to return a IngressClassInterface. | ||||||
| @@ -79,6 +80,16 @@ func (c *ingressClasses) Get(ctx context.Context, name string, options v1.GetOpt | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of IngressClasses that match those selectors. | // List takes label and field selectors, and returns the list of IngressClasses that match those selectors. | ||||||
| func (c *ingressClasses) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.IngressClassList, err error) { | func (c *ingressClasses) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.IngressClassList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for ingressclasses", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of IngressClasses that match those selectors. | ||||||
|  | func (c *ingressClasses) list(ctx context.Context, opts v1.ListOptions) (result *v1beta1.IngressClassList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	nodev1 "k8s.io/client-go/applyconfigurations/node/v1" | 	nodev1 "k8s.io/client-go/applyconfigurations/node/v1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // RuntimeClassesGetter has a method to return a RuntimeClassInterface. | // RuntimeClassesGetter has a method to return a RuntimeClassInterface. | ||||||
| @@ -79,6 +80,16 @@ func (c *runtimeClasses) Get(ctx context.Context, name string, options metav1.Ge | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of RuntimeClasses that match those selectors. | // List takes label and field selectors, and returns the list of RuntimeClasses that match those selectors. | ||||||
| func (c *runtimeClasses) List(ctx context.Context, opts metav1.ListOptions) (result *v1.RuntimeClassList, err error) { | func (c *runtimeClasses) List(ctx context.Context, opts metav1.ListOptions) (result *v1.RuntimeClassList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for runtimeclasses", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of RuntimeClasses that match those selectors. | ||||||
|  | func (c *runtimeClasses) list(ctx context.Context, opts metav1.ListOptions) (result *v1.RuntimeClassList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	nodev1alpha1 "k8s.io/client-go/applyconfigurations/node/v1alpha1" | 	nodev1alpha1 "k8s.io/client-go/applyconfigurations/node/v1alpha1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // RuntimeClassesGetter has a method to return a RuntimeClassInterface. | // RuntimeClassesGetter has a method to return a RuntimeClassInterface. | ||||||
| @@ -79,6 +80,16 @@ func (c *runtimeClasses) Get(ctx context.Context, name string, options v1.GetOpt | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of RuntimeClasses that match those selectors. | // List takes label and field selectors, and returns the list of RuntimeClasses that match those selectors. | ||||||
| func (c *runtimeClasses) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RuntimeClassList, err error) { | func (c *runtimeClasses) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RuntimeClassList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for runtimeclasses", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of RuntimeClasses that match those selectors. | ||||||
|  | func (c *runtimeClasses) list(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RuntimeClassList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	nodev1beta1 "k8s.io/client-go/applyconfigurations/node/v1beta1" | 	nodev1beta1 "k8s.io/client-go/applyconfigurations/node/v1beta1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // RuntimeClassesGetter has a method to return a RuntimeClassInterface. | // RuntimeClassesGetter has a method to return a RuntimeClassInterface. | ||||||
| @@ -79,6 +80,16 @@ func (c *runtimeClasses) Get(ctx context.Context, name string, options v1.GetOpt | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of RuntimeClasses that match those selectors. | // List takes label and field selectors, and returns the list of RuntimeClasses that match those selectors. | ||||||
| func (c *runtimeClasses) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.RuntimeClassList, err error) { | func (c *runtimeClasses) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.RuntimeClassList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for runtimeclasses", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of RuntimeClasses that match those selectors. | ||||||
|  | func (c *runtimeClasses) list(ctx context.Context, opts v1.ListOptions) (result *v1beta1.RuntimeClassList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	policyv1 "k8s.io/client-go/applyconfigurations/policy/v1" | 	policyv1 "k8s.io/client-go/applyconfigurations/policy/v1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // PodDisruptionBudgetsGetter has a method to return a PodDisruptionBudgetInterface. | // PodDisruptionBudgetsGetter has a method to return a PodDisruptionBudgetInterface. | ||||||
| @@ -84,6 +85,16 @@ func (c *podDisruptionBudgets) Get(ctx context.Context, name string, options met | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of PodDisruptionBudgets that match those selectors. | // List takes label and field selectors, and returns the list of PodDisruptionBudgets that match those selectors. | ||||||
| func (c *podDisruptionBudgets) List(ctx context.Context, opts metav1.ListOptions) (result *v1.PodDisruptionBudgetList, err error) { | func (c *podDisruptionBudgets) List(ctx context.Context, opts metav1.ListOptions) (result *v1.PodDisruptionBudgetList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for poddisruptionbudgets", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of PodDisruptionBudgets that match those selectors. | ||||||
|  | func (c *podDisruptionBudgets) list(ctx context.Context, opts metav1.ListOptions) (result *v1.PodDisruptionBudgetList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	policyv1beta1 "k8s.io/client-go/applyconfigurations/policy/v1beta1" | 	policyv1beta1 "k8s.io/client-go/applyconfigurations/policy/v1beta1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // PodDisruptionBudgetsGetter has a method to return a PodDisruptionBudgetInterface. | // PodDisruptionBudgetsGetter has a method to return a PodDisruptionBudgetInterface. | ||||||
| @@ -84,6 +85,16 @@ func (c *podDisruptionBudgets) Get(ctx context.Context, name string, options v1. | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of PodDisruptionBudgets that match those selectors. | // List takes label and field selectors, and returns the list of PodDisruptionBudgets that match those selectors. | ||||||
| func (c *podDisruptionBudgets) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.PodDisruptionBudgetList, err error) { | func (c *podDisruptionBudgets) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.PodDisruptionBudgetList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for poddisruptionbudgets", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of PodDisruptionBudgets that match those selectors. | ||||||
|  | func (c *podDisruptionBudgets) list(ctx context.Context, opts v1.ListOptions) (result *v1beta1.PodDisruptionBudgetList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	rbacv1 "k8s.io/client-go/applyconfigurations/rbac/v1" | 	rbacv1 "k8s.io/client-go/applyconfigurations/rbac/v1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // ClusterRolesGetter has a method to return a ClusterRoleInterface. | // ClusterRolesGetter has a method to return a ClusterRoleInterface. | ||||||
| @@ -79,6 +80,16 @@ func (c *clusterRoles) Get(ctx context.Context, name string, options metav1.GetO | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of ClusterRoles that match those selectors. | // List takes label and field selectors, and returns the list of ClusterRoles that match those selectors. | ||||||
| func (c *clusterRoles) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ClusterRoleList, err error) { | func (c *clusterRoles) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ClusterRoleList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for clusterroles", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of ClusterRoles that match those selectors. | ||||||
|  | func (c *clusterRoles) list(ctx context.Context, opts metav1.ListOptions) (result *v1.ClusterRoleList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	rbacv1 "k8s.io/client-go/applyconfigurations/rbac/v1" | 	rbacv1 "k8s.io/client-go/applyconfigurations/rbac/v1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // ClusterRoleBindingsGetter has a method to return a ClusterRoleBindingInterface. | // ClusterRoleBindingsGetter has a method to return a ClusterRoleBindingInterface. | ||||||
| @@ -79,6 +80,16 @@ func (c *clusterRoleBindings) Get(ctx context.Context, name string, options meta | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of ClusterRoleBindings that match those selectors. | // List takes label and field selectors, and returns the list of ClusterRoleBindings that match those selectors. | ||||||
| func (c *clusterRoleBindings) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ClusterRoleBindingList, err error) { | func (c *clusterRoleBindings) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ClusterRoleBindingList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for clusterrolebindings", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of ClusterRoleBindings that match those selectors. | ||||||
|  | func (c *clusterRoleBindings) list(ctx context.Context, opts metav1.ListOptions) (result *v1.ClusterRoleBindingList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	rbacv1 "k8s.io/client-go/applyconfigurations/rbac/v1" | 	rbacv1 "k8s.io/client-go/applyconfigurations/rbac/v1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // RolesGetter has a method to return a RoleInterface. | // RolesGetter has a method to return a RoleInterface. | ||||||
| @@ -82,6 +83,16 @@ func (c *roles) Get(ctx context.Context, name string, options metav1.GetOptions) | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of Roles that match those selectors. | // List takes label and field selectors, and returns the list of Roles that match those selectors. | ||||||
| func (c *roles) List(ctx context.Context, opts metav1.ListOptions) (result *v1.RoleList, err error) { | func (c *roles) List(ctx context.Context, opts metav1.ListOptions) (result *v1.RoleList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for roles", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of Roles that match those selectors. | ||||||
|  | func (c *roles) list(ctx context.Context, opts metav1.ListOptions) (result *v1.RoleList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	rbacv1 "k8s.io/client-go/applyconfigurations/rbac/v1" | 	rbacv1 "k8s.io/client-go/applyconfigurations/rbac/v1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // RoleBindingsGetter has a method to return a RoleBindingInterface. | // RoleBindingsGetter has a method to return a RoleBindingInterface. | ||||||
| @@ -82,6 +83,16 @@ func (c *roleBindings) Get(ctx context.Context, name string, options metav1.GetO | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of RoleBindings that match those selectors. | // List takes label and field selectors, and returns the list of RoleBindings that match those selectors. | ||||||
| func (c *roleBindings) List(ctx context.Context, opts metav1.ListOptions) (result *v1.RoleBindingList, err error) { | func (c *roleBindings) List(ctx context.Context, opts metav1.ListOptions) (result *v1.RoleBindingList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for rolebindings", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of RoleBindings that match those selectors. | ||||||
|  | func (c *roleBindings) list(ctx context.Context, opts metav1.ListOptions) (result *v1.RoleBindingList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	rbacv1alpha1 "k8s.io/client-go/applyconfigurations/rbac/v1alpha1" | 	rbacv1alpha1 "k8s.io/client-go/applyconfigurations/rbac/v1alpha1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // ClusterRolesGetter has a method to return a ClusterRoleInterface. | // ClusterRolesGetter has a method to return a ClusterRoleInterface. | ||||||
| @@ -79,6 +80,16 @@ func (c *clusterRoles) Get(ctx context.Context, name string, options v1.GetOptio | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of ClusterRoles that match those selectors. | // List takes label and field selectors, and returns the list of ClusterRoles that match those selectors. | ||||||
| func (c *clusterRoles) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ClusterRoleList, err error) { | func (c *clusterRoles) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ClusterRoleList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for clusterroles", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of ClusterRoles that match those selectors. | ||||||
|  | func (c *clusterRoles) list(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ClusterRoleList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	rbacv1alpha1 "k8s.io/client-go/applyconfigurations/rbac/v1alpha1" | 	rbacv1alpha1 "k8s.io/client-go/applyconfigurations/rbac/v1alpha1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // ClusterRoleBindingsGetter has a method to return a ClusterRoleBindingInterface. | // ClusterRoleBindingsGetter has a method to return a ClusterRoleBindingInterface. | ||||||
| @@ -79,6 +80,16 @@ func (c *clusterRoleBindings) Get(ctx context.Context, name string, options v1.G | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of ClusterRoleBindings that match those selectors. | // List takes label and field selectors, and returns the list of ClusterRoleBindings that match those selectors. | ||||||
| func (c *clusterRoleBindings) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ClusterRoleBindingList, err error) { | func (c *clusterRoleBindings) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ClusterRoleBindingList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for clusterrolebindings", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of ClusterRoleBindings that match those selectors. | ||||||
|  | func (c *clusterRoleBindings) list(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ClusterRoleBindingList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	rbacv1alpha1 "k8s.io/client-go/applyconfigurations/rbac/v1alpha1" | 	rbacv1alpha1 "k8s.io/client-go/applyconfigurations/rbac/v1alpha1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // RolesGetter has a method to return a RoleInterface. | // RolesGetter has a method to return a RoleInterface. | ||||||
| @@ -82,6 +83,16 @@ func (c *roles) Get(ctx context.Context, name string, options v1.GetOptions) (re | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of Roles that match those selectors. | // List takes label and field selectors, and returns the list of Roles that match those selectors. | ||||||
| func (c *roles) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RoleList, err error) { | func (c *roles) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RoleList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for roles", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of Roles that match those selectors. | ||||||
|  | func (c *roles) list(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RoleList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	rbacv1alpha1 "k8s.io/client-go/applyconfigurations/rbac/v1alpha1" | 	rbacv1alpha1 "k8s.io/client-go/applyconfigurations/rbac/v1alpha1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // RoleBindingsGetter has a method to return a RoleBindingInterface. | // RoleBindingsGetter has a method to return a RoleBindingInterface. | ||||||
| @@ -82,6 +83,16 @@ func (c *roleBindings) Get(ctx context.Context, name string, options v1.GetOptio | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of RoleBindings that match those selectors. | // List takes label and field selectors, and returns the list of RoleBindings that match those selectors. | ||||||
| func (c *roleBindings) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RoleBindingList, err error) { | func (c *roleBindings) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RoleBindingList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for rolebindings", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of RoleBindings that match those selectors. | ||||||
|  | func (c *roleBindings) list(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RoleBindingList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	rbacv1beta1 "k8s.io/client-go/applyconfigurations/rbac/v1beta1" | 	rbacv1beta1 "k8s.io/client-go/applyconfigurations/rbac/v1beta1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // ClusterRolesGetter has a method to return a ClusterRoleInterface. | // ClusterRolesGetter has a method to return a ClusterRoleInterface. | ||||||
| @@ -79,6 +80,16 @@ func (c *clusterRoles) Get(ctx context.Context, name string, options v1.GetOptio | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of ClusterRoles that match those selectors. | // List takes label and field selectors, and returns the list of ClusterRoles that match those selectors. | ||||||
| func (c *clusterRoles) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.ClusterRoleList, err error) { | func (c *clusterRoles) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.ClusterRoleList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for clusterroles", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of ClusterRoles that match those selectors. | ||||||
|  | func (c *clusterRoles) list(ctx context.Context, opts v1.ListOptions) (result *v1beta1.ClusterRoleList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	rbacv1beta1 "k8s.io/client-go/applyconfigurations/rbac/v1beta1" | 	rbacv1beta1 "k8s.io/client-go/applyconfigurations/rbac/v1beta1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // ClusterRoleBindingsGetter has a method to return a ClusterRoleBindingInterface. | // ClusterRoleBindingsGetter has a method to return a ClusterRoleBindingInterface. | ||||||
| @@ -79,6 +80,16 @@ func (c *clusterRoleBindings) Get(ctx context.Context, name string, options v1.G | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of ClusterRoleBindings that match those selectors. | // List takes label and field selectors, and returns the list of ClusterRoleBindings that match those selectors. | ||||||
| func (c *clusterRoleBindings) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.ClusterRoleBindingList, err error) { | func (c *clusterRoleBindings) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.ClusterRoleBindingList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for clusterrolebindings", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of ClusterRoleBindings that match those selectors. | ||||||
|  | func (c *clusterRoleBindings) list(ctx context.Context, opts v1.ListOptions) (result *v1beta1.ClusterRoleBindingList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	rbacv1beta1 "k8s.io/client-go/applyconfigurations/rbac/v1beta1" | 	rbacv1beta1 "k8s.io/client-go/applyconfigurations/rbac/v1beta1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // RolesGetter has a method to return a RoleInterface. | // RolesGetter has a method to return a RoleInterface. | ||||||
| @@ -82,6 +83,16 @@ func (c *roles) Get(ctx context.Context, name string, options v1.GetOptions) (re | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of Roles that match those selectors. | // List takes label and field selectors, and returns the list of Roles that match those selectors. | ||||||
| func (c *roles) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.RoleList, err error) { | func (c *roles) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.RoleList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for roles", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of Roles that match those selectors. | ||||||
|  | func (c *roles) list(ctx context.Context, opts v1.ListOptions) (result *v1beta1.RoleList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	rbacv1beta1 "k8s.io/client-go/applyconfigurations/rbac/v1beta1" | 	rbacv1beta1 "k8s.io/client-go/applyconfigurations/rbac/v1beta1" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // RoleBindingsGetter has a method to return a RoleBindingInterface. | // RoleBindingsGetter has a method to return a RoleBindingInterface. | ||||||
| @@ -82,6 +83,16 @@ func (c *roleBindings) Get(ctx context.Context, name string, options v1.GetOptio | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of RoleBindings that match those selectors. | // List takes label and field selectors, and returns the list of RoleBindings that match those selectors. | ||||||
| func (c *roleBindings) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.RoleBindingList, err error) { | func (c *roleBindings) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.RoleBindingList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for rolebindings", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of RoleBindings that match those selectors. | ||||||
|  | func (c *roleBindings) list(ctx context.Context, opts v1.ListOptions) (result *v1beta1.RoleBindingList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	resourcev1alpha2 "k8s.io/client-go/applyconfigurations/resource/v1alpha2" | 	resourcev1alpha2 "k8s.io/client-go/applyconfigurations/resource/v1alpha2" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // PodSchedulingContextsGetter has a method to return a PodSchedulingContextInterface. | // PodSchedulingContextsGetter has a method to return a PodSchedulingContextInterface. | ||||||
| @@ -84,6 +85,16 @@ func (c *podSchedulingContexts) Get(ctx context.Context, name string, options v1 | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of PodSchedulingContexts that match those selectors. | // List takes label and field selectors, and returns the list of PodSchedulingContexts that match those selectors. | ||||||
| func (c *podSchedulingContexts) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.PodSchedulingContextList, err error) { | func (c *podSchedulingContexts) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.PodSchedulingContextList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for podschedulingcontexts", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of PodSchedulingContexts that match those selectors. | ||||||
|  | func (c *podSchedulingContexts) list(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.PodSchedulingContextList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	resourcev1alpha2 "k8s.io/client-go/applyconfigurations/resource/v1alpha2" | 	resourcev1alpha2 "k8s.io/client-go/applyconfigurations/resource/v1alpha2" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // ResourceClaimsGetter has a method to return a ResourceClaimInterface. | // ResourceClaimsGetter has a method to return a ResourceClaimInterface. | ||||||
| @@ -84,6 +85,16 @@ func (c *resourceClaims) Get(ctx context.Context, name string, options v1.GetOpt | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of ResourceClaims that match those selectors. | // List takes label and field selectors, and returns the list of ResourceClaims that match those selectors. | ||||||
| func (c *resourceClaims) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.ResourceClaimList, err error) { | func (c *resourceClaims) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.ResourceClaimList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for resourceclaims", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of ResourceClaims that match those selectors. | ||||||
|  | func (c *resourceClaims) list(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.ResourceClaimList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	resourcev1alpha2 "k8s.io/client-go/applyconfigurations/resource/v1alpha2" | 	resourcev1alpha2 "k8s.io/client-go/applyconfigurations/resource/v1alpha2" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // ResourceClaimParametersGetter has a method to return a ResourceClaimParametersInterface. | // ResourceClaimParametersGetter has a method to return a ResourceClaimParametersInterface. | ||||||
| @@ -82,6 +83,16 @@ func (c *resourceClaimParameters) Get(ctx context.Context, name string, options | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of ResourceClaimParameters that match those selectors. | // List takes label and field selectors, and returns the list of ResourceClaimParameters that match those selectors. | ||||||
| func (c *resourceClaimParameters) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.ResourceClaimParametersList, err error) { | func (c *resourceClaimParameters) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.ResourceClaimParametersList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for resourceclaimparameters", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of ResourceClaimParameters that match those selectors. | ||||||
|  | func (c *resourceClaimParameters) list(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.ResourceClaimParametersList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
| @@ -31,6 +31,7 @@ import ( | |||||||
| 	resourcev1alpha2 "k8s.io/client-go/applyconfigurations/resource/v1alpha2" | 	resourcev1alpha2 "k8s.io/client-go/applyconfigurations/resource/v1alpha2" | ||||||
| 	scheme "k8s.io/client-go/kubernetes/scheme" | 	scheme "k8s.io/client-go/kubernetes/scheme" | ||||||
| 	rest "k8s.io/client-go/rest" | 	rest "k8s.io/client-go/rest" | ||||||
|  | 	consistencydetector "k8s.io/client-go/util/consistencydetector" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // ResourceClaimTemplatesGetter has a method to return a ResourceClaimTemplateInterface. | // ResourceClaimTemplatesGetter has a method to return a ResourceClaimTemplateInterface. | ||||||
| @@ -82,6 +83,16 @@ func (c *resourceClaimTemplates) Get(ctx context.Context, name string, options v | |||||||
|  |  | ||||||
| // List takes label and field selectors, and returns the list of ResourceClaimTemplates that match those selectors. | // List takes label and field selectors, and returns the list of ResourceClaimTemplates that match those selectors. | ||||||
| func (c *resourceClaimTemplates) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.ResourceClaimTemplateList, err error) { | func (c *resourceClaimTemplates) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.ResourceClaimTemplateList, err error) { | ||||||
|  | 	defer func() { | ||||||
|  | 		if err == nil { | ||||||
|  | 			consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for resourceclaimtemplates", c.list, opts, result) | ||||||
|  | 		} | ||||||
|  | 	}() | ||||||
|  | 	return c.list(ctx, opts) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // list takes label and field selectors, and returns the list of ResourceClaimTemplates that match those selectors. | ||||||
|  | func (c *resourceClaimTemplates) list(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.ResourceClaimTemplateList, err error) { | ||||||
| 	var timeout time.Duration | 	var timeout time.Duration | ||||||
| 	if opts.TimeoutSeconds != nil { | 	if opts.TimeoutSeconds != nil { | ||||||
| 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | 		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second | ||||||
|   | |||||||
Some files were not shown because too many files have changed in this diff Show More
		Reference in New Issue
	
	Block a user
	 Kubernetes Prow Robot
					Kubernetes Prow Robot