update dependencies (#6267)
Signed-off-by: hongming <coder.scala@gmail.com>
(cherry picked from commit cfebd96a1f)
This commit is contained in:
@@ -18,7 +18,7 @@ limitations under the License.
|
||||
|
||||
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.
|
||||
type CustomResourceColumnDefinitionApplyConfiguration struct {
|
||||
Name *string `json:"name,omitempty"`
|
||||
@@ -29,7 +29,7 @@ type CustomResourceColumnDefinitionApplyConfiguration struct {
|
||||
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.
|
||||
func CustomResourceColumnDefinition() *CustomResourceColumnDefinitionApplyConfiguration {
|
||||
return &CustomResourceColumnDefinitionApplyConfiguration{}
|
||||
|
||||
@@ -22,14 +22,14 @@ import (
|
||||
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.
|
||||
type CustomResourceConversionApplyConfiguration struct {
|
||||
Strategy *v1.ConversionStrategyType `json:"strategy,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.
|
||||
func CustomResourceConversion() *CustomResourceConversionApplyConfiguration {
|
||||
return &CustomResourceConversionApplyConfiguration{}
|
||||
|
||||
@@ -24,7 +24,7 @@ import (
|
||||
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.
|
||||
type CustomResourceDefinitionApplyConfiguration struct {
|
||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
@@ -33,7 +33,7 @@ type CustomResourceDefinitionApplyConfiguration struct {
|
||||
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.
|
||||
func CustomResourceDefinition(name string) *CustomResourceDefinitionApplyConfiguration {
|
||||
b := &CustomResourceDefinitionApplyConfiguration{}
|
||||
@@ -216,3 +216,9 @@ func (b *CustomResourceDefinitionApplyConfiguration) WithStatus(value *CustomRes
|
||||
b.Status = value
|
||||
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"
|
||||
)
|
||||
|
||||
// CustomResourceDefinitionConditionApplyConfiguration represents an declarative configuration of the CustomResourceDefinitionCondition type for use
|
||||
// CustomResourceDefinitionConditionApplyConfiguration represents a declarative configuration of the CustomResourceDefinitionCondition type for use
|
||||
// with apply.
|
||||
type CustomResourceDefinitionConditionApplyConfiguration struct {
|
||||
Type *v1.CustomResourceDefinitionConditionType `json:"type,omitempty"`
|
||||
@@ -33,7 +33,7 @@ type CustomResourceDefinitionConditionApplyConfiguration struct {
|
||||
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.
|
||||
func CustomResourceDefinitionCondition() *CustomResourceDefinitionConditionApplyConfiguration {
|
||||
return &CustomResourceDefinitionConditionApplyConfiguration{}
|
||||
|
||||
@@ -18,7 +18,7 @@ limitations under the License.
|
||||
|
||||
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.
|
||||
type CustomResourceDefinitionNamesApplyConfiguration struct {
|
||||
Plural *string `json:"plural,omitempty"`
|
||||
@@ -29,7 +29,7 @@ type CustomResourceDefinitionNamesApplyConfiguration struct {
|
||||
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.
|
||||
func CustomResourceDefinitionNames() *CustomResourceDefinitionNamesApplyConfiguration {
|
||||
return &CustomResourceDefinitionNamesApplyConfiguration{}
|
||||
|
||||
@@ -22,7 +22,7 @@ import (
|
||||
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.
|
||||
type CustomResourceDefinitionSpecApplyConfiguration struct {
|
||||
Group *string `json:"group,omitempty"`
|
||||
@@ -33,7 +33,7 @@ type CustomResourceDefinitionSpecApplyConfiguration struct {
|
||||
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.
|
||||
func CustomResourceDefinitionSpec() *CustomResourceDefinitionSpecApplyConfiguration {
|
||||
return &CustomResourceDefinitionSpecApplyConfiguration{}
|
||||
|
||||
@@ -18,7 +18,7 @@ limitations under the License.
|
||||
|
||||
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.
|
||||
type CustomResourceDefinitionStatusApplyConfiguration struct {
|
||||
Conditions []CustomResourceDefinitionConditionApplyConfiguration `json:"conditions,omitempty"`
|
||||
@@ -26,7 +26,7 @@ type CustomResourceDefinitionStatusApplyConfiguration struct {
|
||||
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.
|
||||
func CustomResourceDefinitionStatus() *CustomResourceDefinitionStatusApplyConfiguration {
|
||||
return &CustomResourceDefinitionStatusApplyConfiguration{}
|
||||
|
||||
@@ -18,7 +18,7 @@ limitations under the License.
|
||||
|
||||
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.
|
||||
type CustomResourceDefinitionVersionApplyConfiguration struct {
|
||||
Name *string `json:"name,omitempty"`
|
||||
@@ -29,9 +29,10 @@ type CustomResourceDefinitionVersionApplyConfiguration struct {
|
||||
Schema *CustomResourceValidationApplyConfiguration `json:"schema,omitempty"`
|
||||
Subresources *CustomResourceSubresourcesApplyConfiguration `json:"subresources,omitempty"`
|
||||
AdditionalPrinterColumns []CustomResourceColumnDefinitionApplyConfiguration `json:"additionalPrinterColumns,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.
|
||||
func CustomResourceDefinitionVersion() *CustomResourceDefinitionVersionApplyConfiguration {
|
||||
return &CustomResourceDefinitionVersionApplyConfiguration{}
|
||||
@@ -105,3 +106,16 @@ func (b *CustomResourceDefinitionVersionApplyConfiguration) WithAdditionalPrinte
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
// WithSelectableFields adds the given value to the SelectableFields field in the declarative configuration
|
||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
||||
// If called multiple times, values provided by each call will be appended to the SelectableFields field.
|
||||
func (b *CustomResourceDefinitionVersionApplyConfiguration) WithSelectableFields(values ...*SelectableFieldApplyConfiguration) *CustomResourceDefinitionVersionApplyConfiguration {
|
||||
for i := range values {
|
||||
if values[i] == nil {
|
||||
panic("nil value passed to WithSelectableFields")
|
||||
}
|
||||
b.SelectableFields = append(b.SelectableFields, *values[i])
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -22,14 +22,14 @@ import (
|
||||
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.
|
||||
type CustomResourceSubresourcesApplyConfiguration struct {
|
||||
Status *v1.CustomResourceSubresourceStatus `json:"status,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.
|
||||
func CustomResourceSubresources() *CustomResourceSubresourcesApplyConfiguration {
|
||||
return &CustomResourceSubresourcesApplyConfiguration{}
|
||||
|
||||
@@ -18,7 +18,7 @@ limitations under the License.
|
||||
|
||||
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.
|
||||
type CustomResourceSubresourceScaleApplyConfiguration struct {
|
||||
SpecReplicasPath *string `json:"specReplicasPath,omitempty"`
|
||||
@@ -26,7 +26,7 @@ type CustomResourceSubresourceScaleApplyConfiguration struct {
|
||||
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.
|
||||
func CustomResourceSubresourceScale() *CustomResourceSubresourceScaleApplyConfiguration {
|
||||
return &CustomResourceSubresourceScaleApplyConfiguration{}
|
||||
|
||||
@@ -18,13 +18,13 @@ limitations under the License.
|
||||
|
||||
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.
|
||||
type CustomResourceValidationApplyConfiguration struct {
|
||||
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.
|
||||
func CustomResourceValidation() *CustomResourceValidationApplyConfiguration {
|
||||
return &CustomResourceValidationApplyConfiguration{}
|
||||
|
||||
@@ -18,14 +18,14 @@ limitations under the License.
|
||||
|
||||
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.
|
||||
type ExternalDocumentationApplyConfiguration struct {
|
||||
Description *string `json:"description,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.
|
||||
func ExternalDocumentation() *ExternalDocumentationApplyConfiguration {
|
||||
return &ExternalDocumentationApplyConfiguration{}
|
||||
|
||||
@@ -22,7 +22,7 @@ import (
|
||||
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.
|
||||
type JSONSchemaPropsApplyConfiguration struct {
|
||||
ID *string `json:"id,omitempty"`
|
||||
@@ -71,7 +71,7 @@ type JSONSchemaPropsApplyConfiguration struct {
|
||||
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.
|
||||
func JSONSchemaProps() *JSONSchemaPropsApplyConfiguration {
|
||||
return &JSONSchemaPropsApplyConfiguration{}
|
||||
|
||||
39
vendor/k8s.io/apiextensions-apiserver/pkg/client/applyconfiguration/apiextensions/v1/selectablefield.go
generated
vendored
Normal file
39
vendor/k8s.io/apiextensions-apiserver/pkg/client/applyconfiguration/apiextensions/v1/selectablefield.go
generated
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
Copyright The Kubernetes Authors.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
// Code generated by applyconfiguration-gen. DO NOT EDIT.
|
||||
|
||||
package v1
|
||||
|
||||
// SelectableFieldApplyConfiguration represents a declarative configuration of the SelectableField type for use
|
||||
// with apply.
|
||||
type SelectableFieldApplyConfiguration struct {
|
||||
JSONPath *string `json:"jsonPath,omitempty"`
|
||||
}
|
||||
|
||||
// SelectableFieldApplyConfiguration constructs a declarative configuration of the SelectableField type for use with
|
||||
// apply.
|
||||
func SelectableField() *SelectableFieldApplyConfiguration {
|
||||
return &SelectableFieldApplyConfiguration{}
|
||||
}
|
||||
|
||||
// WithJSONPath sets the JSONPath field in the declarative configuration to the given value
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the JSONPath field is set to the value of the last call.
|
||||
func (b *SelectableFieldApplyConfiguration) WithJSONPath(value string) *SelectableFieldApplyConfiguration {
|
||||
b.JSONPath = &value
|
||||
return b
|
||||
}
|
||||
@@ -18,7 +18,7 @@ limitations under the License.
|
||||
|
||||
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.
|
||||
type ServiceReferenceApplyConfiguration struct {
|
||||
Namespace *string `json:"namespace,omitempty"`
|
||||
@@ -27,7 +27,7 @@ type ServiceReferenceApplyConfiguration struct {
|
||||
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.
|
||||
func ServiceReference() *ServiceReferenceApplyConfiguration {
|
||||
return &ServiceReferenceApplyConfiguration{}
|
||||
|
||||
@@ -22,7 +22,7 @@ import (
|
||||
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.
|
||||
type ValidationRuleApplyConfiguration struct {
|
||||
Rule *string `json:"rule,omitempty"`
|
||||
@@ -33,7 +33,7 @@ type ValidationRuleApplyConfiguration struct {
|
||||
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.
|
||||
func ValidationRule() *ValidationRuleApplyConfiguration {
|
||||
return &ValidationRuleApplyConfiguration{}
|
||||
|
||||
@@ -18,7 +18,7 @@ limitations under the License.
|
||||
|
||||
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.
|
||||
type WebhookClientConfigApplyConfiguration struct {
|
||||
URL *string `json:"url,omitempty"`
|
||||
@@ -26,7 +26,7 @@ type WebhookClientConfigApplyConfiguration struct {
|
||||
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.
|
||||
func WebhookClientConfig() *WebhookClientConfigApplyConfiguration {
|
||||
return &WebhookClientConfigApplyConfiguration{}
|
||||
|
||||
@@ -18,14 +18,14 @@ limitations under the License.
|
||||
|
||||
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.
|
||||
type WebhookConversionApplyConfiguration struct {
|
||||
ClientConfig *WebhookClientConfigApplyConfiguration `json:"clientConfig,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.
|
||||
func WebhookConversion() *WebhookConversionApplyConfiguration {
|
||||
return &WebhookConversionApplyConfiguration{}
|
||||
|
||||
@@ -18,7 +18,7 @@ limitations under the License.
|
||||
|
||||
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.
|
||||
type CustomResourceColumnDefinitionApplyConfiguration struct {
|
||||
Name *string `json:"name,omitempty"`
|
||||
@@ -29,7 +29,7 @@ type CustomResourceColumnDefinitionApplyConfiguration struct {
|
||||
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.
|
||||
func CustomResourceColumnDefinition() *CustomResourceColumnDefinitionApplyConfiguration {
|
||||
return &CustomResourceColumnDefinitionApplyConfiguration{}
|
||||
|
||||
@@ -22,7 +22,7 @@ import (
|
||||
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.
|
||||
type CustomResourceConversionApplyConfiguration struct {
|
||||
Strategy *v1beta1.ConversionStrategyType `json:"strategy,omitempty"`
|
||||
@@ -30,7 +30,7 @@ type CustomResourceConversionApplyConfiguration struct {
|
||||
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.
|
||||
func CustomResourceConversion() *CustomResourceConversionApplyConfiguration {
|
||||
return &CustomResourceConversionApplyConfiguration{}
|
||||
|
||||
@@ -24,7 +24,7 @@ import (
|
||||
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.
|
||||
type CustomResourceDefinitionApplyConfiguration struct {
|
||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||
@@ -33,7 +33,7 @@ type CustomResourceDefinitionApplyConfiguration struct {
|
||||
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.
|
||||
func CustomResourceDefinition(name string) *CustomResourceDefinitionApplyConfiguration {
|
||||
b := &CustomResourceDefinitionApplyConfiguration{}
|
||||
@@ -216,3 +216,9 @@ func (b *CustomResourceDefinitionApplyConfiguration) WithStatus(value *CustomRes
|
||||
b.Status = value
|
||||
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"
|
||||
)
|
||||
|
||||
// CustomResourceDefinitionConditionApplyConfiguration represents an declarative configuration of the CustomResourceDefinitionCondition type for use
|
||||
// CustomResourceDefinitionConditionApplyConfiguration represents a declarative configuration of the CustomResourceDefinitionCondition type for use
|
||||
// with apply.
|
||||
type CustomResourceDefinitionConditionApplyConfiguration struct {
|
||||
Type *v1beta1.CustomResourceDefinitionConditionType `json:"type,omitempty"`
|
||||
@@ -33,7 +33,7 @@ type CustomResourceDefinitionConditionApplyConfiguration struct {
|
||||
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.
|
||||
func CustomResourceDefinitionCondition() *CustomResourceDefinitionConditionApplyConfiguration {
|
||||
return &CustomResourceDefinitionConditionApplyConfiguration{}
|
||||
|
||||
@@ -18,7 +18,7 @@ limitations under the License.
|
||||
|
||||
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.
|
||||
type CustomResourceDefinitionNamesApplyConfiguration struct {
|
||||
Plural *string `json:"plural,omitempty"`
|
||||
@@ -29,7 +29,7 @@ type CustomResourceDefinitionNamesApplyConfiguration struct {
|
||||
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.
|
||||
func CustomResourceDefinitionNames() *CustomResourceDefinitionNamesApplyConfiguration {
|
||||
return &CustomResourceDefinitionNamesApplyConfiguration{}
|
||||
|
||||
@@ -22,7 +22,7 @@ import (
|
||||
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.
|
||||
type CustomResourceDefinitionSpecApplyConfiguration struct {
|
||||
Group *string `json:"group,omitempty"`
|
||||
@@ -33,11 +33,12 @@ type CustomResourceDefinitionSpecApplyConfiguration struct {
|
||||
Subresources *CustomResourceSubresourcesApplyConfiguration `json:"subresources,omitempty"`
|
||||
Versions []CustomResourceDefinitionVersionApplyConfiguration `json:"versions,omitempty"`
|
||||
AdditionalPrinterColumns []CustomResourceColumnDefinitionApplyConfiguration `json:"additionalPrinterColumns,omitempty"`
|
||||
SelectableFields []SelectableFieldApplyConfiguration `json:"selectableFields,omitempty"`
|
||||
Conversion *CustomResourceConversionApplyConfiguration `json:"conversion,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.
|
||||
func CustomResourceDefinitionSpec() *CustomResourceDefinitionSpecApplyConfiguration {
|
||||
return &CustomResourceDefinitionSpecApplyConfiguration{}
|
||||
@@ -117,6 +118,19 @@ func (b *CustomResourceDefinitionSpecApplyConfiguration) WithAdditionalPrinterCo
|
||||
return b
|
||||
}
|
||||
|
||||
// WithSelectableFields adds the given value to the SelectableFields field in the declarative configuration
|
||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
||||
// If called multiple times, values provided by each call will be appended to the SelectableFields field.
|
||||
func (b *CustomResourceDefinitionSpecApplyConfiguration) WithSelectableFields(values ...*SelectableFieldApplyConfiguration) *CustomResourceDefinitionSpecApplyConfiguration {
|
||||
for i := range values {
|
||||
if values[i] == nil {
|
||||
panic("nil value passed to WithSelectableFields")
|
||||
}
|
||||
b.SelectableFields = append(b.SelectableFields, *values[i])
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
// WithConversion sets the Conversion field in the declarative configuration to the given value
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the Conversion field is set to the value of the last call.
|
||||
|
||||
@@ -18,7 +18,7 @@ limitations under the License.
|
||||
|
||||
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.
|
||||
type CustomResourceDefinitionStatusApplyConfiguration struct {
|
||||
Conditions []CustomResourceDefinitionConditionApplyConfiguration `json:"conditions,omitempty"`
|
||||
@@ -26,7 +26,7 @@ type CustomResourceDefinitionStatusApplyConfiguration struct {
|
||||
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.
|
||||
func CustomResourceDefinitionStatus() *CustomResourceDefinitionStatusApplyConfiguration {
|
||||
return &CustomResourceDefinitionStatusApplyConfiguration{}
|
||||
|
||||
@@ -18,7 +18,7 @@ limitations under the License.
|
||||
|
||||
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.
|
||||
type CustomResourceDefinitionVersionApplyConfiguration struct {
|
||||
Name *string `json:"name,omitempty"`
|
||||
@@ -29,9 +29,10 @@ type CustomResourceDefinitionVersionApplyConfiguration struct {
|
||||
Schema *CustomResourceValidationApplyConfiguration `json:"schema,omitempty"`
|
||||
Subresources *CustomResourceSubresourcesApplyConfiguration `json:"subresources,omitempty"`
|
||||
AdditionalPrinterColumns []CustomResourceColumnDefinitionApplyConfiguration `json:"additionalPrinterColumns,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.
|
||||
func CustomResourceDefinitionVersion() *CustomResourceDefinitionVersionApplyConfiguration {
|
||||
return &CustomResourceDefinitionVersionApplyConfiguration{}
|
||||
@@ -105,3 +106,16 @@ func (b *CustomResourceDefinitionVersionApplyConfiguration) WithAdditionalPrinte
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
// WithSelectableFields adds the given value to the SelectableFields field in the declarative configuration
|
||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
||||
// If called multiple times, values provided by each call will be appended to the SelectableFields field.
|
||||
func (b *CustomResourceDefinitionVersionApplyConfiguration) WithSelectableFields(values ...*SelectableFieldApplyConfiguration) *CustomResourceDefinitionVersionApplyConfiguration {
|
||||
for i := range values {
|
||||
if values[i] == nil {
|
||||
panic("nil value passed to WithSelectableFields")
|
||||
}
|
||||
b.SelectableFields = append(b.SelectableFields, *values[i])
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -22,14 +22,14 @@ import (
|
||||
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.
|
||||
type CustomResourceSubresourcesApplyConfiguration struct {
|
||||
Status *v1beta1.CustomResourceSubresourceStatus `json:"status,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.
|
||||
func CustomResourceSubresources() *CustomResourceSubresourcesApplyConfiguration {
|
||||
return &CustomResourceSubresourcesApplyConfiguration{}
|
||||
|
||||
@@ -18,7 +18,7 @@ limitations under the License.
|
||||
|
||||
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.
|
||||
type CustomResourceSubresourceScaleApplyConfiguration struct {
|
||||
SpecReplicasPath *string `json:"specReplicasPath,omitempty"`
|
||||
@@ -26,7 +26,7 @@ type CustomResourceSubresourceScaleApplyConfiguration struct {
|
||||
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.
|
||||
func CustomResourceSubresourceScale() *CustomResourceSubresourceScaleApplyConfiguration {
|
||||
return &CustomResourceSubresourceScaleApplyConfiguration{}
|
||||
|
||||
@@ -18,13 +18,13 @@ limitations under the License.
|
||||
|
||||
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.
|
||||
type CustomResourceValidationApplyConfiguration struct {
|
||||
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.
|
||||
func CustomResourceValidation() *CustomResourceValidationApplyConfiguration {
|
||||
return &CustomResourceValidationApplyConfiguration{}
|
||||
|
||||
@@ -18,14 +18,14 @@ limitations under the License.
|
||||
|
||||
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.
|
||||
type ExternalDocumentationApplyConfiguration struct {
|
||||
Description *string `json:"description,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.
|
||||
func ExternalDocumentation() *ExternalDocumentationApplyConfiguration {
|
||||
return &ExternalDocumentationApplyConfiguration{}
|
||||
|
||||
@@ -22,7 +22,7 @@ import (
|
||||
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.
|
||||
type JSONSchemaPropsApplyConfiguration struct {
|
||||
ID *string `json:"id,omitempty"`
|
||||
@@ -71,7 +71,7 @@ type JSONSchemaPropsApplyConfiguration struct {
|
||||
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.
|
||||
func JSONSchemaProps() *JSONSchemaPropsApplyConfiguration {
|
||||
return &JSONSchemaPropsApplyConfiguration{}
|
||||
|
||||
39
vendor/k8s.io/apiextensions-apiserver/pkg/client/applyconfiguration/apiextensions/v1beta1/selectablefield.go
generated
vendored
Normal file
39
vendor/k8s.io/apiextensions-apiserver/pkg/client/applyconfiguration/apiextensions/v1beta1/selectablefield.go
generated
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
Copyright The Kubernetes Authors.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
// Code generated by applyconfiguration-gen. DO NOT EDIT.
|
||||
|
||||
package v1beta1
|
||||
|
||||
// SelectableFieldApplyConfiguration represents a declarative configuration of the SelectableField type for use
|
||||
// with apply.
|
||||
type SelectableFieldApplyConfiguration struct {
|
||||
JSONPath *string `json:"jsonPath,omitempty"`
|
||||
}
|
||||
|
||||
// SelectableFieldApplyConfiguration constructs a declarative configuration of the SelectableField type for use with
|
||||
// apply.
|
||||
func SelectableField() *SelectableFieldApplyConfiguration {
|
||||
return &SelectableFieldApplyConfiguration{}
|
||||
}
|
||||
|
||||
// WithJSONPath sets the JSONPath field in the declarative configuration to the given value
|
||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||
// If called multiple times, the JSONPath field is set to the value of the last call.
|
||||
func (b *SelectableFieldApplyConfiguration) WithJSONPath(value string) *SelectableFieldApplyConfiguration {
|
||||
b.JSONPath = &value
|
||||
return b
|
||||
}
|
||||
@@ -18,7 +18,7 @@ limitations under the License.
|
||||
|
||||
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.
|
||||
type ServiceReferenceApplyConfiguration struct {
|
||||
Namespace *string `json:"namespace,omitempty"`
|
||||
@@ -27,7 +27,7 @@ type ServiceReferenceApplyConfiguration struct {
|
||||
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.
|
||||
func ServiceReference() *ServiceReferenceApplyConfiguration {
|
||||
return &ServiceReferenceApplyConfiguration{}
|
||||
|
||||
@@ -22,7 +22,7 @@ import (
|
||||
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.
|
||||
type ValidationRuleApplyConfiguration struct {
|
||||
Rule *string `json:"rule,omitempty"`
|
||||
@@ -33,7 +33,7 @@ type ValidationRuleApplyConfiguration struct {
|
||||
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.
|
||||
func ValidationRule() *ValidationRuleApplyConfiguration {
|
||||
return &ValidationRuleApplyConfiguration{}
|
||||
|
||||
@@ -18,7 +18,7 @@ limitations under the License.
|
||||
|
||||
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.
|
||||
type WebhookClientConfigApplyConfiguration struct {
|
||||
URL *string `json:"url,omitempty"`
|
||||
@@ -26,7 +26,7 @@ type WebhookClientConfigApplyConfiguration struct {
|
||||
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.
|
||||
func WebhookClientConfig() *WebhookClientConfigApplyConfiguration {
|
||||
return &WebhookClientConfigApplyConfiguration{}
|
||||
|
||||
@@ -20,9 +20,6 @@ package v1
|
||||
|
||||
import (
|
||||
"context"
|
||||
json "encoding/json"
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
v1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
|
||||
apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/client/applyconfiguration/apiextensions/v1"
|
||||
@@ -30,7 +27,7 @@ import (
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
rest "k8s.io/client-go/rest"
|
||||
gentype "k8s.io/client-go/gentype"
|
||||
)
|
||||
|
||||
// CustomResourceDefinitionsGetter has a method to return a CustomResourceDefinitionInterface.
|
||||
@@ -43,6 +40,7 @@ type CustomResourceDefinitionsGetter interface {
|
||||
type CustomResourceDefinitionInterface interface {
|
||||
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)
|
||||
// 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)
|
||||
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
|
||||
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
|
||||
@@ -51,193 +49,25 @@ type CustomResourceDefinitionInterface interface {
|
||||
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)
|
||||
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)
|
||||
CustomResourceDefinitionExpansion
|
||||
}
|
||||
|
||||
// customResourceDefinitions implements CustomResourceDefinitionInterface
|
||||
type customResourceDefinitions struct {
|
||||
client rest.Interface
|
||||
*gentype.ClientWithListAndApply[*v1.CustomResourceDefinition, *v1.CustomResourceDefinitionList, *apiextensionsv1.CustomResourceDefinitionApplyConfiguration]
|
||||
}
|
||||
|
||||
// newCustomResourceDefinitions returns a CustomResourceDefinitions
|
||||
func newCustomResourceDefinitions(c *ApiextensionsV1Client) *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) (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
|
||||
}
|
||||
|
||||
// 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 (
|
||||
"context"
|
||||
json "encoding/json"
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
v1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1"
|
||||
apiextensionsv1beta1 "k8s.io/apiextensions-apiserver/pkg/client/applyconfiguration/apiextensions/v1beta1"
|
||||
@@ -30,7 +27,7 @@ import (
|
||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
types "k8s.io/apimachinery/pkg/types"
|
||||
watch "k8s.io/apimachinery/pkg/watch"
|
||||
rest "k8s.io/client-go/rest"
|
||||
gentype "k8s.io/client-go/gentype"
|
||||
)
|
||||
|
||||
// CustomResourceDefinitionsGetter has a method to return a CustomResourceDefinitionInterface.
|
||||
@@ -43,6 +40,7 @@ type CustomResourceDefinitionsGetter interface {
|
||||
type CustomResourceDefinitionInterface interface {
|
||||
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)
|
||||
// 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)
|
||||
Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
|
||||
DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
|
||||
@@ -51,193 +49,25 @@ type CustomResourceDefinitionInterface interface {
|
||||
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)
|
||||
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)
|
||||
CustomResourceDefinitionExpansion
|
||||
}
|
||||
|
||||
// customResourceDefinitions implements CustomResourceDefinitionInterface
|
||||
type customResourceDefinitions struct {
|
||||
client rest.Interface
|
||||
*gentype.ClientWithListAndApply[*v1beta1.CustomResourceDefinition, *v1beta1.CustomResourceDefinitionList, *apiextensionsv1beta1.CustomResourceDefinitionApplyConfiguration]
|
||||
}
|
||||
|
||||
// newCustomResourceDefinitions returns a CustomResourceDefinitions
|
||||
func newCustomResourceDefinitions(c *ApiextensionsV1beta1Client) *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) (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
|
||||
}
|
||||
|
||||
// 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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user