Merge pull request #121439 from skitt/generic-client-go
Use generics to share code in client-go implementations
This commit is contained in:
@@ -24,7 +24,7 @@ import (
|
|||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ExampleApplyConfiguration represents an declarative configuration of the Example type for use
|
// ExampleApplyConfiguration represents a declarative configuration of the Example type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ExampleApplyConfiguration struct {
|
type ExampleApplyConfiguration struct {
|
||||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||||
@@ -33,7 +33,7 @@ type ExampleApplyConfiguration struct {
|
|||||||
Status *ExampleStatusApplyConfiguration `json:"status,omitempty"`
|
Status *ExampleStatusApplyConfiguration `json:"status,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Example constructs an declarative configuration of the Example type for use with
|
// Example constructs a declarative configuration of the Example type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func Example(name, namespace string) *ExampleApplyConfiguration {
|
func Example(name, namespace string) *ExampleApplyConfiguration {
|
||||||
b := &ExampleApplyConfiguration{}
|
b := &ExampleApplyConfiguration{}
|
||||||
@@ -217,3 +217,9 @@ func (b *ExampleApplyConfiguration) WithStatus(value *ExampleStatusApplyConfigur
|
|||||||
b.Status = value
|
b.Status = value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetName retrieves the value of the Name field in the declarative configuration.
|
||||||
|
func (b *ExampleApplyConfiguration) GetName() *string {
|
||||||
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
|
return b.Name
|
||||||
|
}
|
||||||
|
@@ -18,14 +18,14 @@ limitations under the License.
|
|||||||
|
|
||||||
package v1
|
package v1
|
||||||
|
|
||||||
// ExampleSpecApplyConfiguration represents an declarative configuration of the ExampleSpec type for use
|
// ExampleSpecApplyConfiguration represents a declarative configuration of the ExampleSpec type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ExampleSpecApplyConfiguration struct {
|
type ExampleSpecApplyConfiguration struct {
|
||||||
Foo *string `json:"foo,omitempty"`
|
Foo *string `json:"foo,omitempty"`
|
||||||
Bar *bool `json:"bar,omitempty"`
|
Bar *bool `json:"bar,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ExampleSpecApplyConfiguration constructs an declarative configuration of the ExampleSpec type for use with
|
// ExampleSpecApplyConfiguration constructs a declarative configuration of the ExampleSpec type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func ExampleSpec() *ExampleSpecApplyConfiguration {
|
func ExampleSpec() *ExampleSpecApplyConfiguration {
|
||||||
return &ExampleSpecApplyConfiguration{}
|
return &ExampleSpecApplyConfiguration{}
|
||||||
|
@@ -22,14 +22,14 @@ import (
|
|||||||
v1 "k8s.io/apiextensions-apiserver/examples/client-go/pkg/apis/cr/v1"
|
v1 "k8s.io/apiextensions-apiserver/examples/client-go/pkg/apis/cr/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ExampleStatusApplyConfiguration represents an declarative configuration of the ExampleStatus type for use
|
// ExampleStatusApplyConfiguration represents a declarative configuration of the ExampleStatus type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ExampleStatusApplyConfiguration struct {
|
type ExampleStatusApplyConfiguration struct {
|
||||||
State *v1.ExampleState `json:"state,omitempty"`
|
State *v1.ExampleState `json:"state,omitempty"`
|
||||||
Message *string `json:"message,omitempty"`
|
Message *string `json:"message,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ExampleStatusApplyConfiguration constructs an declarative configuration of the ExampleStatus type for use with
|
// ExampleStatusApplyConfiguration constructs a declarative configuration of the ExampleStatus type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func ExampleStatus() *ExampleStatusApplyConfiguration {
|
func ExampleStatus() *ExampleStatusApplyConfiguration {
|
||||||
return &ExampleStatusApplyConfiguration{}
|
return &ExampleStatusApplyConfiguration{}
|
||||||
|
@@ -20,9 +20,6 @@ package v1
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
json "encoding/json"
|
|
||||||
"fmt"
|
|
||||||
"time"
|
|
||||||
|
|
||||||
v1 "k8s.io/apiextensions-apiserver/examples/client-go/pkg/apis/cr/v1"
|
v1 "k8s.io/apiextensions-apiserver/examples/client-go/pkg/apis/cr/v1"
|
||||||
crv1 "k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/applyconfiguration/cr/v1"
|
crv1 "k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/applyconfiguration/cr/v1"
|
||||||
@@ -30,10 +27,7 @@ import (
|
|||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
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"
|
gentype "k8s.io/client-go/gentype"
|
||||||
consistencydetector "k8s.io/client-go/util/consistencydetector"
|
|
||||||
watchlist "k8s.io/client-go/util/watchlist"
|
|
||||||
"k8s.io/klog/v2"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// ExamplesGetter has a method to return a ExampleInterface.
|
// ExamplesGetter has a method to return a ExampleInterface.
|
||||||
@@ -58,190 +52,18 @@ type ExampleInterface interface {
|
|||||||
|
|
||||||
// examples implements ExampleInterface
|
// examples implements ExampleInterface
|
||||||
type examples struct {
|
type examples struct {
|
||||||
client rest.Interface
|
*gentype.ClientWithListAndApply[*v1.Example, *v1.ExampleList, *crv1.ExampleApplyConfiguration]
|
||||||
ns string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// newExamples returns a Examples
|
// newExamples returns a Examples
|
||||||
func newExamples(c *CrV1Client, namespace string) *examples {
|
func newExamples(c *CrV1Client, namespace string) *examples {
|
||||||
return &examples{
|
return &examples{
|
||||||
client: c.RESTClient(),
|
gentype.NewClientWithListAndApply[*v1.Example, *v1.ExampleList, *crv1.ExampleApplyConfiguration](
|
||||||
ns: namespace,
|
"examples",
|
||||||
|
c.RESTClient(),
|
||||||
|
scheme.ParameterCodec,
|
||||||
|
namespace,
|
||||||
|
func() *v1.Example { return &v1.Example{} },
|
||||||
|
func() *v1.ExampleList { return &v1.ExampleList{} }),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get takes name of the example, and returns the corresponding example object, and an error if there is any.
|
|
||||||
func (c *examples) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Example, err error) {
|
|
||||||
result = &v1.Example{}
|
|
||||||
err = c.client.Get().
|
|
||||||
Namespace(c.ns).
|
|
||||||
Resource("examples").
|
|
||||||
Name(name).
|
|
||||||
VersionedParams(&options, scheme.ParameterCodec).
|
|
||||||
Do(ctx).
|
|
||||||
Into(result)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// 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) (*v1.ExampleList, error) {
|
|
||||||
if watchListOptions, hasWatchListOptionsPrepared, watchListOptionsErr := watchlist.PrepareWatchListOptionsFromListOptions(opts); watchListOptionsErr != nil {
|
|
||||||
klog.Warningf("Failed preparing watchlist options for examples, falling back to the standard LIST semantics, err = %v", watchListOptionsErr)
|
|
||||||
} else if hasWatchListOptionsPrepared {
|
|
||||||
result, err := c.watchList(ctx, watchListOptions)
|
|
||||||
if err == nil {
|
|
||||||
consistencydetector.CheckWatchListFromCacheDataConsistencyIfRequested(ctx, "watchlist request for examples", c.list, opts, result)
|
|
||||||
return result, nil
|
|
||||||
}
|
|
||||||
klog.Warningf("The watchlist request for examples ended with an error, falling back to the standard LIST semantics, err = %v", err)
|
|
||||||
}
|
|
||||||
result, err := c.list(ctx, opts)
|
|
||||||
if err == nil {
|
|
||||||
consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for examples", c.list, opts, result)
|
|
||||||
}
|
|
||||||
return result, err
|
|
||||||
}
|
|
||||||
|
|
||||||
// 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
|
|
||||||
if opts.TimeoutSeconds != nil {
|
|
||||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
|
||||||
}
|
|
||||||
result = &v1.ExampleList{}
|
|
||||||
err = c.client.Get().
|
|
||||||
Namespace(c.ns).
|
|
||||||
Resource("examples").
|
|
||||||
VersionedParams(&opts, scheme.ParameterCodec).
|
|
||||||
Timeout(timeout).
|
|
||||||
Do(ctx).
|
|
||||||
Into(result)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// watchList establishes a watch stream with the server and returns the list of Examples
|
|
||||||
func (c *examples) watchList(ctx context.Context, opts metav1.ListOptions) (result *v1.ExampleList, err error) {
|
|
||||||
var timeout time.Duration
|
|
||||||
if opts.TimeoutSeconds != nil {
|
|
||||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
|
||||||
}
|
|
||||||
result = &v1.ExampleList{}
|
|
||||||
err = c.client.Get().
|
|
||||||
Namespace(c.ns).
|
|
||||||
Resource("examples").
|
|
||||||
VersionedParams(&opts, scheme.ParameterCodec).
|
|
||||||
Timeout(timeout).
|
|
||||||
WatchList(ctx).
|
|
||||||
Into(result)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Watch returns a watch.Interface that watches the requested examples.
|
|
||||||
func (c *examples) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
|
|
||||||
var timeout time.Duration
|
|
||||||
if opts.TimeoutSeconds != nil {
|
|
||||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
|
||||||
}
|
|
||||||
opts.Watch = true
|
|
||||||
return c.client.Get().
|
|
||||||
Namespace(c.ns).
|
|
||||||
Resource("examples").
|
|
||||||
VersionedParams(&opts, scheme.ParameterCodec).
|
|
||||||
Timeout(timeout).
|
|
||||||
Watch(ctx)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Create takes the representation of a example and creates it. Returns the server's representation of the example, and an error, if there is any.
|
|
||||||
func (c *examples) Create(ctx context.Context, example *v1.Example, opts metav1.CreateOptions) (result *v1.Example, err error) {
|
|
||||||
result = &v1.Example{}
|
|
||||||
err = c.client.Post().
|
|
||||||
Namespace(c.ns).
|
|
||||||
Resource("examples").
|
|
||||||
VersionedParams(&opts, scheme.ParameterCodec).
|
|
||||||
Body(example).
|
|
||||||
Do(ctx).
|
|
||||||
Into(result)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update takes the representation of a example and updates it. Returns the server's representation of the example, and an error, if there is any.
|
|
||||||
func (c *examples) Update(ctx context.Context, example *v1.Example, opts metav1.UpdateOptions) (result *v1.Example, err error) {
|
|
||||||
result = &v1.Example{}
|
|
||||||
err = c.client.Put().
|
|
||||||
Namespace(c.ns).
|
|
||||||
Resource("examples").
|
|
||||||
Name(example.Name).
|
|
||||||
VersionedParams(&opts, scheme.ParameterCodec).
|
|
||||||
Body(example).
|
|
||||||
Do(ctx).
|
|
||||||
Into(result)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Delete takes name of the example and deletes it. Returns an error if one occurs.
|
|
||||||
func (c *examples) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
|
|
||||||
return c.client.Delete().
|
|
||||||
Namespace(c.ns).
|
|
||||||
Resource("examples").
|
|
||||||
Name(name).
|
|
||||||
Body(&opts).
|
|
||||||
Do(ctx).
|
|
||||||
Error()
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeleteCollection deletes a collection of objects.
|
|
||||||
func (c *examples) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
|
|
||||||
var timeout time.Duration
|
|
||||||
if listOpts.TimeoutSeconds != nil {
|
|
||||||
timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
|
|
||||||
}
|
|
||||||
return c.client.Delete().
|
|
||||||
Namespace(c.ns).
|
|
||||||
Resource("examples").
|
|
||||||
VersionedParams(&listOpts, scheme.ParameterCodec).
|
|
||||||
Timeout(timeout).
|
|
||||||
Body(&opts).
|
|
||||||
Do(ctx).
|
|
||||||
Error()
|
|
||||||
}
|
|
||||||
|
|
||||||
// Patch applies the patch and returns the patched example.
|
|
||||||
func (c *examples) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Example, err error) {
|
|
||||||
result = &v1.Example{}
|
|
||||||
err = c.client.Patch(pt).
|
|
||||||
Namespace(c.ns).
|
|
||||||
Resource("examples").
|
|
||||||
Name(name).
|
|
||||||
SubResource(subresources...).
|
|
||||||
VersionedParams(&opts, scheme.ParameterCodec).
|
|
||||||
Body(data).
|
|
||||||
Do(ctx).
|
|
||||||
Into(result)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Apply takes the given apply declarative configuration, applies it and returns the applied example.
|
|
||||||
func (c *examples) Apply(ctx context.Context, example *crv1.ExampleApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Example, err error) {
|
|
||||||
if example == nil {
|
|
||||||
return nil, fmt.Errorf("example provided to Apply must not be nil")
|
|
||||||
}
|
|
||||||
patchOpts := opts.ToPatchOptions()
|
|
||||||
data, err := json.Marshal(example)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
name := example.Name
|
|
||||||
if name == nil {
|
|
||||||
return nil, fmt.Errorf("example.Name must be provided to Apply")
|
|
||||||
}
|
|
||||||
result = &v1.Example{}
|
|
||||||
err = c.client.Patch(types.ApplyPatchType).
|
|
||||||
Namespace(c.ns).
|
|
||||||
Resource("examples").
|
|
||||||
Name(*name).
|
|
||||||
VersionedParams(&patchOpts, scheme.ParameterCodec).
|
|
||||||
Body(data).
|
|
||||||
Do(ctx).
|
|
||||||
Into(result)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
@@ -18,7 +18,7 @@ limitations under the License.
|
|||||||
|
|
||||||
package v1
|
package v1
|
||||||
|
|
||||||
// CustomResourceColumnDefinitionApplyConfiguration represents an declarative configuration of the CustomResourceColumnDefinition type for use
|
// CustomResourceColumnDefinitionApplyConfiguration represents a declarative configuration of the CustomResourceColumnDefinition type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type CustomResourceColumnDefinitionApplyConfiguration struct {
|
type CustomResourceColumnDefinitionApplyConfiguration struct {
|
||||||
Name *string `json:"name,omitempty"`
|
Name *string `json:"name,omitempty"`
|
||||||
@@ -29,7 +29,7 @@ type CustomResourceColumnDefinitionApplyConfiguration struct {
|
|||||||
JSONPath *string `json:"jsonPath,omitempty"`
|
JSONPath *string `json:"jsonPath,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// CustomResourceColumnDefinitionApplyConfiguration constructs an declarative configuration of the CustomResourceColumnDefinition type for use with
|
// CustomResourceColumnDefinitionApplyConfiguration constructs a declarative configuration of the CustomResourceColumnDefinition type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func CustomResourceColumnDefinition() *CustomResourceColumnDefinitionApplyConfiguration {
|
func CustomResourceColumnDefinition() *CustomResourceColumnDefinitionApplyConfiguration {
|
||||||
return &CustomResourceColumnDefinitionApplyConfiguration{}
|
return &CustomResourceColumnDefinitionApplyConfiguration{}
|
||||||
|
@@ -22,14 +22,14 @@ import (
|
|||||||
v1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
|
v1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CustomResourceConversionApplyConfiguration represents an declarative configuration of the CustomResourceConversion type for use
|
// CustomResourceConversionApplyConfiguration represents a declarative configuration of the CustomResourceConversion type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type CustomResourceConversionApplyConfiguration struct {
|
type CustomResourceConversionApplyConfiguration struct {
|
||||||
Strategy *v1.ConversionStrategyType `json:"strategy,omitempty"`
|
Strategy *v1.ConversionStrategyType `json:"strategy,omitempty"`
|
||||||
Webhook *WebhookConversionApplyConfiguration `json:"webhook,omitempty"`
|
Webhook *WebhookConversionApplyConfiguration `json:"webhook,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// CustomResourceConversionApplyConfiguration constructs an declarative configuration of the CustomResourceConversion type for use with
|
// CustomResourceConversionApplyConfiguration constructs a declarative configuration of the CustomResourceConversion type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func CustomResourceConversion() *CustomResourceConversionApplyConfiguration {
|
func CustomResourceConversion() *CustomResourceConversionApplyConfiguration {
|
||||||
return &CustomResourceConversionApplyConfiguration{}
|
return &CustomResourceConversionApplyConfiguration{}
|
||||||
|
@@ -24,7 +24,7 @@ import (
|
|||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CustomResourceDefinitionApplyConfiguration represents an declarative configuration of the CustomResourceDefinition type for use
|
// CustomResourceDefinitionApplyConfiguration represents a declarative configuration of the CustomResourceDefinition type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type CustomResourceDefinitionApplyConfiguration struct {
|
type CustomResourceDefinitionApplyConfiguration struct {
|
||||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||||
@@ -33,7 +33,7 @@ type CustomResourceDefinitionApplyConfiguration struct {
|
|||||||
Status *CustomResourceDefinitionStatusApplyConfiguration `json:"status,omitempty"`
|
Status *CustomResourceDefinitionStatusApplyConfiguration `json:"status,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// CustomResourceDefinition constructs an declarative configuration of the CustomResourceDefinition type for use with
|
// CustomResourceDefinition constructs a declarative configuration of the CustomResourceDefinition type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func CustomResourceDefinition(name string) *CustomResourceDefinitionApplyConfiguration {
|
func CustomResourceDefinition(name string) *CustomResourceDefinitionApplyConfiguration {
|
||||||
b := &CustomResourceDefinitionApplyConfiguration{}
|
b := &CustomResourceDefinitionApplyConfiguration{}
|
||||||
@@ -216,3 +216,9 @@ func (b *CustomResourceDefinitionApplyConfiguration) WithStatus(value *CustomRes
|
|||||||
b.Status = value
|
b.Status = value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetName retrieves the value of the Name field in the declarative configuration.
|
||||||
|
func (b *CustomResourceDefinitionApplyConfiguration) GetName() *string {
|
||||||
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
|
return b.Name
|
||||||
|
}
|
||||||
|
@@ -23,7 +23,7 @@ import (
|
|||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CustomResourceDefinitionConditionApplyConfiguration represents an declarative configuration of the CustomResourceDefinitionCondition type for use
|
// CustomResourceDefinitionConditionApplyConfiguration represents a declarative configuration of the CustomResourceDefinitionCondition type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type CustomResourceDefinitionConditionApplyConfiguration struct {
|
type CustomResourceDefinitionConditionApplyConfiguration struct {
|
||||||
Type *v1.CustomResourceDefinitionConditionType `json:"type,omitempty"`
|
Type *v1.CustomResourceDefinitionConditionType `json:"type,omitempty"`
|
||||||
@@ -33,7 +33,7 @@ type CustomResourceDefinitionConditionApplyConfiguration struct {
|
|||||||
Message *string `json:"message,omitempty"`
|
Message *string `json:"message,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// CustomResourceDefinitionConditionApplyConfiguration constructs an declarative configuration of the CustomResourceDefinitionCondition type for use with
|
// CustomResourceDefinitionConditionApplyConfiguration constructs a declarative configuration of the CustomResourceDefinitionCondition type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func CustomResourceDefinitionCondition() *CustomResourceDefinitionConditionApplyConfiguration {
|
func CustomResourceDefinitionCondition() *CustomResourceDefinitionConditionApplyConfiguration {
|
||||||
return &CustomResourceDefinitionConditionApplyConfiguration{}
|
return &CustomResourceDefinitionConditionApplyConfiguration{}
|
||||||
|
@@ -18,7 +18,7 @@ limitations under the License.
|
|||||||
|
|
||||||
package v1
|
package v1
|
||||||
|
|
||||||
// CustomResourceDefinitionNamesApplyConfiguration represents an declarative configuration of the CustomResourceDefinitionNames type for use
|
// CustomResourceDefinitionNamesApplyConfiguration represents a declarative configuration of the CustomResourceDefinitionNames type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type CustomResourceDefinitionNamesApplyConfiguration struct {
|
type CustomResourceDefinitionNamesApplyConfiguration struct {
|
||||||
Plural *string `json:"plural,omitempty"`
|
Plural *string `json:"plural,omitempty"`
|
||||||
@@ -29,7 +29,7 @@ type CustomResourceDefinitionNamesApplyConfiguration struct {
|
|||||||
Categories []string `json:"categories,omitempty"`
|
Categories []string `json:"categories,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// CustomResourceDefinitionNamesApplyConfiguration constructs an declarative configuration of the CustomResourceDefinitionNames type for use with
|
// CustomResourceDefinitionNamesApplyConfiguration constructs a declarative configuration of the CustomResourceDefinitionNames type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func CustomResourceDefinitionNames() *CustomResourceDefinitionNamesApplyConfiguration {
|
func CustomResourceDefinitionNames() *CustomResourceDefinitionNamesApplyConfiguration {
|
||||||
return &CustomResourceDefinitionNamesApplyConfiguration{}
|
return &CustomResourceDefinitionNamesApplyConfiguration{}
|
||||||
|
@@ -22,7 +22,7 @@ import (
|
|||||||
apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
|
apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CustomResourceDefinitionSpecApplyConfiguration represents an declarative configuration of the CustomResourceDefinitionSpec type for use
|
// CustomResourceDefinitionSpecApplyConfiguration represents a declarative configuration of the CustomResourceDefinitionSpec type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type CustomResourceDefinitionSpecApplyConfiguration struct {
|
type CustomResourceDefinitionSpecApplyConfiguration struct {
|
||||||
Group *string `json:"group,omitempty"`
|
Group *string `json:"group,omitempty"`
|
||||||
@@ -33,7 +33,7 @@ type CustomResourceDefinitionSpecApplyConfiguration struct {
|
|||||||
PreserveUnknownFields *bool `json:"preserveUnknownFields,omitempty"`
|
PreserveUnknownFields *bool `json:"preserveUnknownFields,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// CustomResourceDefinitionSpecApplyConfiguration constructs an declarative configuration of the CustomResourceDefinitionSpec type for use with
|
// CustomResourceDefinitionSpecApplyConfiguration constructs a declarative configuration of the CustomResourceDefinitionSpec type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func CustomResourceDefinitionSpec() *CustomResourceDefinitionSpecApplyConfiguration {
|
func CustomResourceDefinitionSpec() *CustomResourceDefinitionSpecApplyConfiguration {
|
||||||
return &CustomResourceDefinitionSpecApplyConfiguration{}
|
return &CustomResourceDefinitionSpecApplyConfiguration{}
|
||||||
|
@@ -18,7 +18,7 @@ limitations under the License.
|
|||||||
|
|
||||||
package v1
|
package v1
|
||||||
|
|
||||||
// CustomResourceDefinitionStatusApplyConfiguration represents an declarative configuration of the CustomResourceDefinitionStatus type for use
|
// CustomResourceDefinitionStatusApplyConfiguration represents a declarative configuration of the CustomResourceDefinitionStatus type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type CustomResourceDefinitionStatusApplyConfiguration struct {
|
type CustomResourceDefinitionStatusApplyConfiguration struct {
|
||||||
Conditions []CustomResourceDefinitionConditionApplyConfiguration `json:"conditions,omitempty"`
|
Conditions []CustomResourceDefinitionConditionApplyConfiguration `json:"conditions,omitempty"`
|
||||||
@@ -26,7 +26,7 @@ type CustomResourceDefinitionStatusApplyConfiguration struct {
|
|||||||
StoredVersions []string `json:"storedVersions,omitempty"`
|
StoredVersions []string `json:"storedVersions,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// CustomResourceDefinitionStatusApplyConfiguration constructs an declarative configuration of the CustomResourceDefinitionStatus type for use with
|
// CustomResourceDefinitionStatusApplyConfiguration constructs a declarative configuration of the CustomResourceDefinitionStatus type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func CustomResourceDefinitionStatus() *CustomResourceDefinitionStatusApplyConfiguration {
|
func CustomResourceDefinitionStatus() *CustomResourceDefinitionStatusApplyConfiguration {
|
||||||
return &CustomResourceDefinitionStatusApplyConfiguration{}
|
return &CustomResourceDefinitionStatusApplyConfiguration{}
|
||||||
|
@@ -18,7 +18,7 @@ limitations under the License.
|
|||||||
|
|
||||||
package v1
|
package v1
|
||||||
|
|
||||||
// CustomResourceDefinitionVersionApplyConfiguration represents an declarative configuration of the CustomResourceDefinitionVersion type for use
|
// CustomResourceDefinitionVersionApplyConfiguration represents a declarative configuration of the CustomResourceDefinitionVersion type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type CustomResourceDefinitionVersionApplyConfiguration struct {
|
type CustomResourceDefinitionVersionApplyConfiguration struct {
|
||||||
Name *string `json:"name,omitempty"`
|
Name *string `json:"name,omitempty"`
|
||||||
@@ -32,7 +32,7 @@ type CustomResourceDefinitionVersionApplyConfiguration struct {
|
|||||||
SelectableFields []SelectableFieldApplyConfiguration `json:"selectableFields,omitempty"`
|
SelectableFields []SelectableFieldApplyConfiguration `json:"selectableFields,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// CustomResourceDefinitionVersionApplyConfiguration constructs an declarative configuration of the CustomResourceDefinitionVersion type for use with
|
// CustomResourceDefinitionVersionApplyConfiguration constructs a declarative configuration of the CustomResourceDefinitionVersion type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func CustomResourceDefinitionVersion() *CustomResourceDefinitionVersionApplyConfiguration {
|
func CustomResourceDefinitionVersion() *CustomResourceDefinitionVersionApplyConfiguration {
|
||||||
return &CustomResourceDefinitionVersionApplyConfiguration{}
|
return &CustomResourceDefinitionVersionApplyConfiguration{}
|
||||||
|
@@ -22,14 +22,14 @@ import (
|
|||||||
v1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
|
v1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CustomResourceSubresourcesApplyConfiguration represents an declarative configuration of the CustomResourceSubresources type for use
|
// CustomResourceSubresourcesApplyConfiguration represents a declarative configuration of the CustomResourceSubresources type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type CustomResourceSubresourcesApplyConfiguration struct {
|
type CustomResourceSubresourcesApplyConfiguration struct {
|
||||||
Status *v1.CustomResourceSubresourceStatus `json:"status,omitempty"`
|
Status *v1.CustomResourceSubresourceStatus `json:"status,omitempty"`
|
||||||
Scale *CustomResourceSubresourceScaleApplyConfiguration `json:"scale,omitempty"`
|
Scale *CustomResourceSubresourceScaleApplyConfiguration `json:"scale,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// CustomResourceSubresourcesApplyConfiguration constructs an declarative configuration of the CustomResourceSubresources type for use with
|
// CustomResourceSubresourcesApplyConfiguration constructs a declarative configuration of the CustomResourceSubresources type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func CustomResourceSubresources() *CustomResourceSubresourcesApplyConfiguration {
|
func CustomResourceSubresources() *CustomResourceSubresourcesApplyConfiguration {
|
||||||
return &CustomResourceSubresourcesApplyConfiguration{}
|
return &CustomResourceSubresourcesApplyConfiguration{}
|
||||||
|
@@ -18,7 +18,7 @@ limitations under the License.
|
|||||||
|
|
||||||
package v1
|
package v1
|
||||||
|
|
||||||
// CustomResourceSubresourceScaleApplyConfiguration represents an declarative configuration of the CustomResourceSubresourceScale type for use
|
// CustomResourceSubresourceScaleApplyConfiguration represents a declarative configuration of the CustomResourceSubresourceScale type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type CustomResourceSubresourceScaleApplyConfiguration struct {
|
type CustomResourceSubresourceScaleApplyConfiguration struct {
|
||||||
SpecReplicasPath *string `json:"specReplicasPath,omitempty"`
|
SpecReplicasPath *string `json:"specReplicasPath,omitempty"`
|
||||||
@@ -26,7 +26,7 @@ type CustomResourceSubresourceScaleApplyConfiguration struct {
|
|||||||
LabelSelectorPath *string `json:"labelSelectorPath,omitempty"`
|
LabelSelectorPath *string `json:"labelSelectorPath,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// CustomResourceSubresourceScaleApplyConfiguration constructs an declarative configuration of the CustomResourceSubresourceScale type for use with
|
// CustomResourceSubresourceScaleApplyConfiguration constructs a declarative configuration of the CustomResourceSubresourceScale type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func CustomResourceSubresourceScale() *CustomResourceSubresourceScaleApplyConfiguration {
|
func CustomResourceSubresourceScale() *CustomResourceSubresourceScaleApplyConfiguration {
|
||||||
return &CustomResourceSubresourceScaleApplyConfiguration{}
|
return &CustomResourceSubresourceScaleApplyConfiguration{}
|
||||||
|
@@ -18,13 +18,13 @@ limitations under the License.
|
|||||||
|
|
||||||
package v1
|
package v1
|
||||||
|
|
||||||
// CustomResourceValidationApplyConfiguration represents an declarative configuration of the CustomResourceValidation type for use
|
// CustomResourceValidationApplyConfiguration represents a declarative configuration of the CustomResourceValidation type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type CustomResourceValidationApplyConfiguration struct {
|
type CustomResourceValidationApplyConfiguration struct {
|
||||||
OpenAPIV3Schema *JSONSchemaPropsApplyConfiguration `json:"openAPIV3Schema,omitempty"`
|
OpenAPIV3Schema *JSONSchemaPropsApplyConfiguration `json:"openAPIV3Schema,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// CustomResourceValidationApplyConfiguration constructs an declarative configuration of the CustomResourceValidation type for use with
|
// CustomResourceValidationApplyConfiguration constructs a declarative configuration of the CustomResourceValidation type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func CustomResourceValidation() *CustomResourceValidationApplyConfiguration {
|
func CustomResourceValidation() *CustomResourceValidationApplyConfiguration {
|
||||||
return &CustomResourceValidationApplyConfiguration{}
|
return &CustomResourceValidationApplyConfiguration{}
|
||||||
|
@@ -18,14 +18,14 @@ limitations under the License.
|
|||||||
|
|
||||||
package v1
|
package v1
|
||||||
|
|
||||||
// ExternalDocumentationApplyConfiguration represents an declarative configuration of the ExternalDocumentation type for use
|
// ExternalDocumentationApplyConfiguration represents a declarative configuration of the ExternalDocumentation type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ExternalDocumentationApplyConfiguration struct {
|
type ExternalDocumentationApplyConfiguration struct {
|
||||||
Description *string `json:"description,omitempty"`
|
Description *string `json:"description,omitempty"`
|
||||||
URL *string `json:"url,omitempty"`
|
URL *string `json:"url,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ExternalDocumentationApplyConfiguration constructs an declarative configuration of the ExternalDocumentation type for use with
|
// ExternalDocumentationApplyConfiguration constructs a declarative configuration of the ExternalDocumentation type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func ExternalDocumentation() *ExternalDocumentationApplyConfiguration {
|
func ExternalDocumentation() *ExternalDocumentationApplyConfiguration {
|
||||||
return &ExternalDocumentationApplyConfiguration{}
|
return &ExternalDocumentationApplyConfiguration{}
|
||||||
|
@@ -22,7 +22,7 @@ import (
|
|||||||
v1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
|
v1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// JSONSchemaPropsApplyConfiguration represents an declarative configuration of the JSONSchemaProps type for use
|
// JSONSchemaPropsApplyConfiguration represents a declarative configuration of the JSONSchemaProps type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type JSONSchemaPropsApplyConfiguration struct {
|
type JSONSchemaPropsApplyConfiguration struct {
|
||||||
ID *string `json:"id,omitempty"`
|
ID *string `json:"id,omitempty"`
|
||||||
@@ -71,7 +71,7 @@ type JSONSchemaPropsApplyConfiguration struct {
|
|||||||
XValidations *v1.ValidationRules `json:"x-kubernetes-validations,omitempty"`
|
XValidations *v1.ValidationRules `json:"x-kubernetes-validations,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// JSONSchemaPropsApplyConfiguration constructs an declarative configuration of the JSONSchemaProps type for use with
|
// JSONSchemaPropsApplyConfiguration constructs a declarative configuration of the JSONSchemaProps type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func JSONSchemaProps() *JSONSchemaPropsApplyConfiguration {
|
func JSONSchemaProps() *JSONSchemaPropsApplyConfiguration {
|
||||||
return &JSONSchemaPropsApplyConfiguration{}
|
return &JSONSchemaPropsApplyConfiguration{}
|
||||||
|
@@ -18,13 +18,13 @@ limitations under the License.
|
|||||||
|
|
||||||
package v1
|
package v1
|
||||||
|
|
||||||
// SelectableFieldApplyConfiguration represents an declarative configuration of the SelectableField type for use
|
// SelectableFieldApplyConfiguration represents a declarative configuration of the SelectableField type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type SelectableFieldApplyConfiguration struct {
|
type SelectableFieldApplyConfiguration struct {
|
||||||
JSONPath *string `json:"jsonPath,omitempty"`
|
JSONPath *string `json:"jsonPath,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// SelectableFieldApplyConfiguration constructs an declarative configuration of the SelectableField type for use with
|
// SelectableFieldApplyConfiguration constructs a declarative configuration of the SelectableField type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func SelectableField() *SelectableFieldApplyConfiguration {
|
func SelectableField() *SelectableFieldApplyConfiguration {
|
||||||
return &SelectableFieldApplyConfiguration{}
|
return &SelectableFieldApplyConfiguration{}
|
||||||
|
@@ -18,7 +18,7 @@ limitations under the License.
|
|||||||
|
|
||||||
package v1
|
package v1
|
||||||
|
|
||||||
// ServiceReferenceApplyConfiguration represents an declarative configuration of the ServiceReference type for use
|
// ServiceReferenceApplyConfiguration represents a declarative configuration of the ServiceReference type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ServiceReferenceApplyConfiguration struct {
|
type ServiceReferenceApplyConfiguration struct {
|
||||||
Namespace *string `json:"namespace,omitempty"`
|
Namespace *string `json:"namespace,omitempty"`
|
||||||
@@ -27,7 +27,7 @@ type ServiceReferenceApplyConfiguration struct {
|
|||||||
Port *int32 `json:"port,omitempty"`
|
Port *int32 `json:"port,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ServiceReferenceApplyConfiguration constructs an declarative configuration of the ServiceReference type for use with
|
// ServiceReferenceApplyConfiguration constructs a declarative configuration of the ServiceReference type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func ServiceReference() *ServiceReferenceApplyConfiguration {
|
func ServiceReference() *ServiceReferenceApplyConfiguration {
|
||||||
return &ServiceReferenceApplyConfiguration{}
|
return &ServiceReferenceApplyConfiguration{}
|
||||||
|
@@ -22,7 +22,7 @@ import (
|
|||||||
v1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
|
v1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ValidationRuleApplyConfiguration represents an declarative configuration of the ValidationRule type for use
|
// ValidationRuleApplyConfiguration represents a declarative configuration of the ValidationRule type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ValidationRuleApplyConfiguration struct {
|
type ValidationRuleApplyConfiguration struct {
|
||||||
Rule *string `json:"rule,omitempty"`
|
Rule *string `json:"rule,omitempty"`
|
||||||
@@ -33,7 +33,7 @@ type ValidationRuleApplyConfiguration struct {
|
|||||||
OptionalOldSelf *bool `json:"optionalOldSelf,omitempty"`
|
OptionalOldSelf *bool `json:"optionalOldSelf,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ValidationRuleApplyConfiguration constructs an declarative configuration of the ValidationRule type for use with
|
// ValidationRuleApplyConfiguration constructs a declarative configuration of the ValidationRule type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func ValidationRule() *ValidationRuleApplyConfiguration {
|
func ValidationRule() *ValidationRuleApplyConfiguration {
|
||||||
return &ValidationRuleApplyConfiguration{}
|
return &ValidationRuleApplyConfiguration{}
|
||||||
|
@@ -18,7 +18,7 @@ limitations under the License.
|
|||||||
|
|
||||||
package v1
|
package v1
|
||||||
|
|
||||||
// WebhookClientConfigApplyConfiguration represents an declarative configuration of the WebhookClientConfig type for use
|
// WebhookClientConfigApplyConfiguration represents a declarative configuration of the WebhookClientConfig type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type WebhookClientConfigApplyConfiguration struct {
|
type WebhookClientConfigApplyConfiguration struct {
|
||||||
URL *string `json:"url,omitempty"`
|
URL *string `json:"url,omitempty"`
|
||||||
@@ -26,7 +26,7 @@ type WebhookClientConfigApplyConfiguration struct {
|
|||||||
CABundle []byte `json:"caBundle,omitempty"`
|
CABundle []byte `json:"caBundle,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// WebhookClientConfigApplyConfiguration constructs an declarative configuration of the WebhookClientConfig type for use with
|
// WebhookClientConfigApplyConfiguration constructs a declarative configuration of the WebhookClientConfig type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func WebhookClientConfig() *WebhookClientConfigApplyConfiguration {
|
func WebhookClientConfig() *WebhookClientConfigApplyConfiguration {
|
||||||
return &WebhookClientConfigApplyConfiguration{}
|
return &WebhookClientConfigApplyConfiguration{}
|
||||||
|
@@ -18,14 +18,14 @@ limitations under the License.
|
|||||||
|
|
||||||
package v1
|
package v1
|
||||||
|
|
||||||
// WebhookConversionApplyConfiguration represents an declarative configuration of the WebhookConversion type for use
|
// WebhookConversionApplyConfiguration represents a declarative configuration of the WebhookConversion type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type WebhookConversionApplyConfiguration struct {
|
type WebhookConversionApplyConfiguration struct {
|
||||||
ClientConfig *WebhookClientConfigApplyConfiguration `json:"clientConfig,omitempty"`
|
ClientConfig *WebhookClientConfigApplyConfiguration `json:"clientConfig,omitempty"`
|
||||||
ConversionReviewVersions []string `json:"conversionReviewVersions,omitempty"`
|
ConversionReviewVersions []string `json:"conversionReviewVersions,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// WebhookConversionApplyConfiguration constructs an declarative configuration of the WebhookConversion type for use with
|
// WebhookConversionApplyConfiguration constructs a declarative configuration of the WebhookConversion type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func WebhookConversion() *WebhookConversionApplyConfiguration {
|
func WebhookConversion() *WebhookConversionApplyConfiguration {
|
||||||
return &WebhookConversionApplyConfiguration{}
|
return &WebhookConversionApplyConfiguration{}
|
||||||
|
@@ -18,7 +18,7 @@ limitations under the License.
|
|||||||
|
|
||||||
package v1beta1
|
package v1beta1
|
||||||
|
|
||||||
// CustomResourceColumnDefinitionApplyConfiguration represents an declarative configuration of the CustomResourceColumnDefinition type for use
|
// CustomResourceColumnDefinitionApplyConfiguration represents a declarative configuration of the CustomResourceColumnDefinition type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type CustomResourceColumnDefinitionApplyConfiguration struct {
|
type CustomResourceColumnDefinitionApplyConfiguration struct {
|
||||||
Name *string `json:"name,omitempty"`
|
Name *string `json:"name,omitempty"`
|
||||||
@@ -29,7 +29,7 @@ type CustomResourceColumnDefinitionApplyConfiguration struct {
|
|||||||
JSONPath *string `json:"JSONPath,omitempty"`
|
JSONPath *string `json:"JSONPath,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// CustomResourceColumnDefinitionApplyConfiguration constructs an declarative configuration of the CustomResourceColumnDefinition type for use with
|
// CustomResourceColumnDefinitionApplyConfiguration constructs a declarative configuration of the CustomResourceColumnDefinition type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func CustomResourceColumnDefinition() *CustomResourceColumnDefinitionApplyConfiguration {
|
func CustomResourceColumnDefinition() *CustomResourceColumnDefinitionApplyConfiguration {
|
||||||
return &CustomResourceColumnDefinitionApplyConfiguration{}
|
return &CustomResourceColumnDefinitionApplyConfiguration{}
|
||||||
|
@@ -22,7 +22,7 @@ import (
|
|||||||
v1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1"
|
v1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CustomResourceConversionApplyConfiguration represents an declarative configuration of the CustomResourceConversion type for use
|
// CustomResourceConversionApplyConfiguration represents a declarative configuration of the CustomResourceConversion type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type CustomResourceConversionApplyConfiguration struct {
|
type CustomResourceConversionApplyConfiguration struct {
|
||||||
Strategy *v1beta1.ConversionStrategyType `json:"strategy,omitempty"`
|
Strategy *v1beta1.ConversionStrategyType `json:"strategy,omitempty"`
|
||||||
@@ -30,7 +30,7 @@ type CustomResourceConversionApplyConfiguration struct {
|
|||||||
ConversionReviewVersions []string `json:"conversionReviewVersions,omitempty"`
|
ConversionReviewVersions []string `json:"conversionReviewVersions,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// CustomResourceConversionApplyConfiguration constructs an declarative configuration of the CustomResourceConversion type for use with
|
// CustomResourceConversionApplyConfiguration constructs a declarative configuration of the CustomResourceConversion type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func CustomResourceConversion() *CustomResourceConversionApplyConfiguration {
|
func CustomResourceConversion() *CustomResourceConversionApplyConfiguration {
|
||||||
return &CustomResourceConversionApplyConfiguration{}
|
return &CustomResourceConversionApplyConfiguration{}
|
||||||
|
@@ -24,7 +24,7 @@ import (
|
|||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CustomResourceDefinitionApplyConfiguration represents an declarative configuration of the CustomResourceDefinition type for use
|
// CustomResourceDefinitionApplyConfiguration represents a declarative configuration of the CustomResourceDefinition type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type CustomResourceDefinitionApplyConfiguration struct {
|
type CustomResourceDefinitionApplyConfiguration struct {
|
||||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||||
@@ -33,7 +33,7 @@ type CustomResourceDefinitionApplyConfiguration struct {
|
|||||||
Status *CustomResourceDefinitionStatusApplyConfiguration `json:"status,omitempty"`
|
Status *CustomResourceDefinitionStatusApplyConfiguration `json:"status,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// CustomResourceDefinition constructs an declarative configuration of the CustomResourceDefinition type for use with
|
// CustomResourceDefinition constructs a declarative configuration of the CustomResourceDefinition type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func CustomResourceDefinition(name string) *CustomResourceDefinitionApplyConfiguration {
|
func CustomResourceDefinition(name string) *CustomResourceDefinitionApplyConfiguration {
|
||||||
b := &CustomResourceDefinitionApplyConfiguration{}
|
b := &CustomResourceDefinitionApplyConfiguration{}
|
||||||
@@ -216,3 +216,9 @@ func (b *CustomResourceDefinitionApplyConfiguration) WithStatus(value *CustomRes
|
|||||||
b.Status = value
|
b.Status = value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetName retrieves the value of the Name field in the declarative configuration.
|
||||||
|
func (b *CustomResourceDefinitionApplyConfiguration) GetName() *string {
|
||||||
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
|
return b.Name
|
||||||
|
}
|
||||||
|
@@ -23,7 +23,7 @@ import (
|
|||||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CustomResourceDefinitionConditionApplyConfiguration represents an declarative configuration of the CustomResourceDefinitionCondition type for use
|
// CustomResourceDefinitionConditionApplyConfiguration represents a declarative configuration of the CustomResourceDefinitionCondition type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type CustomResourceDefinitionConditionApplyConfiguration struct {
|
type CustomResourceDefinitionConditionApplyConfiguration struct {
|
||||||
Type *v1beta1.CustomResourceDefinitionConditionType `json:"type,omitempty"`
|
Type *v1beta1.CustomResourceDefinitionConditionType `json:"type,omitempty"`
|
||||||
@@ -33,7 +33,7 @@ type CustomResourceDefinitionConditionApplyConfiguration struct {
|
|||||||
Message *string `json:"message,omitempty"`
|
Message *string `json:"message,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// CustomResourceDefinitionConditionApplyConfiguration constructs an declarative configuration of the CustomResourceDefinitionCondition type for use with
|
// CustomResourceDefinitionConditionApplyConfiguration constructs a declarative configuration of the CustomResourceDefinitionCondition type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func CustomResourceDefinitionCondition() *CustomResourceDefinitionConditionApplyConfiguration {
|
func CustomResourceDefinitionCondition() *CustomResourceDefinitionConditionApplyConfiguration {
|
||||||
return &CustomResourceDefinitionConditionApplyConfiguration{}
|
return &CustomResourceDefinitionConditionApplyConfiguration{}
|
||||||
|
@@ -18,7 +18,7 @@ limitations under the License.
|
|||||||
|
|
||||||
package v1beta1
|
package v1beta1
|
||||||
|
|
||||||
// CustomResourceDefinitionNamesApplyConfiguration represents an declarative configuration of the CustomResourceDefinitionNames type for use
|
// CustomResourceDefinitionNamesApplyConfiguration represents a declarative configuration of the CustomResourceDefinitionNames type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type CustomResourceDefinitionNamesApplyConfiguration struct {
|
type CustomResourceDefinitionNamesApplyConfiguration struct {
|
||||||
Plural *string `json:"plural,omitempty"`
|
Plural *string `json:"plural,omitempty"`
|
||||||
@@ -29,7 +29,7 @@ type CustomResourceDefinitionNamesApplyConfiguration struct {
|
|||||||
Categories []string `json:"categories,omitempty"`
|
Categories []string `json:"categories,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// CustomResourceDefinitionNamesApplyConfiguration constructs an declarative configuration of the CustomResourceDefinitionNames type for use with
|
// CustomResourceDefinitionNamesApplyConfiguration constructs a declarative configuration of the CustomResourceDefinitionNames type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func CustomResourceDefinitionNames() *CustomResourceDefinitionNamesApplyConfiguration {
|
func CustomResourceDefinitionNames() *CustomResourceDefinitionNamesApplyConfiguration {
|
||||||
return &CustomResourceDefinitionNamesApplyConfiguration{}
|
return &CustomResourceDefinitionNamesApplyConfiguration{}
|
||||||
|
@@ -22,7 +22,7 @@ import (
|
|||||||
apiextensionsv1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1"
|
apiextensionsv1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CustomResourceDefinitionSpecApplyConfiguration represents an declarative configuration of the CustomResourceDefinitionSpec type for use
|
// CustomResourceDefinitionSpecApplyConfiguration represents a declarative configuration of the CustomResourceDefinitionSpec type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type CustomResourceDefinitionSpecApplyConfiguration struct {
|
type CustomResourceDefinitionSpecApplyConfiguration struct {
|
||||||
Group *string `json:"group,omitempty"`
|
Group *string `json:"group,omitempty"`
|
||||||
@@ -38,7 +38,7 @@ type CustomResourceDefinitionSpecApplyConfiguration struct {
|
|||||||
PreserveUnknownFields *bool `json:"preserveUnknownFields,omitempty"`
|
PreserveUnknownFields *bool `json:"preserveUnknownFields,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// CustomResourceDefinitionSpecApplyConfiguration constructs an declarative configuration of the CustomResourceDefinitionSpec type for use with
|
// CustomResourceDefinitionSpecApplyConfiguration constructs a declarative configuration of the CustomResourceDefinitionSpec type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func CustomResourceDefinitionSpec() *CustomResourceDefinitionSpecApplyConfiguration {
|
func CustomResourceDefinitionSpec() *CustomResourceDefinitionSpecApplyConfiguration {
|
||||||
return &CustomResourceDefinitionSpecApplyConfiguration{}
|
return &CustomResourceDefinitionSpecApplyConfiguration{}
|
||||||
|
@@ -18,7 +18,7 @@ limitations under the License.
|
|||||||
|
|
||||||
package v1beta1
|
package v1beta1
|
||||||
|
|
||||||
// CustomResourceDefinitionStatusApplyConfiguration represents an declarative configuration of the CustomResourceDefinitionStatus type for use
|
// CustomResourceDefinitionStatusApplyConfiguration represents a declarative configuration of the CustomResourceDefinitionStatus type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type CustomResourceDefinitionStatusApplyConfiguration struct {
|
type CustomResourceDefinitionStatusApplyConfiguration struct {
|
||||||
Conditions []CustomResourceDefinitionConditionApplyConfiguration `json:"conditions,omitempty"`
|
Conditions []CustomResourceDefinitionConditionApplyConfiguration `json:"conditions,omitempty"`
|
||||||
@@ -26,7 +26,7 @@ type CustomResourceDefinitionStatusApplyConfiguration struct {
|
|||||||
StoredVersions []string `json:"storedVersions,omitempty"`
|
StoredVersions []string `json:"storedVersions,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// CustomResourceDefinitionStatusApplyConfiguration constructs an declarative configuration of the CustomResourceDefinitionStatus type for use with
|
// CustomResourceDefinitionStatusApplyConfiguration constructs a declarative configuration of the CustomResourceDefinitionStatus type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func CustomResourceDefinitionStatus() *CustomResourceDefinitionStatusApplyConfiguration {
|
func CustomResourceDefinitionStatus() *CustomResourceDefinitionStatusApplyConfiguration {
|
||||||
return &CustomResourceDefinitionStatusApplyConfiguration{}
|
return &CustomResourceDefinitionStatusApplyConfiguration{}
|
||||||
|
@@ -18,7 +18,7 @@ limitations under the License.
|
|||||||
|
|
||||||
package v1beta1
|
package v1beta1
|
||||||
|
|
||||||
// CustomResourceDefinitionVersionApplyConfiguration represents an declarative configuration of the CustomResourceDefinitionVersion type for use
|
// CustomResourceDefinitionVersionApplyConfiguration represents a declarative configuration of the CustomResourceDefinitionVersion type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type CustomResourceDefinitionVersionApplyConfiguration struct {
|
type CustomResourceDefinitionVersionApplyConfiguration struct {
|
||||||
Name *string `json:"name,omitempty"`
|
Name *string `json:"name,omitempty"`
|
||||||
@@ -32,7 +32,7 @@ type CustomResourceDefinitionVersionApplyConfiguration struct {
|
|||||||
SelectableFields []SelectableFieldApplyConfiguration `json:"selectableFields,omitempty"`
|
SelectableFields []SelectableFieldApplyConfiguration `json:"selectableFields,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// CustomResourceDefinitionVersionApplyConfiguration constructs an declarative configuration of the CustomResourceDefinitionVersion type for use with
|
// CustomResourceDefinitionVersionApplyConfiguration constructs a declarative configuration of the CustomResourceDefinitionVersion type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func CustomResourceDefinitionVersion() *CustomResourceDefinitionVersionApplyConfiguration {
|
func CustomResourceDefinitionVersion() *CustomResourceDefinitionVersionApplyConfiguration {
|
||||||
return &CustomResourceDefinitionVersionApplyConfiguration{}
|
return &CustomResourceDefinitionVersionApplyConfiguration{}
|
||||||
|
@@ -22,14 +22,14 @@ import (
|
|||||||
v1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1"
|
v1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CustomResourceSubresourcesApplyConfiguration represents an declarative configuration of the CustomResourceSubresources type for use
|
// CustomResourceSubresourcesApplyConfiguration represents a declarative configuration of the CustomResourceSubresources type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type CustomResourceSubresourcesApplyConfiguration struct {
|
type CustomResourceSubresourcesApplyConfiguration struct {
|
||||||
Status *v1beta1.CustomResourceSubresourceStatus `json:"status,omitempty"`
|
Status *v1beta1.CustomResourceSubresourceStatus `json:"status,omitempty"`
|
||||||
Scale *CustomResourceSubresourceScaleApplyConfiguration `json:"scale,omitempty"`
|
Scale *CustomResourceSubresourceScaleApplyConfiguration `json:"scale,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// CustomResourceSubresourcesApplyConfiguration constructs an declarative configuration of the CustomResourceSubresources type for use with
|
// CustomResourceSubresourcesApplyConfiguration constructs a declarative configuration of the CustomResourceSubresources type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func CustomResourceSubresources() *CustomResourceSubresourcesApplyConfiguration {
|
func CustomResourceSubresources() *CustomResourceSubresourcesApplyConfiguration {
|
||||||
return &CustomResourceSubresourcesApplyConfiguration{}
|
return &CustomResourceSubresourcesApplyConfiguration{}
|
||||||
|
@@ -18,7 +18,7 @@ limitations under the License.
|
|||||||
|
|
||||||
package v1beta1
|
package v1beta1
|
||||||
|
|
||||||
// CustomResourceSubresourceScaleApplyConfiguration represents an declarative configuration of the CustomResourceSubresourceScale type for use
|
// CustomResourceSubresourceScaleApplyConfiguration represents a declarative configuration of the CustomResourceSubresourceScale type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type CustomResourceSubresourceScaleApplyConfiguration struct {
|
type CustomResourceSubresourceScaleApplyConfiguration struct {
|
||||||
SpecReplicasPath *string `json:"specReplicasPath,omitempty"`
|
SpecReplicasPath *string `json:"specReplicasPath,omitempty"`
|
||||||
@@ -26,7 +26,7 @@ type CustomResourceSubresourceScaleApplyConfiguration struct {
|
|||||||
LabelSelectorPath *string `json:"labelSelectorPath,omitempty"`
|
LabelSelectorPath *string `json:"labelSelectorPath,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// CustomResourceSubresourceScaleApplyConfiguration constructs an declarative configuration of the CustomResourceSubresourceScale type for use with
|
// CustomResourceSubresourceScaleApplyConfiguration constructs a declarative configuration of the CustomResourceSubresourceScale type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func CustomResourceSubresourceScale() *CustomResourceSubresourceScaleApplyConfiguration {
|
func CustomResourceSubresourceScale() *CustomResourceSubresourceScaleApplyConfiguration {
|
||||||
return &CustomResourceSubresourceScaleApplyConfiguration{}
|
return &CustomResourceSubresourceScaleApplyConfiguration{}
|
||||||
|
@@ -18,13 +18,13 @@ limitations under the License.
|
|||||||
|
|
||||||
package v1beta1
|
package v1beta1
|
||||||
|
|
||||||
// CustomResourceValidationApplyConfiguration represents an declarative configuration of the CustomResourceValidation type for use
|
// CustomResourceValidationApplyConfiguration represents a declarative configuration of the CustomResourceValidation type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type CustomResourceValidationApplyConfiguration struct {
|
type CustomResourceValidationApplyConfiguration struct {
|
||||||
OpenAPIV3Schema *JSONSchemaPropsApplyConfiguration `json:"openAPIV3Schema,omitempty"`
|
OpenAPIV3Schema *JSONSchemaPropsApplyConfiguration `json:"openAPIV3Schema,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// CustomResourceValidationApplyConfiguration constructs an declarative configuration of the CustomResourceValidation type for use with
|
// CustomResourceValidationApplyConfiguration constructs a declarative configuration of the CustomResourceValidation type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func CustomResourceValidation() *CustomResourceValidationApplyConfiguration {
|
func CustomResourceValidation() *CustomResourceValidationApplyConfiguration {
|
||||||
return &CustomResourceValidationApplyConfiguration{}
|
return &CustomResourceValidationApplyConfiguration{}
|
||||||
|
@@ -18,14 +18,14 @@ limitations under the License.
|
|||||||
|
|
||||||
package v1beta1
|
package v1beta1
|
||||||
|
|
||||||
// ExternalDocumentationApplyConfiguration represents an declarative configuration of the ExternalDocumentation type for use
|
// ExternalDocumentationApplyConfiguration represents a declarative configuration of the ExternalDocumentation type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ExternalDocumentationApplyConfiguration struct {
|
type ExternalDocumentationApplyConfiguration struct {
|
||||||
Description *string `json:"description,omitempty"`
|
Description *string `json:"description,omitempty"`
|
||||||
URL *string `json:"url,omitempty"`
|
URL *string `json:"url,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ExternalDocumentationApplyConfiguration constructs an declarative configuration of the ExternalDocumentation type for use with
|
// ExternalDocumentationApplyConfiguration constructs a declarative configuration of the ExternalDocumentation type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func ExternalDocumentation() *ExternalDocumentationApplyConfiguration {
|
func ExternalDocumentation() *ExternalDocumentationApplyConfiguration {
|
||||||
return &ExternalDocumentationApplyConfiguration{}
|
return &ExternalDocumentationApplyConfiguration{}
|
||||||
|
@@ -22,7 +22,7 @@ import (
|
|||||||
v1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1"
|
v1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// JSONSchemaPropsApplyConfiguration represents an declarative configuration of the JSONSchemaProps type for use
|
// JSONSchemaPropsApplyConfiguration represents a declarative configuration of the JSONSchemaProps type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type JSONSchemaPropsApplyConfiguration struct {
|
type JSONSchemaPropsApplyConfiguration struct {
|
||||||
ID *string `json:"id,omitempty"`
|
ID *string `json:"id,omitempty"`
|
||||||
@@ -71,7 +71,7 @@ type JSONSchemaPropsApplyConfiguration struct {
|
|||||||
XValidations *v1beta1.ValidationRules `json:"x-kubernetes-validations,omitempty"`
|
XValidations *v1beta1.ValidationRules `json:"x-kubernetes-validations,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// JSONSchemaPropsApplyConfiguration constructs an declarative configuration of the JSONSchemaProps type for use with
|
// JSONSchemaPropsApplyConfiguration constructs a declarative configuration of the JSONSchemaProps type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func JSONSchemaProps() *JSONSchemaPropsApplyConfiguration {
|
func JSONSchemaProps() *JSONSchemaPropsApplyConfiguration {
|
||||||
return &JSONSchemaPropsApplyConfiguration{}
|
return &JSONSchemaPropsApplyConfiguration{}
|
||||||
|
@@ -18,13 +18,13 @@ limitations under the License.
|
|||||||
|
|
||||||
package v1beta1
|
package v1beta1
|
||||||
|
|
||||||
// SelectableFieldApplyConfiguration represents an declarative configuration of the SelectableField type for use
|
// SelectableFieldApplyConfiguration represents a declarative configuration of the SelectableField type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type SelectableFieldApplyConfiguration struct {
|
type SelectableFieldApplyConfiguration struct {
|
||||||
JSONPath *string `json:"jsonPath,omitempty"`
|
JSONPath *string `json:"jsonPath,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// SelectableFieldApplyConfiguration constructs an declarative configuration of the SelectableField type for use with
|
// SelectableFieldApplyConfiguration constructs a declarative configuration of the SelectableField type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func SelectableField() *SelectableFieldApplyConfiguration {
|
func SelectableField() *SelectableFieldApplyConfiguration {
|
||||||
return &SelectableFieldApplyConfiguration{}
|
return &SelectableFieldApplyConfiguration{}
|
||||||
|
@@ -18,7 +18,7 @@ limitations under the License.
|
|||||||
|
|
||||||
package v1beta1
|
package v1beta1
|
||||||
|
|
||||||
// ServiceReferenceApplyConfiguration represents an declarative configuration of the ServiceReference type for use
|
// ServiceReferenceApplyConfiguration represents a declarative configuration of the ServiceReference type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ServiceReferenceApplyConfiguration struct {
|
type ServiceReferenceApplyConfiguration struct {
|
||||||
Namespace *string `json:"namespace,omitempty"`
|
Namespace *string `json:"namespace,omitempty"`
|
||||||
@@ -27,7 +27,7 @@ type ServiceReferenceApplyConfiguration struct {
|
|||||||
Port *int32 `json:"port,omitempty"`
|
Port *int32 `json:"port,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ServiceReferenceApplyConfiguration constructs an declarative configuration of the ServiceReference type for use with
|
// ServiceReferenceApplyConfiguration constructs a declarative configuration of the ServiceReference type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func ServiceReference() *ServiceReferenceApplyConfiguration {
|
func ServiceReference() *ServiceReferenceApplyConfiguration {
|
||||||
return &ServiceReferenceApplyConfiguration{}
|
return &ServiceReferenceApplyConfiguration{}
|
||||||
|
@@ -22,7 +22,7 @@ import (
|
|||||||
v1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1"
|
v1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ValidationRuleApplyConfiguration represents an declarative configuration of the ValidationRule type for use
|
// ValidationRuleApplyConfiguration represents a declarative configuration of the ValidationRule type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ValidationRuleApplyConfiguration struct {
|
type ValidationRuleApplyConfiguration struct {
|
||||||
Rule *string `json:"rule,omitempty"`
|
Rule *string `json:"rule,omitempty"`
|
||||||
@@ -33,7 +33,7 @@ type ValidationRuleApplyConfiguration struct {
|
|||||||
OptionalOldSelf *bool `json:"optionalOldSelf,omitempty"`
|
OptionalOldSelf *bool `json:"optionalOldSelf,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ValidationRuleApplyConfiguration constructs an declarative configuration of the ValidationRule type for use with
|
// ValidationRuleApplyConfiguration constructs a declarative configuration of the ValidationRule type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func ValidationRule() *ValidationRuleApplyConfiguration {
|
func ValidationRule() *ValidationRuleApplyConfiguration {
|
||||||
return &ValidationRuleApplyConfiguration{}
|
return &ValidationRuleApplyConfiguration{}
|
||||||
|
@@ -18,7 +18,7 @@ limitations under the License.
|
|||||||
|
|
||||||
package v1beta1
|
package v1beta1
|
||||||
|
|
||||||
// WebhookClientConfigApplyConfiguration represents an declarative configuration of the WebhookClientConfig type for use
|
// WebhookClientConfigApplyConfiguration represents a declarative configuration of the WebhookClientConfig type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type WebhookClientConfigApplyConfiguration struct {
|
type WebhookClientConfigApplyConfiguration struct {
|
||||||
URL *string `json:"url,omitempty"`
|
URL *string `json:"url,omitempty"`
|
||||||
@@ -26,7 +26,7 @@ type WebhookClientConfigApplyConfiguration struct {
|
|||||||
CABundle []byte `json:"caBundle,omitempty"`
|
CABundle []byte `json:"caBundle,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// WebhookClientConfigApplyConfiguration constructs an declarative configuration of the WebhookClientConfig type for use with
|
// WebhookClientConfigApplyConfiguration constructs a declarative configuration of the WebhookClientConfig type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func WebhookClientConfig() *WebhookClientConfigApplyConfiguration {
|
func WebhookClientConfig() *WebhookClientConfigApplyConfiguration {
|
||||||
return &WebhookClientConfigApplyConfiguration{}
|
return &WebhookClientConfigApplyConfiguration{}
|
||||||
|
@@ -20,9 +20,6 @@ package v1
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
json "encoding/json"
|
|
||||||
"fmt"
|
|
||||||
"time"
|
|
||||||
|
|
||||||
v1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
|
v1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
|
||||||
apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/client/applyconfiguration/apiextensions/v1"
|
apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/client/applyconfiguration/apiextensions/v1"
|
||||||
@@ -30,10 +27,7 @@ import (
|
|||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
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"
|
gentype "k8s.io/client-go/gentype"
|
||||||
consistencydetector "k8s.io/client-go/util/consistencydetector"
|
|
||||||
watchlist "k8s.io/client-go/util/watchlist"
|
|
||||||
"k8s.io/klog/v2"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// CustomResourceDefinitionsGetter has a method to return a CustomResourceDefinitionInterface.
|
// CustomResourceDefinitionsGetter has a method to return a CustomResourceDefinitionInterface.
|
||||||
@@ -46,6 +40,7 @@ type CustomResourceDefinitionsGetter interface {
|
|||||||
type CustomResourceDefinitionInterface interface {
|
type CustomResourceDefinitionInterface interface {
|
||||||
Create(ctx context.Context, customResourceDefinition *v1.CustomResourceDefinition, opts metav1.CreateOptions) (*v1.CustomResourceDefinition, error)
|
Create(ctx context.Context, customResourceDefinition *v1.CustomResourceDefinition, opts metav1.CreateOptions) (*v1.CustomResourceDefinition, error)
|
||||||
Update(ctx context.Context, customResourceDefinition *v1.CustomResourceDefinition, opts metav1.UpdateOptions) (*v1.CustomResourceDefinition, error)
|
Update(ctx context.Context, customResourceDefinition *v1.CustomResourceDefinition, opts metav1.UpdateOptions) (*v1.CustomResourceDefinition, error)
|
||||||
|
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
||||||
UpdateStatus(ctx context.Context, customResourceDefinition *v1.CustomResourceDefinition, opts metav1.UpdateOptions) (*v1.CustomResourceDefinition, error)
|
UpdateStatus(ctx context.Context, customResourceDefinition *v1.CustomResourceDefinition, opts metav1.UpdateOptions) (*v1.CustomResourceDefinition, error)
|
||||||
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
|
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
|
||||||
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
|
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
|
||||||
@@ -54,228 +49,25 @@ type CustomResourceDefinitionInterface interface {
|
|||||||
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
|
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
|
||||||
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CustomResourceDefinition, err error)
|
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CustomResourceDefinition, err error)
|
||||||
Apply(ctx context.Context, customResourceDefinition *apiextensionsv1.CustomResourceDefinitionApplyConfiguration, opts metav1.ApplyOptions) (result *v1.CustomResourceDefinition, err error)
|
Apply(ctx context.Context, customResourceDefinition *apiextensionsv1.CustomResourceDefinitionApplyConfiguration, opts metav1.ApplyOptions) (result *v1.CustomResourceDefinition, err error)
|
||||||
|
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
|
||||||
ApplyStatus(ctx context.Context, customResourceDefinition *apiextensionsv1.CustomResourceDefinitionApplyConfiguration, opts metav1.ApplyOptions) (result *v1.CustomResourceDefinition, err error)
|
ApplyStatus(ctx context.Context, customResourceDefinition *apiextensionsv1.CustomResourceDefinitionApplyConfiguration, opts metav1.ApplyOptions) (result *v1.CustomResourceDefinition, err error)
|
||||||
CustomResourceDefinitionExpansion
|
CustomResourceDefinitionExpansion
|
||||||
}
|
}
|
||||||
|
|
||||||
// customResourceDefinitions implements CustomResourceDefinitionInterface
|
// customResourceDefinitions implements CustomResourceDefinitionInterface
|
||||||
type customResourceDefinitions struct {
|
type customResourceDefinitions struct {
|
||||||
client rest.Interface
|
*gentype.ClientWithListAndApply[*v1.CustomResourceDefinition, *v1.CustomResourceDefinitionList, *apiextensionsv1.CustomResourceDefinitionApplyConfiguration]
|
||||||
}
|
}
|
||||||
|
|
||||||
// newCustomResourceDefinitions returns a CustomResourceDefinitions
|
// newCustomResourceDefinitions returns a CustomResourceDefinitions
|
||||||
func newCustomResourceDefinitions(c *ApiextensionsV1Client) *customResourceDefinitions {
|
func newCustomResourceDefinitions(c *ApiextensionsV1Client) *customResourceDefinitions {
|
||||||
return &customResourceDefinitions{
|
return &customResourceDefinitions{
|
||||||
client: c.RESTClient(),
|
gentype.NewClientWithListAndApply[*v1.CustomResourceDefinition, *v1.CustomResourceDefinitionList, *apiextensionsv1.CustomResourceDefinitionApplyConfiguration](
|
||||||
|
"customresourcedefinitions",
|
||||||
|
c.RESTClient(),
|
||||||
|
scheme.ParameterCodec,
|
||||||
|
"",
|
||||||
|
func() *v1.CustomResourceDefinition { return &v1.CustomResourceDefinition{} },
|
||||||
|
func() *v1.CustomResourceDefinitionList { return &v1.CustomResourceDefinitionList{} }),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get takes name of the customResourceDefinition, and returns the corresponding customResourceDefinition object, and an error if there is any.
|
|
||||||
func (c *customResourceDefinitions) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.CustomResourceDefinition, err error) {
|
|
||||||
result = &v1.CustomResourceDefinition{}
|
|
||||||
err = c.client.Get().
|
|
||||||
Resource("customresourcedefinitions").
|
|
||||||
Name(name).
|
|
||||||
VersionedParams(&options, scheme.ParameterCodec).
|
|
||||||
Do(ctx).
|
|
||||||
Into(result)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// 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) (*v1.CustomResourceDefinitionList, error) {
|
|
||||||
if watchListOptions, hasWatchListOptionsPrepared, watchListOptionsErr := watchlist.PrepareWatchListOptionsFromListOptions(opts); watchListOptionsErr != nil {
|
|
||||||
klog.Warningf("Failed preparing watchlist options for customresourcedefinitions, falling back to the standard LIST semantics, err = %v", watchListOptionsErr)
|
|
||||||
} else if hasWatchListOptionsPrepared {
|
|
||||||
result, err := c.watchList(ctx, watchListOptions)
|
|
||||||
if err == nil {
|
|
||||||
consistencydetector.CheckWatchListFromCacheDataConsistencyIfRequested(ctx, "watchlist request for customresourcedefinitions", c.list, opts, result)
|
|
||||||
return result, nil
|
|
||||||
}
|
|
||||||
klog.Warningf("The watchlist request for customresourcedefinitions ended with an error, falling back to the standard LIST semantics, err = %v", err)
|
|
||||||
}
|
|
||||||
result, err := c.list(ctx, opts)
|
|
||||||
if err == nil {
|
|
||||||
consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for customresourcedefinitions", c.list, opts, result)
|
|
||||||
}
|
|
||||||
return result, err
|
|
||||||
}
|
|
||||||
|
|
||||||
// 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
|
|
||||||
if opts.TimeoutSeconds != nil {
|
|
||||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
|
||||||
}
|
|
||||||
result = &v1.CustomResourceDefinitionList{}
|
|
||||||
err = c.client.Get().
|
|
||||||
Resource("customresourcedefinitions").
|
|
||||||
VersionedParams(&opts, scheme.ParameterCodec).
|
|
||||||
Timeout(timeout).
|
|
||||||
Do(ctx).
|
|
||||||
Into(result)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// watchList establishes a watch stream with the server and returns the list of CustomResourceDefinitions
|
|
||||||
func (c *customResourceDefinitions) watchList(ctx context.Context, opts metav1.ListOptions) (result *v1.CustomResourceDefinitionList, err error) {
|
|
||||||
var timeout time.Duration
|
|
||||||
if opts.TimeoutSeconds != nil {
|
|
||||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
|
||||||
}
|
|
||||||
result = &v1.CustomResourceDefinitionList{}
|
|
||||||
err = c.client.Get().
|
|
||||||
Resource("customresourcedefinitions").
|
|
||||||
VersionedParams(&opts, scheme.ParameterCodec).
|
|
||||||
Timeout(timeout).
|
|
||||||
WatchList(ctx).
|
|
||||||
Into(result)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Watch returns a watch.Interface that watches the requested customResourceDefinitions.
|
|
||||||
func (c *customResourceDefinitions) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
|
|
||||||
var timeout time.Duration
|
|
||||||
if opts.TimeoutSeconds != nil {
|
|
||||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
|
||||||
}
|
|
||||||
opts.Watch = true
|
|
||||||
return c.client.Get().
|
|
||||||
Resource("customresourcedefinitions").
|
|
||||||
VersionedParams(&opts, scheme.ParameterCodec).
|
|
||||||
Timeout(timeout).
|
|
||||||
Watch(ctx)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Create takes the representation of a customResourceDefinition and creates it. Returns the server's representation of the customResourceDefinition, and an error, if there is any.
|
|
||||||
func (c *customResourceDefinitions) Create(ctx context.Context, customResourceDefinition *v1.CustomResourceDefinition, opts metav1.CreateOptions) (result *v1.CustomResourceDefinition, err error) {
|
|
||||||
result = &v1.CustomResourceDefinition{}
|
|
||||||
err = c.client.Post().
|
|
||||||
Resource("customresourcedefinitions").
|
|
||||||
VersionedParams(&opts, scheme.ParameterCodec).
|
|
||||||
Body(customResourceDefinition).
|
|
||||||
Do(ctx).
|
|
||||||
Into(result)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update takes the representation of a customResourceDefinition and updates it. Returns the server's representation of the customResourceDefinition, and an error, if there is any.
|
|
||||||
func (c *customResourceDefinitions) Update(ctx context.Context, customResourceDefinition *v1.CustomResourceDefinition, opts metav1.UpdateOptions) (result *v1.CustomResourceDefinition, err error) {
|
|
||||||
result = &v1.CustomResourceDefinition{}
|
|
||||||
err = c.client.Put().
|
|
||||||
Resource("customresourcedefinitions").
|
|
||||||
Name(customResourceDefinition.Name).
|
|
||||||
VersionedParams(&opts, scheme.ParameterCodec).
|
|
||||||
Body(customResourceDefinition).
|
|
||||||
Do(ctx).
|
|
||||||
Into(result)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// UpdateStatus was generated because the type contains a Status member.
|
|
||||||
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
|
||||||
func (c *customResourceDefinitions) UpdateStatus(ctx context.Context, customResourceDefinition *v1.CustomResourceDefinition, opts metav1.UpdateOptions) (result *v1.CustomResourceDefinition, err error) {
|
|
||||||
result = &v1.CustomResourceDefinition{}
|
|
||||||
err = c.client.Put().
|
|
||||||
Resource("customresourcedefinitions").
|
|
||||||
Name(customResourceDefinition.Name).
|
|
||||||
SubResource("status").
|
|
||||||
VersionedParams(&opts, scheme.ParameterCodec).
|
|
||||||
Body(customResourceDefinition).
|
|
||||||
Do(ctx).
|
|
||||||
Into(result)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Delete takes name of the customResourceDefinition and deletes it. Returns an error if one occurs.
|
|
||||||
func (c *customResourceDefinitions) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
|
|
||||||
return c.client.Delete().
|
|
||||||
Resource("customresourcedefinitions").
|
|
||||||
Name(name).
|
|
||||||
Body(&opts).
|
|
||||||
Do(ctx).
|
|
||||||
Error()
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeleteCollection deletes a collection of objects.
|
|
||||||
func (c *customResourceDefinitions) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
|
|
||||||
var timeout time.Duration
|
|
||||||
if listOpts.TimeoutSeconds != nil {
|
|
||||||
timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
|
|
||||||
}
|
|
||||||
return c.client.Delete().
|
|
||||||
Resource("customresourcedefinitions").
|
|
||||||
VersionedParams(&listOpts, scheme.ParameterCodec).
|
|
||||||
Timeout(timeout).
|
|
||||||
Body(&opts).
|
|
||||||
Do(ctx).
|
|
||||||
Error()
|
|
||||||
}
|
|
||||||
|
|
||||||
// Patch applies the patch and returns the patched customResourceDefinition.
|
|
||||||
func (c *customResourceDefinitions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CustomResourceDefinition, err error) {
|
|
||||||
result = &v1.CustomResourceDefinition{}
|
|
||||||
err = c.client.Patch(pt).
|
|
||||||
Resource("customresourcedefinitions").
|
|
||||||
Name(name).
|
|
||||||
SubResource(subresources...).
|
|
||||||
VersionedParams(&opts, scheme.ParameterCodec).
|
|
||||||
Body(data).
|
|
||||||
Do(ctx).
|
|
||||||
Into(result)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Apply takes the given apply declarative configuration, applies it and returns the applied customResourceDefinition.
|
|
||||||
func (c *customResourceDefinitions) Apply(ctx context.Context, customResourceDefinition *apiextensionsv1.CustomResourceDefinitionApplyConfiguration, opts metav1.ApplyOptions) (result *v1.CustomResourceDefinition, err error) {
|
|
||||||
if customResourceDefinition == nil {
|
|
||||||
return nil, fmt.Errorf("customResourceDefinition provided to Apply must not be nil")
|
|
||||||
}
|
|
||||||
patchOpts := opts.ToPatchOptions()
|
|
||||||
data, err := json.Marshal(customResourceDefinition)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
name := customResourceDefinition.Name
|
|
||||||
if name == nil {
|
|
||||||
return nil, fmt.Errorf("customResourceDefinition.Name must be provided to Apply")
|
|
||||||
}
|
|
||||||
result = &v1.CustomResourceDefinition{}
|
|
||||||
err = c.client.Patch(types.ApplyPatchType).
|
|
||||||
Resource("customresourcedefinitions").
|
|
||||||
Name(*name).
|
|
||||||
VersionedParams(&patchOpts, scheme.ParameterCodec).
|
|
||||||
Body(data).
|
|
||||||
Do(ctx).
|
|
||||||
Into(result)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// ApplyStatus was generated because the type contains a Status member.
|
|
||||||
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
|
|
||||||
func (c *customResourceDefinitions) ApplyStatus(ctx context.Context, customResourceDefinition *apiextensionsv1.CustomResourceDefinitionApplyConfiguration, opts metav1.ApplyOptions) (result *v1.CustomResourceDefinition, err error) {
|
|
||||||
if customResourceDefinition == nil {
|
|
||||||
return nil, fmt.Errorf("customResourceDefinition provided to Apply must not be nil")
|
|
||||||
}
|
|
||||||
patchOpts := opts.ToPatchOptions()
|
|
||||||
data, err := json.Marshal(customResourceDefinition)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
name := customResourceDefinition.Name
|
|
||||||
if name == nil {
|
|
||||||
return nil, fmt.Errorf("customResourceDefinition.Name must be provided to Apply")
|
|
||||||
}
|
|
||||||
|
|
||||||
result = &v1.CustomResourceDefinition{}
|
|
||||||
err = c.client.Patch(types.ApplyPatchType).
|
|
||||||
Resource("customresourcedefinitions").
|
|
||||||
Name(*name).
|
|
||||||
SubResource("status").
|
|
||||||
VersionedParams(&patchOpts, scheme.ParameterCodec).
|
|
||||||
Body(data).
|
|
||||||
Do(ctx).
|
|
||||||
Into(result)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
@@ -20,9 +20,6 @@ package v1beta1
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
json "encoding/json"
|
|
||||||
"fmt"
|
|
||||||
"time"
|
|
||||||
|
|
||||||
v1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1"
|
v1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1"
|
||||||
apiextensionsv1beta1 "k8s.io/apiextensions-apiserver/pkg/client/applyconfiguration/apiextensions/v1beta1"
|
apiextensionsv1beta1 "k8s.io/apiextensions-apiserver/pkg/client/applyconfiguration/apiextensions/v1beta1"
|
||||||
@@ -30,10 +27,7 @@ import (
|
|||||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
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"
|
gentype "k8s.io/client-go/gentype"
|
||||||
consistencydetector "k8s.io/client-go/util/consistencydetector"
|
|
||||||
watchlist "k8s.io/client-go/util/watchlist"
|
|
||||||
"k8s.io/klog/v2"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// CustomResourceDefinitionsGetter has a method to return a CustomResourceDefinitionInterface.
|
// CustomResourceDefinitionsGetter has a method to return a CustomResourceDefinitionInterface.
|
||||||
@@ -46,6 +40,7 @@ type CustomResourceDefinitionsGetter interface {
|
|||||||
type CustomResourceDefinitionInterface interface {
|
type CustomResourceDefinitionInterface interface {
|
||||||
Create(ctx context.Context, customResourceDefinition *v1beta1.CustomResourceDefinition, opts v1.CreateOptions) (*v1beta1.CustomResourceDefinition, error)
|
Create(ctx context.Context, customResourceDefinition *v1beta1.CustomResourceDefinition, opts v1.CreateOptions) (*v1beta1.CustomResourceDefinition, error)
|
||||||
Update(ctx context.Context, customResourceDefinition *v1beta1.CustomResourceDefinition, opts v1.UpdateOptions) (*v1beta1.CustomResourceDefinition, error)
|
Update(ctx context.Context, customResourceDefinition *v1beta1.CustomResourceDefinition, opts v1.UpdateOptions) (*v1beta1.CustomResourceDefinition, error)
|
||||||
|
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
||||||
UpdateStatus(ctx context.Context, customResourceDefinition *v1beta1.CustomResourceDefinition, opts v1.UpdateOptions) (*v1beta1.CustomResourceDefinition, error)
|
UpdateStatus(ctx context.Context, customResourceDefinition *v1beta1.CustomResourceDefinition, opts v1.UpdateOptions) (*v1beta1.CustomResourceDefinition, error)
|
||||||
Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
|
Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
|
||||||
DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
|
DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
|
||||||
@@ -54,228 +49,25 @@ type CustomResourceDefinitionInterface interface {
|
|||||||
Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
|
Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
|
||||||
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.CustomResourceDefinition, err error)
|
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.CustomResourceDefinition, err error)
|
||||||
Apply(ctx context.Context, customResourceDefinition *apiextensionsv1beta1.CustomResourceDefinitionApplyConfiguration, opts v1.ApplyOptions) (result *v1beta1.CustomResourceDefinition, err error)
|
Apply(ctx context.Context, customResourceDefinition *apiextensionsv1beta1.CustomResourceDefinitionApplyConfiguration, opts v1.ApplyOptions) (result *v1beta1.CustomResourceDefinition, err error)
|
||||||
|
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
|
||||||
ApplyStatus(ctx context.Context, customResourceDefinition *apiextensionsv1beta1.CustomResourceDefinitionApplyConfiguration, opts v1.ApplyOptions) (result *v1beta1.CustomResourceDefinition, err error)
|
ApplyStatus(ctx context.Context, customResourceDefinition *apiextensionsv1beta1.CustomResourceDefinitionApplyConfiguration, opts v1.ApplyOptions) (result *v1beta1.CustomResourceDefinition, err error)
|
||||||
CustomResourceDefinitionExpansion
|
CustomResourceDefinitionExpansion
|
||||||
}
|
}
|
||||||
|
|
||||||
// customResourceDefinitions implements CustomResourceDefinitionInterface
|
// customResourceDefinitions implements CustomResourceDefinitionInterface
|
||||||
type customResourceDefinitions struct {
|
type customResourceDefinitions struct {
|
||||||
client rest.Interface
|
*gentype.ClientWithListAndApply[*v1beta1.CustomResourceDefinition, *v1beta1.CustomResourceDefinitionList, *apiextensionsv1beta1.CustomResourceDefinitionApplyConfiguration]
|
||||||
}
|
}
|
||||||
|
|
||||||
// newCustomResourceDefinitions returns a CustomResourceDefinitions
|
// newCustomResourceDefinitions returns a CustomResourceDefinitions
|
||||||
func newCustomResourceDefinitions(c *ApiextensionsV1beta1Client) *customResourceDefinitions {
|
func newCustomResourceDefinitions(c *ApiextensionsV1beta1Client) *customResourceDefinitions {
|
||||||
return &customResourceDefinitions{
|
return &customResourceDefinitions{
|
||||||
client: c.RESTClient(),
|
gentype.NewClientWithListAndApply[*v1beta1.CustomResourceDefinition, *v1beta1.CustomResourceDefinitionList, *apiextensionsv1beta1.CustomResourceDefinitionApplyConfiguration](
|
||||||
|
"customresourcedefinitions",
|
||||||
|
c.RESTClient(),
|
||||||
|
scheme.ParameterCodec,
|
||||||
|
"",
|
||||||
|
func() *v1beta1.CustomResourceDefinition { return &v1beta1.CustomResourceDefinition{} },
|
||||||
|
func() *v1beta1.CustomResourceDefinitionList { return &v1beta1.CustomResourceDefinitionList{} }),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get takes name of the customResourceDefinition, and returns the corresponding customResourceDefinition object, and an error if there is any.
|
|
||||||
func (c *customResourceDefinitions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.CustomResourceDefinition, err error) {
|
|
||||||
result = &v1beta1.CustomResourceDefinition{}
|
|
||||||
err = c.client.Get().
|
|
||||||
Resource("customresourcedefinitions").
|
|
||||||
Name(name).
|
|
||||||
VersionedParams(&options, scheme.ParameterCodec).
|
|
||||||
Do(ctx).
|
|
||||||
Into(result)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// 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) (*v1beta1.CustomResourceDefinitionList, error) {
|
|
||||||
if watchListOptions, hasWatchListOptionsPrepared, watchListOptionsErr := watchlist.PrepareWatchListOptionsFromListOptions(opts); watchListOptionsErr != nil {
|
|
||||||
klog.Warningf("Failed preparing watchlist options for customresourcedefinitions, falling back to the standard LIST semantics, err = %v", watchListOptionsErr)
|
|
||||||
} else if hasWatchListOptionsPrepared {
|
|
||||||
result, err := c.watchList(ctx, watchListOptions)
|
|
||||||
if err == nil {
|
|
||||||
consistencydetector.CheckWatchListFromCacheDataConsistencyIfRequested(ctx, "watchlist request for customresourcedefinitions", c.list, opts, result)
|
|
||||||
return result, nil
|
|
||||||
}
|
|
||||||
klog.Warningf("The watchlist request for customresourcedefinitions ended with an error, falling back to the standard LIST semantics, err = %v", err)
|
|
||||||
}
|
|
||||||
result, err := c.list(ctx, opts)
|
|
||||||
if err == nil {
|
|
||||||
consistencydetector.CheckListFromCacheDataConsistencyIfRequested(ctx, "list request for customresourcedefinitions", c.list, opts, result)
|
|
||||||
}
|
|
||||||
return result, err
|
|
||||||
}
|
|
||||||
|
|
||||||
// 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
|
|
||||||
if opts.TimeoutSeconds != nil {
|
|
||||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
|
||||||
}
|
|
||||||
result = &v1beta1.CustomResourceDefinitionList{}
|
|
||||||
err = c.client.Get().
|
|
||||||
Resource("customresourcedefinitions").
|
|
||||||
VersionedParams(&opts, scheme.ParameterCodec).
|
|
||||||
Timeout(timeout).
|
|
||||||
Do(ctx).
|
|
||||||
Into(result)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// watchList establishes a watch stream with the server and returns the list of CustomResourceDefinitions
|
|
||||||
func (c *customResourceDefinitions) watchList(ctx context.Context, opts v1.ListOptions) (result *v1beta1.CustomResourceDefinitionList, err error) {
|
|
||||||
var timeout time.Duration
|
|
||||||
if opts.TimeoutSeconds != nil {
|
|
||||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
|
||||||
}
|
|
||||||
result = &v1beta1.CustomResourceDefinitionList{}
|
|
||||||
err = c.client.Get().
|
|
||||||
Resource("customresourcedefinitions").
|
|
||||||
VersionedParams(&opts, scheme.ParameterCodec).
|
|
||||||
Timeout(timeout).
|
|
||||||
WatchList(ctx).
|
|
||||||
Into(result)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Watch returns a watch.Interface that watches the requested customResourceDefinitions.
|
|
||||||
func (c *customResourceDefinitions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
|
|
||||||
var timeout time.Duration
|
|
||||||
if opts.TimeoutSeconds != nil {
|
|
||||||
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
|
|
||||||
}
|
|
||||||
opts.Watch = true
|
|
||||||
return c.client.Get().
|
|
||||||
Resource("customresourcedefinitions").
|
|
||||||
VersionedParams(&opts, scheme.ParameterCodec).
|
|
||||||
Timeout(timeout).
|
|
||||||
Watch(ctx)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Create takes the representation of a customResourceDefinition and creates it. Returns the server's representation of the customResourceDefinition, and an error, if there is any.
|
|
||||||
func (c *customResourceDefinitions) Create(ctx context.Context, customResourceDefinition *v1beta1.CustomResourceDefinition, opts v1.CreateOptions) (result *v1beta1.CustomResourceDefinition, err error) {
|
|
||||||
result = &v1beta1.CustomResourceDefinition{}
|
|
||||||
err = c.client.Post().
|
|
||||||
Resource("customresourcedefinitions").
|
|
||||||
VersionedParams(&opts, scheme.ParameterCodec).
|
|
||||||
Body(customResourceDefinition).
|
|
||||||
Do(ctx).
|
|
||||||
Into(result)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update takes the representation of a customResourceDefinition and updates it. Returns the server's representation of the customResourceDefinition, and an error, if there is any.
|
|
||||||
func (c *customResourceDefinitions) Update(ctx context.Context, customResourceDefinition *v1beta1.CustomResourceDefinition, opts v1.UpdateOptions) (result *v1beta1.CustomResourceDefinition, err error) {
|
|
||||||
result = &v1beta1.CustomResourceDefinition{}
|
|
||||||
err = c.client.Put().
|
|
||||||
Resource("customresourcedefinitions").
|
|
||||||
Name(customResourceDefinition.Name).
|
|
||||||
VersionedParams(&opts, scheme.ParameterCodec).
|
|
||||||
Body(customResourceDefinition).
|
|
||||||
Do(ctx).
|
|
||||||
Into(result)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// UpdateStatus was generated because the type contains a Status member.
|
|
||||||
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
|
|
||||||
func (c *customResourceDefinitions) UpdateStatus(ctx context.Context, customResourceDefinition *v1beta1.CustomResourceDefinition, opts v1.UpdateOptions) (result *v1beta1.CustomResourceDefinition, err error) {
|
|
||||||
result = &v1beta1.CustomResourceDefinition{}
|
|
||||||
err = c.client.Put().
|
|
||||||
Resource("customresourcedefinitions").
|
|
||||||
Name(customResourceDefinition.Name).
|
|
||||||
SubResource("status").
|
|
||||||
VersionedParams(&opts, scheme.ParameterCodec).
|
|
||||||
Body(customResourceDefinition).
|
|
||||||
Do(ctx).
|
|
||||||
Into(result)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Delete takes name of the customResourceDefinition and deletes it. Returns an error if one occurs.
|
|
||||||
func (c *customResourceDefinitions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
|
|
||||||
return c.client.Delete().
|
|
||||||
Resource("customresourcedefinitions").
|
|
||||||
Name(name).
|
|
||||||
Body(&opts).
|
|
||||||
Do(ctx).
|
|
||||||
Error()
|
|
||||||
}
|
|
||||||
|
|
||||||
// DeleteCollection deletes a collection of objects.
|
|
||||||
func (c *customResourceDefinitions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
|
|
||||||
var timeout time.Duration
|
|
||||||
if listOpts.TimeoutSeconds != nil {
|
|
||||||
timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
|
|
||||||
}
|
|
||||||
return c.client.Delete().
|
|
||||||
Resource("customresourcedefinitions").
|
|
||||||
VersionedParams(&listOpts, scheme.ParameterCodec).
|
|
||||||
Timeout(timeout).
|
|
||||||
Body(&opts).
|
|
||||||
Do(ctx).
|
|
||||||
Error()
|
|
||||||
}
|
|
||||||
|
|
||||||
// Patch applies the patch and returns the patched customResourceDefinition.
|
|
||||||
func (c *customResourceDefinitions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.CustomResourceDefinition, err error) {
|
|
||||||
result = &v1beta1.CustomResourceDefinition{}
|
|
||||||
err = c.client.Patch(pt).
|
|
||||||
Resource("customresourcedefinitions").
|
|
||||||
Name(name).
|
|
||||||
SubResource(subresources...).
|
|
||||||
VersionedParams(&opts, scheme.ParameterCodec).
|
|
||||||
Body(data).
|
|
||||||
Do(ctx).
|
|
||||||
Into(result)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Apply takes the given apply declarative configuration, applies it and returns the applied customResourceDefinition.
|
|
||||||
func (c *customResourceDefinitions) Apply(ctx context.Context, customResourceDefinition *apiextensionsv1beta1.CustomResourceDefinitionApplyConfiguration, opts v1.ApplyOptions) (result *v1beta1.CustomResourceDefinition, err error) {
|
|
||||||
if customResourceDefinition == nil {
|
|
||||||
return nil, fmt.Errorf("customResourceDefinition provided to Apply must not be nil")
|
|
||||||
}
|
|
||||||
patchOpts := opts.ToPatchOptions()
|
|
||||||
data, err := json.Marshal(customResourceDefinition)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
name := customResourceDefinition.Name
|
|
||||||
if name == nil {
|
|
||||||
return nil, fmt.Errorf("customResourceDefinition.Name must be provided to Apply")
|
|
||||||
}
|
|
||||||
result = &v1beta1.CustomResourceDefinition{}
|
|
||||||
err = c.client.Patch(types.ApplyPatchType).
|
|
||||||
Resource("customresourcedefinitions").
|
|
||||||
Name(*name).
|
|
||||||
VersionedParams(&patchOpts, scheme.ParameterCodec).
|
|
||||||
Body(data).
|
|
||||||
Do(ctx).
|
|
||||||
Into(result)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// ApplyStatus was generated because the type contains a Status member.
|
|
||||||
// Add a +genclient:noStatus comment above the type to avoid generating ApplyStatus().
|
|
||||||
func (c *customResourceDefinitions) ApplyStatus(ctx context.Context, customResourceDefinition *apiextensionsv1beta1.CustomResourceDefinitionApplyConfiguration, opts v1.ApplyOptions) (result *v1beta1.CustomResourceDefinition, err error) {
|
|
||||||
if customResourceDefinition == nil {
|
|
||||||
return nil, fmt.Errorf("customResourceDefinition provided to Apply must not be nil")
|
|
||||||
}
|
|
||||||
patchOpts := opts.ToPatchOptions()
|
|
||||||
data, err := json.Marshal(customResourceDefinition)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
name := customResourceDefinition.Name
|
|
||||||
if name == nil {
|
|
||||||
return nil, fmt.Errorf("customResourceDefinition.Name must be provided to Apply")
|
|
||||||
}
|
|
||||||
|
|
||||||
result = &v1beta1.CustomResourceDefinition{}
|
|
||||||
err = c.client.Patch(types.ApplyPatchType).
|
|
||||||
Resource("customresourcedefinitions").
|
|
||||||
Name(*name).
|
|
||||||
SubResource("status").
|
|
||||||
VersionedParams(&patchOpts, scheme.ParameterCodec).
|
|
||||||
Body(data).
|
|
||||||
Do(ctx).
|
|
||||||
Into(result)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
@@ -18,14 +18,14 @@ limitations under the License.
|
|||||||
|
|
||||||
package v1
|
package v1
|
||||||
|
|
||||||
// AuditAnnotationApplyConfiguration represents an declarative configuration of the AuditAnnotation type for use
|
// AuditAnnotationApplyConfiguration represents a declarative configuration of the AuditAnnotation type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type AuditAnnotationApplyConfiguration struct {
|
type AuditAnnotationApplyConfiguration struct {
|
||||||
Key *string `json:"key,omitempty"`
|
Key *string `json:"key,omitempty"`
|
||||||
ValueExpression *string `json:"valueExpression,omitempty"`
|
ValueExpression *string `json:"valueExpression,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// AuditAnnotationApplyConfiguration constructs an declarative configuration of the AuditAnnotation type for use with
|
// AuditAnnotationApplyConfiguration constructs a declarative configuration of the AuditAnnotation type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func AuditAnnotation() *AuditAnnotationApplyConfiguration {
|
func AuditAnnotation() *AuditAnnotationApplyConfiguration {
|
||||||
return &AuditAnnotationApplyConfiguration{}
|
return &AuditAnnotationApplyConfiguration{}
|
||||||
|
@@ -18,14 +18,14 @@ limitations under the License.
|
|||||||
|
|
||||||
package v1
|
package v1
|
||||||
|
|
||||||
// ExpressionWarningApplyConfiguration represents an declarative configuration of the ExpressionWarning type for use
|
// ExpressionWarningApplyConfiguration represents a declarative configuration of the ExpressionWarning type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ExpressionWarningApplyConfiguration struct {
|
type ExpressionWarningApplyConfiguration struct {
|
||||||
FieldRef *string `json:"fieldRef,omitempty"`
|
FieldRef *string `json:"fieldRef,omitempty"`
|
||||||
Warning *string `json:"warning,omitempty"`
|
Warning *string `json:"warning,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ExpressionWarningApplyConfiguration constructs an declarative configuration of the ExpressionWarning type for use with
|
// ExpressionWarningApplyConfiguration constructs a declarative configuration of the ExpressionWarning type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func ExpressionWarning() *ExpressionWarningApplyConfiguration {
|
func ExpressionWarning() *ExpressionWarningApplyConfiguration {
|
||||||
return &ExpressionWarningApplyConfiguration{}
|
return &ExpressionWarningApplyConfiguration{}
|
||||||
|
@@ -18,14 +18,14 @@ limitations under the License.
|
|||||||
|
|
||||||
package v1
|
package v1
|
||||||
|
|
||||||
// MatchConditionApplyConfiguration represents an declarative configuration of the MatchCondition type for use
|
// MatchConditionApplyConfiguration represents a declarative configuration of the MatchCondition type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type MatchConditionApplyConfiguration struct {
|
type MatchConditionApplyConfiguration struct {
|
||||||
Name *string `json:"name,omitempty"`
|
Name *string `json:"name,omitempty"`
|
||||||
Expression *string `json:"expression,omitempty"`
|
Expression *string `json:"expression,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// MatchConditionApplyConfiguration constructs an declarative configuration of the MatchCondition type for use with
|
// MatchConditionApplyConfiguration constructs a declarative configuration of the MatchCondition type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func MatchCondition() *MatchConditionApplyConfiguration {
|
func MatchCondition() *MatchConditionApplyConfiguration {
|
||||||
return &MatchConditionApplyConfiguration{}
|
return &MatchConditionApplyConfiguration{}
|
||||||
|
@@ -23,7 +23,7 @@ import (
|
|||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// MatchResourcesApplyConfiguration represents an declarative configuration of the MatchResources type for use
|
// MatchResourcesApplyConfiguration represents a declarative configuration of the MatchResources type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type MatchResourcesApplyConfiguration struct {
|
type MatchResourcesApplyConfiguration struct {
|
||||||
NamespaceSelector *v1.LabelSelectorApplyConfiguration `json:"namespaceSelector,omitempty"`
|
NamespaceSelector *v1.LabelSelectorApplyConfiguration `json:"namespaceSelector,omitempty"`
|
||||||
@@ -33,7 +33,7 @@ type MatchResourcesApplyConfiguration struct {
|
|||||||
MatchPolicy *apiadmissionregistrationv1.MatchPolicyType `json:"matchPolicy,omitempty"`
|
MatchPolicy *apiadmissionregistrationv1.MatchPolicyType `json:"matchPolicy,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// MatchResourcesApplyConfiguration constructs an declarative configuration of the MatchResources type for use with
|
// MatchResourcesApplyConfiguration constructs a declarative configuration of the MatchResources type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func MatchResources() *MatchResourcesApplyConfiguration {
|
func MatchResources() *MatchResourcesApplyConfiguration {
|
||||||
return &MatchResourcesApplyConfiguration{}
|
return &MatchResourcesApplyConfiguration{}
|
||||||
|
@@ -23,7 +23,7 @@ import (
|
|||||||
metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// MutatingWebhookApplyConfiguration represents an declarative configuration of the MutatingWebhook type for use
|
// MutatingWebhookApplyConfiguration represents a declarative configuration of the MutatingWebhook type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type MutatingWebhookApplyConfiguration struct {
|
type MutatingWebhookApplyConfiguration struct {
|
||||||
Name *string `json:"name,omitempty"`
|
Name *string `json:"name,omitempty"`
|
||||||
@@ -40,7 +40,7 @@ type MutatingWebhookApplyConfiguration struct {
|
|||||||
MatchConditions []MatchConditionApplyConfiguration `json:"matchConditions,omitempty"`
|
MatchConditions []MatchConditionApplyConfiguration `json:"matchConditions,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// MutatingWebhookApplyConfiguration constructs an declarative configuration of the MutatingWebhook type for use with
|
// MutatingWebhookApplyConfiguration constructs a declarative configuration of the MutatingWebhook type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func MutatingWebhook() *MutatingWebhookApplyConfiguration {
|
func MutatingWebhook() *MutatingWebhookApplyConfiguration {
|
||||||
return &MutatingWebhookApplyConfiguration{}
|
return &MutatingWebhookApplyConfiguration{}
|
||||||
|
@@ -27,7 +27,7 @@ import (
|
|||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// MutatingWebhookConfigurationApplyConfiguration represents an declarative configuration of the MutatingWebhookConfiguration type for use
|
// MutatingWebhookConfigurationApplyConfiguration represents a declarative configuration of the MutatingWebhookConfiguration type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type MutatingWebhookConfigurationApplyConfiguration struct {
|
type MutatingWebhookConfigurationApplyConfiguration struct {
|
||||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||||
@@ -35,7 +35,7 @@ type MutatingWebhookConfigurationApplyConfiguration struct {
|
|||||||
Webhooks []MutatingWebhookApplyConfiguration `json:"webhooks,omitempty"`
|
Webhooks []MutatingWebhookApplyConfiguration `json:"webhooks,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// MutatingWebhookConfiguration constructs an declarative configuration of the MutatingWebhookConfiguration type for use with
|
// MutatingWebhookConfiguration constructs a declarative configuration of the MutatingWebhookConfiguration type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func MutatingWebhookConfiguration(name string) *MutatingWebhookConfigurationApplyConfiguration {
|
func MutatingWebhookConfiguration(name string) *MutatingWebhookConfigurationApplyConfiguration {
|
||||||
b := &MutatingWebhookConfigurationApplyConfiguration{}
|
b := &MutatingWebhookConfigurationApplyConfiguration{}
|
||||||
@@ -250,3 +250,9 @@ func (b *MutatingWebhookConfigurationApplyConfiguration) WithWebhooks(values ...
|
|||||||
}
|
}
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetName retrieves the value of the Name field in the declarative configuration.
|
||||||
|
func (b *MutatingWebhookConfigurationApplyConfiguration) GetName() *string {
|
||||||
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
|
return b.Name
|
||||||
|
}
|
||||||
|
@@ -22,14 +22,14 @@ import (
|
|||||||
admissionregistrationv1 "k8s.io/api/admissionregistration/v1"
|
admissionregistrationv1 "k8s.io/api/admissionregistration/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// NamedRuleWithOperationsApplyConfiguration represents an declarative configuration of the NamedRuleWithOperations type for use
|
// NamedRuleWithOperationsApplyConfiguration represents a declarative configuration of the NamedRuleWithOperations type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type NamedRuleWithOperationsApplyConfiguration struct {
|
type NamedRuleWithOperationsApplyConfiguration struct {
|
||||||
ResourceNames []string `json:"resourceNames,omitempty"`
|
ResourceNames []string `json:"resourceNames,omitempty"`
|
||||||
RuleWithOperationsApplyConfiguration `json:",inline"`
|
RuleWithOperationsApplyConfiguration `json:",inline"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NamedRuleWithOperationsApplyConfiguration constructs an declarative configuration of the NamedRuleWithOperations type for use with
|
// NamedRuleWithOperationsApplyConfiguration constructs a declarative configuration of the NamedRuleWithOperations type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func NamedRuleWithOperations() *NamedRuleWithOperationsApplyConfiguration {
|
func NamedRuleWithOperations() *NamedRuleWithOperationsApplyConfiguration {
|
||||||
return &NamedRuleWithOperationsApplyConfiguration{}
|
return &NamedRuleWithOperationsApplyConfiguration{}
|
||||||
|
@@ -18,14 +18,14 @@ limitations under the License.
|
|||||||
|
|
||||||
package v1
|
package v1
|
||||||
|
|
||||||
// ParamKindApplyConfiguration represents an declarative configuration of the ParamKind type for use
|
// ParamKindApplyConfiguration represents a declarative configuration of the ParamKind type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ParamKindApplyConfiguration struct {
|
type ParamKindApplyConfiguration struct {
|
||||||
APIVersion *string `json:"apiVersion,omitempty"`
|
APIVersion *string `json:"apiVersion,omitempty"`
|
||||||
Kind *string `json:"kind,omitempty"`
|
Kind *string `json:"kind,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ParamKindApplyConfiguration constructs an declarative configuration of the ParamKind type for use with
|
// ParamKindApplyConfiguration constructs a declarative configuration of the ParamKind type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func ParamKind() *ParamKindApplyConfiguration {
|
func ParamKind() *ParamKindApplyConfiguration {
|
||||||
return &ParamKindApplyConfiguration{}
|
return &ParamKindApplyConfiguration{}
|
||||||
|
@@ -23,7 +23,7 @@ import (
|
|||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ParamRefApplyConfiguration represents an declarative configuration of the ParamRef type for use
|
// ParamRefApplyConfiguration represents a declarative configuration of the ParamRef type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ParamRefApplyConfiguration struct {
|
type ParamRefApplyConfiguration struct {
|
||||||
Name *string `json:"name,omitempty"`
|
Name *string `json:"name,omitempty"`
|
||||||
@@ -32,7 +32,7 @@ type ParamRefApplyConfiguration struct {
|
|||||||
ParameterNotFoundAction *admissionregistrationv1.ParameterNotFoundActionType `json:"parameterNotFoundAction,omitempty"`
|
ParameterNotFoundAction *admissionregistrationv1.ParameterNotFoundActionType `json:"parameterNotFoundAction,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ParamRefApplyConfiguration constructs an declarative configuration of the ParamRef type for use with
|
// ParamRefApplyConfiguration constructs a declarative configuration of the ParamRef type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func ParamRef() *ParamRefApplyConfiguration {
|
func ParamRef() *ParamRefApplyConfiguration {
|
||||||
return &ParamRefApplyConfiguration{}
|
return &ParamRefApplyConfiguration{}
|
||||||
|
@@ -22,7 +22,7 @@ import (
|
|||||||
v1 "k8s.io/api/admissionregistration/v1"
|
v1 "k8s.io/api/admissionregistration/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// RuleApplyConfiguration represents an declarative configuration of the Rule type for use
|
// RuleApplyConfiguration represents a declarative configuration of the Rule type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type RuleApplyConfiguration struct {
|
type RuleApplyConfiguration struct {
|
||||||
APIGroups []string `json:"apiGroups,omitempty"`
|
APIGroups []string `json:"apiGroups,omitempty"`
|
||||||
@@ -31,7 +31,7 @@ type RuleApplyConfiguration struct {
|
|||||||
Scope *v1.ScopeType `json:"scope,omitempty"`
|
Scope *v1.ScopeType `json:"scope,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// RuleApplyConfiguration constructs an declarative configuration of the Rule type for use with
|
// RuleApplyConfiguration constructs a declarative configuration of the Rule type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func Rule() *RuleApplyConfiguration {
|
func Rule() *RuleApplyConfiguration {
|
||||||
return &RuleApplyConfiguration{}
|
return &RuleApplyConfiguration{}
|
||||||
|
@@ -22,14 +22,14 @@ import (
|
|||||||
v1 "k8s.io/api/admissionregistration/v1"
|
v1 "k8s.io/api/admissionregistration/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// RuleWithOperationsApplyConfiguration represents an declarative configuration of the RuleWithOperations type for use
|
// RuleWithOperationsApplyConfiguration represents a declarative configuration of the RuleWithOperations type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type RuleWithOperationsApplyConfiguration struct {
|
type RuleWithOperationsApplyConfiguration struct {
|
||||||
Operations []v1.OperationType `json:"operations,omitempty"`
|
Operations []v1.OperationType `json:"operations,omitempty"`
|
||||||
RuleApplyConfiguration `json:",inline"`
|
RuleApplyConfiguration `json:",inline"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// RuleWithOperationsApplyConfiguration constructs an declarative configuration of the RuleWithOperations type for use with
|
// RuleWithOperationsApplyConfiguration constructs a declarative configuration of the RuleWithOperations type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func RuleWithOperations() *RuleWithOperationsApplyConfiguration {
|
func RuleWithOperations() *RuleWithOperationsApplyConfiguration {
|
||||||
return &RuleWithOperationsApplyConfiguration{}
|
return &RuleWithOperationsApplyConfiguration{}
|
||||||
|
@@ -18,7 +18,7 @@ limitations under the License.
|
|||||||
|
|
||||||
package v1
|
package v1
|
||||||
|
|
||||||
// ServiceReferenceApplyConfiguration represents an declarative configuration of the ServiceReference type for use
|
// ServiceReferenceApplyConfiguration represents a declarative configuration of the ServiceReference type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ServiceReferenceApplyConfiguration struct {
|
type ServiceReferenceApplyConfiguration struct {
|
||||||
Namespace *string `json:"namespace,omitempty"`
|
Namespace *string `json:"namespace,omitempty"`
|
||||||
@@ -27,7 +27,7 @@ type ServiceReferenceApplyConfiguration struct {
|
|||||||
Port *int32 `json:"port,omitempty"`
|
Port *int32 `json:"port,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ServiceReferenceApplyConfiguration constructs an declarative configuration of the ServiceReference type for use with
|
// ServiceReferenceApplyConfiguration constructs a declarative configuration of the ServiceReference type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func ServiceReference() *ServiceReferenceApplyConfiguration {
|
func ServiceReference() *ServiceReferenceApplyConfiguration {
|
||||||
return &ServiceReferenceApplyConfiguration{}
|
return &ServiceReferenceApplyConfiguration{}
|
||||||
|
@@ -18,13 +18,13 @@ limitations under the License.
|
|||||||
|
|
||||||
package v1
|
package v1
|
||||||
|
|
||||||
// TypeCheckingApplyConfiguration represents an declarative configuration of the TypeChecking type for use
|
// TypeCheckingApplyConfiguration represents a declarative configuration of the TypeChecking type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type TypeCheckingApplyConfiguration struct {
|
type TypeCheckingApplyConfiguration struct {
|
||||||
ExpressionWarnings []ExpressionWarningApplyConfiguration `json:"expressionWarnings,omitempty"`
|
ExpressionWarnings []ExpressionWarningApplyConfiguration `json:"expressionWarnings,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// TypeCheckingApplyConfiguration constructs an declarative configuration of the TypeChecking type for use with
|
// TypeCheckingApplyConfiguration constructs a declarative configuration of the TypeChecking type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func TypeChecking() *TypeCheckingApplyConfiguration {
|
func TypeChecking() *TypeCheckingApplyConfiguration {
|
||||||
return &TypeCheckingApplyConfiguration{}
|
return &TypeCheckingApplyConfiguration{}
|
||||||
|
@@ -27,7 +27,7 @@ import (
|
|||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ValidatingAdmissionPolicyApplyConfiguration represents an declarative configuration of the ValidatingAdmissionPolicy type for use
|
// ValidatingAdmissionPolicyApplyConfiguration represents a declarative configuration of the ValidatingAdmissionPolicy type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ValidatingAdmissionPolicyApplyConfiguration struct {
|
type ValidatingAdmissionPolicyApplyConfiguration struct {
|
||||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||||
@@ -36,7 +36,7 @@ type ValidatingAdmissionPolicyApplyConfiguration struct {
|
|||||||
Status *ValidatingAdmissionPolicyStatusApplyConfiguration `json:"status,omitempty"`
|
Status *ValidatingAdmissionPolicyStatusApplyConfiguration `json:"status,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ValidatingAdmissionPolicy constructs an declarative configuration of the ValidatingAdmissionPolicy type for use with
|
// ValidatingAdmissionPolicy constructs a declarative configuration of the ValidatingAdmissionPolicy type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func ValidatingAdmissionPolicy(name string) *ValidatingAdmissionPolicyApplyConfiguration {
|
func ValidatingAdmissionPolicy(name string) *ValidatingAdmissionPolicyApplyConfiguration {
|
||||||
b := &ValidatingAdmissionPolicyApplyConfiguration{}
|
b := &ValidatingAdmissionPolicyApplyConfiguration{}
|
||||||
@@ -254,3 +254,9 @@ func (b *ValidatingAdmissionPolicyApplyConfiguration) WithStatus(value *Validati
|
|||||||
b.Status = value
|
b.Status = value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetName retrieves the value of the Name field in the declarative configuration.
|
||||||
|
func (b *ValidatingAdmissionPolicyApplyConfiguration) GetName() *string {
|
||||||
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
|
return b.Name
|
||||||
|
}
|
||||||
|
@@ -27,7 +27,7 @@ import (
|
|||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ValidatingAdmissionPolicyBindingApplyConfiguration represents an declarative configuration of the ValidatingAdmissionPolicyBinding type for use
|
// ValidatingAdmissionPolicyBindingApplyConfiguration represents a declarative configuration of the ValidatingAdmissionPolicyBinding type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ValidatingAdmissionPolicyBindingApplyConfiguration struct {
|
type ValidatingAdmissionPolicyBindingApplyConfiguration struct {
|
||||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||||
@@ -35,7 +35,7 @@ type ValidatingAdmissionPolicyBindingApplyConfiguration struct {
|
|||||||
Spec *ValidatingAdmissionPolicyBindingSpecApplyConfiguration `json:"spec,omitempty"`
|
Spec *ValidatingAdmissionPolicyBindingSpecApplyConfiguration `json:"spec,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ValidatingAdmissionPolicyBinding constructs an declarative configuration of the ValidatingAdmissionPolicyBinding type for use with
|
// ValidatingAdmissionPolicyBinding constructs a declarative configuration of the ValidatingAdmissionPolicyBinding type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func ValidatingAdmissionPolicyBinding(name string) *ValidatingAdmissionPolicyBindingApplyConfiguration {
|
func ValidatingAdmissionPolicyBinding(name string) *ValidatingAdmissionPolicyBindingApplyConfiguration {
|
||||||
b := &ValidatingAdmissionPolicyBindingApplyConfiguration{}
|
b := &ValidatingAdmissionPolicyBindingApplyConfiguration{}
|
||||||
@@ -245,3 +245,9 @@ func (b *ValidatingAdmissionPolicyBindingApplyConfiguration) WithSpec(value *Val
|
|||||||
b.Spec = value
|
b.Spec = value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetName retrieves the value of the Name field in the declarative configuration.
|
||||||
|
func (b *ValidatingAdmissionPolicyBindingApplyConfiguration) GetName() *string {
|
||||||
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
|
return b.Name
|
||||||
|
}
|
||||||
|
@@ -22,7 +22,7 @@ import (
|
|||||||
admissionregistrationv1 "k8s.io/api/admissionregistration/v1"
|
admissionregistrationv1 "k8s.io/api/admissionregistration/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ValidatingAdmissionPolicyBindingSpecApplyConfiguration represents an declarative configuration of the ValidatingAdmissionPolicyBindingSpec type for use
|
// ValidatingAdmissionPolicyBindingSpecApplyConfiguration represents a declarative configuration of the ValidatingAdmissionPolicyBindingSpec type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ValidatingAdmissionPolicyBindingSpecApplyConfiguration struct {
|
type ValidatingAdmissionPolicyBindingSpecApplyConfiguration struct {
|
||||||
PolicyName *string `json:"policyName,omitempty"`
|
PolicyName *string `json:"policyName,omitempty"`
|
||||||
@@ -31,7 +31,7 @@ type ValidatingAdmissionPolicyBindingSpecApplyConfiguration struct {
|
|||||||
ValidationActions []admissionregistrationv1.ValidationAction `json:"validationActions,omitempty"`
|
ValidationActions []admissionregistrationv1.ValidationAction `json:"validationActions,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ValidatingAdmissionPolicyBindingSpecApplyConfiguration constructs an declarative configuration of the ValidatingAdmissionPolicyBindingSpec type for use with
|
// ValidatingAdmissionPolicyBindingSpecApplyConfiguration constructs a declarative configuration of the ValidatingAdmissionPolicyBindingSpec type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func ValidatingAdmissionPolicyBindingSpec() *ValidatingAdmissionPolicyBindingSpecApplyConfiguration {
|
func ValidatingAdmissionPolicyBindingSpec() *ValidatingAdmissionPolicyBindingSpecApplyConfiguration {
|
||||||
return &ValidatingAdmissionPolicyBindingSpecApplyConfiguration{}
|
return &ValidatingAdmissionPolicyBindingSpecApplyConfiguration{}
|
||||||
|
@@ -22,7 +22,7 @@ import (
|
|||||||
admissionregistrationv1 "k8s.io/api/admissionregistration/v1"
|
admissionregistrationv1 "k8s.io/api/admissionregistration/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ValidatingAdmissionPolicySpecApplyConfiguration represents an declarative configuration of the ValidatingAdmissionPolicySpec type for use
|
// ValidatingAdmissionPolicySpecApplyConfiguration represents a declarative configuration of the ValidatingAdmissionPolicySpec type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ValidatingAdmissionPolicySpecApplyConfiguration struct {
|
type ValidatingAdmissionPolicySpecApplyConfiguration struct {
|
||||||
ParamKind *ParamKindApplyConfiguration `json:"paramKind,omitempty"`
|
ParamKind *ParamKindApplyConfiguration `json:"paramKind,omitempty"`
|
||||||
@@ -34,7 +34,7 @@ type ValidatingAdmissionPolicySpecApplyConfiguration struct {
|
|||||||
Variables []VariableApplyConfiguration `json:"variables,omitempty"`
|
Variables []VariableApplyConfiguration `json:"variables,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ValidatingAdmissionPolicySpecApplyConfiguration constructs an declarative configuration of the ValidatingAdmissionPolicySpec type for use with
|
// ValidatingAdmissionPolicySpecApplyConfiguration constructs a declarative configuration of the ValidatingAdmissionPolicySpec type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func ValidatingAdmissionPolicySpec() *ValidatingAdmissionPolicySpecApplyConfiguration {
|
func ValidatingAdmissionPolicySpec() *ValidatingAdmissionPolicySpecApplyConfiguration {
|
||||||
return &ValidatingAdmissionPolicySpecApplyConfiguration{}
|
return &ValidatingAdmissionPolicySpecApplyConfiguration{}
|
||||||
|
@@ -22,7 +22,7 @@ import (
|
|||||||
metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ValidatingAdmissionPolicyStatusApplyConfiguration represents an declarative configuration of the ValidatingAdmissionPolicyStatus type for use
|
// ValidatingAdmissionPolicyStatusApplyConfiguration represents a declarative configuration of the ValidatingAdmissionPolicyStatus type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ValidatingAdmissionPolicyStatusApplyConfiguration struct {
|
type ValidatingAdmissionPolicyStatusApplyConfiguration struct {
|
||||||
ObservedGeneration *int64 `json:"observedGeneration,omitempty"`
|
ObservedGeneration *int64 `json:"observedGeneration,omitempty"`
|
||||||
@@ -30,7 +30,7 @@ type ValidatingAdmissionPolicyStatusApplyConfiguration struct {
|
|||||||
Conditions []metav1.ConditionApplyConfiguration `json:"conditions,omitempty"`
|
Conditions []metav1.ConditionApplyConfiguration `json:"conditions,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ValidatingAdmissionPolicyStatusApplyConfiguration constructs an declarative configuration of the ValidatingAdmissionPolicyStatus type for use with
|
// ValidatingAdmissionPolicyStatusApplyConfiguration constructs a declarative configuration of the ValidatingAdmissionPolicyStatus type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func ValidatingAdmissionPolicyStatus() *ValidatingAdmissionPolicyStatusApplyConfiguration {
|
func ValidatingAdmissionPolicyStatus() *ValidatingAdmissionPolicyStatusApplyConfiguration {
|
||||||
return &ValidatingAdmissionPolicyStatusApplyConfiguration{}
|
return &ValidatingAdmissionPolicyStatusApplyConfiguration{}
|
||||||
|
@@ -23,7 +23,7 @@ import (
|
|||||||
metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ValidatingWebhookApplyConfiguration represents an declarative configuration of the ValidatingWebhook type for use
|
// ValidatingWebhookApplyConfiguration represents a declarative configuration of the ValidatingWebhook type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ValidatingWebhookApplyConfiguration struct {
|
type ValidatingWebhookApplyConfiguration struct {
|
||||||
Name *string `json:"name,omitempty"`
|
Name *string `json:"name,omitempty"`
|
||||||
@@ -39,7 +39,7 @@ type ValidatingWebhookApplyConfiguration struct {
|
|||||||
MatchConditions []MatchConditionApplyConfiguration `json:"matchConditions,omitempty"`
|
MatchConditions []MatchConditionApplyConfiguration `json:"matchConditions,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ValidatingWebhookApplyConfiguration constructs an declarative configuration of the ValidatingWebhook type for use with
|
// ValidatingWebhookApplyConfiguration constructs a declarative configuration of the ValidatingWebhook type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func ValidatingWebhook() *ValidatingWebhookApplyConfiguration {
|
func ValidatingWebhook() *ValidatingWebhookApplyConfiguration {
|
||||||
return &ValidatingWebhookApplyConfiguration{}
|
return &ValidatingWebhookApplyConfiguration{}
|
||||||
|
@@ -27,7 +27,7 @@ import (
|
|||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ValidatingWebhookConfigurationApplyConfiguration represents an declarative configuration of the ValidatingWebhookConfiguration type for use
|
// ValidatingWebhookConfigurationApplyConfiguration represents a declarative configuration of the ValidatingWebhookConfiguration type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ValidatingWebhookConfigurationApplyConfiguration struct {
|
type ValidatingWebhookConfigurationApplyConfiguration struct {
|
||||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||||
@@ -35,7 +35,7 @@ type ValidatingWebhookConfigurationApplyConfiguration struct {
|
|||||||
Webhooks []ValidatingWebhookApplyConfiguration `json:"webhooks,omitempty"`
|
Webhooks []ValidatingWebhookApplyConfiguration `json:"webhooks,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ValidatingWebhookConfiguration constructs an declarative configuration of the ValidatingWebhookConfiguration type for use with
|
// ValidatingWebhookConfiguration constructs a declarative configuration of the ValidatingWebhookConfiguration type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func ValidatingWebhookConfiguration(name string) *ValidatingWebhookConfigurationApplyConfiguration {
|
func ValidatingWebhookConfiguration(name string) *ValidatingWebhookConfigurationApplyConfiguration {
|
||||||
b := &ValidatingWebhookConfigurationApplyConfiguration{}
|
b := &ValidatingWebhookConfigurationApplyConfiguration{}
|
||||||
@@ -250,3 +250,9 @@ func (b *ValidatingWebhookConfigurationApplyConfiguration) WithWebhooks(values .
|
|||||||
}
|
}
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetName retrieves the value of the Name field in the declarative configuration.
|
||||||
|
func (b *ValidatingWebhookConfigurationApplyConfiguration) GetName() *string {
|
||||||
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
|
return b.Name
|
||||||
|
}
|
||||||
|
@@ -22,7 +22,7 @@ import (
|
|||||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ValidationApplyConfiguration represents an declarative configuration of the Validation type for use
|
// ValidationApplyConfiguration represents a declarative configuration of the Validation type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ValidationApplyConfiguration struct {
|
type ValidationApplyConfiguration struct {
|
||||||
Expression *string `json:"expression,omitempty"`
|
Expression *string `json:"expression,omitempty"`
|
||||||
@@ -31,7 +31,7 @@ type ValidationApplyConfiguration struct {
|
|||||||
MessageExpression *string `json:"messageExpression,omitempty"`
|
MessageExpression *string `json:"messageExpression,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ValidationApplyConfiguration constructs an declarative configuration of the Validation type for use with
|
// ValidationApplyConfiguration constructs a declarative configuration of the Validation type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func Validation() *ValidationApplyConfiguration {
|
func Validation() *ValidationApplyConfiguration {
|
||||||
return &ValidationApplyConfiguration{}
|
return &ValidationApplyConfiguration{}
|
||||||
|
@@ -18,14 +18,14 @@ limitations under the License.
|
|||||||
|
|
||||||
package v1
|
package v1
|
||||||
|
|
||||||
// VariableApplyConfiguration represents an declarative configuration of the Variable type for use
|
// VariableApplyConfiguration represents a declarative configuration of the Variable type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type VariableApplyConfiguration struct {
|
type VariableApplyConfiguration struct {
|
||||||
Name *string `json:"name,omitempty"`
|
Name *string `json:"name,omitempty"`
|
||||||
Expression *string `json:"expression,omitempty"`
|
Expression *string `json:"expression,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// VariableApplyConfiguration constructs an declarative configuration of the Variable type for use with
|
// VariableApplyConfiguration constructs a declarative configuration of the Variable type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func Variable() *VariableApplyConfiguration {
|
func Variable() *VariableApplyConfiguration {
|
||||||
return &VariableApplyConfiguration{}
|
return &VariableApplyConfiguration{}
|
||||||
|
@@ -18,7 +18,7 @@ limitations under the License.
|
|||||||
|
|
||||||
package v1
|
package v1
|
||||||
|
|
||||||
// WebhookClientConfigApplyConfiguration represents an declarative configuration of the WebhookClientConfig type for use
|
// WebhookClientConfigApplyConfiguration represents a declarative configuration of the WebhookClientConfig type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type WebhookClientConfigApplyConfiguration struct {
|
type WebhookClientConfigApplyConfiguration struct {
|
||||||
URL *string `json:"url,omitempty"`
|
URL *string `json:"url,omitempty"`
|
||||||
@@ -26,7 +26,7 @@ type WebhookClientConfigApplyConfiguration struct {
|
|||||||
CABundle []byte `json:"caBundle,omitempty"`
|
CABundle []byte `json:"caBundle,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// WebhookClientConfigApplyConfiguration constructs an declarative configuration of the WebhookClientConfig type for use with
|
// WebhookClientConfigApplyConfiguration constructs a declarative configuration of the WebhookClientConfig type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func WebhookClientConfig() *WebhookClientConfigApplyConfiguration {
|
func WebhookClientConfig() *WebhookClientConfigApplyConfiguration {
|
||||||
return &WebhookClientConfigApplyConfiguration{}
|
return &WebhookClientConfigApplyConfiguration{}
|
||||||
|
@@ -18,14 +18,14 @@ limitations under the License.
|
|||||||
|
|
||||||
package v1alpha1
|
package v1alpha1
|
||||||
|
|
||||||
// AuditAnnotationApplyConfiguration represents an declarative configuration of the AuditAnnotation type for use
|
// AuditAnnotationApplyConfiguration represents a declarative configuration of the AuditAnnotation type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type AuditAnnotationApplyConfiguration struct {
|
type AuditAnnotationApplyConfiguration struct {
|
||||||
Key *string `json:"key,omitempty"`
|
Key *string `json:"key,omitempty"`
|
||||||
ValueExpression *string `json:"valueExpression,omitempty"`
|
ValueExpression *string `json:"valueExpression,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// AuditAnnotationApplyConfiguration constructs an declarative configuration of the AuditAnnotation type for use with
|
// AuditAnnotationApplyConfiguration constructs a declarative configuration of the AuditAnnotation type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func AuditAnnotation() *AuditAnnotationApplyConfiguration {
|
func AuditAnnotation() *AuditAnnotationApplyConfiguration {
|
||||||
return &AuditAnnotationApplyConfiguration{}
|
return &AuditAnnotationApplyConfiguration{}
|
||||||
|
@@ -18,14 +18,14 @@ limitations under the License.
|
|||||||
|
|
||||||
package v1alpha1
|
package v1alpha1
|
||||||
|
|
||||||
// ExpressionWarningApplyConfiguration represents an declarative configuration of the ExpressionWarning type for use
|
// ExpressionWarningApplyConfiguration represents a declarative configuration of the ExpressionWarning type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ExpressionWarningApplyConfiguration struct {
|
type ExpressionWarningApplyConfiguration struct {
|
||||||
FieldRef *string `json:"fieldRef,omitempty"`
|
FieldRef *string `json:"fieldRef,omitempty"`
|
||||||
Warning *string `json:"warning,omitempty"`
|
Warning *string `json:"warning,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ExpressionWarningApplyConfiguration constructs an declarative configuration of the ExpressionWarning type for use with
|
// ExpressionWarningApplyConfiguration constructs a declarative configuration of the ExpressionWarning type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func ExpressionWarning() *ExpressionWarningApplyConfiguration {
|
func ExpressionWarning() *ExpressionWarningApplyConfiguration {
|
||||||
return &ExpressionWarningApplyConfiguration{}
|
return &ExpressionWarningApplyConfiguration{}
|
||||||
|
@@ -18,14 +18,14 @@ limitations under the License.
|
|||||||
|
|
||||||
package v1alpha1
|
package v1alpha1
|
||||||
|
|
||||||
// MatchConditionApplyConfiguration represents an declarative configuration of the MatchCondition type for use
|
// MatchConditionApplyConfiguration represents a declarative configuration of the MatchCondition type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type MatchConditionApplyConfiguration struct {
|
type MatchConditionApplyConfiguration struct {
|
||||||
Name *string `json:"name,omitempty"`
|
Name *string `json:"name,omitempty"`
|
||||||
Expression *string `json:"expression,omitempty"`
|
Expression *string `json:"expression,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// MatchConditionApplyConfiguration constructs an declarative configuration of the MatchCondition type for use with
|
// MatchConditionApplyConfiguration constructs a declarative configuration of the MatchCondition type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func MatchCondition() *MatchConditionApplyConfiguration {
|
func MatchCondition() *MatchConditionApplyConfiguration {
|
||||||
return &MatchConditionApplyConfiguration{}
|
return &MatchConditionApplyConfiguration{}
|
||||||
|
@@ -23,7 +23,7 @@ import (
|
|||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// MatchResourcesApplyConfiguration represents an declarative configuration of the MatchResources type for use
|
// MatchResourcesApplyConfiguration represents a declarative configuration of the MatchResources type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type MatchResourcesApplyConfiguration struct {
|
type MatchResourcesApplyConfiguration struct {
|
||||||
NamespaceSelector *v1.LabelSelectorApplyConfiguration `json:"namespaceSelector,omitempty"`
|
NamespaceSelector *v1.LabelSelectorApplyConfiguration `json:"namespaceSelector,omitempty"`
|
||||||
@@ -33,7 +33,7 @@ type MatchResourcesApplyConfiguration struct {
|
|||||||
MatchPolicy *admissionregistrationv1alpha1.MatchPolicyType `json:"matchPolicy,omitempty"`
|
MatchPolicy *admissionregistrationv1alpha1.MatchPolicyType `json:"matchPolicy,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// MatchResourcesApplyConfiguration constructs an declarative configuration of the MatchResources type for use with
|
// MatchResourcesApplyConfiguration constructs a declarative configuration of the MatchResources type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func MatchResources() *MatchResourcesApplyConfiguration {
|
func MatchResources() *MatchResourcesApplyConfiguration {
|
||||||
return &MatchResourcesApplyConfiguration{}
|
return &MatchResourcesApplyConfiguration{}
|
||||||
|
@@ -23,14 +23,14 @@ import (
|
|||||||
v1 "k8s.io/client-go/applyconfigurations/admissionregistration/v1"
|
v1 "k8s.io/client-go/applyconfigurations/admissionregistration/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// NamedRuleWithOperationsApplyConfiguration represents an declarative configuration of the NamedRuleWithOperations type for use
|
// NamedRuleWithOperationsApplyConfiguration represents a declarative configuration of the NamedRuleWithOperations type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type NamedRuleWithOperationsApplyConfiguration struct {
|
type NamedRuleWithOperationsApplyConfiguration struct {
|
||||||
ResourceNames []string `json:"resourceNames,omitempty"`
|
ResourceNames []string `json:"resourceNames,omitempty"`
|
||||||
v1.RuleWithOperationsApplyConfiguration `json:",inline"`
|
v1.RuleWithOperationsApplyConfiguration `json:",inline"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NamedRuleWithOperationsApplyConfiguration constructs an declarative configuration of the NamedRuleWithOperations type for use with
|
// NamedRuleWithOperationsApplyConfiguration constructs a declarative configuration of the NamedRuleWithOperations type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func NamedRuleWithOperations() *NamedRuleWithOperationsApplyConfiguration {
|
func NamedRuleWithOperations() *NamedRuleWithOperationsApplyConfiguration {
|
||||||
return &NamedRuleWithOperationsApplyConfiguration{}
|
return &NamedRuleWithOperationsApplyConfiguration{}
|
||||||
|
@@ -18,14 +18,14 @@ limitations under the License.
|
|||||||
|
|
||||||
package v1alpha1
|
package v1alpha1
|
||||||
|
|
||||||
// ParamKindApplyConfiguration represents an declarative configuration of the ParamKind type for use
|
// ParamKindApplyConfiguration represents a declarative configuration of the ParamKind type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ParamKindApplyConfiguration struct {
|
type ParamKindApplyConfiguration struct {
|
||||||
APIVersion *string `json:"apiVersion,omitempty"`
|
APIVersion *string `json:"apiVersion,omitempty"`
|
||||||
Kind *string `json:"kind,omitempty"`
|
Kind *string `json:"kind,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ParamKindApplyConfiguration constructs an declarative configuration of the ParamKind type for use with
|
// ParamKindApplyConfiguration constructs a declarative configuration of the ParamKind type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func ParamKind() *ParamKindApplyConfiguration {
|
func ParamKind() *ParamKindApplyConfiguration {
|
||||||
return &ParamKindApplyConfiguration{}
|
return &ParamKindApplyConfiguration{}
|
||||||
|
@@ -23,7 +23,7 @@ import (
|
|||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ParamRefApplyConfiguration represents an declarative configuration of the ParamRef type for use
|
// ParamRefApplyConfiguration represents a declarative configuration of the ParamRef type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ParamRefApplyConfiguration struct {
|
type ParamRefApplyConfiguration struct {
|
||||||
Name *string `json:"name,omitempty"`
|
Name *string `json:"name,omitempty"`
|
||||||
@@ -32,7 +32,7 @@ type ParamRefApplyConfiguration struct {
|
|||||||
ParameterNotFoundAction *v1alpha1.ParameterNotFoundActionType `json:"parameterNotFoundAction,omitempty"`
|
ParameterNotFoundAction *v1alpha1.ParameterNotFoundActionType `json:"parameterNotFoundAction,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ParamRefApplyConfiguration constructs an declarative configuration of the ParamRef type for use with
|
// ParamRefApplyConfiguration constructs a declarative configuration of the ParamRef type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func ParamRef() *ParamRefApplyConfiguration {
|
func ParamRef() *ParamRefApplyConfiguration {
|
||||||
return &ParamRefApplyConfiguration{}
|
return &ParamRefApplyConfiguration{}
|
||||||
|
@@ -18,13 +18,13 @@ limitations under the License.
|
|||||||
|
|
||||||
package v1alpha1
|
package v1alpha1
|
||||||
|
|
||||||
// TypeCheckingApplyConfiguration represents an declarative configuration of the TypeChecking type for use
|
// TypeCheckingApplyConfiguration represents a declarative configuration of the TypeChecking type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type TypeCheckingApplyConfiguration struct {
|
type TypeCheckingApplyConfiguration struct {
|
||||||
ExpressionWarnings []ExpressionWarningApplyConfiguration `json:"expressionWarnings,omitempty"`
|
ExpressionWarnings []ExpressionWarningApplyConfiguration `json:"expressionWarnings,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// TypeCheckingApplyConfiguration constructs an declarative configuration of the TypeChecking type for use with
|
// TypeCheckingApplyConfiguration constructs a declarative configuration of the TypeChecking type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func TypeChecking() *TypeCheckingApplyConfiguration {
|
func TypeChecking() *TypeCheckingApplyConfiguration {
|
||||||
return &TypeCheckingApplyConfiguration{}
|
return &TypeCheckingApplyConfiguration{}
|
||||||
|
@@ -27,7 +27,7 @@ import (
|
|||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ValidatingAdmissionPolicyApplyConfiguration represents an declarative configuration of the ValidatingAdmissionPolicy type for use
|
// ValidatingAdmissionPolicyApplyConfiguration represents a declarative configuration of the ValidatingAdmissionPolicy type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ValidatingAdmissionPolicyApplyConfiguration struct {
|
type ValidatingAdmissionPolicyApplyConfiguration struct {
|
||||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||||
@@ -36,7 +36,7 @@ type ValidatingAdmissionPolicyApplyConfiguration struct {
|
|||||||
Status *ValidatingAdmissionPolicyStatusApplyConfiguration `json:"status,omitempty"`
|
Status *ValidatingAdmissionPolicyStatusApplyConfiguration `json:"status,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ValidatingAdmissionPolicy constructs an declarative configuration of the ValidatingAdmissionPolicy type for use with
|
// ValidatingAdmissionPolicy constructs a declarative configuration of the ValidatingAdmissionPolicy type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func ValidatingAdmissionPolicy(name string) *ValidatingAdmissionPolicyApplyConfiguration {
|
func ValidatingAdmissionPolicy(name string) *ValidatingAdmissionPolicyApplyConfiguration {
|
||||||
b := &ValidatingAdmissionPolicyApplyConfiguration{}
|
b := &ValidatingAdmissionPolicyApplyConfiguration{}
|
||||||
@@ -254,3 +254,9 @@ func (b *ValidatingAdmissionPolicyApplyConfiguration) WithStatus(value *Validati
|
|||||||
b.Status = value
|
b.Status = value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetName retrieves the value of the Name field in the declarative configuration.
|
||||||
|
func (b *ValidatingAdmissionPolicyApplyConfiguration) GetName() *string {
|
||||||
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
|
return b.Name
|
||||||
|
}
|
||||||
|
@@ -27,7 +27,7 @@ import (
|
|||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ValidatingAdmissionPolicyBindingApplyConfiguration represents an declarative configuration of the ValidatingAdmissionPolicyBinding type for use
|
// ValidatingAdmissionPolicyBindingApplyConfiguration represents a declarative configuration of the ValidatingAdmissionPolicyBinding type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ValidatingAdmissionPolicyBindingApplyConfiguration struct {
|
type ValidatingAdmissionPolicyBindingApplyConfiguration struct {
|
||||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||||
@@ -35,7 +35,7 @@ type ValidatingAdmissionPolicyBindingApplyConfiguration struct {
|
|||||||
Spec *ValidatingAdmissionPolicyBindingSpecApplyConfiguration `json:"spec,omitempty"`
|
Spec *ValidatingAdmissionPolicyBindingSpecApplyConfiguration `json:"spec,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ValidatingAdmissionPolicyBinding constructs an declarative configuration of the ValidatingAdmissionPolicyBinding type for use with
|
// ValidatingAdmissionPolicyBinding constructs a declarative configuration of the ValidatingAdmissionPolicyBinding type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func ValidatingAdmissionPolicyBinding(name string) *ValidatingAdmissionPolicyBindingApplyConfiguration {
|
func ValidatingAdmissionPolicyBinding(name string) *ValidatingAdmissionPolicyBindingApplyConfiguration {
|
||||||
b := &ValidatingAdmissionPolicyBindingApplyConfiguration{}
|
b := &ValidatingAdmissionPolicyBindingApplyConfiguration{}
|
||||||
@@ -245,3 +245,9 @@ func (b *ValidatingAdmissionPolicyBindingApplyConfiguration) WithSpec(value *Val
|
|||||||
b.Spec = value
|
b.Spec = value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetName retrieves the value of the Name field in the declarative configuration.
|
||||||
|
func (b *ValidatingAdmissionPolicyBindingApplyConfiguration) GetName() *string {
|
||||||
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
|
return b.Name
|
||||||
|
}
|
||||||
|
@@ -22,7 +22,7 @@ import (
|
|||||||
admissionregistrationv1alpha1 "k8s.io/api/admissionregistration/v1alpha1"
|
admissionregistrationv1alpha1 "k8s.io/api/admissionregistration/v1alpha1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ValidatingAdmissionPolicyBindingSpecApplyConfiguration represents an declarative configuration of the ValidatingAdmissionPolicyBindingSpec type for use
|
// ValidatingAdmissionPolicyBindingSpecApplyConfiguration represents a declarative configuration of the ValidatingAdmissionPolicyBindingSpec type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ValidatingAdmissionPolicyBindingSpecApplyConfiguration struct {
|
type ValidatingAdmissionPolicyBindingSpecApplyConfiguration struct {
|
||||||
PolicyName *string `json:"policyName,omitempty"`
|
PolicyName *string `json:"policyName,omitempty"`
|
||||||
@@ -31,7 +31,7 @@ type ValidatingAdmissionPolicyBindingSpecApplyConfiguration struct {
|
|||||||
ValidationActions []admissionregistrationv1alpha1.ValidationAction `json:"validationActions,omitempty"`
|
ValidationActions []admissionregistrationv1alpha1.ValidationAction `json:"validationActions,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ValidatingAdmissionPolicyBindingSpecApplyConfiguration constructs an declarative configuration of the ValidatingAdmissionPolicyBindingSpec type for use with
|
// ValidatingAdmissionPolicyBindingSpecApplyConfiguration constructs a declarative configuration of the ValidatingAdmissionPolicyBindingSpec type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func ValidatingAdmissionPolicyBindingSpec() *ValidatingAdmissionPolicyBindingSpecApplyConfiguration {
|
func ValidatingAdmissionPolicyBindingSpec() *ValidatingAdmissionPolicyBindingSpecApplyConfiguration {
|
||||||
return &ValidatingAdmissionPolicyBindingSpecApplyConfiguration{}
|
return &ValidatingAdmissionPolicyBindingSpecApplyConfiguration{}
|
||||||
|
@@ -22,7 +22,7 @@ import (
|
|||||||
admissionregistrationv1alpha1 "k8s.io/api/admissionregistration/v1alpha1"
|
admissionregistrationv1alpha1 "k8s.io/api/admissionregistration/v1alpha1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ValidatingAdmissionPolicySpecApplyConfiguration represents an declarative configuration of the ValidatingAdmissionPolicySpec type for use
|
// ValidatingAdmissionPolicySpecApplyConfiguration represents a declarative configuration of the ValidatingAdmissionPolicySpec type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ValidatingAdmissionPolicySpecApplyConfiguration struct {
|
type ValidatingAdmissionPolicySpecApplyConfiguration struct {
|
||||||
ParamKind *ParamKindApplyConfiguration `json:"paramKind,omitempty"`
|
ParamKind *ParamKindApplyConfiguration `json:"paramKind,omitempty"`
|
||||||
@@ -34,7 +34,7 @@ type ValidatingAdmissionPolicySpecApplyConfiguration struct {
|
|||||||
Variables []VariableApplyConfiguration `json:"variables,omitempty"`
|
Variables []VariableApplyConfiguration `json:"variables,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ValidatingAdmissionPolicySpecApplyConfiguration constructs an declarative configuration of the ValidatingAdmissionPolicySpec type for use with
|
// ValidatingAdmissionPolicySpecApplyConfiguration constructs a declarative configuration of the ValidatingAdmissionPolicySpec type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func ValidatingAdmissionPolicySpec() *ValidatingAdmissionPolicySpecApplyConfiguration {
|
func ValidatingAdmissionPolicySpec() *ValidatingAdmissionPolicySpecApplyConfiguration {
|
||||||
return &ValidatingAdmissionPolicySpecApplyConfiguration{}
|
return &ValidatingAdmissionPolicySpecApplyConfiguration{}
|
||||||
|
@@ -22,7 +22,7 @@ import (
|
|||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ValidatingAdmissionPolicyStatusApplyConfiguration represents an declarative configuration of the ValidatingAdmissionPolicyStatus type for use
|
// ValidatingAdmissionPolicyStatusApplyConfiguration represents a declarative configuration of the ValidatingAdmissionPolicyStatus type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ValidatingAdmissionPolicyStatusApplyConfiguration struct {
|
type ValidatingAdmissionPolicyStatusApplyConfiguration struct {
|
||||||
ObservedGeneration *int64 `json:"observedGeneration,omitempty"`
|
ObservedGeneration *int64 `json:"observedGeneration,omitempty"`
|
||||||
@@ -30,7 +30,7 @@ type ValidatingAdmissionPolicyStatusApplyConfiguration struct {
|
|||||||
Conditions []v1.ConditionApplyConfiguration `json:"conditions,omitempty"`
|
Conditions []v1.ConditionApplyConfiguration `json:"conditions,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ValidatingAdmissionPolicyStatusApplyConfiguration constructs an declarative configuration of the ValidatingAdmissionPolicyStatus type for use with
|
// ValidatingAdmissionPolicyStatusApplyConfiguration constructs a declarative configuration of the ValidatingAdmissionPolicyStatus type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func ValidatingAdmissionPolicyStatus() *ValidatingAdmissionPolicyStatusApplyConfiguration {
|
func ValidatingAdmissionPolicyStatus() *ValidatingAdmissionPolicyStatusApplyConfiguration {
|
||||||
return &ValidatingAdmissionPolicyStatusApplyConfiguration{}
|
return &ValidatingAdmissionPolicyStatusApplyConfiguration{}
|
||||||
|
@@ -22,7 +22,7 @@ import (
|
|||||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ValidationApplyConfiguration represents an declarative configuration of the Validation type for use
|
// ValidationApplyConfiguration represents a declarative configuration of the Validation type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ValidationApplyConfiguration struct {
|
type ValidationApplyConfiguration struct {
|
||||||
Expression *string `json:"expression,omitempty"`
|
Expression *string `json:"expression,omitempty"`
|
||||||
@@ -31,7 +31,7 @@ type ValidationApplyConfiguration struct {
|
|||||||
MessageExpression *string `json:"messageExpression,omitempty"`
|
MessageExpression *string `json:"messageExpression,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ValidationApplyConfiguration constructs an declarative configuration of the Validation type for use with
|
// ValidationApplyConfiguration constructs a declarative configuration of the Validation type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func Validation() *ValidationApplyConfiguration {
|
func Validation() *ValidationApplyConfiguration {
|
||||||
return &ValidationApplyConfiguration{}
|
return &ValidationApplyConfiguration{}
|
||||||
|
@@ -18,14 +18,14 @@ limitations under the License.
|
|||||||
|
|
||||||
package v1alpha1
|
package v1alpha1
|
||||||
|
|
||||||
// VariableApplyConfiguration represents an declarative configuration of the Variable type for use
|
// VariableApplyConfiguration represents a declarative configuration of the Variable type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type VariableApplyConfiguration struct {
|
type VariableApplyConfiguration struct {
|
||||||
Name *string `json:"name,omitempty"`
|
Name *string `json:"name,omitempty"`
|
||||||
Expression *string `json:"expression,omitempty"`
|
Expression *string `json:"expression,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// VariableApplyConfiguration constructs an declarative configuration of the Variable type for use with
|
// VariableApplyConfiguration constructs a declarative configuration of the Variable type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func Variable() *VariableApplyConfiguration {
|
func Variable() *VariableApplyConfiguration {
|
||||||
return &VariableApplyConfiguration{}
|
return &VariableApplyConfiguration{}
|
||||||
|
@@ -18,14 +18,14 @@ limitations under the License.
|
|||||||
|
|
||||||
package v1beta1
|
package v1beta1
|
||||||
|
|
||||||
// AuditAnnotationApplyConfiguration represents an declarative configuration of the AuditAnnotation type for use
|
// AuditAnnotationApplyConfiguration represents a declarative configuration of the AuditAnnotation type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type AuditAnnotationApplyConfiguration struct {
|
type AuditAnnotationApplyConfiguration struct {
|
||||||
Key *string `json:"key,omitempty"`
|
Key *string `json:"key,omitempty"`
|
||||||
ValueExpression *string `json:"valueExpression,omitempty"`
|
ValueExpression *string `json:"valueExpression,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// AuditAnnotationApplyConfiguration constructs an declarative configuration of the AuditAnnotation type for use with
|
// AuditAnnotationApplyConfiguration constructs a declarative configuration of the AuditAnnotation type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func AuditAnnotation() *AuditAnnotationApplyConfiguration {
|
func AuditAnnotation() *AuditAnnotationApplyConfiguration {
|
||||||
return &AuditAnnotationApplyConfiguration{}
|
return &AuditAnnotationApplyConfiguration{}
|
||||||
|
@@ -18,14 +18,14 @@ limitations under the License.
|
|||||||
|
|
||||||
package v1beta1
|
package v1beta1
|
||||||
|
|
||||||
// ExpressionWarningApplyConfiguration represents an declarative configuration of the ExpressionWarning type for use
|
// ExpressionWarningApplyConfiguration represents a declarative configuration of the ExpressionWarning type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ExpressionWarningApplyConfiguration struct {
|
type ExpressionWarningApplyConfiguration struct {
|
||||||
FieldRef *string `json:"fieldRef,omitempty"`
|
FieldRef *string `json:"fieldRef,omitempty"`
|
||||||
Warning *string `json:"warning,omitempty"`
|
Warning *string `json:"warning,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ExpressionWarningApplyConfiguration constructs an declarative configuration of the ExpressionWarning type for use with
|
// ExpressionWarningApplyConfiguration constructs a declarative configuration of the ExpressionWarning type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func ExpressionWarning() *ExpressionWarningApplyConfiguration {
|
func ExpressionWarning() *ExpressionWarningApplyConfiguration {
|
||||||
return &ExpressionWarningApplyConfiguration{}
|
return &ExpressionWarningApplyConfiguration{}
|
||||||
|
@@ -18,14 +18,14 @@ limitations under the License.
|
|||||||
|
|
||||||
package v1beta1
|
package v1beta1
|
||||||
|
|
||||||
// MatchConditionApplyConfiguration represents an declarative configuration of the MatchCondition type for use
|
// MatchConditionApplyConfiguration represents a declarative configuration of the MatchCondition type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type MatchConditionApplyConfiguration struct {
|
type MatchConditionApplyConfiguration struct {
|
||||||
Name *string `json:"name,omitempty"`
|
Name *string `json:"name,omitempty"`
|
||||||
Expression *string `json:"expression,omitempty"`
|
Expression *string `json:"expression,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// MatchConditionApplyConfiguration constructs an declarative configuration of the MatchCondition type for use with
|
// MatchConditionApplyConfiguration constructs a declarative configuration of the MatchCondition type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func MatchCondition() *MatchConditionApplyConfiguration {
|
func MatchCondition() *MatchConditionApplyConfiguration {
|
||||||
return &MatchConditionApplyConfiguration{}
|
return &MatchConditionApplyConfiguration{}
|
||||||
|
@@ -23,7 +23,7 @@ import (
|
|||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// MatchResourcesApplyConfiguration represents an declarative configuration of the MatchResources type for use
|
// MatchResourcesApplyConfiguration represents a declarative configuration of the MatchResources type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type MatchResourcesApplyConfiguration struct {
|
type MatchResourcesApplyConfiguration struct {
|
||||||
NamespaceSelector *v1.LabelSelectorApplyConfiguration `json:"namespaceSelector,omitempty"`
|
NamespaceSelector *v1.LabelSelectorApplyConfiguration `json:"namespaceSelector,omitempty"`
|
||||||
@@ -33,7 +33,7 @@ type MatchResourcesApplyConfiguration struct {
|
|||||||
MatchPolicy *admissionregistrationv1beta1.MatchPolicyType `json:"matchPolicy,omitempty"`
|
MatchPolicy *admissionregistrationv1beta1.MatchPolicyType `json:"matchPolicy,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// MatchResourcesApplyConfiguration constructs an declarative configuration of the MatchResources type for use with
|
// MatchResourcesApplyConfiguration constructs a declarative configuration of the MatchResources type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func MatchResources() *MatchResourcesApplyConfiguration {
|
func MatchResources() *MatchResourcesApplyConfiguration {
|
||||||
return &MatchResourcesApplyConfiguration{}
|
return &MatchResourcesApplyConfiguration{}
|
||||||
|
@@ -24,7 +24,7 @@ import (
|
|||||||
metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// MutatingWebhookApplyConfiguration represents an declarative configuration of the MutatingWebhook type for use
|
// MutatingWebhookApplyConfiguration represents a declarative configuration of the MutatingWebhook type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type MutatingWebhookApplyConfiguration struct {
|
type MutatingWebhookApplyConfiguration struct {
|
||||||
Name *string `json:"name,omitempty"`
|
Name *string `json:"name,omitempty"`
|
||||||
@@ -41,7 +41,7 @@ type MutatingWebhookApplyConfiguration struct {
|
|||||||
MatchConditions []MatchConditionApplyConfiguration `json:"matchConditions,omitempty"`
|
MatchConditions []MatchConditionApplyConfiguration `json:"matchConditions,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// MutatingWebhookApplyConfiguration constructs an declarative configuration of the MutatingWebhook type for use with
|
// MutatingWebhookApplyConfiguration constructs a declarative configuration of the MutatingWebhook type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func MutatingWebhook() *MutatingWebhookApplyConfiguration {
|
func MutatingWebhook() *MutatingWebhookApplyConfiguration {
|
||||||
return &MutatingWebhookApplyConfiguration{}
|
return &MutatingWebhookApplyConfiguration{}
|
||||||
|
@@ -27,7 +27,7 @@ import (
|
|||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// MutatingWebhookConfigurationApplyConfiguration represents an declarative configuration of the MutatingWebhookConfiguration type for use
|
// MutatingWebhookConfigurationApplyConfiguration represents a declarative configuration of the MutatingWebhookConfiguration type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type MutatingWebhookConfigurationApplyConfiguration struct {
|
type MutatingWebhookConfigurationApplyConfiguration struct {
|
||||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||||
@@ -35,7 +35,7 @@ type MutatingWebhookConfigurationApplyConfiguration struct {
|
|||||||
Webhooks []MutatingWebhookApplyConfiguration `json:"webhooks,omitempty"`
|
Webhooks []MutatingWebhookApplyConfiguration `json:"webhooks,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// MutatingWebhookConfiguration constructs an declarative configuration of the MutatingWebhookConfiguration type for use with
|
// MutatingWebhookConfiguration constructs a declarative configuration of the MutatingWebhookConfiguration type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func MutatingWebhookConfiguration(name string) *MutatingWebhookConfigurationApplyConfiguration {
|
func MutatingWebhookConfiguration(name string) *MutatingWebhookConfigurationApplyConfiguration {
|
||||||
b := &MutatingWebhookConfigurationApplyConfiguration{}
|
b := &MutatingWebhookConfigurationApplyConfiguration{}
|
||||||
@@ -250,3 +250,9 @@ func (b *MutatingWebhookConfigurationApplyConfiguration) WithWebhooks(values ...
|
|||||||
}
|
}
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetName retrieves the value of the Name field in the declarative configuration.
|
||||||
|
func (b *MutatingWebhookConfigurationApplyConfiguration) GetName() *string {
|
||||||
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
|
return b.Name
|
||||||
|
}
|
||||||
|
@@ -23,14 +23,14 @@ import (
|
|||||||
v1 "k8s.io/client-go/applyconfigurations/admissionregistration/v1"
|
v1 "k8s.io/client-go/applyconfigurations/admissionregistration/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// NamedRuleWithOperationsApplyConfiguration represents an declarative configuration of the NamedRuleWithOperations type for use
|
// NamedRuleWithOperationsApplyConfiguration represents a declarative configuration of the NamedRuleWithOperations type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type NamedRuleWithOperationsApplyConfiguration struct {
|
type NamedRuleWithOperationsApplyConfiguration struct {
|
||||||
ResourceNames []string `json:"resourceNames,omitempty"`
|
ResourceNames []string `json:"resourceNames,omitempty"`
|
||||||
v1.RuleWithOperationsApplyConfiguration `json:",inline"`
|
v1.RuleWithOperationsApplyConfiguration `json:",inline"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NamedRuleWithOperationsApplyConfiguration constructs an declarative configuration of the NamedRuleWithOperations type for use with
|
// NamedRuleWithOperationsApplyConfiguration constructs a declarative configuration of the NamedRuleWithOperations type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func NamedRuleWithOperations() *NamedRuleWithOperationsApplyConfiguration {
|
func NamedRuleWithOperations() *NamedRuleWithOperationsApplyConfiguration {
|
||||||
return &NamedRuleWithOperationsApplyConfiguration{}
|
return &NamedRuleWithOperationsApplyConfiguration{}
|
||||||
|
@@ -18,14 +18,14 @@ limitations under the License.
|
|||||||
|
|
||||||
package v1beta1
|
package v1beta1
|
||||||
|
|
||||||
// ParamKindApplyConfiguration represents an declarative configuration of the ParamKind type for use
|
// ParamKindApplyConfiguration represents a declarative configuration of the ParamKind type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ParamKindApplyConfiguration struct {
|
type ParamKindApplyConfiguration struct {
|
||||||
APIVersion *string `json:"apiVersion,omitempty"`
|
APIVersion *string `json:"apiVersion,omitempty"`
|
||||||
Kind *string `json:"kind,omitempty"`
|
Kind *string `json:"kind,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ParamKindApplyConfiguration constructs an declarative configuration of the ParamKind type for use with
|
// ParamKindApplyConfiguration constructs a declarative configuration of the ParamKind type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func ParamKind() *ParamKindApplyConfiguration {
|
func ParamKind() *ParamKindApplyConfiguration {
|
||||||
return &ParamKindApplyConfiguration{}
|
return &ParamKindApplyConfiguration{}
|
||||||
|
@@ -23,7 +23,7 @@ import (
|
|||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ParamRefApplyConfiguration represents an declarative configuration of the ParamRef type for use
|
// ParamRefApplyConfiguration represents a declarative configuration of the ParamRef type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ParamRefApplyConfiguration struct {
|
type ParamRefApplyConfiguration struct {
|
||||||
Name *string `json:"name,omitempty"`
|
Name *string `json:"name,omitempty"`
|
||||||
@@ -32,7 +32,7 @@ type ParamRefApplyConfiguration struct {
|
|||||||
ParameterNotFoundAction *v1beta1.ParameterNotFoundActionType `json:"parameterNotFoundAction,omitempty"`
|
ParameterNotFoundAction *v1beta1.ParameterNotFoundActionType `json:"parameterNotFoundAction,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ParamRefApplyConfiguration constructs an declarative configuration of the ParamRef type for use with
|
// ParamRefApplyConfiguration constructs a declarative configuration of the ParamRef type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func ParamRef() *ParamRefApplyConfiguration {
|
func ParamRef() *ParamRefApplyConfiguration {
|
||||||
return &ParamRefApplyConfiguration{}
|
return &ParamRefApplyConfiguration{}
|
||||||
|
@@ -18,7 +18,7 @@ limitations under the License.
|
|||||||
|
|
||||||
package v1beta1
|
package v1beta1
|
||||||
|
|
||||||
// ServiceReferenceApplyConfiguration represents an declarative configuration of the ServiceReference type for use
|
// ServiceReferenceApplyConfiguration represents a declarative configuration of the ServiceReference type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ServiceReferenceApplyConfiguration struct {
|
type ServiceReferenceApplyConfiguration struct {
|
||||||
Namespace *string `json:"namespace,omitempty"`
|
Namespace *string `json:"namespace,omitempty"`
|
||||||
@@ -27,7 +27,7 @@ type ServiceReferenceApplyConfiguration struct {
|
|||||||
Port *int32 `json:"port,omitempty"`
|
Port *int32 `json:"port,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ServiceReferenceApplyConfiguration constructs an declarative configuration of the ServiceReference type for use with
|
// ServiceReferenceApplyConfiguration constructs a declarative configuration of the ServiceReference type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func ServiceReference() *ServiceReferenceApplyConfiguration {
|
func ServiceReference() *ServiceReferenceApplyConfiguration {
|
||||||
return &ServiceReferenceApplyConfiguration{}
|
return &ServiceReferenceApplyConfiguration{}
|
||||||
|
@@ -18,13 +18,13 @@ limitations under the License.
|
|||||||
|
|
||||||
package v1beta1
|
package v1beta1
|
||||||
|
|
||||||
// TypeCheckingApplyConfiguration represents an declarative configuration of the TypeChecking type for use
|
// TypeCheckingApplyConfiguration represents a declarative configuration of the TypeChecking type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type TypeCheckingApplyConfiguration struct {
|
type TypeCheckingApplyConfiguration struct {
|
||||||
ExpressionWarnings []ExpressionWarningApplyConfiguration `json:"expressionWarnings,omitempty"`
|
ExpressionWarnings []ExpressionWarningApplyConfiguration `json:"expressionWarnings,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// TypeCheckingApplyConfiguration constructs an declarative configuration of the TypeChecking type for use with
|
// TypeCheckingApplyConfiguration constructs a declarative configuration of the TypeChecking type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func TypeChecking() *TypeCheckingApplyConfiguration {
|
func TypeChecking() *TypeCheckingApplyConfiguration {
|
||||||
return &TypeCheckingApplyConfiguration{}
|
return &TypeCheckingApplyConfiguration{}
|
||||||
|
@@ -27,7 +27,7 @@ import (
|
|||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ValidatingAdmissionPolicyApplyConfiguration represents an declarative configuration of the ValidatingAdmissionPolicy type for use
|
// ValidatingAdmissionPolicyApplyConfiguration represents a declarative configuration of the ValidatingAdmissionPolicy type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ValidatingAdmissionPolicyApplyConfiguration struct {
|
type ValidatingAdmissionPolicyApplyConfiguration struct {
|
||||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||||
@@ -36,7 +36,7 @@ type ValidatingAdmissionPolicyApplyConfiguration struct {
|
|||||||
Status *ValidatingAdmissionPolicyStatusApplyConfiguration `json:"status,omitempty"`
|
Status *ValidatingAdmissionPolicyStatusApplyConfiguration `json:"status,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ValidatingAdmissionPolicy constructs an declarative configuration of the ValidatingAdmissionPolicy type for use with
|
// ValidatingAdmissionPolicy constructs a declarative configuration of the ValidatingAdmissionPolicy type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func ValidatingAdmissionPolicy(name string) *ValidatingAdmissionPolicyApplyConfiguration {
|
func ValidatingAdmissionPolicy(name string) *ValidatingAdmissionPolicyApplyConfiguration {
|
||||||
b := &ValidatingAdmissionPolicyApplyConfiguration{}
|
b := &ValidatingAdmissionPolicyApplyConfiguration{}
|
||||||
@@ -254,3 +254,9 @@ func (b *ValidatingAdmissionPolicyApplyConfiguration) WithStatus(value *Validati
|
|||||||
b.Status = value
|
b.Status = value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetName retrieves the value of the Name field in the declarative configuration.
|
||||||
|
func (b *ValidatingAdmissionPolicyApplyConfiguration) GetName() *string {
|
||||||
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
|
return b.Name
|
||||||
|
}
|
||||||
|
@@ -27,7 +27,7 @@ import (
|
|||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ValidatingAdmissionPolicyBindingApplyConfiguration represents an declarative configuration of the ValidatingAdmissionPolicyBinding type for use
|
// ValidatingAdmissionPolicyBindingApplyConfiguration represents a declarative configuration of the ValidatingAdmissionPolicyBinding type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ValidatingAdmissionPolicyBindingApplyConfiguration struct {
|
type ValidatingAdmissionPolicyBindingApplyConfiguration struct {
|
||||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||||
@@ -35,7 +35,7 @@ type ValidatingAdmissionPolicyBindingApplyConfiguration struct {
|
|||||||
Spec *ValidatingAdmissionPolicyBindingSpecApplyConfiguration `json:"spec,omitempty"`
|
Spec *ValidatingAdmissionPolicyBindingSpecApplyConfiguration `json:"spec,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ValidatingAdmissionPolicyBinding constructs an declarative configuration of the ValidatingAdmissionPolicyBinding type for use with
|
// ValidatingAdmissionPolicyBinding constructs a declarative configuration of the ValidatingAdmissionPolicyBinding type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func ValidatingAdmissionPolicyBinding(name string) *ValidatingAdmissionPolicyBindingApplyConfiguration {
|
func ValidatingAdmissionPolicyBinding(name string) *ValidatingAdmissionPolicyBindingApplyConfiguration {
|
||||||
b := &ValidatingAdmissionPolicyBindingApplyConfiguration{}
|
b := &ValidatingAdmissionPolicyBindingApplyConfiguration{}
|
||||||
@@ -245,3 +245,9 @@ func (b *ValidatingAdmissionPolicyBindingApplyConfiguration) WithSpec(value *Val
|
|||||||
b.Spec = value
|
b.Spec = value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetName retrieves the value of the Name field in the declarative configuration.
|
||||||
|
func (b *ValidatingAdmissionPolicyBindingApplyConfiguration) GetName() *string {
|
||||||
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
|
return b.Name
|
||||||
|
}
|
||||||
|
@@ -22,7 +22,7 @@ import (
|
|||||||
admissionregistrationv1beta1 "k8s.io/api/admissionregistration/v1beta1"
|
admissionregistrationv1beta1 "k8s.io/api/admissionregistration/v1beta1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ValidatingAdmissionPolicyBindingSpecApplyConfiguration represents an declarative configuration of the ValidatingAdmissionPolicyBindingSpec type for use
|
// ValidatingAdmissionPolicyBindingSpecApplyConfiguration represents a declarative configuration of the ValidatingAdmissionPolicyBindingSpec type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ValidatingAdmissionPolicyBindingSpecApplyConfiguration struct {
|
type ValidatingAdmissionPolicyBindingSpecApplyConfiguration struct {
|
||||||
PolicyName *string `json:"policyName,omitempty"`
|
PolicyName *string `json:"policyName,omitempty"`
|
||||||
@@ -31,7 +31,7 @@ type ValidatingAdmissionPolicyBindingSpecApplyConfiguration struct {
|
|||||||
ValidationActions []admissionregistrationv1beta1.ValidationAction `json:"validationActions,omitempty"`
|
ValidationActions []admissionregistrationv1beta1.ValidationAction `json:"validationActions,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ValidatingAdmissionPolicyBindingSpecApplyConfiguration constructs an declarative configuration of the ValidatingAdmissionPolicyBindingSpec type for use with
|
// ValidatingAdmissionPolicyBindingSpecApplyConfiguration constructs a declarative configuration of the ValidatingAdmissionPolicyBindingSpec type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func ValidatingAdmissionPolicyBindingSpec() *ValidatingAdmissionPolicyBindingSpecApplyConfiguration {
|
func ValidatingAdmissionPolicyBindingSpec() *ValidatingAdmissionPolicyBindingSpecApplyConfiguration {
|
||||||
return &ValidatingAdmissionPolicyBindingSpecApplyConfiguration{}
|
return &ValidatingAdmissionPolicyBindingSpecApplyConfiguration{}
|
||||||
|
@@ -22,7 +22,7 @@ import (
|
|||||||
admissionregistrationv1beta1 "k8s.io/api/admissionregistration/v1beta1"
|
admissionregistrationv1beta1 "k8s.io/api/admissionregistration/v1beta1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ValidatingAdmissionPolicySpecApplyConfiguration represents an declarative configuration of the ValidatingAdmissionPolicySpec type for use
|
// ValidatingAdmissionPolicySpecApplyConfiguration represents a declarative configuration of the ValidatingAdmissionPolicySpec type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ValidatingAdmissionPolicySpecApplyConfiguration struct {
|
type ValidatingAdmissionPolicySpecApplyConfiguration struct {
|
||||||
ParamKind *ParamKindApplyConfiguration `json:"paramKind,omitempty"`
|
ParamKind *ParamKindApplyConfiguration `json:"paramKind,omitempty"`
|
||||||
@@ -34,7 +34,7 @@ type ValidatingAdmissionPolicySpecApplyConfiguration struct {
|
|||||||
Variables []VariableApplyConfiguration `json:"variables,omitempty"`
|
Variables []VariableApplyConfiguration `json:"variables,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ValidatingAdmissionPolicySpecApplyConfiguration constructs an declarative configuration of the ValidatingAdmissionPolicySpec type for use with
|
// ValidatingAdmissionPolicySpecApplyConfiguration constructs a declarative configuration of the ValidatingAdmissionPolicySpec type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func ValidatingAdmissionPolicySpec() *ValidatingAdmissionPolicySpecApplyConfiguration {
|
func ValidatingAdmissionPolicySpec() *ValidatingAdmissionPolicySpecApplyConfiguration {
|
||||||
return &ValidatingAdmissionPolicySpecApplyConfiguration{}
|
return &ValidatingAdmissionPolicySpecApplyConfiguration{}
|
||||||
|
@@ -22,7 +22,7 @@ import (
|
|||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ValidatingAdmissionPolicyStatusApplyConfiguration represents an declarative configuration of the ValidatingAdmissionPolicyStatus type for use
|
// ValidatingAdmissionPolicyStatusApplyConfiguration represents a declarative configuration of the ValidatingAdmissionPolicyStatus type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ValidatingAdmissionPolicyStatusApplyConfiguration struct {
|
type ValidatingAdmissionPolicyStatusApplyConfiguration struct {
|
||||||
ObservedGeneration *int64 `json:"observedGeneration,omitempty"`
|
ObservedGeneration *int64 `json:"observedGeneration,omitempty"`
|
||||||
@@ -30,7 +30,7 @@ type ValidatingAdmissionPolicyStatusApplyConfiguration struct {
|
|||||||
Conditions []v1.ConditionApplyConfiguration `json:"conditions,omitempty"`
|
Conditions []v1.ConditionApplyConfiguration `json:"conditions,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ValidatingAdmissionPolicyStatusApplyConfiguration constructs an declarative configuration of the ValidatingAdmissionPolicyStatus type for use with
|
// ValidatingAdmissionPolicyStatusApplyConfiguration constructs a declarative configuration of the ValidatingAdmissionPolicyStatus type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func ValidatingAdmissionPolicyStatus() *ValidatingAdmissionPolicyStatusApplyConfiguration {
|
func ValidatingAdmissionPolicyStatus() *ValidatingAdmissionPolicyStatusApplyConfiguration {
|
||||||
return &ValidatingAdmissionPolicyStatusApplyConfiguration{}
|
return &ValidatingAdmissionPolicyStatusApplyConfiguration{}
|
||||||
|
@@ -24,7 +24,7 @@ import (
|
|||||||
metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ValidatingWebhookApplyConfiguration represents an declarative configuration of the ValidatingWebhook type for use
|
// ValidatingWebhookApplyConfiguration represents a declarative configuration of the ValidatingWebhook type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ValidatingWebhookApplyConfiguration struct {
|
type ValidatingWebhookApplyConfiguration struct {
|
||||||
Name *string `json:"name,omitempty"`
|
Name *string `json:"name,omitempty"`
|
||||||
@@ -40,7 +40,7 @@ type ValidatingWebhookApplyConfiguration struct {
|
|||||||
MatchConditions []MatchConditionApplyConfiguration `json:"matchConditions,omitempty"`
|
MatchConditions []MatchConditionApplyConfiguration `json:"matchConditions,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ValidatingWebhookApplyConfiguration constructs an declarative configuration of the ValidatingWebhook type for use with
|
// ValidatingWebhookApplyConfiguration constructs a declarative configuration of the ValidatingWebhook type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func ValidatingWebhook() *ValidatingWebhookApplyConfiguration {
|
func ValidatingWebhook() *ValidatingWebhookApplyConfiguration {
|
||||||
return &ValidatingWebhookApplyConfiguration{}
|
return &ValidatingWebhookApplyConfiguration{}
|
||||||
|
@@ -27,7 +27,7 @@ import (
|
|||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ValidatingWebhookConfigurationApplyConfiguration represents an declarative configuration of the ValidatingWebhookConfiguration type for use
|
// ValidatingWebhookConfigurationApplyConfiguration represents a declarative configuration of the ValidatingWebhookConfiguration type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ValidatingWebhookConfigurationApplyConfiguration struct {
|
type ValidatingWebhookConfigurationApplyConfiguration struct {
|
||||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||||
@@ -35,7 +35,7 @@ type ValidatingWebhookConfigurationApplyConfiguration struct {
|
|||||||
Webhooks []ValidatingWebhookApplyConfiguration `json:"webhooks,omitempty"`
|
Webhooks []ValidatingWebhookApplyConfiguration `json:"webhooks,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ValidatingWebhookConfiguration constructs an declarative configuration of the ValidatingWebhookConfiguration type for use with
|
// ValidatingWebhookConfiguration constructs a declarative configuration of the ValidatingWebhookConfiguration type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func ValidatingWebhookConfiguration(name string) *ValidatingWebhookConfigurationApplyConfiguration {
|
func ValidatingWebhookConfiguration(name string) *ValidatingWebhookConfigurationApplyConfiguration {
|
||||||
b := &ValidatingWebhookConfigurationApplyConfiguration{}
|
b := &ValidatingWebhookConfigurationApplyConfiguration{}
|
||||||
@@ -250,3 +250,9 @@ func (b *ValidatingWebhookConfigurationApplyConfiguration) WithWebhooks(values .
|
|||||||
}
|
}
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetName retrieves the value of the Name field in the declarative configuration.
|
||||||
|
func (b *ValidatingWebhookConfigurationApplyConfiguration) GetName() *string {
|
||||||
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
|
return b.Name
|
||||||
|
}
|
||||||
|
@@ -22,7 +22,7 @@ import (
|
|||||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ValidationApplyConfiguration represents an declarative configuration of the Validation type for use
|
// ValidationApplyConfiguration represents a declarative configuration of the Validation type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ValidationApplyConfiguration struct {
|
type ValidationApplyConfiguration struct {
|
||||||
Expression *string `json:"expression,omitempty"`
|
Expression *string `json:"expression,omitempty"`
|
||||||
@@ -31,7 +31,7 @@ type ValidationApplyConfiguration struct {
|
|||||||
MessageExpression *string `json:"messageExpression,omitempty"`
|
MessageExpression *string `json:"messageExpression,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ValidationApplyConfiguration constructs an declarative configuration of the Validation type for use with
|
// ValidationApplyConfiguration constructs a declarative configuration of the Validation type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func Validation() *ValidationApplyConfiguration {
|
func Validation() *ValidationApplyConfiguration {
|
||||||
return &ValidationApplyConfiguration{}
|
return &ValidationApplyConfiguration{}
|
||||||
|
@@ -18,14 +18,14 @@ limitations under the License.
|
|||||||
|
|
||||||
package v1beta1
|
package v1beta1
|
||||||
|
|
||||||
// VariableApplyConfiguration represents an declarative configuration of the Variable type for use
|
// VariableApplyConfiguration represents a declarative configuration of the Variable type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type VariableApplyConfiguration struct {
|
type VariableApplyConfiguration struct {
|
||||||
Name *string `json:"name,omitempty"`
|
Name *string `json:"name,omitempty"`
|
||||||
Expression *string `json:"expression,omitempty"`
|
Expression *string `json:"expression,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// VariableApplyConfiguration constructs an declarative configuration of the Variable type for use with
|
// VariableApplyConfiguration constructs a declarative configuration of the Variable type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func Variable() *VariableApplyConfiguration {
|
func Variable() *VariableApplyConfiguration {
|
||||||
return &VariableApplyConfiguration{}
|
return &VariableApplyConfiguration{}
|
||||||
|
@@ -18,7 +18,7 @@ limitations under the License.
|
|||||||
|
|
||||||
package v1beta1
|
package v1beta1
|
||||||
|
|
||||||
// WebhookClientConfigApplyConfiguration represents an declarative configuration of the WebhookClientConfig type for use
|
// WebhookClientConfigApplyConfiguration represents a declarative configuration of the WebhookClientConfig type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type WebhookClientConfigApplyConfiguration struct {
|
type WebhookClientConfigApplyConfiguration struct {
|
||||||
URL *string `json:"url,omitempty"`
|
URL *string `json:"url,omitempty"`
|
||||||
@@ -26,7 +26,7 @@ type WebhookClientConfigApplyConfiguration struct {
|
|||||||
CABundle []byte `json:"caBundle,omitempty"`
|
CABundle []byte `json:"caBundle,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// WebhookClientConfigApplyConfiguration constructs an declarative configuration of the WebhookClientConfig type for use with
|
// WebhookClientConfigApplyConfiguration constructs a declarative configuration of the WebhookClientConfig type for use with
|
||||||
// apply.
|
// apply.
|
||||||
func WebhookClientConfig() *WebhookClientConfigApplyConfiguration {
|
func WebhookClientConfig() *WebhookClientConfigApplyConfiguration {
|
||||||
return &WebhookClientConfigApplyConfiguration{}
|
return &WebhookClientConfigApplyConfiguration{}
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user