mirror of
https://github.com/kubernetes/client-go.git
synced 2025-06-27 15:39:39 +00:00
Remove obsolete generated applyconfigs
These are not regenerated by any input. Kubernetes-commit: 37ca6b0fac3c118c9cb0619a07a2fe40e567f6d1
This commit is contained in:
parent
31586e6042
commit
0f17f43973
@ -1,75 +0,0 @@
|
|||||||
/*
|
|
||||||
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 v1alpha1
|
|
||||||
|
|
||||||
import (
|
|
||||||
admissionregistrationv1alpha1 "k8s.io/api/admissionregistration/v1alpha1"
|
|
||||||
)
|
|
||||||
|
|
||||||
// AdmissionPolicySpecApplyConfiguration represents an declarative configuration of the AdmissionPolicySpec type for use
|
|
||||||
// with apply.
|
|
||||||
type AdmissionPolicySpecApplyConfiguration struct {
|
|
||||||
ParamSource *ParamSourceApplyConfiguration `json:"paramSource,omitempty"`
|
|
||||||
MatchResources *MatchResourcesApplyConfiguration `json:"matchResources,omitempty"`
|
|
||||||
Validations []ValidationApplyConfiguration `json:"validations,omitempty"`
|
|
||||||
FailurePolicy *admissionregistrationv1alpha1.FailurePolicyType `json:"failurePolicy,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// AdmissionPolicySpecApplyConfiguration constructs an declarative configuration of the AdmissionPolicySpec type for use with
|
|
||||||
// apply.
|
|
||||||
func AdmissionPolicySpec() *AdmissionPolicySpecApplyConfiguration {
|
|
||||||
return &AdmissionPolicySpecApplyConfiguration{}
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithParamSource sets the ParamSource 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 ParamSource field is set to the value of the last call.
|
|
||||||
func (b *AdmissionPolicySpecApplyConfiguration) WithParamSource(value *ParamSourceApplyConfiguration) *AdmissionPolicySpecApplyConfiguration {
|
|
||||||
b.ParamSource = value
|
|
||||||
return b
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithMatchResources sets the MatchResources 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 MatchResources field is set to the value of the last call.
|
|
||||||
func (b *AdmissionPolicySpecApplyConfiguration) WithMatchResources(value *MatchResourcesApplyConfiguration) *AdmissionPolicySpecApplyConfiguration {
|
|
||||||
b.MatchResources = value
|
|
||||||
return b
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithValidations adds the given value to the Validations 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 Validations field.
|
|
||||||
func (b *AdmissionPolicySpecApplyConfiguration) WithValidations(values ...*ValidationApplyConfiguration) *AdmissionPolicySpecApplyConfiguration {
|
|
||||||
for i := range values {
|
|
||||||
if values[i] == nil {
|
|
||||||
panic("nil value passed to WithValidations")
|
|
||||||
}
|
|
||||||
b.Validations = append(b.Validations, *values[i])
|
|
||||||
}
|
|
||||||
return b
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithFailurePolicy sets the FailurePolicy 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 FailurePolicy field is set to the value of the last call.
|
|
||||||
func (b *AdmissionPolicySpecApplyConfiguration) WithFailurePolicy(value admissionregistrationv1alpha1.FailurePolicyType) *AdmissionPolicySpecApplyConfiguration {
|
|
||||||
b.FailurePolicy = &value
|
|
||||||
return b
|
|
||||||
}
|
|
@ -1,48 +0,0 @@
|
|||||||
/*
|
|
||||||
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 v1alpha1
|
|
||||||
|
|
||||||
// ParamSourceApplyConfiguration represents an declarative configuration of the ParamSource type for use
|
|
||||||
// with apply.
|
|
||||||
type ParamSourceApplyConfiguration struct {
|
|
||||||
APIVersion *string `json:"apiVersion,omitempty"`
|
|
||||||
Kind *string `json:"kind,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// ParamSourceApplyConfiguration constructs an declarative configuration of the ParamSource type for use with
|
|
||||||
// apply.
|
|
||||||
func ParamSource() *ParamSourceApplyConfiguration {
|
|
||||||
return &ParamSourceApplyConfiguration{}
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithAPIVersion sets the APIVersion 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 APIVersion field is set to the value of the last call.
|
|
||||||
func (b *ParamSourceApplyConfiguration) WithAPIVersion(value string) *ParamSourceApplyConfiguration {
|
|
||||||
b.APIVersion = &value
|
|
||||||
return b
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithKind sets the Kind 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 Kind field is set to the value of the last call.
|
|
||||||
func (b *ParamSourceApplyConfiguration) WithKind(value string) *ParamSourceApplyConfiguration {
|
|
||||||
b.Kind = &value
|
|
||||||
return b
|
|
||||||
}
|
|
@ -1,76 +0,0 @@
|
|||||||
/*
|
|
||||||
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 v1alpha1
|
|
||||||
|
|
||||||
import (
|
|
||||||
v1alpha1 "k8s.io/api/admissionregistration/v1alpha1"
|
|
||||||
)
|
|
||||||
|
|
||||||
// RuleApplyConfiguration represents an declarative configuration of the Rule type for use
|
|
||||||
// with apply.
|
|
||||||
type RuleApplyConfiguration struct {
|
|
||||||
APIGroups []string `json:"apiGroups,omitempty"`
|
|
||||||
APIVersions []string `json:"apiVersions,omitempty"`
|
|
||||||
Resources []string `json:"resources,omitempty"`
|
|
||||||
Scope *v1alpha1.ScopeType `json:"scope,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// RuleApplyConfiguration constructs an declarative configuration of the Rule type for use with
|
|
||||||
// apply.
|
|
||||||
func Rule() *RuleApplyConfiguration {
|
|
||||||
return &RuleApplyConfiguration{}
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithAPIGroups adds the given value to the APIGroups 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 APIGroups field.
|
|
||||||
func (b *RuleApplyConfiguration) WithAPIGroups(values ...string) *RuleApplyConfiguration {
|
|
||||||
for i := range values {
|
|
||||||
b.APIGroups = append(b.APIGroups, values[i])
|
|
||||||
}
|
|
||||||
return b
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithAPIVersions adds the given value to the APIVersions 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 APIVersions field.
|
|
||||||
func (b *RuleApplyConfiguration) WithAPIVersions(values ...string) *RuleApplyConfiguration {
|
|
||||||
for i := range values {
|
|
||||||
b.APIVersions = append(b.APIVersions, values[i])
|
|
||||||
}
|
|
||||||
return b
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithResources adds the given value to the Resources 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 Resources field.
|
|
||||||
func (b *RuleApplyConfiguration) WithResources(values ...string) *RuleApplyConfiguration {
|
|
||||||
for i := range values {
|
|
||||||
b.Resources = append(b.Resources, values[i])
|
|
||||||
}
|
|
||||||
return b
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithScope sets the Scope 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 Scope field is set to the value of the last call.
|
|
||||||
func (b *RuleApplyConfiguration) WithScope(value v1alpha1.ScopeType) *RuleApplyConfiguration {
|
|
||||||
b.Scope = &value
|
|
||||||
return b
|
|
||||||
}
|
|
@ -1,85 +0,0 @@
|
|||||||
/*
|
|
||||||
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 v1alpha1
|
|
||||||
|
|
||||||
import (
|
|
||||||
v1 "k8s.io/api/admissionregistration/v1"
|
|
||||||
admissionregistrationv1 "k8s.io/client-go/applyconfigurations/admissionregistration/v1"
|
|
||||||
)
|
|
||||||
|
|
||||||
// RuleWithOperationsApplyConfiguration represents an declarative configuration of the RuleWithOperations type for use
|
|
||||||
// with apply.
|
|
||||||
type RuleWithOperationsApplyConfiguration struct {
|
|
||||||
Operations []v1.OperationType `json:"operations,omitempty"`
|
|
||||||
admissionregistrationv1.RuleApplyConfiguration `json:",inline"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// RuleWithOperationsApplyConfiguration constructs an declarative configuration of the RuleWithOperations type for use with
|
|
||||||
// apply.
|
|
||||||
func RuleWithOperations() *RuleWithOperationsApplyConfiguration {
|
|
||||||
return &RuleWithOperationsApplyConfiguration{}
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithOperations adds the given value to the Operations 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 Operations field.
|
|
||||||
func (b *RuleWithOperationsApplyConfiguration) WithOperations(values ...v1.OperationType) *RuleWithOperationsApplyConfiguration {
|
|
||||||
for i := range values {
|
|
||||||
b.Operations = append(b.Operations, values[i])
|
|
||||||
}
|
|
||||||
return b
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithAPIGroups adds the given value to the APIGroups 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 APIGroups field.
|
|
||||||
func (b *RuleWithOperationsApplyConfiguration) WithAPIGroups(values ...string) *RuleWithOperationsApplyConfiguration {
|
|
||||||
for i := range values {
|
|
||||||
b.APIGroups = append(b.APIGroups, values[i])
|
|
||||||
}
|
|
||||||
return b
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithAPIVersions adds the given value to the APIVersions 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 APIVersions field.
|
|
||||||
func (b *RuleWithOperationsApplyConfiguration) WithAPIVersions(values ...string) *RuleWithOperationsApplyConfiguration {
|
|
||||||
for i := range values {
|
|
||||||
b.APIVersions = append(b.APIVersions, values[i])
|
|
||||||
}
|
|
||||||
return b
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithResources adds the given value to the Resources 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 Resources field.
|
|
||||||
func (b *RuleWithOperationsApplyConfiguration) WithResources(values ...string) *RuleWithOperationsApplyConfiguration {
|
|
||||||
for i := range values {
|
|
||||||
b.Resources = append(b.Resources, values[i])
|
|
||||||
}
|
|
||||||
return b
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithScope sets the Scope 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 Scope field is set to the value of the last call.
|
|
||||||
func (b *RuleWithOperationsApplyConfiguration) WithScope(value v1.ScopeType) *RuleWithOperationsApplyConfiguration {
|
|
||||||
b.Scope = &value
|
|
||||||
return b
|
|
||||||
}
|
|
@ -1,76 +0,0 @@
|
|||||||
/*
|
|
||||||
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
|
|
||||||
|
|
||||||
import (
|
|
||||||
v1beta1 "k8s.io/api/admissionregistration/v1beta1"
|
|
||||||
)
|
|
||||||
|
|
||||||
// RuleApplyConfiguration represents an declarative configuration of the Rule type for use
|
|
||||||
// with apply.
|
|
||||||
type RuleApplyConfiguration struct {
|
|
||||||
APIGroups []string `json:"apiGroups,omitempty"`
|
|
||||||
APIVersions []string `json:"apiVersions,omitempty"`
|
|
||||||
Resources []string `json:"resources,omitempty"`
|
|
||||||
Scope *v1beta1.ScopeType `json:"scope,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// RuleApplyConfiguration constructs an declarative configuration of the Rule type for use with
|
|
||||||
// apply.
|
|
||||||
func Rule() *RuleApplyConfiguration {
|
|
||||||
return &RuleApplyConfiguration{}
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithAPIGroups adds the given value to the APIGroups 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 APIGroups field.
|
|
||||||
func (b *RuleApplyConfiguration) WithAPIGroups(values ...string) *RuleApplyConfiguration {
|
|
||||||
for i := range values {
|
|
||||||
b.APIGroups = append(b.APIGroups, values[i])
|
|
||||||
}
|
|
||||||
return b
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithAPIVersions adds the given value to the APIVersions 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 APIVersions field.
|
|
||||||
func (b *RuleApplyConfiguration) WithAPIVersions(values ...string) *RuleApplyConfiguration {
|
|
||||||
for i := range values {
|
|
||||||
b.APIVersions = append(b.APIVersions, values[i])
|
|
||||||
}
|
|
||||||
return b
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithResources adds the given value to the Resources 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 Resources field.
|
|
||||||
func (b *RuleApplyConfiguration) WithResources(values ...string) *RuleApplyConfiguration {
|
|
||||||
for i := range values {
|
|
||||||
b.Resources = append(b.Resources, values[i])
|
|
||||||
}
|
|
||||||
return b
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithScope sets the Scope 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 Scope field is set to the value of the last call.
|
|
||||||
func (b *RuleApplyConfiguration) WithScope(value v1beta1.ScopeType) *RuleApplyConfiguration {
|
|
||||||
b.Scope = &value
|
|
||||||
return b
|
|
||||||
}
|
|
@ -1,85 +0,0 @@
|
|||||||
/*
|
|
||||||
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
|
|
||||||
|
|
||||||
import (
|
|
||||||
v1 "k8s.io/api/admissionregistration/v1"
|
|
||||||
admissionregistrationv1 "k8s.io/client-go/applyconfigurations/admissionregistration/v1"
|
|
||||||
)
|
|
||||||
|
|
||||||
// RuleWithOperationsApplyConfiguration represents an declarative configuration of the RuleWithOperations type for use
|
|
||||||
// with apply.
|
|
||||||
type RuleWithOperationsApplyConfiguration struct {
|
|
||||||
Operations []v1.OperationType `json:"operations,omitempty"`
|
|
||||||
admissionregistrationv1.RuleApplyConfiguration `json:",inline"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// RuleWithOperationsApplyConfiguration constructs an declarative configuration of the RuleWithOperations type for use with
|
|
||||||
// apply.
|
|
||||||
func RuleWithOperations() *RuleWithOperationsApplyConfiguration {
|
|
||||||
return &RuleWithOperationsApplyConfiguration{}
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithOperations adds the given value to the Operations 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 Operations field.
|
|
||||||
func (b *RuleWithOperationsApplyConfiguration) WithOperations(values ...v1.OperationType) *RuleWithOperationsApplyConfiguration {
|
|
||||||
for i := range values {
|
|
||||||
b.Operations = append(b.Operations, values[i])
|
|
||||||
}
|
|
||||||
return b
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithAPIGroups adds the given value to the APIGroups 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 APIGroups field.
|
|
||||||
func (b *RuleWithOperationsApplyConfiguration) WithAPIGroups(values ...string) *RuleWithOperationsApplyConfiguration {
|
|
||||||
for i := range values {
|
|
||||||
b.APIGroups = append(b.APIGroups, values[i])
|
|
||||||
}
|
|
||||||
return b
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithAPIVersions adds the given value to the APIVersions 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 APIVersions field.
|
|
||||||
func (b *RuleWithOperationsApplyConfiguration) WithAPIVersions(values ...string) *RuleWithOperationsApplyConfiguration {
|
|
||||||
for i := range values {
|
|
||||||
b.APIVersions = append(b.APIVersions, values[i])
|
|
||||||
}
|
|
||||||
return b
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithResources adds the given value to the Resources 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 Resources field.
|
|
||||||
func (b *RuleWithOperationsApplyConfiguration) WithResources(values ...string) *RuleWithOperationsApplyConfiguration {
|
|
||||||
for i := range values {
|
|
||||||
b.Resources = append(b.Resources, values[i])
|
|
||||||
}
|
|
||||||
return b
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithScope sets the Scope 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 Scope field is set to the value of the last call.
|
|
||||||
func (b *RuleWithOperationsApplyConfiguration) WithScope(value v1.ScopeType) *RuleWithOperationsApplyConfiguration {
|
|
||||||
b.Scope = &value
|
|
||||||
return b
|
|
||||||
}
|
|
@ -1,52 +0,0 @@
|
|||||||
/*
|
|
||||||
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 v2
|
|
||||||
|
|
||||||
import (
|
|
||||||
v1 "k8s.io/api/core/v1"
|
|
||||||
)
|
|
||||||
|
|
||||||
// PodResourceMetricSourceApplyConfiguration represents an declarative configuration of the PodResourceMetricSource type for use
|
|
||||||
// with apply.
|
|
||||||
type PodResourceMetricSourceApplyConfiguration struct {
|
|
||||||
Name *v1.ResourceName `json:"name,omitempty"`
|
|
||||||
Target *MetricTargetApplyConfiguration `json:"target,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// PodResourceMetricSourceApplyConfiguration constructs an declarative configuration of the PodResourceMetricSource type for use with
|
|
||||||
// apply.
|
|
||||||
func PodResourceMetricSource() *PodResourceMetricSourceApplyConfiguration {
|
|
||||||
return &PodResourceMetricSourceApplyConfiguration{}
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithName sets the Name 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 Name field is set to the value of the last call.
|
|
||||||
func (b *PodResourceMetricSourceApplyConfiguration) WithName(value v1.ResourceName) *PodResourceMetricSourceApplyConfiguration {
|
|
||||||
b.Name = &value
|
|
||||||
return b
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithTarget sets the Target 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 Target field is set to the value of the last call.
|
|
||||||
func (b *PodResourceMetricSourceApplyConfiguration) WithTarget(value *MetricTargetApplyConfiguration) *PodResourceMetricSourceApplyConfiguration {
|
|
||||||
b.Target = value
|
|
||||||
return b
|
|
||||||
}
|
|
@ -1,57 +0,0 @@
|
|||||||
/*
|
|
||||||
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
|
|
||||||
|
|
||||||
// GroupVersionKindApplyConfiguration represents an declarative configuration of the GroupVersionKind type for use
|
|
||||||
// with apply.
|
|
||||||
type GroupVersionKindApplyConfiguration struct {
|
|
||||||
Group *string `json:"group,omitempty"`
|
|
||||||
Version *string `json:"version,omitempty"`
|
|
||||||
Kind *string `json:"kind,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// GroupVersionKindApplyConfiguration constructs an declarative configuration of the GroupVersionKind type for use with
|
|
||||||
// apply.
|
|
||||||
func GroupVersionKind() *GroupVersionKindApplyConfiguration {
|
|
||||||
return &GroupVersionKindApplyConfiguration{}
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithGroup sets the Group 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 Group field is set to the value of the last call.
|
|
||||||
func (b *GroupVersionKindApplyConfiguration) WithGroup(value string) *GroupVersionKindApplyConfiguration {
|
|
||||||
b.Group = &value
|
|
||||||
return b
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithVersion sets the Version 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 Version field is set to the value of the last call.
|
|
||||||
func (b *GroupVersionKindApplyConfiguration) WithVersion(value string) *GroupVersionKindApplyConfiguration {
|
|
||||||
b.Version = &value
|
|
||||||
return b
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithKind sets the Kind 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 Kind field is set to the value of the last call.
|
|
||||||
func (b *GroupVersionKindApplyConfiguration) WithKind(value string) *GroupVersionKindApplyConfiguration {
|
|
||||||
b.Kind = &value
|
|
||||||
return b
|
|
||||||
}
|
|
@ -1,66 +0,0 @@
|
|||||||
/*
|
|
||||||
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
|
|
||||||
|
|
||||||
// ListMetaApplyConfiguration represents an declarative configuration of the ListMeta type for use
|
|
||||||
// with apply.
|
|
||||||
type ListMetaApplyConfiguration struct {
|
|
||||||
SelfLink *string `json:"selfLink,omitempty"`
|
|
||||||
ResourceVersion *string `json:"resourceVersion,omitempty"`
|
|
||||||
Continue *string `json:"continue,omitempty"`
|
|
||||||
RemainingItemCount *int64 `json:"remainingItemCount,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// ListMetaApplyConfiguration constructs an declarative configuration of the ListMeta type for use with
|
|
||||||
// apply.
|
|
||||||
func ListMeta() *ListMetaApplyConfiguration {
|
|
||||||
return &ListMetaApplyConfiguration{}
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithSelfLink sets the SelfLink 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 SelfLink field is set to the value of the last call.
|
|
||||||
func (b *ListMetaApplyConfiguration) WithSelfLink(value string) *ListMetaApplyConfiguration {
|
|
||||||
b.SelfLink = &value
|
|
||||||
return b
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithResourceVersion sets the ResourceVersion 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 ResourceVersion field is set to the value of the last call.
|
|
||||||
func (b *ListMetaApplyConfiguration) WithResourceVersion(value string) *ListMetaApplyConfiguration {
|
|
||||||
b.ResourceVersion = &value
|
|
||||||
return b
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithContinue sets the Continue 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 Continue field is set to the value of the last call.
|
|
||||||
func (b *ListMetaApplyConfiguration) WithContinue(value string) *ListMetaApplyConfiguration {
|
|
||||||
b.Continue = &value
|
|
||||||
return b
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithRemainingItemCount sets the RemainingItemCount 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 RemainingItemCount field is set to the value of the last call.
|
|
||||||
func (b *ListMetaApplyConfiguration) WithRemainingItemCount(value int64) *ListMetaApplyConfiguration {
|
|
||||||
b.RemainingItemCount = &value
|
|
||||||
return b
|
|
||||||
}
|
|
@ -1,142 +0,0 @@
|
|||||||
/*
|
|
||||||
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
|
|
||||||
|
|
||||||
import (
|
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
|
||||||
)
|
|
||||||
|
|
||||||
// StatusApplyConfiguration represents an declarative configuration of the Status type for use
|
|
||||||
// with apply.
|
|
||||||
type StatusApplyConfiguration struct {
|
|
||||||
TypeMetaApplyConfiguration `json:",inline"`
|
|
||||||
*ListMetaApplyConfiguration `json:"metadata,omitempty"`
|
|
||||||
Status *string `json:"status,omitempty"`
|
|
||||||
Message *string `json:"message,omitempty"`
|
|
||||||
Reason *metav1.StatusReason `json:"reason,omitempty"`
|
|
||||||
Details *StatusDetailsApplyConfiguration `json:"details,omitempty"`
|
|
||||||
Code *int32 `json:"code,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// StatusApplyConfiguration constructs an declarative configuration of the Status type for use with
|
|
||||||
// apply.
|
|
||||||
func Status() *StatusApplyConfiguration {
|
|
||||||
b := &StatusApplyConfiguration{}
|
|
||||||
b.WithKind("Status")
|
|
||||||
b.WithAPIVersion("meta.k8s.io/v1")
|
|
||||||
return b
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithKind sets the Kind 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 Kind field is set to the value of the last call.
|
|
||||||
func (b *StatusApplyConfiguration) WithKind(value string) *StatusApplyConfiguration {
|
|
||||||
b.Kind = &value
|
|
||||||
return b
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithAPIVersion sets the APIVersion 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 APIVersion field is set to the value of the last call.
|
|
||||||
func (b *StatusApplyConfiguration) WithAPIVersion(value string) *StatusApplyConfiguration {
|
|
||||||
b.APIVersion = &value
|
|
||||||
return b
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithSelfLink sets the SelfLink 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 SelfLink field is set to the value of the last call.
|
|
||||||
func (b *StatusApplyConfiguration) WithSelfLink(value string) *StatusApplyConfiguration {
|
|
||||||
b.ensureListMetaApplyConfigurationExists()
|
|
||||||
b.SelfLink = &value
|
|
||||||
return b
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithResourceVersion sets the ResourceVersion 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 ResourceVersion field is set to the value of the last call.
|
|
||||||
func (b *StatusApplyConfiguration) WithResourceVersion(value string) *StatusApplyConfiguration {
|
|
||||||
b.ensureListMetaApplyConfigurationExists()
|
|
||||||
b.ResourceVersion = &value
|
|
||||||
return b
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithContinue sets the Continue 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 Continue field is set to the value of the last call.
|
|
||||||
func (b *StatusApplyConfiguration) WithContinue(value string) *StatusApplyConfiguration {
|
|
||||||
b.ensureListMetaApplyConfigurationExists()
|
|
||||||
b.Continue = &value
|
|
||||||
return b
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithRemainingItemCount sets the RemainingItemCount 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 RemainingItemCount field is set to the value of the last call.
|
|
||||||
func (b *StatusApplyConfiguration) WithRemainingItemCount(value int64) *StatusApplyConfiguration {
|
|
||||||
b.ensureListMetaApplyConfigurationExists()
|
|
||||||
b.RemainingItemCount = &value
|
|
||||||
return b
|
|
||||||
}
|
|
||||||
|
|
||||||
func (b *StatusApplyConfiguration) ensureListMetaApplyConfigurationExists() {
|
|
||||||
if b.ListMetaApplyConfiguration == nil {
|
|
||||||
b.ListMetaApplyConfiguration = &ListMetaApplyConfiguration{}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithStatus sets the Status 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 Status field is set to the value of the last call.
|
|
||||||
func (b *StatusApplyConfiguration) WithStatus(value string) *StatusApplyConfiguration {
|
|
||||||
b.Status = &value
|
|
||||||
return b
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithMessage sets the Message 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 Message field is set to the value of the last call.
|
|
||||||
func (b *StatusApplyConfiguration) WithMessage(value string) *StatusApplyConfiguration {
|
|
||||||
b.Message = &value
|
|
||||||
return b
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithReason sets the Reason 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 Reason field is set to the value of the last call.
|
|
||||||
func (b *StatusApplyConfiguration) WithReason(value metav1.StatusReason) *StatusApplyConfiguration {
|
|
||||||
b.Reason = &value
|
|
||||||
return b
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithDetails sets the Details 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 Details field is set to the value of the last call.
|
|
||||||
func (b *StatusApplyConfiguration) WithDetails(value *StatusDetailsApplyConfiguration) *StatusApplyConfiguration {
|
|
||||||
b.Details = value
|
|
||||||
return b
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithCode sets the Code 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 Code field is set to the value of the last call.
|
|
||||||
func (b *StatusApplyConfiguration) WithCode(value int32) *StatusApplyConfiguration {
|
|
||||||
b.Code = &value
|
|
||||||
return b
|
|
||||||
}
|
|
@ -1,61 +0,0 @@
|
|||||||
/*
|
|
||||||
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
|
|
||||||
|
|
||||||
import (
|
|
||||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
|
||||||
)
|
|
||||||
|
|
||||||
// StatusCauseApplyConfiguration represents an declarative configuration of the StatusCause type for use
|
|
||||||
// with apply.
|
|
||||||
type StatusCauseApplyConfiguration struct {
|
|
||||||
Type *v1.CauseType `json:"reason,omitempty"`
|
|
||||||
Message *string `json:"message,omitempty"`
|
|
||||||
Field *string `json:"field,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// StatusCauseApplyConfiguration constructs an declarative configuration of the StatusCause type for use with
|
|
||||||
// apply.
|
|
||||||
func StatusCause() *StatusCauseApplyConfiguration {
|
|
||||||
return &StatusCauseApplyConfiguration{}
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithType sets the Type 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 Type field is set to the value of the last call.
|
|
||||||
func (b *StatusCauseApplyConfiguration) WithType(value v1.CauseType) *StatusCauseApplyConfiguration {
|
|
||||||
b.Type = &value
|
|
||||||
return b
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithMessage sets the Message 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 Message field is set to the value of the last call.
|
|
||||||
func (b *StatusCauseApplyConfiguration) WithMessage(value string) *StatusCauseApplyConfiguration {
|
|
||||||
b.Message = &value
|
|
||||||
return b
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithField sets the Field 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 Field field is set to the value of the last call.
|
|
||||||
func (b *StatusCauseApplyConfiguration) WithField(value string) *StatusCauseApplyConfiguration {
|
|
||||||
b.Field = &value
|
|
||||||
return b
|
|
||||||
}
|
|
@ -1,93 +0,0 @@
|
|||||||
/*
|
|
||||||
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
|
|
||||||
|
|
||||||
import (
|
|
||||||
types "k8s.io/apimachinery/pkg/types"
|
|
||||||
)
|
|
||||||
|
|
||||||
// StatusDetailsApplyConfiguration represents an declarative configuration of the StatusDetails type for use
|
|
||||||
// with apply.
|
|
||||||
type StatusDetailsApplyConfiguration struct {
|
|
||||||
Name *string `json:"name,omitempty"`
|
|
||||||
Group *string `json:"group,omitempty"`
|
|
||||||
Kind *string `json:"kind,omitempty"`
|
|
||||||
UID *types.UID `json:"uid,omitempty"`
|
|
||||||
Causes []StatusCauseApplyConfiguration `json:"causes,omitempty"`
|
|
||||||
RetryAfterSeconds *int32 `json:"retryAfterSeconds,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// StatusDetailsApplyConfiguration constructs an declarative configuration of the StatusDetails type for use with
|
|
||||||
// apply.
|
|
||||||
func StatusDetails() *StatusDetailsApplyConfiguration {
|
|
||||||
return &StatusDetailsApplyConfiguration{}
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithName sets the Name 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 Name field is set to the value of the last call.
|
|
||||||
func (b *StatusDetailsApplyConfiguration) WithName(value string) *StatusDetailsApplyConfiguration {
|
|
||||||
b.Name = &value
|
|
||||||
return b
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithGroup sets the Group 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 Group field is set to the value of the last call.
|
|
||||||
func (b *StatusDetailsApplyConfiguration) WithGroup(value string) *StatusDetailsApplyConfiguration {
|
|
||||||
b.Group = &value
|
|
||||||
return b
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithKind sets the Kind 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 Kind field is set to the value of the last call.
|
|
||||||
func (b *StatusDetailsApplyConfiguration) WithKind(value string) *StatusDetailsApplyConfiguration {
|
|
||||||
b.Kind = &value
|
|
||||||
return b
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithUID sets the UID 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 UID field is set to the value of the last call.
|
|
||||||
func (b *StatusDetailsApplyConfiguration) WithUID(value types.UID) *StatusDetailsApplyConfiguration {
|
|
||||||
b.UID = &value
|
|
||||||
return b
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithCauses adds the given value to the Causes 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 Causes field.
|
|
||||||
func (b *StatusDetailsApplyConfiguration) WithCauses(values ...*StatusCauseApplyConfiguration) *StatusDetailsApplyConfiguration {
|
|
||||||
for i := range values {
|
|
||||||
if values[i] == nil {
|
|
||||||
panic("nil value passed to WithCauses")
|
|
||||||
}
|
|
||||||
b.Causes = append(b.Causes, *values[i])
|
|
||||||
}
|
|
||||||
return b
|
|
||||||
}
|
|
||||||
|
|
||||||
// WithRetryAfterSeconds sets the RetryAfterSeconds 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 RetryAfterSeconds field is set to the value of the last call.
|
|
||||||
func (b *StatusDetailsApplyConfiguration) WithRetryAfterSeconds(value int32) *StatusDetailsApplyConfiguration {
|
|
||||||
b.RetryAfterSeconds = &value
|
|
||||||
return b
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user