mirror of
https://github.com/kubernetes/client-go.git
synced 2025-06-25 06:31:35 +00:00
generate
Kubernetes-commit: 2595aa13098355414a558b2d97c58d505ca7b6c2
This commit is contained in:
parent
bc8a8ba48a
commit
2b735405b2
@ -19,18 +19,18 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
apiadmissionregistrationv1 "k8s.io/api/admissionregistration/v1"
|
admissionregistrationv1 "k8s.io/api/admissionregistration/v1"
|
||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// MatchResourcesApplyConfiguration represents a declarative configuration of the MatchResources type for use
|
// MatchResourcesApplyConfiguration represents a declarative configuration of the MatchResources type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type MatchResourcesApplyConfiguration struct {
|
type MatchResourcesApplyConfiguration struct {
|
||||||
NamespaceSelector *v1.LabelSelectorApplyConfiguration `json:"namespaceSelector,omitempty"`
|
NamespaceSelector *metav1.LabelSelectorApplyConfiguration `json:"namespaceSelector,omitempty"`
|
||||||
ObjectSelector *v1.LabelSelectorApplyConfiguration `json:"objectSelector,omitempty"`
|
ObjectSelector *metav1.LabelSelectorApplyConfiguration `json:"objectSelector,omitempty"`
|
||||||
ResourceRules []NamedRuleWithOperationsApplyConfiguration `json:"resourceRules,omitempty"`
|
ResourceRules []NamedRuleWithOperationsApplyConfiguration `json:"resourceRules,omitempty"`
|
||||||
ExcludeResourceRules []NamedRuleWithOperationsApplyConfiguration `json:"excludeResourceRules,omitempty"`
|
ExcludeResourceRules []NamedRuleWithOperationsApplyConfiguration `json:"excludeResourceRules,omitempty"`
|
||||||
MatchPolicy *apiadmissionregistrationv1.MatchPolicyType `json:"matchPolicy,omitempty"`
|
MatchPolicy *admissionregistrationv1.MatchPolicyType `json:"matchPolicy,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// MatchResourcesApplyConfiguration constructs a declarative configuration of the MatchResources type for use with
|
// MatchResourcesApplyConfiguration constructs a declarative configuration of the MatchResources type for use with
|
||||||
@ -42,7 +42,7 @@ func MatchResources() *MatchResourcesApplyConfiguration {
|
|||||||
// WithNamespaceSelector sets the NamespaceSelector field in the declarative configuration to the given value
|
// WithNamespaceSelector sets the NamespaceSelector field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the NamespaceSelector field is set to the value of the last call.
|
// If called multiple times, the NamespaceSelector field is set to the value of the last call.
|
||||||
func (b *MatchResourcesApplyConfiguration) WithNamespaceSelector(value *v1.LabelSelectorApplyConfiguration) *MatchResourcesApplyConfiguration {
|
func (b *MatchResourcesApplyConfiguration) WithNamespaceSelector(value *metav1.LabelSelectorApplyConfiguration) *MatchResourcesApplyConfiguration {
|
||||||
b.NamespaceSelector = value
|
b.NamespaceSelector = value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
@ -50,7 +50,7 @@ func (b *MatchResourcesApplyConfiguration) WithNamespaceSelector(value *v1.Label
|
|||||||
// WithObjectSelector sets the ObjectSelector field in the declarative configuration to the given value
|
// WithObjectSelector sets the ObjectSelector field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the ObjectSelector field is set to the value of the last call.
|
// If called multiple times, the ObjectSelector field is set to the value of the last call.
|
||||||
func (b *MatchResourcesApplyConfiguration) WithObjectSelector(value *v1.LabelSelectorApplyConfiguration) *MatchResourcesApplyConfiguration {
|
func (b *MatchResourcesApplyConfiguration) WithObjectSelector(value *metav1.LabelSelectorApplyConfiguration) *MatchResourcesApplyConfiguration {
|
||||||
b.ObjectSelector = value
|
b.ObjectSelector = value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
@ -84,7 +84,7 @@ func (b *MatchResourcesApplyConfiguration) WithExcludeResourceRules(values ...*N
|
|||||||
// WithMatchPolicy sets the MatchPolicy field in the declarative configuration to the given value
|
// WithMatchPolicy sets the MatchPolicy field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the MatchPolicy field is set to the value of the last call.
|
// If called multiple times, the MatchPolicy field is set to the value of the last call.
|
||||||
func (b *MatchResourcesApplyConfiguration) WithMatchPolicy(value apiadmissionregistrationv1.MatchPolicyType) *MatchResourcesApplyConfiguration {
|
func (b *MatchResourcesApplyConfiguration) WithMatchPolicy(value admissionregistrationv1.MatchPolicyType) *MatchResourcesApplyConfiguration {
|
||||||
b.MatchPolicy = &value
|
b.MatchPolicy = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,20 +19,20 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
apiadmissionregistrationv1 "k8s.io/api/admissionregistration/v1"
|
admissionregistrationv1 "k8s.io/api/admissionregistration/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
types "k8s.io/apimachinery/pkg/types"
|
types "k8s.io/apimachinery/pkg/types"
|
||||||
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
|
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
|
||||||
internal "k8s.io/client-go/applyconfigurations/internal"
|
internal "k8s.io/client-go/applyconfigurations/internal"
|
||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// MutatingWebhookConfigurationApplyConfiguration represents a declarative configuration of the MutatingWebhookConfiguration type for use
|
// MutatingWebhookConfigurationApplyConfiguration represents a declarative configuration of the MutatingWebhookConfiguration type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type MutatingWebhookConfigurationApplyConfiguration struct {
|
type MutatingWebhookConfigurationApplyConfiguration struct {
|
||||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||||
Webhooks []MutatingWebhookApplyConfiguration `json:"webhooks,omitempty"`
|
Webhooks []MutatingWebhookApplyConfiguration `json:"webhooks,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// MutatingWebhookConfiguration constructs a declarative configuration of the MutatingWebhookConfiguration type for use with
|
// MutatingWebhookConfiguration constructs a declarative configuration of the MutatingWebhookConfiguration type for use with
|
||||||
@ -56,18 +56,18 @@ func MutatingWebhookConfiguration(name string) *MutatingWebhookConfigurationAppl
|
|||||||
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
|
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
|
||||||
// applied if another fieldManager has updated or force applied any of the previously applied fields.
|
// applied if another fieldManager has updated or force applied any of the previously applied fields.
|
||||||
// Experimental!
|
// Experimental!
|
||||||
func ExtractMutatingWebhookConfiguration(mutatingWebhookConfiguration *apiadmissionregistrationv1.MutatingWebhookConfiguration, fieldManager string) (*MutatingWebhookConfigurationApplyConfiguration, error) {
|
func ExtractMutatingWebhookConfiguration(mutatingWebhookConfiguration *admissionregistrationv1.MutatingWebhookConfiguration, fieldManager string) (*MutatingWebhookConfigurationApplyConfiguration, error) {
|
||||||
return extractMutatingWebhookConfiguration(mutatingWebhookConfiguration, fieldManager, "")
|
return extractMutatingWebhookConfiguration(mutatingWebhookConfiguration, fieldManager, "")
|
||||||
}
|
}
|
||||||
|
|
||||||
// ExtractMutatingWebhookConfigurationStatus is the same as ExtractMutatingWebhookConfiguration except
|
// ExtractMutatingWebhookConfigurationStatus is the same as ExtractMutatingWebhookConfiguration except
|
||||||
// that it extracts the status subresource applied configuration.
|
// that it extracts the status subresource applied configuration.
|
||||||
// Experimental!
|
// Experimental!
|
||||||
func ExtractMutatingWebhookConfigurationStatus(mutatingWebhookConfiguration *apiadmissionregistrationv1.MutatingWebhookConfiguration, fieldManager string) (*MutatingWebhookConfigurationApplyConfiguration, error) {
|
func ExtractMutatingWebhookConfigurationStatus(mutatingWebhookConfiguration *admissionregistrationv1.MutatingWebhookConfiguration, fieldManager string) (*MutatingWebhookConfigurationApplyConfiguration, error) {
|
||||||
return extractMutatingWebhookConfiguration(mutatingWebhookConfiguration, fieldManager, "status")
|
return extractMutatingWebhookConfiguration(mutatingWebhookConfiguration, fieldManager, "status")
|
||||||
}
|
}
|
||||||
|
|
||||||
func extractMutatingWebhookConfiguration(mutatingWebhookConfiguration *apiadmissionregistrationv1.MutatingWebhookConfiguration, fieldManager string, subresource string) (*MutatingWebhookConfigurationApplyConfiguration, error) {
|
func extractMutatingWebhookConfiguration(mutatingWebhookConfiguration *admissionregistrationv1.MutatingWebhookConfiguration, fieldManager string, subresource string) (*MutatingWebhookConfigurationApplyConfiguration, error) {
|
||||||
b := &MutatingWebhookConfigurationApplyConfiguration{}
|
b := &MutatingWebhookConfigurationApplyConfiguration{}
|
||||||
err := managedfields.ExtractInto(mutatingWebhookConfiguration, internal.Parser().Type("io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration"), fieldManager, b, subresource)
|
err := managedfields.ExtractInto(mutatingWebhookConfiguration, internal.Parser().Type("io.k8s.api.admissionregistration.v1.MutatingWebhookConfiguration"), fieldManager, b, subresource)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -153,7 +153,7 @@ func (b *MutatingWebhookConfigurationApplyConfiguration) WithGeneration(value in
|
|||||||
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
|
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
|
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
|
||||||
func (b *MutatingWebhookConfigurationApplyConfiguration) WithCreationTimestamp(value metav1.Time) *MutatingWebhookConfigurationApplyConfiguration {
|
func (b *MutatingWebhookConfigurationApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *MutatingWebhookConfigurationApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
|
b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
|
||||||
return b
|
return b
|
||||||
@ -162,7 +162,7 @@ func (b *MutatingWebhookConfigurationApplyConfiguration) WithCreationTimestamp(v
|
|||||||
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
|
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
|
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
|
||||||
func (b *MutatingWebhookConfigurationApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *MutatingWebhookConfigurationApplyConfiguration {
|
func (b *MutatingWebhookConfigurationApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *MutatingWebhookConfigurationApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
|
b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
|
||||||
return b
|
return b
|
||||||
@ -210,7 +210,7 @@ func (b *MutatingWebhookConfigurationApplyConfiguration) WithAnnotations(entries
|
|||||||
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
|
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
|
||||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
// 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 OwnerReferences field.
|
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
|
||||||
func (b *MutatingWebhookConfigurationApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *MutatingWebhookConfigurationApplyConfiguration {
|
func (b *MutatingWebhookConfigurationApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *MutatingWebhookConfigurationApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
for i := range values {
|
for i := range values {
|
||||||
if values[i] == nil {
|
if values[i] == nil {
|
||||||
@ -234,7 +234,7 @@ func (b *MutatingWebhookConfigurationApplyConfiguration) WithFinalizers(values .
|
|||||||
|
|
||||||
func (b *MutatingWebhookConfigurationApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
|
func (b *MutatingWebhookConfigurationApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
|
||||||
if b.ObjectMetaApplyConfiguration == nil {
|
if b.ObjectMetaApplyConfiguration == nil {
|
||||||
b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
|
b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ package v1
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
admissionregistrationv1 "k8s.io/api/admissionregistration/v1"
|
admissionregistrationv1 "k8s.io/api/admissionregistration/v1"
|
||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ParamRefApplyConfiguration represents a declarative configuration of the ParamRef type for use
|
// ParamRefApplyConfiguration represents a declarative configuration of the ParamRef type for use
|
||||||
@ -28,7 +28,7 @@ import (
|
|||||||
type ParamRefApplyConfiguration struct {
|
type ParamRefApplyConfiguration struct {
|
||||||
Name *string `json:"name,omitempty"`
|
Name *string `json:"name,omitempty"`
|
||||||
Namespace *string `json:"namespace,omitempty"`
|
Namespace *string `json:"namespace,omitempty"`
|
||||||
Selector *v1.LabelSelectorApplyConfiguration `json:"selector,omitempty"`
|
Selector *metav1.LabelSelectorApplyConfiguration `json:"selector,omitempty"`
|
||||||
ParameterNotFoundAction *admissionregistrationv1.ParameterNotFoundActionType `json:"parameterNotFoundAction,omitempty"`
|
ParameterNotFoundAction *admissionregistrationv1.ParameterNotFoundActionType `json:"parameterNotFoundAction,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -57,7 +57,7 @@ func (b *ParamRefApplyConfiguration) WithNamespace(value string) *ParamRefApplyC
|
|||||||
// WithSelector sets the Selector field in the declarative configuration to the given value
|
// WithSelector sets the Selector field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the Selector field is set to the value of the last call.
|
// If called multiple times, the Selector field is set to the value of the last call.
|
||||||
func (b *ParamRefApplyConfiguration) WithSelector(value *v1.LabelSelectorApplyConfiguration) *ParamRefApplyConfiguration {
|
func (b *ParamRefApplyConfiguration) WithSelector(value *metav1.LabelSelectorApplyConfiguration) *ParamRefApplyConfiguration {
|
||||||
b.Selector = value
|
b.Selector = value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,16 +19,16 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1 "k8s.io/api/admissionregistration/v1"
|
admissionregistrationv1 "k8s.io/api/admissionregistration/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// RuleApplyConfiguration represents a declarative configuration of the Rule type for use
|
// RuleApplyConfiguration represents a declarative configuration of the Rule type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type RuleApplyConfiguration struct {
|
type RuleApplyConfiguration struct {
|
||||||
APIGroups []string `json:"apiGroups,omitempty"`
|
APIGroups []string `json:"apiGroups,omitempty"`
|
||||||
APIVersions []string `json:"apiVersions,omitempty"`
|
APIVersions []string `json:"apiVersions,omitempty"`
|
||||||
Resources []string `json:"resources,omitempty"`
|
Resources []string `json:"resources,omitempty"`
|
||||||
Scope *v1.ScopeType `json:"scope,omitempty"`
|
Scope *admissionregistrationv1.ScopeType `json:"scope,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// RuleApplyConfiguration constructs a declarative configuration of the Rule type for use with
|
// RuleApplyConfiguration constructs a declarative configuration of the Rule type for use with
|
||||||
@ -70,7 +70,7 @@ func (b *RuleApplyConfiguration) WithResources(values ...string) *RuleApplyConfi
|
|||||||
// WithScope sets the Scope field in the declarative configuration to the given value
|
// 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.
|
// 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.
|
// If called multiple times, the Scope field is set to the value of the last call.
|
||||||
func (b *RuleApplyConfiguration) WithScope(value v1.ScopeType) *RuleApplyConfiguration {
|
func (b *RuleApplyConfiguration) WithScope(value admissionregistrationv1.ScopeType) *RuleApplyConfiguration {
|
||||||
b.Scope = &value
|
b.Scope = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,13 +19,13 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1 "k8s.io/api/admissionregistration/v1"
|
admissionregistrationv1 "k8s.io/api/admissionregistration/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// RuleWithOperationsApplyConfiguration represents a declarative configuration of the RuleWithOperations type for use
|
// RuleWithOperationsApplyConfiguration represents a declarative configuration of the RuleWithOperations type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type RuleWithOperationsApplyConfiguration struct {
|
type RuleWithOperationsApplyConfiguration struct {
|
||||||
Operations []v1.OperationType `json:"operations,omitempty"`
|
Operations []admissionregistrationv1.OperationType `json:"operations,omitempty"`
|
||||||
RuleApplyConfiguration `json:",inline"`
|
RuleApplyConfiguration `json:",inline"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -38,7 +38,7 @@ func RuleWithOperations() *RuleWithOperationsApplyConfiguration {
|
|||||||
// WithOperations adds the given value to the Operations field in the declarative configuration
|
// 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.
|
// 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.
|
// If called multiple times, values provided by each call will be appended to the Operations field.
|
||||||
func (b *RuleWithOperationsApplyConfiguration) WithOperations(values ...v1.OperationType) *RuleWithOperationsApplyConfiguration {
|
func (b *RuleWithOperationsApplyConfiguration) WithOperations(values ...admissionregistrationv1.OperationType) *RuleWithOperationsApplyConfiguration {
|
||||||
for i := range values {
|
for i := range values {
|
||||||
b.Operations = append(b.Operations, values[i])
|
b.Operations = append(b.Operations, values[i])
|
||||||
}
|
}
|
||||||
@ -78,7 +78,7 @@ func (b *RuleWithOperationsApplyConfiguration) WithResources(values ...string) *
|
|||||||
// WithScope sets the Scope field in the declarative configuration to the given value
|
// 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.
|
// 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.
|
// If called multiple times, the Scope field is set to the value of the last call.
|
||||||
func (b *RuleWithOperationsApplyConfiguration) WithScope(value v1.ScopeType) *RuleWithOperationsApplyConfiguration {
|
func (b *RuleWithOperationsApplyConfiguration) WithScope(value admissionregistrationv1.ScopeType) *RuleWithOperationsApplyConfiguration {
|
||||||
b.RuleApplyConfiguration.Scope = &value
|
b.RuleApplyConfiguration.Scope = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,21 +19,21 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
apiadmissionregistrationv1 "k8s.io/api/admissionregistration/v1"
|
admissionregistrationv1 "k8s.io/api/admissionregistration/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
types "k8s.io/apimachinery/pkg/types"
|
types "k8s.io/apimachinery/pkg/types"
|
||||||
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
|
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
|
||||||
internal "k8s.io/client-go/applyconfigurations/internal"
|
internal "k8s.io/client-go/applyconfigurations/internal"
|
||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ValidatingAdmissionPolicyApplyConfiguration represents a declarative configuration of the ValidatingAdmissionPolicy type for use
|
// ValidatingAdmissionPolicyApplyConfiguration represents a declarative configuration of the ValidatingAdmissionPolicy type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ValidatingAdmissionPolicyApplyConfiguration struct {
|
type ValidatingAdmissionPolicyApplyConfiguration struct {
|
||||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||||
Spec *ValidatingAdmissionPolicySpecApplyConfiguration `json:"spec,omitempty"`
|
Spec *ValidatingAdmissionPolicySpecApplyConfiguration `json:"spec,omitempty"`
|
||||||
Status *ValidatingAdmissionPolicyStatusApplyConfiguration `json:"status,omitempty"`
|
Status *ValidatingAdmissionPolicyStatusApplyConfiguration `json:"status,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ValidatingAdmissionPolicy constructs a declarative configuration of the ValidatingAdmissionPolicy type for use with
|
// ValidatingAdmissionPolicy constructs a declarative configuration of the ValidatingAdmissionPolicy type for use with
|
||||||
@ -57,18 +57,18 @@ func ValidatingAdmissionPolicy(name string) *ValidatingAdmissionPolicyApplyConfi
|
|||||||
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
|
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
|
||||||
// applied if another fieldManager has updated or force applied any of the previously applied fields.
|
// applied if another fieldManager has updated or force applied any of the previously applied fields.
|
||||||
// Experimental!
|
// Experimental!
|
||||||
func ExtractValidatingAdmissionPolicy(validatingAdmissionPolicy *apiadmissionregistrationv1.ValidatingAdmissionPolicy, fieldManager string) (*ValidatingAdmissionPolicyApplyConfiguration, error) {
|
func ExtractValidatingAdmissionPolicy(validatingAdmissionPolicy *admissionregistrationv1.ValidatingAdmissionPolicy, fieldManager string) (*ValidatingAdmissionPolicyApplyConfiguration, error) {
|
||||||
return extractValidatingAdmissionPolicy(validatingAdmissionPolicy, fieldManager, "")
|
return extractValidatingAdmissionPolicy(validatingAdmissionPolicy, fieldManager, "")
|
||||||
}
|
}
|
||||||
|
|
||||||
// ExtractValidatingAdmissionPolicyStatus is the same as ExtractValidatingAdmissionPolicy except
|
// ExtractValidatingAdmissionPolicyStatus is the same as ExtractValidatingAdmissionPolicy except
|
||||||
// that it extracts the status subresource applied configuration.
|
// that it extracts the status subresource applied configuration.
|
||||||
// Experimental!
|
// Experimental!
|
||||||
func ExtractValidatingAdmissionPolicyStatus(validatingAdmissionPolicy *apiadmissionregistrationv1.ValidatingAdmissionPolicy, fieldManager string) (*ValidatingAdmissionPolicyApplyConfiguration, error) {
|
func ExtractValidatingAdmissionPolicyStatus(validatingAdmissionPolicy *admissionregistrationv1.ValidatingAdmissionPolicy, fieldManager string) (*ValidatingAdmissionPolicyApplyConfiguration, error) {
|
||||||
return extractValidatingAdmissionPolicy(validatingAdmissionPolicy, fieldManager, "status")
|
return extractValidatingAdmissionPolicy(validatingAdmissionPolicy, fieldManager, "status")
|
||||||
}
|
}
|
||||||
|
|
||||||
func extractValidatingAdmissionPolicy(validatingAdmissionPolicy *apiadmissionregistrationv1.ValidatingAdmissionPolicy, fieldManager string, subresource string) (*ValidatingAdmissionPolicyApplyConfiguration, error) {
|
func extractValidatingAdmissionPolicy(validatingAdmissionPolicy *admissionregistrationv1.ValidatingAdmissionPolicy, fieldManager string, subresource string) (*ValidatingAdmissionPolicyApplyConfiguration, error) {
|
||||||
b := &ValidatingAdmissionPolicyApplyConfiguration{}
|
b := &ValidatingAdmissionPolicyApplyConfiguration{}
|
||||||
err := managedfields.ExtractInto(validatingAdmissionPolicy, internal.Parser().Type("io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicy"), fieldManager, b, subresource)
|
err := managedfields.ExtractInto(validatingAdmissionPolicy, internal.Parser().Type("io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicy"), fieldManager, b, subresource)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -154,7 +154,7 @@ func (b *ValidatingAdmissionPolicyApplyConfiguration) WithGeneration(value int64
|
|||||||
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
|
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
|
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
|
||||||
func (b *ValidatingAdmissionPolicyApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ValidatingAdmissionPolicyApplyConfiguration {
|
func (b *ValidatingAdmissionPolicyApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ValidatingAdmissionPolicyApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
|
b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
|
||||||
return b
|
return b
|
||||||
@ -163,7 +163,7 @@ func (b *ValidatingAdmissionPolicyApplyConfiguration) WithCreationTimestamp(valu
|
|||||||
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
|
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
|
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
|
||||||
func (b *ValidatingAdmissionPolicyApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ValidatingAdmissionPolicyApplyConfiguration {
|
func (b *ValidatingAdmissionPolicyApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ValidatingAdmissionPolicyApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
|
b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
|
||||||
return b
|
return b
|
||||||
@ -211,7 +211,7 @@ func (b *ValidatingAdmissionPolicyApplyConfiguration) WithAnnotations(entries ma
|
|||||||
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
|
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
|
||||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
// 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 OwnerReferences field.
|
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
|
||||||
func (b *ValidatingAdmissionPolicyApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ValidatingAdmissionPolicyApplyConfiguration {
|
func (b *ValidatingAdmissionPolicyApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ValidatingAdmissionPolicyApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
for i := range values {
|
for i := range values {
|
||||||
if values[i] == nil {
|
if values[i] == nil {
|
||||||
@ -235,7 +235,7 @@ func (b *ValidatingAdmissionPolicyApplyConfiguration) WithFinalizers(values ...s
|
|||||||
|
|
||||||
func (b *ValidatingAdmissionPolicyApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
|
func (b *ValidatingAdmissionPolicyApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
|
||||||
if b.ObjectMetaApplyConfiguration == nil {
|
if b.ObjectMetaApplyConfiguration == nil {
|
||||||
b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
|
b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,20 +19,20 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
apiadmissionregistrationv1 "k8s.io/api/admissionregistration/v1"
|
admissionregistrationv1 "k8s.io/api/admissionregistration/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
types "k8s.io/apimachinery/pkg/types"
|
types "k8s.io/apimachinery/pkg/types"
|
||||||
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
|
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
|
||||||
internal "k8s.io/client-go/applyconfigurations/internal"
|
internal "k8s.io/client-go/applyconfigurations/internal"
|
||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ValidatingAdmissionPolicyBindingApplyConfiguration represents a declarative configuration of the ValidatingAdmissionPolicyBinding type for use
|
// ValidatingAdmissionPolicyBindingApplyConfiguration represents a declarative configuration of the ValidatingAdmissionPolicyBinding type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ValidatingAdmissionPolicyBindingApplyConfiguration struct {
|
type ValidatingAdmissionPolicyBindingApplyConfiguration struct {
|
||||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||||
Spec *ValidatingAdmissionPolicyBindingSpecApplyConfiguration `json:"spec,omitempty"`
|
Spec *ValidatingAdmissionPolicyBindingSpecApplyConfiguration `json:"spec,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ValidatingAdmissionPolicyBinding constructs a declarative configuration of the ValidatingAdmissionPolicyBinding type for use with
|
// ValidatingAdmissionPolicyBinding constructs a declarative configuration of the ValidatingAdmissionPolicyBinding type for use with
|
||||||
@ -56,18 +56,18 @@ func ValidatingAdmissionPolicyBinding(name string) *ValidatingAdmissionPolicyBin
|
|||||||
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
|
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
|
||||||
// applied if another fieldManager has updated or force applied any of the previously applied fields.
|
// applied if another fieldManager has updated or force applied any of the previously applied fields.
|
||||||
// Experimental!
|
// Experimental!
|
||||||
func ExtractValidatingAdmissionPolicyBinding(validatingAdmissionPolicyBinding *apiadmissionregistrationv1.ValidatingAdmissionPolicyBinding, fieldManager string) (*ValidatingAdmissionPolicyBindingApplyConfiguration, error) {
|
func ExtractValidatingAdmissionPolicyBinding(validatingAdmissionPolicyBinding *admissionregistrationv1.ValidatingAdmissionPolicyBinding, fieldManager string) (*ValidatingAdmissionPolicyBindingApplyConfiguration, error) {
|
||||||
return extractValidatingAdmissionPolicyBinding(validatingAdmissionPolicyBinding, fieldManager, "")
|
return extractValidatingAdmissionPolicyBinding(validatingAdmissionPolicyBinding, fieldManager, "")
|
||||||
}
|
}
|
||||||
|
|
||||||
// ExtractValidatingAdmissionPolicyBindingStatus is the same as ExtractValidatingAdmissionPolicyBinding except
|
// ExtractValidatingAdmissionPolicyBindingStatus is the same as ExtractValidatingAdmissionPolicyBinding except
|
||||||
// that it extracts the status subresource applied configuration.
|
// that it extracts the status subresource applied configuration.
|
||||||
// Experimental!
|
// Experimental!
|
||||||
func ExtractValidatingAdmissionPolicyBindingStatus(validatingAdmissionPolicyBinding *apiadmissionregistrationv1.ValidatingAdmissionPolicyBinding, fieldManager string) (*ValidatingAdmissionPolicyBindingApplyConfiguration, error) {
|
func ExtractValidatingAdmissionPolicyBindingStatus(validatingAdmissionPolicyBinding *admissionregistrationv1.ValidatingAdmissionPolicyBinding, fieldManager string) (*ValidatingAdmissionPolicyBindingApplyConfiguration, error) {
|
||||||
return extractValidatingAdmissionPolicyBinding(validatingAdmissionPolicyBinding, fieldManager, "status")
|
return extractValidatingAdmissionPolicyBinding(validatingAdmissionPolicyBinding, fieldManager, "status")
|
||||||
}
|
}
|
||||||
|
|
||||||
func extractValidatingAdmissionPolicyBinding(validatingAdmissionPolicyBinding *apiadmissionregistrationv1.ValidatingAdmissionPolicyBinding, fieldManager string, subresource string) (*ValidatingAdmissionPolicyBindingApplyConfiguration, error) {
|
func extractValidatingAdmissionPolicyBinding(validatingAdmissionPolicyBinding *admissionregistrationv1.ValidatingAdmissionPolicyBinding, fieldManager string, subresource string) (*ValidatingAdmissionPolicyBindingApplyConfiguration, error) {
|
||||||
b := &ValidatingAdmissionPolicyBindingApplyConfiguration{}
|
b := &ValidatingAdmissionPolicyBindingApplyConfiguration{}
|
||||||
err := managedfields.ExtractInto(validatingAdmissionPolicyBinding, internal.Parser().Type("io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicyBinding"), fieldManager, b, subresource)
|
err := managedfields.ExtractInto(validatingAdmissionPolicyBinding, internal.Parser().Type("io.k8s.api.admissionregistration.v1.ValidatingAdmissionPolicyBinding"), fieldManager, b, subresource)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -153,7 +153,7 @@ func (b *ValidatingAdmissionPolicyBindingApplyConfiguration) WithGeneration(valu
|
|||||||
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
|
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
|
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
|
||||||
func (b *ValidatingAdmissionPolicyBindingApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ValidatingAdmissionPolicyBindingApplyConfiguration {
|
func (b *ValidatingAdmissionPolicyBindingApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ValidatingAdmissionPolicyBindingApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
|
b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
|
||||||
return b
|
return b
|
||||||
@ -162,7 +162,7 @@ func (b *ValidatingAdmissionPolicyBindingApplyConfiguration) WithCreationTimesta
|
|||||||
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
|
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
|
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
|
||||||
func (b *ValidatingAdmissionPolicyBindingApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ValidatingAdmissionPolicyBindingApplyConfiguration {
|
func (b *ValidatingAdmissionPolicyBindingApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ValidatingAdmissionPolicyBindingApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
|
b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
|
||||||
return b
|
return b
|
||||||
@ -210,7 +210,7 @@ func (b *ValidatingAdmissionPolicyBindingApplyConfiguration) WithAnnotations(ent
|
|||||||
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
|
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
|
||||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
// 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 OwnerReferences field.
|
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
|
||||||
func (b *ValidatingAdmissionPolicyBindingApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ValidatingAdmissionPolicyBindingApplyConfiguration {
|
func (b *ValidatingAdmissionPolicyBindingApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ValidatingAdmissionPolicyBindingApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
for i := range values {
|
for i := range values {
|
||||||
if values[i] == nil {
|
if values[i] == nil {
|
||||||
@ -234,7 +234,7 @@ func (b *ValidatingAdmissionPolicyBindingApplyConfiguration) WithFinalizers(valu
|
|||||||
|
|
||||||
func (b *ValidatingAdmissionPolicyBindingApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
|
func (b *ValidatingAdmissionPolicyBindingApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
|
||||||
if b.ObjectMetaApplyConfiguration == nil {
|
if b.ObjectMetaApplyConfiguration == nil {
|
||||||
b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
|
b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,20 +19,20 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
apiadmissionregistrationv1 "k8s.io/api/admissionregistration/v1"
|
admissionregistrationv1 "k8s.io/api/admissionregistration/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
types "k8s.io/apimachinery/pkg/types"
|
types "k8s.io/apimachinery/pkg/types"
|
||||||
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
|
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
|
||||||
internal "k8s.io/client-go/applyconfigurations/internal"
|
internal "k8s.io/client-go/applyconfigurations/internal"
|
||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ValidatingWebhookConfigurationApplyConfiguration represents a declarative configuration of the ValidatingWebhookConfiguration type for use
|
// ValidatingWebhookConfigurationApplyConfiguration represents a declarative configuration of the ValidatingWebhookConfiguration type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ValidatingWebhookConfigurationApplyConfiguration struct {
|
type ValidatingWebhookConfigurationApplyConfiguration struct {
|
||||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||||
Webhooks []ValidatingWebhookApplyConfiguration `json:"webhooks,omitempty"`
|
Webhooks []ValidatingWebhookApplyConfiguration `json:"webhooks,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ValidatingWebhookConfiguration constructs a declarative configuration of the ValidatingWebhookConfiguration type for use with
|
// ValidatingWebhookConfiguration constructs a declarative configuration of the ValidatingWebhookConfiguration type for use with
|
||||||
@ -56,18 +56,18 @@ func ValidatingWebhookConfiguration(name string) *ValidatingWebhookConfiguration
|
|||||||
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
|
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
|
||||||
// applied if another fieldManager has updated or force applied any of the previously applied fields.
|
// applied if another fieldManager has updated or force applied any of the previously applied fields.
|
||||||
// Experimental!
|
// Experimental!
|
||||||
func ExtractValidatingWebhookConfiguration(validatingWebhookConfiguration *apiadmissionregistrationv1.ValidatingWebhookConfiguration, fieldManager string) (*ValidatingWebhookConfigurationApplyConfiguration, error) {
|
func ExtractValidatingWebhookConfiguration(validatingWebhookConfiguration *admissionregistrationv1.ValidatingWebhookConfiguration, fieldManager string) (*ValidatingWebhookConfigurationApplyConfiguration, error) {
|
||||||
return extractValidatingWebhookConfiguration(validatingWebhookConfiguration, fieldManager, "")
|
return extractValidatingWebhookConfiguration(validatingWebhookConfiguration, fieldManager, "")
|
||||||
}
|
}
|
||||||
|
|
||||||
// ExtractValidatingWebhookConfigurationStatus is the same as ExtractValidatingWebhookConfiguration except
|
// ExtractValidatingWebhookConfigurationStatus is the same as ExtractValidatingWebhookConfiguration except
|
||||||
// that it extracts the status subresource applied configuration.
|
// that it extracts the status subresource applied configuration.
|
||||||
// Experimental!
|
// Experimental!
|
||||||
func ExtractValidatingWebhookConfigurationStatus(validatingWebhookConfiguration *apiadmissionregistrationv1.ValidatingWebhookConfiguration, fieldManager string) (*ValidatingWebhookConfigurationApplyConfiguration, error) {
|
func ExtractValidatingWebhookConfigurationStatus(validatingWebhookConfiguration *admissionregistrationv1.ValidatingWebhookConfiguration, fieldManager string) (*ValidatingWebhookConfigurationApplyConfiguration, error) {
|
||||||
return extractValidatingWebhookConfiguration(validatingWebhookConfiguration, fieldManager, "status")
|
return extractValidatingWebhookConfiguration(validatingWebhookConfiguration, fieldManager, "status")
|
||||||
}
|
}
|
||||||
|
|
||||||
func extractValidatingWebhookConfiguration(validatingWebhookConfiguration *apiadmissionregistrationv1.ValidatingWebhookConfiguration, fieldManager string, subresource string) (*ValidatingWebhookConfigurationApplyConfiguration, error) {
|
func extractValidatingWebhookConfiguration(validatingWebhookConfiguration *admissionregistrationv1.ValidatingWebhookConfiguration, fieldManager string, subresource string) (*ValidatingWebhookConfigurationApplyConfiguration, error) {
|
||||||
b := &ValidatingWebhookConfigurationApplyConfiguration{}
|
b := &ValidatingWebhookConfigurationApplyConfiguration{}
|
||||||
err := managedfields.ExtractInto(validatingWebhookConfiguration, internal.Parser().Type("io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration"), fieldManager, b, subresource)
|
err := managedfields.ExtractInto(validatingWebhookConfiguration, internal.Parser().Type("io.k8s.api.admissionregistration.v1.ValidatingWebhookConfiguration"), fieldManager, b, subresource)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -153,7 +153,7 @@ func (b *ValidatingWebhookConfigurationApplyConfiguration) WithGeneration(value
|
|||||||
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
|
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
|
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
|
||||||
func (b *ValidatingWebhookConfigurationApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ValidatingWebhookConfigurationApplyConfiguration {
|
func (b *ValidatingWebhookConfigurationApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ValidatingWebhookConfigurationApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
|
b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
|
||||||
return b
|
return b
|
||||||
@ -162,7 +162,7 @@ func (b *ValidatingWebhookConfigurationApplyConfiguration) WithCreationTimestamp
|
|||||||
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
|
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
|
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
|
||||||
func (b *ValidatingWebhookConfigurationApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ValidatingWebhookConfigurationApplyConfiguration {
|
func (b *ValidatingWebhookConfigurationApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ValidatingWebhookConfigurationApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
|
b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
|
||||||
return b
|
return b
|
||||||
@ -210,7 +210,7 @@ func (b *ValidatingWebhookConfigurationApplyConfiguration) WithAnnotations(entri
|
|||||||
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
|
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
|
||||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
// 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 OwnerReferences field.
|
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
|
||||||
func (b *ValidatingWebhookConfigurationApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ValidatingWebhookConfigurationApplyConfiguration {
|
func (b *ValidatingWebhookConfigurationApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ValidatingWebhookConfigurationApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
for i := range values {
|
for i := range values {
|
||||||
if values[i] == nil {
|
if values[i] == nil {
|
||||||
@ -234,7 +234,7 @@ func (b *ValidatingWebhookConfigurationApplyConfiguration) WithFinalizers(values
|
|||||||
|
|
||||||
func (b *ValidatingWebhookConfigurationApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
|
func (b *ValidatingWebhookConfigurationApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
|
||||||
if b.ObjectMetaApplyConfiguration == nil {
|
if b.ObjectMetaApplyConfiguration == nil {
|
||||||
b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
|
b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,16 +19,16 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ValidationApplyConfiguration represents a declarative configuration of the Validation type for use
|
// ValidationApplyConfiguration represents a declarative configuration of the Validation type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ValidationApplyConfiguration struct {
|
type ValidationApplyConfiguration struct {
|
||||||
Expression *string `json:"expression,omitempty"`
|
Expression *string `json:"expression,omitempty"`
|
||||||
Message *string `json:"message,omitempty"`
|
Message *string `json:"message,omitempty"`
|
||||||
Reason *v1.StatusReason `json:"reason,omitempty"`
|
Reason *metav1.StatusReason `json:"reason,omitempty"`
|
||||||
MessageExpression *string `json:"messageExpression,omitempty"`
|
MessageExpression *string `json:"messageExpression,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ValidationApplyConfiguration constructs a declarative configuration of the Validation type for use with
|
// ValidationApplyConfiguration constructs a declarative configuration of the Validation type for use with
|
||||||
@ -56,7 +56,7 @@ func (b *ValidationApplyConfiguration) WithMessage(value string) *ValidationAppl
|
|||||||
// WithReason sets the Reason field in the declarative configuration to the given value
|
// 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.
|
// 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.
|
// If called multiple times, the Reason field is set to the value of the last call.
|
||||||
func (b *ValidationApplyConfiguration) WithReason(value v1.StatusReason) *ValidationApplyConfiguration {
|
func (b *ValidationApplyConfiguration) WithReason(value metav1.StatusReason) *ValidationApplyConfiguration {
|
||||||
b.Reason = &value
|
b.Reason = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,17 +19,17 @@ limitations under the License.
|
|||||||
package v1alpha1
|
package v1alpha1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1alpha1 "k8s.io/api/admissionregistration/v1alpha1"
|
admissionregistrationv1alpha1 "k8s.io/api/admissionregistration/v1alpha1"
|
||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ParamRefApplyConfiguration represents a declarative configuration of the ParamRef type for use
|
// ParamRefApplyConfiguration represents a declarative configuration of the ParamRef type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ParamRefApplyConfiguration struct {
|
type ParamRefApplyConfiguration struct {
|
||||||
Name *string `json:"name,omitempty"`
|
Name *string `json:"name,omitempty"`
|
||||||
Namespace *string `json:"namespace,omitempty"`
|
Namespace *string `json:"namespace,omitempty"`
|
||||||
Selector *v1.LabelSelectorApplyConfiguration `json:"selector,omitempty"`
|
Selector *v1.LabelSelectorApplyConfiguration `json:"selector,omitempty"`
|
||||||
ParameterNotFoundAction *v1alpha1.ParameterNotFoundActionType `json:"parameterNotFoundAction,omitempty"`
|
ParameterNotFoundAction *admissionregistrationv1alpha1.ParameterNotFoundActionType `json:"parameterNotFoundAction,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ParamRefApplyConfiguration constructs a declarative configuration of the ParamRef type for use with
|
// ParamRefApplyConfiguration constructs a declarative configuration of the ParamRef type for use with
|
||||||
@ -65,7 +65,7 @@ func (b *ParamRefApplyConfiguration) WithSelector(value *v1.LabelSelectorApplyCo
|
|||||||
// WithParameterNotFoundAction sets the ParameterNotFoundAction field in the declarative configuration to the given value
|
// WithParameterNotFoundAction sets the ParameterNotFoundAction field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the ParameterNotFoundAction field is set to the value of the last call.
|
// If called multiple times, the ParameterNotFoundAction field is set to the value of the last call.
|
||||||
func (b *ParamRefApplyConfiguration) WithParameterNotFoundAction(value v1alpha1.ParameterNotFoundActionType) *ParamRefApplyConfiguration {
|
func (b *ParamRefApplyConfiguration) WithParameterNotFoundAction(value admissionregistrationv1alpha1.ParameterNotFoundActionType) *ParamRefApplyConfiguration {
|
||||||
b.ParameterNotFoundAction = &value
|
b.ParameterNotFoundAction = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,17 +19,17 @@ limitations under the License.
|
|||||||
package v1beta1
|
package v1beta1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1beta1 "k8s.io/api/admissionregistration/v1beta1"
|
admissionregistrationv1beta1 "k8s.io/api/admissionregistration/v1beta1"
|
||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ParamRefApplyConfiguration represents a declarative configuration of the ParamRef type for use
|
// ParamRefApplyConfiguration represents a declarative configuration of the ParamRef type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ParamRefApplyConfiguration struct {
|
type ParamRefApplyConfiguration struct {
|
||||||
Name *string `json:"name,omitempty"`
|
Name *string `json:"name,omitempty"`
|
||||||
Namespace *string `json:"namespace,omitempty"`
|
Namespace *string `json:"namespace,omitempty"`
|
||||||
Selector *v1.LabelSelectorApplyConfiguration `json:"selector,omitempty"`
|
Selector *v1.LabelSelectorApplyConfiguration `json:"selector,omitempty"`
|
||||||
ParameterNotFoundAction *v1beta1.ParameterNotFoundActionType `json:"parameterNotFoundAction,omitempty"`
|
ParameterNotFoundAction *admissionregistrationv1beta1.ParameterNotFoundActionType `json:"parameterNotFoundAction,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ParamRefApplyConfiguration constructs a declarative configuration of the ParamRef type for use with
|
// ParamRefApplyConfiguration constructs a declarative configuration of the ParamRef type for use with
|
||||||
@ -65,7 +65,7 @@ func (b *ParamRefApplyConfiguration) WithSelector(value *v1.LabelSelectorApplyCo
|
|||||||
// WithParameterNotFoundAction sets the ParameterNotFoundAction field in the declarative configuration to the given value
|
// WithParameterNotFoundAction sets the ParameterNotFoundAction field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the ParameterNotFoundAction field is set to the value of the last call.
|
// If called multiple times, the ParameterNotFoundAction field is set to the value of the last call.
|
||||||
func (b *ParamRefApplyConfiguration) WithParameterNotFoundAction(value v1beta1.ParameterNotFoundActionType) *ParamRefApplyConfiguration {
|
func (b *ParamRefApplyConfiguration) WithParameterNotFoundAction(value admissionregistrationv1beta1.ParameterNotFoundActionType) *ParamRefApplyConfiguration {
|
||||||
b.ParameterNotFoundAction = &value
|
b.ParameterNotFoundAction = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@ limitations under the License.
|
|||||||
package v1alpha1
|
package v1alpha1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1alpha1 "k8s.io/api/apiserverinternal/v1alpha1"
|
apiserverinternalv1alpha1 "k8s.io/api/apiserverinternal/v1alpha1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
types "k8s.io/apimachinery/pkg/types"
|
types "k8s.io/apimachinery/pkg/types"
|
||||||
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
|
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
|
||||||
@ -32,8 +32,8 @@ import (
|
|||||||
type StorageVersionApplyConfiguration struct {
|
type StorageVersionApplyConfiguration struct {
|
||||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||||
Spec *v1alpha1.StorageVersionSpec `json:"spec,omitempty"`
|
Spec *apiserverinternalv1alpha1.StorageVersionSpec `json:"spec,omitempty"`
|
||||||
Status *StorageVersionStatusApplyConfiguration `json:"status,omitempty"`
|
Status *StorageVersionStatusApplyConfiguration `json:"status,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// StorageVersion constructs a declarative configuration of the StorageVersion type for use with
|
// StorageVersion constructs a declarative configuration of the StorageVersion type for use with
|
||||||
@ -57,18 +57,18 @@ func StorageVersion(name string) *StorageVersionApplyConfiguration {
|
|||||||
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
|
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
|
||||||
// applied if another fieldManager has updated or force applied any of the previously applied fields.
|
// applied if another fieldManager has updated or force applied any of the previously applied fields.
|
||||||
// Experimental!
|
// Experimental!
|
||||||
func ExtractStorageVersion(storageVersion *v1alpha1.StorageVersion, fieldManager string) (*StorageVersionApplyConfiguration, error) {
|
func ExtractStorageVersion(storageVersion *apiserverinternalv1alpha1.StorageVersion, fieldManager string) (*StorageVersionApplyConfiguration, error) {
|
||||||
return extractStorageVersion(storageVersion, fieldManager, "")
|
return extractStorageVersion(storageVersion, fieldManager, "")
|
||||||
}
|
}
|
||||||
|
|
||||||
// ExtractStorageVersionStatus is the same as ExtractStorageVersion except
|
// ExtractStorageVersionStatus is the same as ExtractStorageVersion except
|
||||||
// that it extracts the status subresource applied configuration.
|
// that it extracts the status subresource applied configuration.
|
||||||
// Experimental!
|
// Experimental!
|
||||||
func ExtractStorageVersionStatus(storageVersion *v1alpha1.StorageVersion, fieldManager string) (*StorageVersionApplyConfiguration, error) {
|
func ExtractStorageVersionStatus(storageVersion *apiserverinternalv1alpha1.StorageVersion, fieldManager string) (*StorageVersionApplyConfiguration, error) {
|
||||||
return extractStorageVersion(storageVersion, fieldManager, "status")
|
return extractStorageVersion(storageVersion, fieldManager, "status")
|
||||||
}
|
}
|
||||||
|
|
||||||
func extractStorageVersion(storageVersion *v1alpha1.StorageVersion, fieldManager string, subresource string) (*StorageVersionApplyConfiguration, error) {
|
func extractStorageVersion(storageVersion *apiserverinternalv1alpha1.StorageVersion, fieldManager string, subresource string) (*StorageVersionApplyConfiguration, error) {
|
||||||
b := &StorageVersionApplyConfiguration{}
|
b := &StorageVersionApplyConfiguration{}
|
||||||
err := managedfields.ExtractInto(storageVersion, internal.Parser().Type("io.k8s.api.apiserverinternal.v1alpha1.StorageVersion"), fieldManager, b, subresource)
|
err := managedfields.ExtractInto(storageVersion, internal.Parser().Type("io.k8s.api.apiserverinternal.v1alpha1.StorageVersion"), fieldManager, b, subresource)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -242,7 +242,7 @@ func (b *StorageVersionApplyConfiguration) ensureObjectMetaApplyConfigurationExi
|
|||||||
// WithSpec sets the Spec field in the declarative configuration to the given value
|
// WithSpec sets the Spec field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the Spec field is set to the value of the last call.
|
// If called multiple times, the Spec field is set to the value of the last call.
|
||||||
func (b *StorageVersionApplyConfiguration) WithSpec(value v1alpha1.StorageVersionSpec) *StorageVersionApplyConfiguration {
|
func (b *StorageVersionApplyConfiguration) WithSpec(value apiserverinternalv1alpha1.StorageVersionSpec) *StorageVersionApplyConfiguration {
|
||||||
b.Spec = &value
|
b.Spec = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,19 +19,19 @@ limitations under the License.
|
|||||||
package v1alpha1
|
package v1alpha1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1alpha1 "k8s.io/api/apiserverinternal/v1alpha1"
|
apiserverinternalv1alpha1 "k8s.io/api/apiserverinternal/v1alpha1"
|
||||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// StorageVersionConditionApplyConfiguration represents a declarative configuration of the StorageVersionCondition type for use
|
// StorageVersionConditionApplyConfiguration represents a declarative configuration of the StorageVersionCondition type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type StorageVersionConditionApplyConfiguration struct {
|
type StorageVersionConditionApplyConfiguration struct {
|
||||||
Type *v1alpha1.StorageVersionConditionType `json:"type,omitempty"`
|
Type *apiserverinternalv1alpha1.StorageVersionConditionType `json:"type,omitempty"`
|
||||||
Status *v1alpha1.ConditionStatus `json:"status,omitempty"`
|
Status *apiserverinternalv1alpha1.ConditionStatus `json:"status,omitempty"`
|
||||||
ObservedGeneration *int64 `json:"observedGeneration,omitempty"`
|
ObservedGeneration *int64 `json:"observedGeneration,omitempty"`
|
||||||
LastTransitionTime *v1.Time `json:"lastTransitionTime,omitempty"`
|
LastTransitionTime *v1.Time `json:"lastTransitionTime,omitempty"`
|
||||||
Reason *string `json:"reason,omitempty"`
|
Reason *string `json:"reason,omitempty"`
|
||||||
Message *string `json:"message,omitempty"`
|
Message *string `json:"message,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// StorageVersionConditionApplyConfiguration constructs a declarative configuration of the StorageVersionCondition type for use with
|
// StorageVersionConditionApplyConfiguration constructs a declarative configuration of the StorageVersionCondition type for use with
|
||||||
@ -43,7 +43,7 @@ func StorageVersionCondition() *StorageVersionConditionApplyConfiguration {
|
|||||||
// WithType sets the Type field in the declarative configuration to the given value
|
// 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.
|
// 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.
|
// If called multiple times, the Type field is set to the value of the last call.
|
||||||
func (b *StorageVersionConditionApplyConfiguration) WithType(value v1alpha1.StorageVersionConditionType) *StorageVersionConditionApplyConfiguration {
|
func (b *StorageVersionConditionApplyConfiguration) WithType(value apiserverinternalv1alpha1.StorageVersionConditionType) *StorageVersionConditionApplyConfiguration {
|
||||||
b.Type = &value
|
b.Type = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
@ -51,7 +51,7 @@ func (b *StorageVersionConditionApplyConfiguration) WithType(value v1alpha1.Stor
|
|||||||
// WithStatus sets the Status field in the declarative configuration to the given value
|
// 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.
|
// 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.
|
// If called multiple times, the Status field is set to the value of the last call.
|
||||||
func (b *StorageVersionConditionApplyConfiguration) WithStatus(value v1alpha1.ConditionStatus) *StorageVersionConditionApplyConfiguration {
|
func (b *StorageVersionConditionApplyConfiguration) WithStatus(value apiserverinternalv1alpha1.ConditionStatus) *StorageVersionConditionApplyConfiguration {
|
||||||
b.Status = &value
|
b.Status = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -20,21 +20,21 @@ package v1
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
appsv1 "k8s.io/api/apps/v1"
|
appsv1 "k8s.io/api/apps/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||||
types "k8s.io/apimachinery/pkg/types"
|
types "k8s.io/apimachinery/pkg/types"
|
||||||
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
|
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
|
||||||
internal "k8s.io/client-go/applyconfigurations/internal"
|
internal "k8s.io/client-go/applyconfigurations/internal"
|
||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ControllerRevisionApplyConfiguration represents a declarative configuration of the ControllerRevision type for use
|
// ControllerRevisionApplyConfiguration represents a declarative configuration of the ControllerRevision type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ControllerRevisionApplyConfiguration struct {
|
type ControllerRevisionApplyConfiguration struct {
|
||||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||||
Data *runtime.RawExtension `json:"data,omitempty"`
|
Data *runtime.RawExtension `json:"data,omitempty"`
|
||||||
Revision *int64 `json:"revision,omitempty"`
|
Revision *int64 `json:"revision,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ControllerRevision constructs a declarative configuration of the ControllerRevision type for use with
|
// ControllerRevision constructs a declarative configuration of the ControllerRevision type for use with
|
||||||
@ -157,7 +157,7 @@ func (b *ControllerRevisionApplyConfiguration) WithGeneration(value int64) *Cont
|
|||||||
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
|
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
|
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
|
||||||
func (b *ControllerRevisionApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ControllerRevisionApplyConfiguration {
|
func (b *ControllerRevisionApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ControllerRevisionApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
|
b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
|
||||||
return b
|
return b
|
||||||
@ -166,7 +166,7 @@ func (b *ControllerRevisionApplyConfiguration) WithCreationTimestamp(value metav
|
|||||||
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
|
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
|
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
|
||||||
func (b *ControllerRevisionApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ControllerRevisionApplyConfiguration {
|
func (b *ControllerRevisionApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ControllerRevisionApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
|
b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
|
||||||
return b
|
return b
|
||||||
@ -214,7 +214,7 @@ func (b *ControllerRevisionApplyConfiguration) WithAnnotations(entries map[strin
|
|||||||
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
|
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
|
||||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
// 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 OwnerReferences field.
|
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
|
||||||
func (b *ControllerRevisionApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ControllerRevisionApplyConfiguration {
|
func (b *ControllerRevisionApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ControllerRevisionApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
for i := range values {
|
for i := range values {
|
||||||
if values[i] == nil {
|
if values[i] == nil {
|
||||||
@ -238,7 +238,7 @@ func (b *ControllerRevisionApplyConfiguration) WithFinalizers(values ...string)
|
|||||||
|
|
||||||
func (b *ControllerRevisionApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
|
func (b *ControllerRevisionApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
|
||||||
if b.ObjectMetaApplyConfiguration == nil {
|
if b.ObjectMetaApplyConfiguration == nil {
|
||||||
b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
|
b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,21 +19,21 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
apiappsv1 "k8s.io/api/apps/v1"
|
appsv1 "k8s.io/api/apps/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
types "k8s.io/apimachinery/pkg/types"
|
types "k8s.io/apimachinery/pkg/types"
|
||||||
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
|
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
|
||||||
internal "k8s.io/client-go/applyconfigurations/internal"
|
internal "k8s.io/client-go/applyconfigurations/internal"
|
||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// DaemonSetApplyConfiguration represents a declarative configuration of the DaemonSet type for use
|
// DaemonSetApplyConfiguration represents a declarative configuration of the DaemonSet type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type DaemonSetApplyConfiguration struct {
|
type DaemonSetApplyConfiguration struct {
|
||||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||||
Spec *DaemonSetSpecApplyConfiguration `json:"spec,omitempty"`
|
Spec *DaemonSetSpecApplyConfiguration `json:"spec,omitempty"`
|
||||||
Status *DaemonSetStatusApplyConfiguration `json:"status,omitempty"`
|
Status *DaemonSetStatusApplyConfiguration `json:"status,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// DaemonSet constructs a declarative configuration of the DaemonSet type for use with
|
// DaemonSet constructs a declarative configuration of the DaemonSet type for use with
|
||||||
@ -58,18 +58,18 @@ func DaemonSet(name, namespace string) *DaemonSetApplyConfiguration {
|
|||||||
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
|
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
|
||||||
// applied if another fieldManager has updated or force applied any of the previously applied fields.
|
// applied if another fieldManager has updated or force applied any of the previously applied fields.
|
||||||
// Experimental!
|
// Experimental!
|
||||||
func ExtractDaemonSet(daemonSet *apiappsv1.DaemonSet, fieldManager string) (*DaemonSetApplyConfiguration, error) {
|
func ExtractDaemonSet(daemonSet *appsv1.DaemonSet, fieldManager string) (*DaemonSetApplyConfiguration, error) {
|
||||||
return extractDaemonSet(daemonSet, fieldManager, "")
|
return extractDaemonSet(daemonSet, fieldManager, "")
|
||||||
}
|
}
|
||||||
|
|
||||||
// ExtractDaemonSetStatus is the same as ExtractDaemonSet except
|
// ExtractDaemonSetStatus is the same as ExtractDaemonSet except
|
||||||
// that it extracts the status subresource applied configuration.
|
// that it extracts the status subresource applied configuration.
|
||||||
// Experimental!
|
// Experimental!
|
||||||
func ExtractDaemonSetStatus(daemonSet *apiappsv1.DaemonSet, fieldManager string) (*DaemonSetApplyConfiguration, error) {
|
func ExtractDaemonSetStatus(daemonSet *appsv1.DaemonSet, fieldManager string) (*DaemonSetApplyConfiguration, error) {
|
||||||
return extractDaemonSet(daemonSet, fieldManager, "status")
|
return extractDaemonSet(daemonSet, fieldManager, "status")
|
||||||
}
|
}
|
||||||
|
|
||||||
func extractDaemonSet(daemonSet *apiappsv1.DaemonSet, fieldManager string, subresource string) (*DaemonSetApplyConfiguration, error) {
|
func extractDaemonSet(daemonSet *appsv1.DaemonSet, fieldManager string, subresource string) (*DaemonSetApplyConfiguration, error) {
|
||||||
b := &DaemonSetApplyConfiguration{}
|
b := &DaemonSetApplyConfiguration{}
|
||||||
err := managedfields.ExtractInto(daemonSet, internal.Parser().Type("io.k8s.api.apps.v1.DaemonSet"), fieldManager, b, subresource)
|
err := managedfields.ExtractInto(daemonSet, internal.Parser().Type("io.k8s.api.apps.v1.DaemonSet"), fieldManager, b, subresource)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -156,7 +156,7 @@ func (b *DaemonSetApplyConfiguration) WithGeneration(value int64) *DaemonSetAppl
|
|||||||
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
|
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
|
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
|
||||||
func (b *DaemonSetApplyConfiguration) WithCreationTimestamp(value metav1.Time) *DaemonSetApplyConfiguration {
|
func (b *DaemonSetApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *DaemonSetApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
|
b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
|
||||||
return b
|
return b
|
||||||
@ -165,7 +165,7 @@ func (b *DaemonSetApplyConfiguration) WithCreationTimestamp(value metav1.Time) *
|
|||||||
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
|
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
|
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
|
||||||
func (b *DaemonSetApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *DaemonSetApplyConfiguration {
|
func (b *DaemonSetApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *DaemonSetApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
|
b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
|
||||||
return b
|
return b
|
||||||
@ -213,7 +213,7 @@ func (b *DaemonSetApplyConfiguration) WithAnnotations(entries map[string]string)
|
|||||||
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
|
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
|
||||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
// 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 OwnerReferences field.
|
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
|
||||||
func (b *DaemonSetApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *DaemonSetApplyConfiguration {
|
func (b *DaemonSetApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *DaemonSetApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
for i := range values {
|
for i := range values {
|
||||||
if values[i] == nil {
|
if values[i] == nil {
|
||||||
@ -237,7 +237,7 @@ func (b *DaemonSetApplyConfiguration) WithFinalizers(values ...string) *DaemonSe
|
|||||||
|
|
||||||
func (b *DaemonSetApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
|
func (b *DaemonSetApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
|
||||||
if b.ObjectMetaApplyConfiguration == nil {
|
if b.ObjectMetaApplyConfiguration == nil {
|
||||||
b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
|
b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1 "k8s.io/api/apps/v1"
|
appsv1 "k8s.io/api/apps/v1"
|
||||||
corev1 "k8s.io/api/core/v1"
|
corev1 "k8s.io/api/core/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
)
|
)
|
||||||
@ -27,11 +27,11 @@ import (
|
|||||||
// DaemonSetConditionApplyConfiguration represents a declarative configuration of the DaemonSetCondition type for use
|
// DaemonSetConditionApplyConfiguration represents a declarative configuration of the DaemonSetCondition type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type DaemonSetConditionApplyConfiguration struct {
|
type DaemonSetConditionApplyConfiguration struct {
|
||||||
Type *v1.DaemonSetConditionType `json:"type,omitempty"`
|
Type *appsv1.DaemonSetConditionType `json:"type,omitempty"`
|
||||||
Status *corev1.ConditionStatus `json:"status,omitempty"`
|
Status *corev1.ConditionStatus `json:"status,omitempty"`
|
||||||
LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
|
LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
|
||||||
Reason *string `json:"reason,omitempty"`
|
Reason *string `json:"reason,omitempty"`
|
||||||
Message *string `json:"message,omitempty"`
|
Message *string `json:"message,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// DaemonSetConditionApplyConfiguration constructs a declarative configuration of the DaemonSetCondition type for use with
|
// DaemonSetConditionApplyConfiguration constructs a declarative configuration of the DaemonSetCondition type for use with
|
||||||
@ -43,7 +43,7 @@ func DaemonSetCondition() *DaemonSetConditionApplyConfiguration {
|
|||||||
// WithType sets the Type field in the declarative configuration to the given value
|
// 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.
|
// 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.
|
// If called multiple times, the Type field is set to the value of the last call.
|
||||||
func (b *DaemonSetConditionApplyConfiguration) WithType(value v1.DaemonSetConditionType) *DaemonSetConditionApplyConfiguration {
|
func (b *DaemonSetConditionApplyConfiguration) WithType(value appsv1.DaemonSetConditionType) *DaemonSetConditionApplyConfiguration {
|
||||||
b.Type = &value
|
b.Type = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -20,13 +20,13 @@ package v1
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
corev1 "k8s.io/client-go/applyconfigurations/core/v1"
|
corev1 "k8s.io/client-go/applyconfigurations/core/v1"
|
||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// DaemonSetSpecApplyConfiguration represents a declarative configuration of the DaemonSetSpec type for use
|
// DaemonSetSpecApplyConfiguration represents a declarative configuration of the DaemonSetSpec type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type DaemonSetSpecApplyConfiguration struct {
|
type DaemonSetSpecApplyConfiguration struct {
|
||||||
Selector *v1.LabelSelectorApplyConfiguration `json:"selector,omitempty"`
|
Selector *metav1.LabelSelectorApplyConfiguration `json:"selector,omitempty"`
|
||||||
Template *corev1.PodTemplateSpecApplyConfiguration `json:"template,omitempty"`
|
Template *corev1.PodTemplateSpecApplyConfiguration `json:"template,omitempty"`
|
||||||
UpdateStrategy *DaemonSetUpdateStrategyApplyConfiguration `json:"updateStrategy,omitempty"`
|
UpdateStrategy *DaemonSetUpdateStrategyApplyConfiguration `json:"updateStrategy,omitempty"`
|
||||||
MinReadySeconds *int32 `json:"minReadySeconds,omitempty"`
|
MinReadySeconds *int32 `json:"minReadySeconds,omitempty"`
|
||||||
@ -42,7 +42,7 @@ func DaemonSetSpec() *DaemonSetSpecApplyConfiguration {
|
|||||||
// WithSelector sets the Selector field in the declarative configuration to the given value
|
// WithSelector sets the Selector field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the Selector field is set to the value of the last call.
|
// If called multiple times, the Selector field is set to the value of the last call.
|
||||||
func (b *DaemonSetSpecApplyConfiguration) WithSelector(value *v1.LabelSelectorApplyConfiguration) *DaemonSetSpecApplyConfiguration {
|
func (b *DaemonSetSpecApplyConfiguration) WithSelector(value *metav1.LabelSelectorApplyConfiguration) *DaemonSetSpecApplyConfiguration {
|
||||||
b.Selector = value
|
b.Selector = value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,13 +19,13 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1 "k8s.io/api/apps/v1"
|
appsv1 "k8s.io/api/apps/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// DaemonSetUpdateStrategyApplyConfiguration represents a declarative configuration of the DaemonSetUpdateStrategy type for use
|
// DaemonSetUpdateStrategyApplyConfiguration represents a declarative configuration of the DaemonSetUpdateStrategy type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type DaemonSetUpdateStrategyApplyConfiguration struct {
|
type DaemonSetUpdateStrategyApplyConfiguration struct {
|
||||||
Type *v1.DaemonSetUpdateStrategyType `json:"type,omitempty"`
|
Type *appsv1.DaemonSetUpdateStrategyType `json:"type,omitempty"`
|
||||||
RollingUpdate *RollingUpdateDaemonSetApplyConfiguration `json:"rollingUpdate,omitempty"`
|
RollingUpdate *RollingUpdateDaemonSetApplyConfiguration `json:"rollingUpdate,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -38,7 +38,7 @@ func DaemonSetUpdateStrategy() *DaemonSetUpdateStrategyApplyConfiguration {
|
|||||||
// WithType sets the Type field in the declarative configuration to the given value
|
// 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.
|
// 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.
|
// If called multiple times, the Type field is set to the value of the last call.
|
||||||
func (b *DaemonSetUpdateStrategyApplyConfiguration) WithType(value v1.DaemonSetUpdateStrategyType) *DaemonSetUpdateStrategyApplyConfiguration {
|
func (b *DaemonSetUpdateStrategyApplyConfiguration) WithType(value appsv1.DaemonSetUpdateStrategyType) *DaemonSetUpdateStrategyApplyConfiguration {
|
||||||
b.Type = &value
|
b.Type = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,21 +19,21 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
apiappsv1 "k8s.io/api/apps/v1"
|
appsv1 "k8s.io/api/apps/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
types "k8s.io/apimachinery/pkg/types"
|
types "k8s.io/apimachinery/pkg/types"
|
||||||
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
|
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
|
||||||
internal "k8s.io/client-go/applyconfigurations/internal"
|
internal "k8s.io/client-go/applyconfigurations/internal"
|
||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// DeploymentApplyConfiguration represents a declarative configuration of the Deployment type for use
|
// DeploymentApplyConfiguration represents a declarative configuration of the Deployment type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type DeploymentApplyConfiguration struct {
|
type DeploymentApplyConfiguration struct {
|
||||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||||
Spec *DeploymentSpecApplyConfiguration `json:"spec,omitempty"`
|
Spec *DeploymentSpecApplyConfiguration `json:"spec,omitempty"`
|
||||||
Status *DeploymentStatusApplyConfiguration `json:"status,omitempty"`
|
Status *DeploymentStatusApplyConfiguration `json:"status,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deployment constructs a declarative configuration of the Deployment type for use with
|
// Deployment constructs a declarative configuration of the Deployment type for use with
|
||||||
@ -58,18 +58,18 @@ func Deployment(name, namespace string) *DeploymentApplyConfiguration {
|
|||||||
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
|
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
|
||||||
// applied if another fieldManager has updated or force applied any of the previously applied fields.
|
// applied if another fieldManager has updated or force applied any of the previously applied fields.
|
||||||
// Experimental!
|
// Experimental!
|
||||||
func ExtractDeployment(deployment *apiappsv1.Deployment, fieldManager string) (*DeploymentApplyConfiguration, error) {
|
func ExtractDeployment(deployment *appsv1.Deployment, fieldManager string) (*DeploymentApplyConfiguration, error) {
|
||||||
return extractDeployment(deployment, fieldManager, "")
|
return extractDeployment(deployment, fieldManager, "")
|
||||||
}
|
}
|
||||||
|
|
||||||
// ExtractDeploymentStatus is the same as ExtractDeployment except
|
// ExtractDeploymentStatus is the same as ExtractDeployment except
|
||||||
// that it extracts the status subresource applied configuration.
|
// that it extracts the status subresource applied configuration.
|
||||||
// Experimental!
|
// Experimental!
|
||||||
func ExtractDeploymentStatus(deployment *apiappsv1.Deployment, fieldManager string) (*DeploymentApplyConfiguration, error) {
|
func ExtractDeploymentStatus(deployment *appsv1.Deployment, fieldManager string) (*DeploymentApplyConfiguration, error) {
|
||||||
return extractDeployment(deployment, fieldManager, "status")
|
return extractDeployment(deployment, fieldManager, "status")
|
||||||
}
|
}
|
||||||
|
|
||||||
func extractDeployment(deployment *apiappsv1.Deployment, fieldManager string, subresource string) (*DeploymentApplyConfiguration, error) {
|
func extractDeployment(deployment *appsv1.Deployment, fieldManager string, subresource string) (*DeploymentApplyConfiguration, error) {
|
||||||
b := &DeploymentApplyConfiguration{}
|
b := &DeploymentApplyConfiguration{}
|
||||||
err := managedfields.ExtractInto(deployment, internal.Parser().Type("io.k8s.api.apps.v1.Deployment"), fieldManager, b, subresource)
|
err := managedfields.ExtractInto(deployment, internal.Parser().Type("io.k8s.api.apps.v1.Deployment"), fieldManager, b, subresource)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -156,7 +156,7 @@ func (b *DeploymentApplyConfiguration) WithGeneration(value int64) *DeploymentAp
|
|||||||
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
|
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
|
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
|
||||||
func (b *DeploymentApplyConfiguration) WithCreationTimestamp(value metav1.Time) *DeploymentApplyConfiguration {
|
func (b *DeploymentApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *DeploymentApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
|
b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
|
||||||
return b
|
return b
|
||||||
@ -165,7 +165,7 @@ func (b *DeploymentApplyConfiguration) WithCreationTimestamp(value metav1.Time)
|
|||||||
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
|
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
|
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
|
||||||
func (b *DeploymentApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *DeploymentApplyConfiguration {
|
func (b *DeploymentApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *DeploymentApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
|
b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
|
||||||
return b
|
return b
|
||||||
@ -213,7 +213,7 @@ func (b *DeploymentApplyConfiguration) WithAnnotations(entries map[string]string
|
|||||||
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
|
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
|
||||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
// 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 OwnerReferences field.
|
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
|
||||||
func (b *DeploymentApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *DeploymentApplyConfiguration {
|
func (b *DeploymentApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *DeploymentApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
for i := range values {
|
for i := range values {
|
||||||
if values[i] == nil {
|
if values[i] == nil {
|
||||||
@ -237,7 +237,7 @@ func (b *DeploymentApplyConfiguration) WithFinalizers(values ...string) *Deploym
|
|||||||
|
|
||||||
func (b *DeploymentApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
|
func (b *DeploymentApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
|
||||||
if b.ObjectMetaApplyConfiguration == nil {
|
if b.ObjectMetaApplyConfiguration == nil {
|
||||||
b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
|
b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1 "k8s.io/api/apps/v1"
|
appsv1 "k8s.io/api/apps/v1"
|
||||||
corev1 "k8s.io/api/core/v1"
|
corev1 "k8s.io/api/core/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
)
|
)
|
||||||
@ -27,12 +27,12 @@ import (
|
|||||||
// DeploymentConditionApplyConfiguration represents a declarative configuration of the DeploymentCondition type for use
|
// DeploymentConditionApplyConfiguration represents a declarative configuration of the DeploymentCondition type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type DeploymentConditionApplyConfiguration struct {
|
type DeploymentConditionApplyConfiguration struct {
|
||||||
Type *v1.DeploymentConditionType `json:"type,omitempty"`
|
Type *appsv1.DeploymentConditionType `json:"type,omitempty"`
|
||||||
Status *corev1.ConditionStatus `json:"status,omitempty"`
|
Status *corev1.ConditionStatus `json:"status,omitempty"`
|
||||||
LastUpdateTime *metav1.Time `json:"lastUpdateTime,omitempty"`
|
LastUpdateTime *metav1.Time `json:"lastUpdateTime,omitempty"`
|
||||||
LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
|
LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
|
||||||
Reason *string `json:"reason,omitempty"`
|
Reason *string `json:"reason,omitempty"`
|
||||||
Message *string `json:"message,omitempty"`
|
Message *string `json:"message,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// DeploymentConditionApplyConfiguration constructs a declarative configuration of the DeploymentCondition type for use with
|
// DeploymentConditionApplyConfiguration constructs a declarative configuration of the DeploymentCondition type for use with
|
||||||
@ -44,7 +44,7 @@ func DeploymentCondition() *DeploymentConditionApplyConfiguration {
|
|||||||
// WithType sets the Type field in the declarative configuration to the given value
|
// 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.
|
// 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.
|
// If called multiple times, the Type field is set to the value of the last call.
|
||||||
func (b *DeploymentConditionApplyConfiguration) WithType(value v1.DeploymentConditionType) *DeploymentConditionApplyConfiguration {
|
func (b *DeploymentConditionApplyConfiguration) WithType(value appsv1.DeploymentConditionType) *DeploymentConditionApplyConfiguration {
|
||||||
b.Type = &value
|
b.Type = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -20,14 +20,14 @@ package v1
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
corev1 "k8s.io/client-go/applyconfigurations/core/v1"
|
corev1 "k8s.io/client-go/applyconfigurations/core/v1"
|
||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// DeploymentSpecApplyConfiguration represents a declarative configuration of the DeploymentSpec type for use
|
// DeploymentSpecApplyConfiguration represents a declarative configuration of the DeploymentSpec type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type DeploymentSpecApplyConfiguration struct {
|
type DeploymentSpecApplyConfiguration struct {
|
||||||
Replicas *int32 `json:"replicas,omitempty"`
|
Replicas *int32 `json:"replicas,omitempty"`
|
||||||
Selector *v1.LabelSelectorApplyConfiguration `json:"selector,omitempty"`
|
Selector *metav1.LabelSelectorApplyConfiguration `json:"selector,omitempty"`
|
||||||
Template *corev1.PodTemplateSpecApplyConfiguration `json:"template,omitempty"`
|
Template *corev1.PodTemplateSpecApplyConfiguration `json:"template,omitempty"`
|
||||||
Strategy *DeploymentStrategyApplyConfiguration `json:"strategy,omitempty"`
|
Strategy *DeploymentStrategyApplyConfiguration `json:"strategy,omitempty"`
|
||||||
MinReadySeconds *int32 `json:"minReadySeconds,omitempty"`
|
MinReadySeconds *int32 `json:"minReadySeconds,omitempty"`
|
||||||
@ -53,7 +53,7 @@ func (b *DeploymentSpecApplyConfiguration) WithReplicas(value int32) *Deployment
|
|||||||
// WithSelector sets the Selector field in the declarative configuration to the given value
|
// WithSelector sets the Selector field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the Selector field is set to the value of the last call.
|
// If called multiple times, the Selector field is set to the value of the last call.
|
||||||
func (b *DeploymentSpecApplyConfiguration) WithSelector(value *v1.LabelSelectorApplyConfiguration) *DeploymentSpecApplyConfiguration {
|
func (b *DeploymentSpecApplyConfiguration) WithSelector(value *metav1.LabelSelectorApplyConfiguration) *DeploymentSpecApplyConfiguration {
|
||||||
b.Selector = value
|
b.Selector = value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,13 +19,13 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1 "k8s.io/api/apps/v1"
|
appsv1 "k8s.io/api/apps/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// DeploymentStrategyApplyConfiguration represents a declarative configuration of the DeploymentStrategy type for use
|
// DeploymentStrategyApplyConfiguration represents a declarative configuration of the DeploymentStrategy type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type DeploymentStrategyApplyConfiguration struct {
|
type DeploymentStrategyApplyConfiguration struct {
|
||||||
Type *v1.DeploymentStrategyType `json:"type,omitempty"`
|
Type *appsv1.DeploymentStrategyType `json:"type,omitempty"`
|
||||||
RollingUpdate *RollingUpdateDeploymentApplyConfiguration `json:"rollingUpdate,omitempty"`
|
RollingUpdate *RollingUpdateDeploymentApplyConfiguration `json:"rollingUpdate,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -38,7 +38,7 @@ func DeploymentStrategy() *DeploymentStrategyApplyConfiguration {
|
|||||||
// WithType sets the Type field in the declarative configuration to the given value
|
// 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.
|
// 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.
|
// If called multiple times, the Type field is set to the value of the last call.
|
||||||
func (b *DeploymentStrategyApplyConfiguration) WithType(value v1.DeploymentStrategyType) *DeploymentStrategyApplyConfiguration {
|
func (b *DeploymentStrategyApplyConfiguration) WithType(value appsv1.DeploymentStrategyType) *DeploymentStrategyApplyConfiguration {
|
||||||
b.Type = &value
|
b.Type = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,21 +19,21 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
apiappsv1 "k8s.io/api/apps/v1"
|
appsv1 "k8s.io/api/apps/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
types "k8s.io/apimachinery/pkg/types"
|
types "k8s.io/apimachinery/pkg/types"
|
||||||
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
|
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
|
||||||
internal "k8s.io/client-go/applyconfigurations/internal"
|
internal "k8s.io/client-go/applyconfigurations/internal"
|
||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ReplicaSetApplyConfiguration represents a declarative configuration of the ReplicaSet type for use
|
// ReplicaSetApplyConfiguration represents a declarative configuration of the ReplicaSet type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ReplicaSetApplyConfiguration struct {
|
type ReplicaSetApplyConfiguration struct {
|
||||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||||
Spec *ReplicaSetSpecApplyConfiguration `json:"spec,omitempty"`
|
Spec *ReplicaSetSpecApplyConfiguration `json:"spec,omitempty"`
|
||||||
Status *ReplicaSetStatusApplyConfiguration `json:"status,omitempty"`
|
Status *ReplicaSetStatusApplyConfiguration `json:"status,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ReplicaSet constructs a declarative configuration of the ReplicaSet type for use with
|
// ReplicaSet constructs a declarative configuration of the ReplicaSet type for use with
|
||||||
@ -58,18 +58,18 @@ func ReplicaSet(name, namespace string) *ReplicaSetApplyConfiguration {
|
|||||||
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
|
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
|
||||||
// applied if another fieldManager has updated or force applied any of the previously applied fields.
|
// applied if another fieldManager has updated or force applied any of the previously applied fields.
|
||||||
// Experimental!
|
// Experimental!
|
||||||
func ExtractReplicaSet(replicaSet *apiappsv1.ReplicaSet, fieldManager string) (*ReplicaSetApplyConfiguration, error) {
|
func ExtractReplicaSet(replicaSet *appsv1.ReplicaSet, fieldManager string) (*ReplicaSetApplyConfiguration, error) {
|
||||||
return extractReplicaSet(replicaSet, fieldManager, "")
|
return extractReplicaSet(replicaSet, fieldManager, "")
|
||||||
}
|
}
|
||||||
|
|
||||||
// ExtractReplicaSetStatus is the same as ExtractReplicaSet except
|
// ExtractReplicaSetStatus is the same as ExtractReplicaSet except
|
||||||
// that it extracts the status subresource applied configuration.
|
// that it extracts the status subresource applied configuration.
|
||||||
// Experimental!
|
// Experimental!
|
||||||
func ExtractReplicaSetStatus(replicaSet *apiappsv1.ReplicaSet, fieldManager string) (*ReplicaSetApplyConfiguration, error) {
|
func ExtractReplicaSetStatus(replicaSet *appsv1.ReplicaSet, fieldManager string) (*ReplicaSetApplyConfiguration, error) {
|
||||||
return extractReplicaSet(replicaSet, fieldManager, "status")
|
return extractReplicaSet(replicaSet, fieldManager, "status")
|
||||||
}
|
}
|
||||||
|
|
||||||
func extractReplicaSet(replicaSet *apiappsv1.ReplicaSet, fieldManager string, subresource string) (*ReplicaSetApplyConfiguration, error) {
|
func extractReplicaSet(replicaSet *appsv1.ReplicaSet, fieldManager string, subresource string) (*ReplicaSetApplyConfiguration, error) {
|
||||||
b := &ReplicaSetApplyConfiguration{}
|
b := &ReplicaSetApplyConfiguration{}
|
||||||
err := managedfields.ExtractInto(replicaSet, internal.Parser().Type("io.k8s.api.apps.v1.ReplicaSet"), fieldManager, b, subresource)
|
err := managedfields.ExtractInto(replicaSet, internal.Parser().Type("io.k8s.api.apps.v1.ReplicaSet"), fieldManager, b, subresource)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -156,7 +156,7 @@ func (b *ReplicaSetApplyConfiguration) WithGeneration(value int64) *ReplicaSetAp
|
|||||||
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
|
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
|
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
|
||||||
func (b *ReplicaSetApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ReplicaSetApplyConfiguration {
|
func (b *ReplicaSetApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ReplicaSetApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
|
b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
|
||||||
return b
|
return b
|
||||||
@ -165,7 +165,7 @@ func (b *ReplicaSetApplyConfiguration) WithCreationTimestamp(value metav1.Time)
|
|||||||
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
|
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
|
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
|
||||||
func (b *ReplicaSetApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ReplicaSetApplyConfiguration {
|
func (b *ReplicaSetApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ReplicaSetApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
|
b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
|
||||||
return b
|
return b
|
||||||
@ -213,7 +213,7 @@ func (b *ReplicaSetApplyConfiguration) WithAnnotations(entries map[string]string
|
|||||||
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
|
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
|
||||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
// 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 OwnerReferences field.
|
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
|
||||||
func (b *ReplicaSetApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ReplicaSetApplyConfiguration {
|
func (b *ReplicaSetApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ReplicaSetApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
for i := range values {
|
for i := range values {
|
||||||
if values[i] == nil {
|
if values[i] == nil {
|
||||||
@ -237,7 +237,7 @@ func (b *ReplicaSetApplyConfiguration) WithFinalizers(values ...string) *Replica
|
|||||||
|
|
||||||
func (b *ReplicaSetApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
|
func (b *ReplicaSetApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
|
||||||
if b.ObjectMetaApplyConfiguration == nil {
|
if b.ObjectMetaApplyConfiguration == nil {
|
||||||
b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
|
b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1 "k8s.io/api/apps/v1"
|
appsv1 "k8s.io/api/apps/v1"
|
||||||
corev1 "k8s.io/api/core/v1"
|
corev1 "k8s.io/api/core/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
)
|
)
|
||||||
@ -27,11 +27,11 @@ import (
|
|||||||
// ReplicaSetConditionApplyConfiguration represents a declarative configuration of the ReplicaSetCondition type for use
|
// ReplicaSetConditionApplyConfiguration represents a declarative configuration of the ReplicaSetCondition type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ReplicaSetConditionApplyConfiguration struct {
|
type ReplicaSetConditionApplyConfiguration struct {
|
||||||
Type *v1.ReplicaSetConditionType `json:"type,omitempty"`
|
Type *appsv1.ReplicaSetConditionType `json:"type,omitempty"`
|
||||||
Status *corev1.ConditionStatus `json:"status,omitempty"`
|
Status *corev1.ConditionStatus `json:"status,omitempty"`
|
||||||
LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
|
LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
|
||||||
Reason *string `json:"reason,omitempty"`
|
Reason *string `json:"reason,omitempty"`
|
||||||
Message *string `json:"message,omitempty"`
|
Message *string `json:"message,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ReplicaSetConditionApplyConfiguration constructs a declarative configuration of the ReplicaSetCondition type for use with
|
// ReplicaSetConditionApplyConfiguration constructs a declarative configuration of the ReplicaSetCondition type for use with
|
||||||
@ -43,7 +43,7 @@ func ReplicaSetCondition() *ReplicaSetConditionApplyConfiguration {
|
|||||||
// WithType sets the Type field in the declarative configuration to the given value
|
// 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.
|
// 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.
|
// If called multiple times, the Type field is set to the value of the last call.
|
||||||
func (b *ReplicaSetConditionApplyConfiguration) WithType(value v1.ReplicaSetConditionType) *ReplicaSetConditionApplyConfiguration {
|
func (b *ReplicaSetConditionApplyConfiguration) WithType(value appsv1.ReplicaSetConditionType) *ReplicaSetConditionApplyConfiguration {
|
||||||
b.Type = &value
|
b.Type = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -20,7 +20,7 @@ package v1
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
corev1 "k8s.io/client-go/applyconfigurations/core/v1"
|
corev1 "k8s.io/client-go/applyconfigurations/core/v1"
|
||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ReplicaSetSpecApplyConfiguration represents a declarative configuration of the ReplicaSetSpec type for use
|
// ReplicaSetSpecApplyConfiguration represents a declarative configuration of the ReplicaSetSpec type for use
|
||||||
@ -28,7 +28,7 @@ import (
|
|||||||
type ReplicaSetSpecApplyConfiguration struct {
|
type ReplicaSetSpecApplyConfiguration struct {
|
||||||
Replicas *int32 `json:"replicas,omitempty"`
|
Replicas *int32 `json:"replicas,omitempty"`
|
||||||
MinReadySeconds *int32 `json:"minReadySeconds,omitempty"`
|
MinReadySeconds *int32 `json:"minReadySeconds,omitempty"`
|
||||||
Selector *v1.LabelSelectorApplyConfiguration `json:"selector,omitempty"`
|
Selector *metav1.LabelSelectorApplyConfiguration `json:"selector,omitempty"`
|
||||||
Template *corev1.PodTemplateSpecApplyConfiguration `json:"template,omitempty"`
|
Template *corev1.PodTemplateSpecApplyConfiguration `json:"template,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -57,7 +57,7 @@ func (b *ReplicaSetSpecApplyConfiguration) WithMinReadySeconds(value int32) *Rep
|
|||||||
// WithSelector sets the Selector field in the declarative configuration to the given value
|
// WithSelector sets the Selector field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the Selector field is set to the value of the last call.
|
// If called multiple times, the Selector field is set to the value of the last call.
|
||||||
func (b *ReplicaSetSpecApplyConfiguration) WithSelector(value *v1.LabelSelectorApplyConfiguration) *ReplicaSetSpecApplyConfiguration {
|
func (b *ReplicaSetSpecApplyConfiguration) WithSelector(value *metav1.LabelSelectorApplyConfiguration) *ReplicaSetSpecApplyConfiguration {
|
||||||
b.Selector = value
|
b.Selector = value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,21 +19,21 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
apiappsv1 "k8s.io/api/apps/v1"
|
appsv1 "k8s.io/api/apps/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
types "k8s.io/apimachinery/pkg/types"
|
types "k8s.io/apimachinery/pkg/types"
|
||||||
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
|
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
|
||||||
internal "k8s.io/client-go/applyconfigurations/internal"
|
internal "k8s.io/client-go/applyconfigurations/internal"
|
||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// StatefulSetApplyConfiguration represents a declarative configuration of the StatefulSet type for use
|
// StatefulSetApplyConfiguration represents a declarative configuration of the StatefulSet type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type StatefulSetApplyConfiguration struct {
|
type StatefulSetApplyConfiguration struct {
|
||||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||||
Spec *StatefulSetSpecApplyConfiguration `json:"spec,omitempty"`
|
Spec *StatefulSetSpecApplyConfiguration `json:"spec,omitempty"`
|
||||||
Status *StatefulSetStatusApplyConfiguration `json:"status,omitempty"`
|
Status *StatefulSetStatusApplyConfiguration `json:"status,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// StatefulSet constructs a declarative configuration of the StatefulSet type for use with
|
// StatefulSet constructs a declarative configuration of the StatefulSet type for use with
|
||||||
@ -58,18 +58,18 @@ func StatefulSet(name, namespace string) *StatefulSetApplyConfiguration {
|
|||||||
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
|
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
|
||||||
// applied if another fieldManager has updated or force applied any of the previously applied fields.
|
// applied if another fieldManager has updated or force applied any of the previously applied fields.
|
||||||
// Experimental!
|
// Experimental!
|
||||||
func ExtractStatefulSet(statefulSet *apiappsv1.StatefulSet, fieldManager string) (*StatefulSetApplyConfiguration, error) {
|
func ExtractStatefulSet(statefulSet *appsv1.StatefulSet, fieldManager string) (*StatefulSetApplyConfiguration, error) {
|
||||||
return extractStatefulSet(statefulSet, fieldManager, "")
|
return extractStatefulSet(statefulSet, fieldManager, "")
|
||||||
}
|
}
|
||||||
|
|
||||||
// ExtractStatefulSetStatus is the same as ExtractStatefulSet except
|
// ExtractStatefulSetStatus is the same as ExtractStatefulSet except
|
||||||
// that it extracts the status subresource applied configuration.
|
// that it extracts the status subresource applied configuration.
|
||||||
// Experimental!
|
// Experimental!
|
||||||
func ExtractStatefulSetStatus(statefulSet *apiappsv1.StatefulSet, fieldManager string) (*StatefulSetApplyConfiguration, error) {
|
func ExtractStatefulSetStatus(statefulSet *appsv1.StatefulSet, fieldManager string) (*StatefulSetApplyConfiguration, error) {
|
||||||
return extractStatefulSet(statefulSet, fieldManager, "status")
|
return extractStatefulSet(statefulSet, fieldManager, "status")
|
||||||
}
|
}
|
||||||
|
|
||||||
func extractStatefulSet(statefulSet *apiappsv1.StatefulSet, fieldManager string, subresource string) (*StatefulSetApplyConfiguration, error) {
|
func extractStatefulSet(statefulSet *appsv1.StatefulSet, fieldManager string, subresource string) (*StatefulSetApplyConfiguration, error) {
|
||||||
b := &StatefulSetApplyConfiguration{}
|
b := &StatefulSetApplyConfiguration{}
|
||||||
err := managedfields.ExtractInto(statefulSet, internal.Parser().Type("io.k8s.api.apps.v1.StatefulSet"), fieldManager, b, subresource)
|
err := managedfields.ExtractInto(statefulSet, internal.Parser().Type("io.k8s.api.apps.v1.StatefulSet"), fieldManager, b, subresource)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -156,7 +156,7 @@ func (b *StatefulSetApplyConfiguration) WithGeneration(value int64) *StatefulSet
|
|||||||
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
|
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
|
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
|
||||||
func (b *StatefulSetApplyConfiguration) WithCreationTimestamp(value metav1.Time) *StatefulSetApplyConfiguration {
|
func (b *StatefulSetApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *StatefulSetApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
|
b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
|
||||||
return b
|
return b
|
||||||
@ -165,7 +165,7 @@ func (b *StatefulSetApplyConfiguration) WithCreationTimestamp(value metav1.Time)
|
|||||||
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
|
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
|
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
|
||||||
func (b *StatefulSetApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *StatefulSetApplyConfiguration {
|
func (b *StatefulSetApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *StatefulSetApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
|
b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
|
||||||
return b
|
return b
|
||||||
@ -213,7 +213,7 @@ func (b *StatefulSetApplyConfiguration) WithAnnotations(entries map[string]strin
|
|||||||
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
|
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
|
||||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
// 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 OwnerReferences field.
|
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
|
||||||
func (b *StatefulSetApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *StatefulSetApplyConfiguration {
|
func (b *StatefulSetApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *StatefulSetApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
for i := range values {
|
for i := range values {
|
||||||
if values[i] == nil {
|
if values[i] == nil {
|
||||||
@ -237,7 +237,7 @@ func (b *StatefulSetApplyConfiguration) WithFinalizers(values ...string) *Statef
|
|||||||
|
|
||||||
func (b *StatefulSetApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
|
func (b *StatefulSetApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
|
||||||
if b.ObjectMetaApplyConfiguration == nil {
|
if b.ObjectMetaApplyConfiguration == nil {
|
||||||
b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
|
b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1 "k8s.io/api/apps/v1"
|
appsv1 "k8s.io/api/apps/v1"
|
||||||
corev1 "k8s.io/api/core/v1"
|
corev1 "k8s.io/api/core/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
)
|
)
|
||||||
@ -27,11 +27,11 @@ import (
|
|||||||
// StatefulSetConditionApplyConfiguration represents a declarative configuration of the StatefulSetCondition type for use
|
// StatefulSetConditionApplyConfiguration represents a declarative configuration of the StatefulSetCondition type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type StatefulSetConditionApplyConfiguration struct {
|
type StatefulSetConditionApplyConfiguration struct {
|
||||||
Type *v1.StatefulSetConditionType `json:"type,omitempty"`
|
Type *appsv1.StatefulSetConditionType `json:"type,omitempty"`
|
||||||
Status *corev1.ConditionStatus `json:"status,omitempty"`
|
Status *corev1.ConditionStatus `json:"status,omitempty"`
|
||||||
LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
|
LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
|
||||||
Reason *string `json:"reason,omitempty"`
|
Reason *string `json:"reason,omitempty"`
|
||||||
Message *string `json:"message,omitempty"`
|
Message *string `json:"message,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// StatefulSetConditionApplyConfiguration constructs a declarative configuration of the StatefulSetCondition type for use with
|
// StatefulSetConditionApplyConfiguration constructs a declarative configuration of the StatefulSetCondition type for use with
|
||||||
@ -43,7 +43,7 @@ func StatefulSetCondition() *StatefulSetConditionApplyConfiguration {
|
|||||||
// WithType sets the Type field in the declarative configuration to the given value
|
// 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.
|
// 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.
|
// If called multiple times, the Type field is set to the value of the last call.
|
||||||
func (b *StatefulSetConditionApplyConfiguration) WithType(value v1.StatefulSetConditionType) *StatefulSetConditionApplyConfiguration {
|
func (b *StatefulSetConditionApplyConfiguration) WithType(value appsv1.StatefulSetConditionType) *StatefulSetConditionApplyConfiguration {
|
||||||
b.Type = &value
|
b.Type = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,14 +19,14 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1 "k8s.io/api/apps/v1"
|
appsv1 "k8s.io/api/apps/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// StatefulSetPersistentVolumeClaimRetentionPolicyApplyConfiguration represents a declarative configuration of the StatefulSetPersistentVolumeClaimRetentionPolicy type for use
|
// StatefulSetPersistentVolumeClaimRetentionPolicyApplyConfiguration represents a declarative configuration of the StatefulSetPersistentVolumeClaimRetentionPolicy type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type StatefulSetPersistentVolumeClaimRetentionPolicyApplyConfiguration struct {
|
type StatefulSetPersistentVolumeClaimRetentionPolicyApplyConfiguration struct {
|
||||||
WhenDeleted *v1.PersistentVolumeClaimRetentionPolicyType `json:"whenDeleted,omitempty"`
|
WhenDeleted *appsv1.PersistentVolumeClaimRetentionPolicyType `json:"whenDeleted,omitempty"`
|
||||||
WhenScaled *v1.PersistentVolumeClaimRetentionPolicyType `json:"whenScaled,omitempty"`
|
WhenScaled *appsv1.PersistentVolumeClaimRetentionPolicyType `json:"whenScaled,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// StatefulSetPersistentVolumeClaimRetentionPolicyApplyConfiguration constructs a declarative configuration of the StatefulSetPersistentVolumeClaimRetentionPolicy type for use with
|
// StatefulSetPersistentVolumeClaimRetentionPolicyApplyConfiguration constructs a declarative configuration of the StatefulSetPersistentVolumeClaimRetentionPolicy type for use with
|
||||||
@ -38,7 +38,7 @@ func StatefulSetPersistentVolumeClaimRetentionPolicy() *StatefulSetPersistentVol
|
|||||||
// WithWhenDeleted sets the WhenDeleted field in the declarative configuration to the given value
|
// WithWhenDeleted sets the WhenDeleted field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the WhenDeleted field is set to the value of the last call.
|
// If called multiple times, the WhenDeleted field is set to the value of the last call.
|
||||||
func (b *StatefulSetPersistentVolumeClaimRetentionPolicyApplyConfiguration) WithWhenDeleted(value v1.PersistentVolumeClaimRetentionPolicyType) *StatefulSetPersistentVolumeClaimRetentionPolicyApplyConfiguration {
|
func (b *StatefulSetPersistentVolumeClaimRetentionPolicyApplyConfiguration) WithWhenDeleted(value appsv1.PersistentVolumeClaimRetentionPolicyType) *StatefulSetPersistentVolumeClaimRetentionPolicyApplyConfiguration {
|
||||||
b.WhenDeleted = &value
|
b.WhenDeleted = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
@ -46,7 +46,7 @@ func (b *StatefulSetPersistentVolumeClaimRetentionPolicyApplyConfiguration) With
|
|||||||
// WithWhenScaled sets the WhenScaled field in the declarative configuration to the given value
|
// WithWhenScaled sets the WhenScaled field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the WhenScaled field is set to the value of the last call.
|
// If called multiple times, the WhenScaled field is set to the value of the last call.
|
||||||
func (b *StatefulSetPersistentVolumeClaimRetentionPolicyApplyConfiguration) WithWhenScaled(value v1.PersistentVolumeClaimRetentionPolicyType) *StatefulSetPersistentVolumeClaimRetentionPolicyApplyConfiguration {
|
func (b *StatefulSetPersistentVolumeClaimRetentionPolicyApplyConfiguration) WithWhenScaled(value appsv1.PersistentVolumeClaimRetentionPolicyType) *StatefulSetPersistentVolumeClaimRetentionPolicyApplyConfiguration {
|
||||||
b.WhenScaled = &value
|
b.WhenScaled = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -21,14 +21,14 @@ package v1
|
|||||||
import (
|
import (
|
||||||
appsv1 "k8s.io/api/apps/v1"
|
appsv1 "k8s.io/api/apps/v1"
|
||||||
corev1 "k8s.io/client-go/applyconfigurations/core/v1"
|
corev1 "k8s.io/client-go/applyconfigurations/core/v1"
|
||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// StatefulSetSpecApplyConfiguration represents a declarative configuration of the StatefulSetSpec type for use
|
// StatefulSetSpecApplyConfiguration represents a declarative configuration of the StatefulSetSpec type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type StatefulSetSpecApplyConfiguration struct {
|
type StatefulSetSpecApplyConfiguration struct {
|
||||||
Replicas *int32 `json:"replicas,omitempty"`
|
Replicas *int32 `json:"replicas,omitempty"`
|
||||||
Selector *v1.LabelSelectorApplyConfiguration `json:"selector,omitempty"`
|
Selector *metav1.LabelSelectorApplyConfiguration `json:"selector,omitempty"`
|
||||||
Template *corev1.PodTemplateSpecApplyConfiguration `json:"template,omitempty"`
|
Template *corev1.PodTemplateSpecApplyConfiguration `json:"template,omitempty"`
|
||||||
VolumeClaimTemplates []corev1.PersistentVolumeClaimApplyConfiguration `json:"volumeClaimTemplates,omitempty"`
|
VolumeClaimTemplates []corev1.PersistentVolumeClaimApplyConfiguration `json:"volumeClaimTemplates,omitempty"`
|
||||||
ServiceName *string `json:"serviceName,omitempty"`
|
ServiceName *string `json:"serviceName,omitempty"`
|
||||||
@ -57,7 +57,7 @@ func (b *StatefulSetSpecApplyConfiguration) WithReplicas(value int32) *StatefulS
|
|||||||
// WithSelector sets the Selector field in the declarative configuration to the given value
|
// WithSelector sets the Selector field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the Selector field is set to the value of the last call.
|
// If called multiple times, the Selector field is set to the value of the last call.
|
||||||
func (b *StatefulSetSpecApplyConfiguration) WithSelector(value *v1.LabelSelectorApplyConfiguration) *StatefulSetSpecApplyConfiguration {
|
func (b *StatefulSetSpecApplyConfiguration) WithSelector(value *metav1.LabelSelectorApplyConfiguration) *StatefulSetSpecApplyConfiguration {
|
||||||
b.Selector = value
|
b.Selector = value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,13 +19,13 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1 "k8s.io/api/apps/v1"
|
appsv1 "k8s.io/api/apps/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// StatefulSetUpdateStrategyApplyConfiguration represents a declarative configuration of the StatefulSetUpdateStrategy type for use
|
// StatefulSetUpdateStrategyApplyConfiguration represents a declarative configuration of the StatefulSetUpdateStrategy type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type StatefulSetUpdateStrategyApplyConfiguration struct {
|
type StatefulSetUpdateStrategyApplyConfiguration struct {
|
||||||
Type *v1.StatefulSetUpdateStrategyType `json:"type,omitempty"`
|
Type *appsv1.StatefulSetUpdateStrategyType `json:"type,omitempty"`
|
||||||
RollingUpdate *RollingUpdateStatefulSetStrategyApplyConfiguration `json:"rollingUpdate,omitempty"`
|
RollingUpdate *RollingUpdateStatefulSetStrategyApplyConfiguration `json:"rollingUpdate,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -38,7 +38,7 @@ func StatefulSetUpdateStrategy() *StatefulSetUpdateStrategyApplyConfiguration {
|
|||||||
// WithType sets the Type field in the declarative configuration to the given value
|
// 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.
|
// 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.
|
// If called multiple times, the Type field is set to the value of the last call.
|
||||||
func (b *StatefulSetUpdateStrategyApplyConfiguration) WithType(value v1.StatefulSetUpdateStrategyType) *StatefulSetUpdateStrategyApplyConfiguration {
|
func (b *StatefulSetUpdateStrategyApplyConfiguration) WithType(value appsv1.StatefulSetUpdateStrategyType) *StatefulSetUpdateStrategyApplyConfiguration {
|
||||||
b.Type = &value
|
b.Type = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@ limitations under the License.
|
|||||||
package v1beta1
|
package v1beta1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1beta1 "k8s.io/api/apps/v1beta1"
|
appsv1beta1 "k8s.io/api/apps/v1beta1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||||
types "k8s.io/apimachinery/pkg/types"
|
types "k8s.io/apimachinery/pkg/types"
|
||||||
@ -59,18 +59,18 @@ func ControllerRevision(name, namespace string) *ControllerRevisionApplyConfigur
|
|||||||
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
|
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
|
||||||
// applied if another fieldManager has updated or force applied any of the previously applied fields.
|
// applied if another fieldManager has updated or force applied any of the previously applied fields.
|
||||||
// Experimental!
|
// Experimental!
|
||||||
func ExtractControllerRevision(controllerRevision *v1beta1.ControllerRevision, fieldManager string) (*ControllerRevisionApplyConfiguration, error) {
|
func ExtractControllerRevision(controllerRevision *appsv1beta1.ControllerRevision, fieldManager string) (*ControllerRevisionApplyConfiguration, error) {
|
||||||
return extractControllerRevision(controllerRevision, fieldManager, "")
|
return extractControllerRevision(controllerRevision, fieldManager, "")
|
||||||
}
|
}
|
||||||
|
|
||||||
// ExtractControllerRevisionStatus is the same as ExtractControllerRevision except
|
// ExtractControllerRevisionStatus is the same as ExtractControllerRevision except
|
||||||
// that it extracts the status subresource applied configuration.
|
// that it extracts the status subresource applied configuration.
|
||||||
// Experimental!
|
// Experimental!
|
||||||
func ExtractControllerRevisionStatus(controllerRevision *v1beta1.ControllerRevision, fieldManager string) (*ControllerRevisionApplyConfiguration, error) {
|
func ExtractControllerRevisionStatus(controllerRevision *appsv1beta1.ControllerRevision, fieldManager string) (*ControllerRevisionApplyConfiguration, error) {
|
||||||
return extractControllerRevision(controllerRevision, fieldManager, "status")
|
return extractControllerRevision(controllerRevision, fieldManager, "status")
|
||||||
}
|
}
|
||||||
|
|
||||||
func extractControllerRevision(controllerRevision *v1beta1.ControllerRevision, fieldManager string, subresource string) (*ControllerRevisionApplyConfiguration, error) {
|
func extractControllerRevision(controllerRevision *appsv1beta1.ControllerRevision, fieldManager string, subresource string) (*ControllerRevisionApplyConfiguration, error) {
|
||||||
b := &ControllerRevisionApplyConfiguration{}
|
b := &ControllerRevisionApplyConfiguration{}
|
||||||
err := managedfields.ExtractInto(controllerRevision, internal.Parser().Type("io.k8s.api.apps.v1beta1.ControllerRevision"), fieldManager, b, subresource)
|
err := managedfields.ExtractInto(controllerRevision, internal.Parser().Type("io.k8s.api.apps.v1beta1.ControllerRevision"), fieldManager, b, subresource)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -19,7 +19,7 @@ limitations under the License.
|
|||||||
package v1beta1
|
package v1beta1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1beta1 "k8s.io/api/apps/v1beta1"
|
appsv1beta1 "k8s.io/api/apps/v1beta1"
|
||||||
v1 "k8s.io/api/core/v1"
|
v1 "k8s.io/api/core/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
)
|
)
|
||||||
@ -27,12 +27,12 @@ import (
|
|||||||
// DeploymentConditionApplyConfiguration represents a declarative configuration of the DeploymentCondition type for use
|
// DeploymentConditionApplyConfiguration represents a declarative configuration of the DeploymentCondition type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type DeploymentConditionApplyConfiguration struct {
|
type DeploymentConditionApplyConfiguration struct {
|
||||||
Type *v1beta1.DeploymentConditionType `json:"type,omitempty"`
|
Type *appsv1beta1.DeploymentConditionType `json:"type,omitempty"`
|
||||||
Status *v1.ConditionStatus `json:"status,omitempty"`
|
Status *v1.ConditionStatus `json:"status,omitempty"`
|
||||||
LastUpdateTime *metav1.Time `json:"lastUpdateTime,omitempty"`
|
LastUpdateTime *metav1.Time `json:"lastUpdateTime,omitempty"`
|
||||||
LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
|
LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
|
||||||
Reason *string `json:"reason,omitempty"`
|
Reason *string `json:"reason,omitempty"`
|
||||||
Message *string `json:"message,omitempty"`
|
Message *string `json:"message,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// DeploymentConditionApplyConfiguration constructs a declarative configuration of the DeploymentCondition type for use with
|
// DeploymentConditionApplyConfiguration constructs a declarative configuration of the DeploymentCondition type for use with
|
||||||
@ -44,7 +44,7 @@ func DeploymentCondition() *DeploymentConditionApplyConfiguration {
|
|||||||
// WithType sets the Type field in the declarative configuration to the given value
|
// 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.
|
// 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.
|
// If called multiple times, the Type field is set to the value of the last call.
|
||||||
func (b *DeploymentConditionApplyConfiguration) WithType(value v1beta1.DeploymentConditionType) *DeploymentConditionApplyConfiguration {
|
func (b *DeploymentConditionApplyConfiguration) WithType(value appsv1beta1.DeploymentConditionType) *DeploymentConditionApplyConfiguration {
|
||||||
b.Type = &value
|
b.Type = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,13 +19,13 @@ limitations under the License.
|
|||||||
package v1beta1
|
package v1beta1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1beta1 "k8s.io/api/apps/v1beta1"
|
appsv1beta1 "k8s.io/api/apps/v1beta1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// DeploymentStrategyApplyConfiguration represents a declarative configuration of the DeploymentStrategy type for use
|
// DeploymentStrategyApplyConfiguration represents a declarative configuration of the DeploymentStrategy type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type DeploymentStrategyApplyConfiguration struct {
|
type DeploymentStrategyApplyConfiguration struct {
|
||||||
Type *v1beta1.DeploymentStrategyType `json:"type,omitempty"`
|
Type *appsv1beta1.DeploymentStrategyType `json:"type,omitempty"`
|
||||||
RollingUpdate *RollingUpdateDeploymentApplyConfiguration `json:"rollingUpdate,omitempty"`
|
RollingUpdate *RollingUpdateDeploymentApplyConfiguration `json:"rollingUpdate,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -38,7 +38,7 @@ func DeploymentStrategy() *DeploymentStrategyApplyConfiguration {
|
|||||||
// WithType sets the Type field in the declarative configuration to the given value
|
// 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.
|
// 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.
|
// If called multiple times, the Type field is set to the value of the last call.
|
||||||
func (b *DeploymentStrategyApplyConfiguration) WithType(value v1beta1.DeploymentStrategyType) *DeploymentStrategyApplyConfiguration {
|
func (b *DeploymentStrategyApplyConfiguration) WithType(value appsv1beta1.DeploymentStrategyType) *DeploymentStrategyApplyConfiguration {
|
||||||
b.Type = &value
|
b.Type = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@ limitations under the License.
|
|||||||
package v1beta1
|
package v1beta1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1beta1 "k8s.io/api/apps/v1beta1"
|
appsv1beta1 "k8s.io/api/apps/v1beta1"
|
||||||
v1 "k8s.io/api/core/v1"
|
v1 "k8s.io/api/core/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
)
|
)
|
||||||
@ -27,11 +27,11 @@ import (
|
|||||||
// StatefulSetConditionApplyConfiguration represents a declarative configuration of the StatefulSetCondition type for use
|
// StatefulSetConditionApplyConfiguration represents a declarative configuration of the StatefulSetCondition type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type StatefulSetConditionApplyConfiguration struct {
|
type StatefulSetConditionApplyConfiguration struct {
|
||||||
Type *v1beta1.StatefulSetConditionType `json:"type,omitempty"`
|
Type *appsv1beta1.StatefulSetConditionType `json:"type,omitempty"`
|
||||||
Status *v1.ConditionStatus `json:"status,omitempty"`
|
Status *v1.ConditionStatus `json:"status,omitempty"`
|
||||||
LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
|
LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
|
||||||
Reason *string `json:"reason,omitempty"`
|
Reason *string `json:"reason,omitempty"`
|
||||||
Message *string `json:"message,omitempty"`
|
Message *string `json:"message,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// StatefulSetConditionApplyConfiguration constructs a declarative configuration of the StatefulSetCondition type for use with
|
// StatefulSetConditionApplyConfiguration constructs a declarative configuration of the StatefulSetCondition type for use with
|
||||||
@ -43,7 +43,7 @@ func StatefulSetCondition() *StatefulSetConditionApplyConfiguration {
|
|||||||
// WithType sets the Type field in the declarative configuration to the given value
|
// 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.
|
// 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.
|
// If called multiple times, the Type field is set to the value of the last call.
|
||||||
func (b *StatefulSetConditionApplyConfiguration) WithType(value v1beta1.StatefulSetConditionType) *StatefulSetConditionApplyConfiguration {
|
func (b *StatefulSetConditionApplyConfiguration) WithType(value appsv1beta1.StatefulSetConditionType) *StatefulSetConditionApplyConfiguration {
|
||||||
b.Type = &value
|
b.Type = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,14 +19,14 @@ limitations under the License.
|
|||||||
package v1beta1
|
package v1beta1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1beta1 "k8s.io/api/apps/v1beta1"
|
appsv1beta1 "k8s.io/api/apps/v1beta1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// StatefulSetPersistentVolumeClaimRetentionPolicyApplyConfiguration represents a declarative configuration of the StatefulSetPersistentVolumeClaimRetentionPolicy type for use
|
// StatefulSetPersistentVolumeClaimRetentionPolicyApplyConfiguration represents a declarative configuration of the StatefulSetPersistentVolumeClaimRetentionPolicy type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type StatefulSetPersistentVolumeClaimRetentionPolicyApplyConfiguration struct {
|
type StatefulSetPersistentVolumeClaimRetentionPolicyApplyConfiguration struct {
|
||||||
WhenDeleted *v1beta1.PersistentVolumeClaimRetentionPolicyType `json:"whenDeleted,omitempty"`
|
WhenDeleted *appsv1beta1.PersistentVolumeClaimRetentionPolicyType `json:"whenDeleted,omitempty"`
|
||||||
WhenScaled *v1beta1.PersistentVolumeClaimRetentionPolicyType `json:"whenScaled,omitempty"`
|
WhenScaled *appsv1beta1.PersistentVolumeClaimRetentionPolicyType `json:"whenScaled,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// StatefulSetPersistentVolumeClaimRetentionPolicyApplyConfiguration constructs a declarative configuration of the StatefulSetPersistentVolumeClaimRetentionPolicy type for use with
|
// StatefulSetPersistentVolumeClaimRetentionPolicyApplyConfiguration constructs a declarative configuration of the StatefulSetPersistentVolumeClaimRetentionPolicy type for use with
|
||||||
@ -38,7 +38,7 @@ func StatefulSetPersistentVolumeClaimRetentionPolicy() *StatefulSetPersistentVol
|
|||||||
// WithWhenDeleted sets the WhenDeleted field in the declarative configuration to the given value
|
// WithWhenDeleted sets the WhenDeleted field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the WhenDeleted field is set to the value of the last call.
|
// If called multiple times, the WhenDeleted field is set to the value of the last call.
|
||||||
func (b *StatefulSetPersistentVolumeClaimRetentionPolicyApplyConfiguration) WithWhenDeleted(value v1beta1.PersistentVolumeClaimRetentionPolicyType) *StatefulSetPersistentVolumeClaimRetentionPolicyApplyConfiguration {
|
func (b *StatefulSetPersistentVolumeClaimRetentionPolicyApplyConfiguration) WithWhenDeleted(value appsv1beta1.PersistentVolumeClaimRetentionPolicyType) *StatefulSetPersistentVolumeClaimRetentionPolicyApplyConfiguration {
|
||||||
b.WhenDeleted = &value
|
b.WhenDeleted = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
@ -46,7 +46,7 @@ func (b *StatefulSetPersistentVolumeClaimRetentionPolicyApplyConfiguration) With
|
|||||||
// WithWhenScaled sets the WhenScaled field in the declarative configuration to the given value
|
// WithWhenScaled sets the WhenScaled field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the WhenScaled field is set to the value of the last call.
|
// If called multiple times, the WhenScaled field is set to the value of the last call.
|
||||||
func (b *StatefulSetPersistentVolumeClaimRetentionPolicyApplyConfiguration) WithWhenScaled(value v1beta1.PersistentVolumeClaimRetentionPolicyType) *StatefulSetPersistentVolumeClaimRetentionPolicyApplyConfiguration {
|
func (b *StatefulSetPersistentVolumeClaimRetentionPolicyApplyConfiguration) WithWhenScaled(value appsv1beta1.PersistentVolumeClaimRetentionPolicyType) *StatefulSetPersistentVolumeClaimRetentionPolicyApplyConfiguration {
|
||||||
b.WhenScaled = &value
|
b.WhenScaled = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@ limitations under the License.
|
|||||||
package v1beta1
|
package v1beta1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1beta1 "k8s.io/api/apps/v1beta1"
|
appsv1beta1 "k8s.io/api/apps/v1beta1"
|
||||||
corev1 "k8s.io/client-go/applyconfigurations/core/v1"
|
corev1 "k8s.io/client-go/applyconfigurations/core/v1"
|
||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
@ -32,7 +32,7 @@ type StatefulSetSpecApplyConfiguration struct {
|
|||||||
Template *corev1.PodTemplateSpecApplyConfiguration `json:"template,omitempty"`
|
Template *corev1.PodTemplateSpecApplyConfiguration `json:"template,omitempty"`
|
||||||
VolumeClaimTemplates []corev1.PersistentVolumeClaimApplyConfiguration `json:"volumeClaimTemplates,omitempty"`
|
VolumeClaimTemplates []corev1.PersistentVolumeClaimApplyConfiguration `json:"volumeClaimTemplates,omitempty"`
|
||||||
ServiceName *string `json:"serviceName,omitempty"`
|
ServiceName *string `json:"serviceName,omitempty"`
|
||||||
PodManagementPolicy *v1beta1.PodManagementPolicyType `json:"podManagementPolicy,omitempty"`
|
PodManagementPolicy *appsv1beta1.PodManagementPolicyType `json:"podManagementPolicy,omitempty"`
|
||||||
UpdateStrategy *StatefulSetUpdateStrategyApplyConfiguration `json:"updateStrategy,omitempty"`
|
UpdateStrategy *StatefulSetUpdateStrategyApplyConfiguration `json:"updateStrategy,omitempty"`
|
||||||
RevisionHistoryLimit *int32 `json:"revisionHistoryLimit,omitempty"`
|
RevisionHistoryLimit *int32 `json:"revisionHistoryLimit,omitempty"`
|
||||||
MinReadySeconds *int32 `json:"minReadySeconds,omitempty"`
|
MinReadySeconds *int32 `json:"minReadySeconds,omitempty"`
|
||||||
@ -94,7 +94,7 @@ func (b *StatefulSetSpecApplyConfiguration) WithServiceName(value string) *State
|
|||||||
// WithPodManagementPolicy sets the PodManagementPolicy field in the declarative configuration to the given value
|
// WithPodManagementPolicy sets the PodManagementPolicy field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the PodManagementPolicy field is set to the value of the last call.
|
// If called multiple times, the PodManagementPolicy field is set to the value of the last call.
|
||||||
func (b *StatefulSetSpecApplyConfiguration) WithPodManagementPolicy(value v1beta1.PodManagementPolicyType) *StatefulSetSpecApplyConfiguration {
|
func (b *StatefulSetSpecApplyConfiguration) WithPodManagementPolicy(value appsv1beta1.PodManagementPolicyType) *StatefulSetSpecApplyConfiguration {
|
||||||
b.PodManagementPolicy = &value
|
b.PodManagementPolicy = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,13 +19,13 @@ limitations under the License.
|
|||||||
package v1beta1
|
package v1beta1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1beta1 "k8s.io/api/apps/v1beta1"
|
appsv1beta1 "k8s.io/api/apps/v1beta1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// StatefulSetUpdateStrategyApplyConfiguration represents a declarative configuration of the StatefulSetUpdateStrategy type for use
|
// StatefulSetUpdateStrategyApplyConfiguration represents a declarative configuration of the StatefulSetUpdateStrategy type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type StatefulSetUpdateStrategyApplyConfiguration struct {
|
type StatefulSetUpdateStrategyApplyConfiguration struct {
|
||||||
Type *v1beta1.StatefulSetUpdateStrategyType `json:"type,omitempty"`
|
Type *appsv1beta1.StatefulSetUpdateStrategyType `json:"type,omitempty"`
|
||||||
RollingUpdate *RollingUpdateStatefulSetStrategyApplyConfiguration `json:"rollingUpdate,omitempty"`
|
RollingUpdate *RollingUpdateStatefulSetStrategyApplyConfiguration `json:"rollingUpdate,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -38,7 +38,7 @@ func StatefulSetUpdateStrategy() *StatefulSetUpdateStrategyApplyConfiguration {
|
|||||||
// WithType sets the Type field in the declarative configuration to the given value
|
// 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.
|
// 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.
|
// If called multiple times, the Type field is set to the value of the last call.
|
||||||
func (b *StatefulSetUpdateStrategyApplyConfiguration) WithType(value v1beta1.StatefulSetUpdateStrategyType) *StatefulSetUpdateStrategyApplyConfiguration {
|
func (b *StatefulSetUpdateStrategyApplyConfiguration) WithType(value appsv1beta1.StatefulSetUpdateStrategyType) *StatefulSetUpdateStrategyApplyConfiguration {
|
||||||
b.Type = &value
|
b.Type = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@ limitations under the License.
|
|||||||
package v1beta2
|
package v1beta2
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1beta2 "k8s.io/api/apps/v1beta2"
|
appsv1beta2 "k8s.io/api/apps/v1beta2"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||||
types "k8s.io/apimachinery/pkg/types"
|
types "k8s.io/apimachinery/pkg/types"
|
||||||
@ -59,18 +59,18 @@ func ControllerRevision(name, namespace string) *ControllerRevisionApplyConfigur
|
|||||||
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
|
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
|
||||||
// applied if another fieldManager has updated or force applied any of the previously applied fields.
|
// applied if another fieldManager has updated or force applied any of the previously applied fields.
|
||||||
// Experimental!
|
// Experimental!
|
||||||
func ExtractControllerRevision(controllerRevision *v1beta2.ControllerRevision, fieldManager string) (*ControllerRevisionApplyConfiguration, error) {
|
func ExtractControllerRevision(controllerRevision *appsv1beta2.ControllerRevision, fieldManager string) (*ControllerRevisionApplyConfiguration, error) {
|
||||||
return extractControllerRevision(controllerRevision, fieldManager, "")
|
return extractControllerRevision(controllerRevision, fieldManager, "")
|
||||||
}
|
}
|
||||||
|
|
||||||
// ExtractControllerRevisionStatus is the same as ExtractControllerRevision except
|
// ExtractControllerRevisionStatus is the same as ExtractControllerRevision except
|
||||||
// that it extracts the status subresource applied configuration.
|
// that it extracts the status subresource applied configuration.
|
||||||
// Experimental!
|
// Experimental!
|
||||||
func ExtractControllerRevisionStatus(controllerRevision *v1beta2.ControllerRevision, fieldManager string) (*ControllerRevisionApplyConfiguration, error) {
|
func ExtractControllerRevisionStatus(controllerRevision *appsv1beta2.ControllerRevision, fieldManager string) (*ControllerRevisionApplyConfiguration, error) {
|
||||||
return extractControllerRevision(controllerRevision, fieldManager, "status")
|
return extractControllerRevision(controllerRevision, fieldManager, "status")
|
||||||
}
|
}
|
||||||
|
|
||||||
func extractControllerRevision(controllerRevision *v1beta2.ControllerRevision, fieldManager string, subresource string) (*ControllerRevisionApplyConfiguration, error) {
|
func extractControllerRevision(controllerRevision *appsv1beta2.ControllerRevision, fieldManager string, subresource string) (*ControllerRevisionApplyConfiguration, error) {
|
||||||
b := &ControllerRevisionApplyConfiguration{}
|
b := &ControllerRevisionApplyConfiguration{}
|
||||||
err := managedfields.ExtractInto(controllerRevision, internal.Parser().Type("io.k8s.api.apps.v1beta2.ControllerRevision"), fieldManager, b, subresource)
|
err := managedfields.ExtractInto(controllerRevision, internal.Parser().Type("io.k8s.api.apps.v1beta2.ControllerRevision"), fieldManager, b, subresource)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -19,7 +19,7 @@ limitations under the License.
|
|||||||
package v1beta2
|
package v1beta2
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1beta2 "k8s.io/api/apps/v1beta2"
|
appsv1beta2 "k8s.io/api/apps/v1beta2"
|
||||||
v1 "k8s.io/api/core/v1"
|
v1 "k8s.io/api/core/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
)
|
)
|
||||||
@ -27,11 +27,11 @@ import (
|
|||||||
// DaemonSetConditionApplyConfiguration represents a declarative configuration of the DaemonSetCondition type for use
|
// DaemonSetConditionApplyConfiguration represents a declarative configuration of the DaemonSetCondition type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type DaemonSetConditionApplyConfiguration struct {
|
type DaemonSetConditionApplyConfiguration struct {
|
||||||
Type *v1beta2.DaemonSetConditionType `json:"type,omitempty"`
|
Type *appsv1beta2.DaemonSetConditionType `json:"type,omitempty"`
|
||||||
Status *v1.ConditionStatus `json:"status,omitempty"`
|
Status *v1.ConditionStatus `json:"status,omitempty"`
|
||||||
LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
|
LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
|
||||||
Reason *string `json:"reason,omitempty"`
|
Reason *string `json:"reason,omitempty"`
|
||||||
Message *string `json:"message,omitempty"`
|
Message *string `json:"message,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// DaemonSetConditionApplyConfiguration constructs a declarative configuration of the DaemonSetCondition type for use with
|
// DaemonSetConditionApplyConfiguration constructs a declarative configuration of the DaemonSetCondition type for use with
|
||||||
@ -43,7 +43,7 @@ func DaemonSetCondition() *DaemonSetConditionApplyConfiguration {
|
|||||||
// WithType sets the Type field in the declarative configuration to the given value
|
// 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.
|
// 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.
|
// If called multiple times, the Type field is set to the value of the last call.
|
||||||
func (b *DaemonSetConditionApplyConfiguration) WithType(value v1beta2.DaemonSetConditionType) *DaemonSetConditionApplyConfiguration {
|
func (b *DaemonSetConditionApplyConfiguration) WithType(value appsv1beta2.DaemonSetConditionType) *DaemonSetConditionApplyConfiguration {
|
||||||
b.Type = &value
|
b.Type = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,13 +19,13 @@ limitations under the License.
|
|||||||
package v1beta2
|
package v1beta2
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1beta2 "k8s.io/api/apps/v1beta2"
|
appsv1beta2 "k8s.io/api/apps/v1beta2"
|
||||||
)
|
)
|
||||||
|
|
||||||
// DaemonSetUpdateStrategyApplyConfiguration represents a declarative configuration of the DaemonSetUpdateStrategy type for use
|
// DaemonSetUpdateStrategyApplyConfiguration represents a declarative configuration of the DaemonSetUpdateStrategy type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type DaemonSetUpdateStrategyApplyConfiguration struct {
|
type DaemonSetUpdateStrategyApplyConfiguration struct {
|
||||||
Type *v1beta2.DaemonSetUpdateStrategyType `json:"type,omitempty"`
|
Type *appsv1beta2.DaemonSetUpdateStrategyType `json:"type,omitempty"`
|
||||||
RollingUpdate *RollingUpdateDaemonSetApplyConfiguration `json:"rollingUpdate,omitempty"`
|
RollingUpdate *RollingUpdateDaemonSetApplyConfiguration `json:"rollingUpdate,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -38,7 +38,7 @@ func DaemonSetUpdateStrategy() *DaemonSetUpdateStrategyApplyConfiguration {
|
|||||||
// WithType sets the Type field in the declarative configuration to the given value
|
// 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.
|
// 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.
|
// If called multiple times, the Type field is set to the value of the last call.
|
||||||
func (b *DaemonSetUpdateStrategyApplyConfiguration) WithType(value v1beta2.DaemonSetUpdateStrategyType) *DaemonSetUpdateStrategyApplyConfiguration {
|
func (b *DaemonSetUpdateStrategyApplyConfiguration) WithType(value appsv1beta2.DaemonSetUpdateStrategyType) *DaemonSetUpdateStrategyApplyConfiguration {
|
||||||
b.Type = &value
|
b.Type = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@ limitations under the License.
|
|||||||
package v1beta2
|
package v1beta2
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1beta2 "k8s.io/api/apps/v1beta2"
|
appsv1beta2 "k8s.io/api/apps/v1beta2"
|
||||||
v1 "k8s.io/api/core/v1"
|
v1 "k8s.io/api/core/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
)
|
)
|
||||||
@ -27,12 +27,12 @@ import (
|
|||||||
// DeploymentConditionApplyConfiguration represents a declarative configuration of the DeploymentCondition type for use
|
// DeploymentConditionApplyConfiguration represents a declarative configuration of the DeploymentCondition type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type DeploymentConditionApplyConfiguration struct {
|
type DeploymentConditionApplyConfiguration struct {
|
||||||
Type *v1beta2.DeploymentConditionType `json:"type,omitempty"`
|
Type *appsv1beta2.DeploymentConditionType `json:"type,omitempty"`
|
||||||
Status *v1.ConditionStatus `json:"status,omitempty"`
|
Status *v1.ConditionStatus `json:"status,omitempty"`
|
||||||
LastUpdateTime *metav1.Time `json:"lastUpdateTime,omitempty"`
|
LastUpdateTime *metav1.Time `json:"lastUpdateTime,omitempty"`
|
||||||
LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
|
LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
|
||||||
Reason *string `json:"reason,omitempty"`
|
Reason *string `json:"reason,omitempty"`
|
||||||
Message *string `json:"message,omitempty"`
|
Message *string `json:"message,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// DeploymentConditionApplyConfiguration constructs a declarative configuration of the DeploymentCondition type for use with
|
// DeploymentConditionApplyConfiguration constructs a declarative configuration of the DeploymentCondition type for use with
|
||||||
@ -44,7 +44,7 @@ func DeploymentCondition() *DeploymentConditionApplyConfiguration {
|
|||||||
// WithType sets the Type field in the declarative configuration to the given value
|
// 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.
|
// 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.
|
// If called multiple times, the Type field is set to the value of the last call.
|
||||||
func (b *DeploymentConditionApplyConfiguration) WithType(value v1beta2.DeploymentConditionType) *DeploymentConditionApplyConfiguration {
|
func (b *DeploymentConditionApplyConfiguration) WithType(value appsv1beta2.DeploymentConditionType) *DeploymentConditionApplyConfiguration {
|
||||||
b.Type = &value
|
b.Type = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,13 +19,13 @@ limitations under the License.
|
|||||||
package v1beta2
|
package v1beta2
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1beta2 "k8s.io/api/apps/v1beta2"
|
appsv1beta2 "k8s.io/api/apps/v1beta2"
|
||||||
)
|
)
|
||||||
|
|
||||||
// DeploymentStrategyApplyConfiguration represents a declarative configuration of the DeploymentStrategy type for use
|
// DeploymentStrategyApplyConfiguration represents a declarative configuration of the DeploymentStrategy type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type DeploymentStrategyApplyConfiguration struct {
|
type DeploymentStrategyApplyConfiguration struct {
|
||||||
Type *v1beta2.DeploymentStrategyType `json:"type,omitempty"`
|
Type *appsv1beta2.DeploymentStrategyType `json:"type,omitempty"`
|
||||||
RollingUpdate *RollingUpdateDeploymentApplyConfiguration `json:"rollingUpdate,omitempty"`
|
RollingUpdate *RollingUpdateDeploymentApplyConfiguration `json:"rollingUpdate,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -38,7 +38,7 @@ func DeploymentStrategy() *DeploymentStrategyApplyConfiguration {
|
|||||||
// WithType sets the Type field in the declarative configuration to the given value
|
// 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.
|
// 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.
|
// If called multiple times, the Type field is set to the value of the last call.
|
||||||
func (b *DeploymentStrategyApplyConfiguration) WithType(value v1beta2.DeploymentStrategyType) *DeploymentStrategyApplyConfiguration {
|
func (b *DeploymentStrategyApplyConfiguration) WithType(value appsv1beta2.DeploymentStrategyType) *DeploymentStrategyApplyConfiguration {
|
||||||
b.Type = &value
|
b.Type = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@ limitations under the License.
|
|||||||
package v1beta2
|
package v1beta2
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1beta2 "k8s.io/api/apps/v1beta2"
|
appsv1beta2 "k8s.io/api/apps/v1beta2"
|
||||||
v1 "k8s.io/api/core/v1"
|
v1 "k8s.io/api/core/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
)
|
)
|
||||||
@ -27,11 +27,11 @@ import (
|
|||||||
// ReplicaSetConditionApplyConfiguration represents a declarative configuration of the ReplicaSetCondition type for use
|
// ReplicaSetConditionApplyConfiguration represents a declarative configuration of the ReplicaSetCondition type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ReplicaSetConditionApplyConfiguration struct {
|
type ReplicaSetConditionApplyConfiguration struct {
|
||||||
Type *v1beta2.ReplicaSetConditionType `json:"type,omitempty"`
|
Type *appsv1beta2.ReplicaSetConditionType `json:"type,omitempty"`
|
||||||
Status *v1.ConditionStatus `json:"status,omitempty"`
|
Status *v1.ConditionStatus `json:"status,omitempty"`
|
||||||
LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
|
LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
|
||||||
Reason *string `json:"reason,omitempty"`
|
Reason *string `json:"reason,omitempty"`
|
||||||
Message *string `json:"message,omitempty"`
|
Message *string `json:"message,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ReplicaSetConditionApplyConfiguration constructs a declarative configuration of the ReplicaSetCondition type for use with
|
// ReplicaSetConditionApplyConfiguration constructs a declarative configuration of the ReplicaSetCondition type for use with
|
||||||
@ -43,7 +43,7 @@ func ReplicaSetCondition() *ReplicaSetConditionApplyConfiguration {
|
|||||||
// WithType sets the Type field in the declarative configuration to the given value
|
// 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.
|
// 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.
|
// If called multiple times, the Type field is set to the value of the last call.
|
||||||
func (b *ReplicaSetConditionApplyConfiguration) WithType(value v1beta2.ReplicaSetConditionType) *ReplicaSetConditionApplyConfiguration {
|
func (b *ReplicaSetConditionApplyConfiguration) WithType(value appsv1beta2.ReplicaSetConditionType) *ReplicaSetConditionApplyConfiguration {
|
||||||
b.Type = &value
|
b.Type = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@ limitations under the License.
|
|||||||
package v1beta2
|
package v1beta2
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1beta2 "k8s.io/api/apps/v1beta2"
|
appsv1beta2 "k8s.io/api/apps/v1beta2"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
types "k8s.io/apimachinery/pkg/types"
|
types "k8s.io/apimachinery/pkg/types"
|
||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
@ -30,8 +30,8 @@ import (
|
|||||||
type ScaleApplyConfiguration struct {
|
type ScaleApplyConfiguration struct {
|
||||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
v1.TypeMetaApplyConfiguration `json:",inline"`
|
||||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||||
Spec *v1beta2.ScaleSpec `json:"spec,omitempty"`
|
Spec *appsv1beta2.ScaleSpec `json:"spec,omitempty"`
|
||||||
Status *v1beta2.ScaleStatus `json:"status,omitempty"`
|
Status *appsv1beta2.ScaleStatus `json:"status,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ScaleApplyConfiguration constructs a declarative configuration of the Scale type for use with
|
// ScaleApplyConfiguration constructs a declarative configuration of the Scale type for use with
|
||||||
@ -204,7 +204,7 @@ func (b *ScaleApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
|
|||||||
// WithSpec sets the Spec field in the declarative configuration to the given value
|
// WithSpec sets the Spec field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the Spec field is set to the value of the last call.
|
// If called multiple times, the Spec field is set to the value of the last call.
|
||||||
func (b *ScaleApplyConfiguration) WithSpec(value v1beta2.ScaleSpec) *ScaleApplyConfiguration {
|
func (b *ScaleApplyConfiguration) WithSpec(value appsv1beta2.ScaleSpec) *ScaleApplyConfiguration {
|
||||||
b.Spec = &value
|
b.Spec = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
@ -212,7 +212,7 @@ func (b *ScaleApplyConfiguration) WithSpec(value v1beta2.ScaleSpec) *ScaleApplyC
|
|||||||
// WithStatus sets the Status field in the declarative configuration to the given value
|
// 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.
|
// 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.
|
// If called multiple times, the Status field is set to the value of the last call.
|
||||||
func (b *ScaleApplyConfiguration) WithStatus(value v1beta2.ScaleStatus) *ScaleApplyConfiguration {
|
func (b *ScaleApplyConfiguration) WithStatus(value appsv1beta2.ScaleStatus) *ScaleApplyConfiguration {
|
||||||
b.Status = &value
|
b.Status = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@ limitations under the License.
|
|||||||
package v1beta2
|
package v1beta2
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1beta2 "k8s.io/api/apps/v1beta2"
|
appsv1beta2 "k8s.io/api/apps/v1beta2"
|
||||||
v1 "k8s.io/api/core/v1"
|
v1 "k8s.io/api/core/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
)
|
)
|
||||||
@ -27,11 +27,11 @@ import (
|
|||||||
// StatefulSetConditionApplyConfiguration represents a declarative configuration of the StatefulSetCondition type for use
|
// StatefulSetConditionApplyConfiguration represents a declarative configuration of the StatefulSetCondition type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type StatefulSetConditionApplyConfiguration struct {
|
type StatefulSetConditionApplyConfiguration struct {
|
||||||
Type *v1beta2.StatefulSetConditionType `json:"type,omitempty"`
|
Type *appsv1beta2.StatefulSetConditionType `json:"type,omitempty"`
|
||||||
Status *v1.ConditionStatus `json:"status,omitempty"`
|
Status *v1.ConditionStatus `json:"status,omitempty"`
|
||||||
LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
|
LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
|
||||||
Reason *string `json:"reason,omitempty"`
|
Reason *string `json:"reason,omitempty"`
|
||||||
Message *string `json:"message,omitempty"`
|
Message *string `json:"message,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// StatefulSetConditionApplyConfiguration constructs a declarative configuration of the StatefulSetCondition type for use with
|
// StatefulSetConditionApplyConfiguration constructs a declarative configuration of the StatefulSetCondition type for use with
|
||||||
@ -43,7 +43,7 @@ func StatefulSetCondition() *StatefulSetConditionApplyConfiguration {
|
|||||||
// WithType sets the Type field in the declarative configuration to the given value
|
// 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.
|
// 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.
|
// If called multiple times, the Type field is set to the value of the last call.
|
||||||
func (b *StatefulSetConditionApplyConfiguration) WithType(value v1beta2.StatefulSetConditionType) *StatefulSetConditionApplyConfiguration {
|
func (b *StatefulSetConditionApplyConfiguration) WithType(value appsv1beta2.StatefulSetConditionType) *StatefulSetConditionApplyConfiguration {
|
||||||
b.Type = &value
|
b.Type = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,14 +19,14 @@ limitations under the License.
|
|||||||
package v1beta2
|
package v1beta2
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1beta2 "k8s.io/api/apps/v1beta2"
|
appsv1beta2 "k8s.io/api/apps/v1beta2"
|
||||||
)
|
)
|
||||||
|
|
||||||
// StatefulSetPersistentVolumeClaimRetentionPolicyApplyConfiguration represents a declarative configuration of the StatefulSetPersistentVolumeClaimRetentionPolicy type for use
|
// StatefulSetPersistentVolumeClaimRetentionPolicyApplyConfiguration represents a declarative configuration of the StatefulSetPersistentVolumeClaimRetentionPolicy type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type StatefulSetPersistentVolumeClaimRetentionPolicyApplyConfiguration struct {
|
type StatefulSetPersistentVolumeClaimRetentionPolicyApplyConfiguration struct {
|
||||||
WhenDeleted *v1beta2.PersistentVolumeClaimRetentionPolicyType `json:"whenDeleted,omitempty"`
|
WhenDeleted *appsv1beta2.PersistentVolumeClaimRetentionPolicyType `json:"whenDeleted,omitempty"`
|
||||||
WhenScaled *v1beta2.PersistentVolumeClaimRetentionPolicyType `json:"whenScaled,omitempty"`
|
WhenScaled *appsv1beta2.PersistentVolumeClaimRetentionPolicyType `json:"whenScaled,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// StatefulSetPersistentVolumeClaimRetentionPolicyApplyConfiguration constructs a declarative configuration of the StatefulSetPersistentVolumeClaimRetentionPolicy type for use with
|
// StatefulSetPersistentVolumeClaimRetentionPolicyApplyConfiguration constructs a declarative configuration of the StatefulSetPersistentVolumeClaimRetentionPolicy type for use with
|
||||||
@ -38,7 +38,7 @@ func StatefulSetPersistentVolumeClaimRetentionPolicy() *StatefulSetPersistentVol
|
|||||||
// WithWhenDeleted sets the WhenDeleted field in the declarative configuration to the given value
|
// WithWhenDeleted sets the WhenDeleted field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the WhenDeleted field is set to the value of the last call.
|
// If called multiple times, the WhenDeleted field is set to the value of the last call.
|
||||||
func (b *StatefulSetPersistentVolumeClaimRetentionPolicyApplyConfiguration) WithWhenDeleted(value v1beta2.PersistentVolumeClaimRetentionPolicyType) *StatefulSetPersistentVolumeClaimRetentionPolicyApplyConfiguration {
|
func (b *StatefulSetPersistentVolumeClaimRetentionPolicyApplyConfiguration) WithWhenDeleted(value appsv1beta2.PersistentVolumeClaimRetentionPolicyType) *StatefulSetPersistentVolumeClaimRetentionPolicyApplyConfiguration {
|
||||||
b.WhenDeleted = &value
|
b.WhenDeleted = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
@ -46,7 +46,7 @@ func (b *StatefulSetPersistentVolumeClaimRetentionPolicyApplyConfiguration) With
|
|||||||
// WithWhenScaled sets the WhenScaled field in the declarative configuration to the given value
|
// WithWhenScaled sets the WhenScaled field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the WhenScaled field is set to the value of the last call.
|
// If called multiple times, the WhenScaled field is set to the value of the last call.
|
||||||
func (b *StatefulSetPersistentVolumeClaimRetentionPolicyApplyConfiguration) WithWhenScaled(value v1beta2.PersistentVolumeClaimRetentionPolicyType) *StatefulSetPersistentVolumeClaimRetentionPolicyApplyConfiguration {
|
func (b *StatefulSetPersistentVolumeClaimRetentionPolicyApplyConfiguration) WithWhenScaled(value appsv1beta2.PersistentVolumeClaimRetentionPolicyType) *StatefulSetPersistentVolumeClaimRetentionPolicyApplyConfiguration {
|
||||||
b.WhenScaled = &value
|
b.WhenScaled = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@ limitations under the License.
|
|||||||
package v1beta2
|
package v1beta2
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1beta2 "k8s.io/api/apps/v1beta2"
|
appsv1beta2 "k8s.io/api/apps/v1beta2"
|
||||||
corev1 "k8s.io/client-go/applyconfigurations/core/v1"
|
corev1 "k8s.io/client-go/applyconfigurations/core/v1"
|
||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
@ -32,7 +32,7 @@ type StatefulSetSpecApplyConfiguration struct {
|
|||||||
Template *corev1.PodTemplateSpecApplyConfiguration `json:"template,omitempty"`
|
Template *corev1.PodTemplateSpecApplyConfiguration `json:"template,omitempty"`
|
||||||
VolumeClaimTemplates []corev1.PersistentVolumeClaimApplyConfiguration `json:"volumeClaimTemplates,omitempty"`
|
VolumeClaimTemplates []corev1.PersistentVolumeClaimApplyConfiguration `json:"volumeClaimTemplates,omitempty"`
|
||||||
ServiceName *string `json:"serviceName,omitempty"`
|
ServiceName *string `json:"serviceName,omitempty"`
|
||||||
PodManagementPolicy *v1beta2.PodManagementPolicyType `json:"podManagementPolicy,omitempty"`
|
PodManagementPolicy *appsv1beta2.PodManagementPolicyType `json:"podManagementPolicy,omitempty"`
|
||||||
UpdateStrategy *StatefulSetUpdateStrategyApplyConfiguration `json:"updateStrategy,omitempty"`
|
UpdateStrategy *StatefulSetUpdateStrategyApplyConfiguration `json:"updateStrategy,omitempty"`
|
||||||
RevisionHistoryLimit *int32 `json:"revisionHistoryLimit,omitempty"`
|
RevisionHistoryLimit *int32 `json:"revisionHistoryLimit,omitempty"`
|
||||||
MinReadySeconds *int32 `json:"minReadySeconds,omitempty"`
|
MinReadySeconds *int32 `json:"minReadySeconds,omitempty"`
|
||||||
@ -94,7 +94,7 @@ func (b *StatefulSetSpecApplyConfiguration) WithServiceName(value string) *State
|
|||||||
// WithPodManagementPolicy sets the PodManagementPolicy field in the declarative configuration to the given value
|
// WithPodManagementPolicy sets the PodManagementPolicy field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the PodManagementPolicy field is set to the value of the last call.
|
// If called multiple times, the PodManagementPolicy field is set to the value of the last call.
|
||||||
func (b *StatefulSetSpecApplyConfiguration) WithPodManagementPolicy(value v1beta2.PodManagementPolicyType) *StatefulSetSpecApplyConfiguration {
|
func (b *StatefulSetSpecApplyConfiguration) WithPodManagementPolicy(value appsv1beta2.PodManagementPolicyType) *StatefulSetSpecApplyConfiguration {
|
||||||
b.PodManagementPolicy = &value
|
b.PodManagementPolicy = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,13 +19,13 @@ limitations under the License.
|
|||||||
package v1beta2
|
package v1beta2
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1beta2 "k8s.io/api/apps/v1beta2"
|
appsv1beta2 "k8s.io/api/apps/v1beta2"
|
||||||
)
|
)
|
||||||
|
|
||||||
// StatefulSetUpdateStrategyApplyConfiguration represents a declarative configuration of the StatefulSetUpdateStrategy type for use
|
// StatefulSetUpdateStrategyApplyConfiguration represents a declarative configuration of the StatefulSetUpdateStrategy type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type StatefulSetUpdateStrategyApplyConfiguration struct {
|
type StatefulSetUpdateStrategyApplyConfiguration struct {
|
||||||
Type *v1beta2.StatefulSetUpdateStrategyType `json:"type,omitempty"`
|
Type *appsv1beta2.StatefulSetUpdateStrategyType `json:"type,omitempty"`
|
||||||
RollingUpdate *RollingUpdateStatefulSetStrategyApplyConfiguration `json:"rollingUpdate,omitempty"`
|
RollingUpdate *RollingUpdateStatefulSetStrategyApplyConfiguration `json:"rollingUpdate,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -38,7 +38,7 @@ func StatefulSetUpdateStrategy() *StatefulSetUpdateStrategyApplyConfiguration {
|
|||||||
// WithType sets the Type field in the declarative configuration to the given value
|
// 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.
|
// 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.
|
// If called multiple times, the Type field is set to the value of the last call.
|
||||||
func (b *StatefulSetUpdateStrategyApplyConfiguration) WithType(value v1beta2.StatefulSetUpdateStrategyType) *StatefulSetUpdateStrategyApplyConfiguration {
|
func (b *StatefulSetUpdateStrategyApplyConfiguration) WithType(value appsv1beta2.StatefulSetUpdateStrategyType) *StatefulSetUpdateStrategyApplyConfiguration {
|
||||||
b.Type = &value
|
b.Type = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,21 +19,21 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
apiautoscalingv1 "k8s.io/api/autoscaling/v1"
|
autoscalingv1 "k8s.io/api/autoscaling/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
types "k8s.io/apimachinery/pkg/types"
|
types "k8s.io/apimachinery/pkg/types"
|
||||||
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
|
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
|
||||||
internal "k8s.io/client-go/applyconfigurations/internal"
|
internal "k8s.io/client-go/applyconfigurations/internal"
|
||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// HorizontalPodAutoscalerApplyConfiguration represents a declarative configuration of the HorizontalPodAutoscaler type for use
|
// HorizontalPodAutoscalerApplyConfiguration represents a declarative configuration of the HorizontalPodAutoscaler type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type HorizontalPodAutoscalerApplyConfiguration struct {
|
type HorizontalPodAutoscalerApplyConfiguration struct {
|
||||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||||
Spec *HorizontalPodAutoscalerSpecApplyConfiguration `json:"spec,omitempty"`
|
Spec *HorizontalPodAutoscalerSpecApplyConfiguration `json:"spec,omitempty"`
|
||||||
Status *HorizontalPodAutoscalerStatusApplyConfiguration `json:"status,omitempty"`
|
Status *HorizontalPodAutoscalerStatusApplyConfiguration `json:"status,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// HorizontalPodAutoscaler constructs a declarative configuration of the HorizontalPodAutoscaler type for use with
|
// HorizontalPodAutoscaler constructs a declarative configuration of the HorizontalPodAutoscaler type for use with
|
||||||
@ -58,18 +58,18 @@ func HorizontalPodAutoscaler(name, namespace string) *HorizontalPodAutoscalerApp
|
|||||||
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
|
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
|
||||||
// applied if another fieldManager has updated or force applied any of the previously applied fields.
|
// applied if another fieldManager has updated or force applied any of the previously applied fields.
|
||||||
// Experimental!
|
// Experimental!
|
||||||
func ExtractHorizontalPodAutoscaler(horizontalPodAutoscaler *apiautoscalingv1.HorizontalPodAutoscaler, fieldManager string) (*HorizontalPodAutoscalerApplyConfiguration, error) {
|
func ExtractHorizontalPodAutoscaler(horizontalPodAutoscaler *autoscalingv1.HorizontalPodAutoscaler, fieldManager string) (*HorizontalPodAutoscalerApplyConfiguration, error) {
|
||||||
return extractHorizontalPodAutoscaler(horizontalPodAutoscaler, fieldManager, "")
|
return extractHorizontalPodAutoscaler(horizontalPodAutoscaler, fieldManager, "")
|
||||||
}
|
}
|
||||||
|
|
||||||
// ExtractHorizontalPodAutoscalerStatus is the same as ExtractHorizontalPodAutoscaler except
|
// ExtractHorizontalPodAutoscalerStatus is the same as ExtractHorizontalPodAutoscaler except
|
||||||
// that it extracts the status subresource applied configuration.
|
// that it extracts the status subresource applied configuration.
|
||||||
// Experimental!
|
// Experimental!
|
||||||
func ExtractHorizontalPodAutoscalerStatus(horizontalPodAutoscaler *apiautoscalingv1.HorizontalPodAutoscaler, fieldManager string) (*HorizontalPodAutoscalerApplyConfiguration, error) {
|
func ExtractHorizontalPodAutoscalerStatus(horizontalPodAutoscaler *autoscalingv1.HorizontalPodAutoscaler, fieldManager string) (*HorizontalPodAutoscalerApplyConfiguration, error) {
|
||||||
return extractHorizontalPodAutoscaler(horizontalPodAutoscaler, fieldManager, "status")
|
return extractHorizontalPodAutoscaler(horizontalPodAutoscaler, fieldManager, "status")
|
||||||
}
|
}
|
||||||
|
|
||||||
func extractHorizontalPodAutoscaler(horizontalPodAutoscaler *apiautoscalingv1.HorizontalPodAutoscaler, fieldManager string, subresource string) (*HorizontalPodAutoscalerApplyConfiguration, error) {
|
func extractHorizontalPodAutoscaler(horizontalPodAutoscaler *autoscalingv1.HorizontalPodAutoscaler, fieldManager string, subresource string) (*HorizontalPodAutoscalerApplyConfiguration, error) {
|
||||||
b := &HorizontalPodAutoscalerApplyConfiguration{}
|
b := &HorizontalPodAutoscalerApplyConfiguration{}
|
||||||
err := managedfields.ExtractInto(horizontalPodAutoscaler, internal.Parser().Type("io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler"), fieldManager, b, subresource)
|
err := managedfields.ExtractInto(horizontalPodAutoscaler, internal.Parser().Type("io.k8s.api.autoscaling.v1.HorizontalPodAutoscaler"), fieldManager, b, subresource)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -156,7 +156,7 @@ func (b *HorizontalPodAutoscalerApplyConfiguration) WithGeneration(value int64)
|
|||||||
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
|
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
|
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
|
||||||
func (b *HorizontalPodAutoscalerApplyConfiguration) WithCreationTimestamp(value metav1.Time) *HorizontalPodAutoscalerApplyConfiguration {
|
func (b *HorizontalPodAutoscalerApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *HorizontalPodAutoscalerApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
|
b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
|
||||||
return b
|
return b
|
||||||
@ -165,7 +165,7 @@ func (b *HorizontalPodAutoscalerApplyConfiguration) WithCreationTimestamp(value
|
|||||||
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
|
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
|
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
|
||||||
func (b *HorizontalPodAutoscalerApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *HorizontalPodAutoscalerApplyConfiguration {
|
func (b *HorizontalPodAutoscalerApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *HorizontalPodAutoscalerApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
|
b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
|
||||||
return b
|
return b
|
||||||
@ -213,7 +213,7 @@ func (b *HorizontalPodAutoscalerApplyConfiguration) WithAnnotations(entries map[
|
|||||||
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
|
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
|
||||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
// 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 OwnerReferences field.
|
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
|
||||||
func (b *HorizontalPodAutoscalerApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *HorizontalPodAutoscalerApplyConfiguration {
|
func (b *HorizontalPodAutoscalerApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *HorizontalPodAutoscalerApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
for i := range values {
|
for i := range values {
|
||||||
if values[i] == nil {
|
if values[i] == nil {
|
||||||
@ -237,7 +237,7 @@ func (b *HorizontalPodAutoscalerApplyConfiguration) WithFinalizers(values ...str
|
|||||||
|
|
||||||
func (b *HorizontalPodAutoscalerApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
|
func (b *HorizontalPodAutoscalerApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
|
||||||
if b.ObjectMetaApplyConfiguration == nil {
|
if b.ObjectMetaApplyConfiguration == nil {
|
||||||
b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
|
b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,17 +19,17 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// HorizontalPodAutoscalerStatusApplyConfiguration represents a declarative configuration of the HorizontalPodAutoscalerStatus type for use
|
// HorizontalPodAutoscalerStatusApplyConfiguration represents a declarative configuration of the HorizontalPodAutoscalerStatus type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type HorizontalPodAutoscalerStatusApplyConfiguration struct {
|
type HorizontalPodAutoscalerStatusApplyConfiguration struct {
|
||||||
ObservedGeneration *int64 `json:"observedGeneration,omitempty"`
|
ObservedGeneration *int64 `json:"observedGeneration,omitempty"`
|
||||||
LastScaleTime *v1.Time `json:"lastScaleTime,omitempty"`
|
LastScaleTime *metav1.Time `json:"lastScaleTime,omitempty"`
|
||||||
CurrentReplicas *int32 `json:"currentReplicas,omitempty"`
|
CurrentReplicas *int32 `json:"currentReplicas,omitempty"`
|
||||||
DesiredReplicas *int32 `json:"desiredReplicas,omitempty"`
|
DesiredReplicas *int32 `json:"desiredReplicas,omitempty"`
|
||||||
CurrentCPUUtilizationPercentage *int32 `json:"currentCPUUtilizationPercentage,omitempty"`
|
CurrentCPUUtilizationPercentage *int32 `json:"currentCPUUtilizationPercentage,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// HorizontalPodAutoscalerStatusApplyConfiguration constructs a declarative configuration of the HorizontalPodAutoscalerStatus type for use with
|
// HorizontalPodAutoscalerStatusApplyConfiguration constructs a declarative configuration of the HorizontalPodAutoscalerStatus type for use with
|
||||||
@ -49,7 +49,7 @@ func (b *HorizontalPodAutoscalerStatusApplyConfiguration) WithObservedGeneration
|
|||||||
// WithLastScaleTime sets the LastScaleTime field in the declarative configuration to the given value
|
// WithLastScaleTime sets the LastScaleTime field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the LastScaleTime field is set to the value of the last call.
|
// If called multiple times, the LastScaleTime field is set to the value of the last call.
|
||||||
func (b *HorizontalPodAutoscalerStatusApplyConfiguration) WithLastScaleTime(value v1.Time) *HorizontalPodAutoscalerStatusApplyConfiguration {
|
func (b *HorizontalPodAutoscalerStatusApplyConfiguration) WithLastScaleTime(value metav1.Time) *HorizontalPodAutoscalerStatusApplyConfiguration {
|
||||||
b.LastScaleTime = &value
|
b.LastScaleTime = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,18 +19,18 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
types "k8s.io/apimachinery/pkg/types"
|
types "k8s.io/apimachinery/pkg/types"
|
||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ScaleApplyConfiguration represents a declarative configuration of the Scale type for use
|
// ScaleApplyConfiguration represents a declarative configuration of the Scale type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ScaleApplyConfiguration struct {
|
type ScaleApplyConfiguration struct {
|
||||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||||
Spec *ScaleSpecApplyConfiguration `json:"spec,omitempty"`
|
Spec *ScaleSpecApplyConfiguration `json:"spec,omitempty"`
|
||||||
Status *ScaleStatusApplyConfiguration `json:"status,omitempty"`
|
Status *ScaleStatusApplyConfiguration `json:"status,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ScaleApplyConfiguration constructs a declarative configuration of the Scale type for use with
|
// ScaleApplyConfiguration constructs a declarative configuration of the Scale type for use with
|
||||||
@ -115,7 +115,7 @@ func (b *ScaleApplyConfiguration) WithGeneration(value int64) *ScaleApplyConfigu
|
|||||||
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
|
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
|
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
|
||||||
func (b *ScaleApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ScaleApplyConfiguration {
|
func (b *ScaleApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ScaleApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
|
b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
|
||||||
return b
|
return b
|
||||||
@ -124,7 +124,7 @@ func (b *ScaleApplyConfiguration) WithCreationTimestamp(value metav1.Time) *Scal
|
|||||||
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
|
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
|
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
|
||||||
func (b *ScaleApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ScaleApplyConfiguration {
|
func (b *ScaleApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ScaleApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
|
b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
|
||||||
return b
|
return b
|
||||||
@ -172,7 +172,7 @@ func (b *ScaleApplyConfiguration) WithAnnotations(entries map[string]string) *Sc
|
|||||||
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
|
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
|
||||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
// 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 OwnerReferences field.
|
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
|
||||||
func (b *ScaleApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ScaleApplyConfiguration {
|
func (b *ScaleApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ScaleApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
for i := range values {
|
for i := range values {
|
||||||
if values[i] == nil {
|
if values[i] == nil {
|
||||||
@ -196,7 +196,7 @@ func (b *ScaleApplyConfiguration) WithFinalizers(values ...string) *ScaleApplyCo
|
|||||||
|
|
||||||
func (b *ScaleApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
|
func (b *ScaleApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
|
||||||
if b.ObjectMetaApplyConfiguration == nil {
|
if b.ObjectMetaApplyConfiguration == nil {
|
||||||
b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
|
b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ limitations under the License.
|
|||||||
package v2
|
package v2
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v2 "k8s.io/api/autoscaling/v2"
|
autoscalingv2 "k8s.io/api/autoscaling/v2"
|
||||||
v1 "k8s.io/api/core/v1"
|
v1 "k8s.io/api/core/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
)
|
)
|
||||||
@ -27,11 +27,11 @@ import (
|
|||||||
// HorizontalPodAutoscalerConditionApplyConfiguration represents a declarative configuration of the HorizontalPodAutoscalerCondition type for use
|
// HorizontalPodAutoscalerConditionApplyConfiguration represents a declarative configuration of the HorizontalPodAutoscalerCondition type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type HorizontalPodAutoscalerConditionApplyConfiguration struct {
|
type HorizontalPodAutoscalerConditionApplyConfiguration struct {
|
||||||
Type *v2.HorizontalPodAutoscalerConditionType `json:"type,omitempty"`
|
Type *autoscalingv2.HorizontalPodAutoscalerConditionType `json:"type,omitempty"`
|
||||||
Status *v1.ConditionStatus `json:"status,omitempty"`
|
Status *v1.ConditionStatus `json:"status,omitempty"`
|
||||||
LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
|
LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
|
||||||
Reason *string `json:"reason,omitempty"`
|
Reason *string `json:"reason,omitempty"`
|
||||||
Message *string `json:"message,omitempty"`
|
Message *string `json:"message,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// HorizontalPodAutoscalerConditionApplyConfiguration constructs a declarative configuration of the HorizontalPodAutoscalerCondition type for use with
|
// HorizontalPodAutoscalerConditionApplyConfiguration constructs a declarative configuration of the HorizontalPodAutoscalerCondition type for use with
|
||||||
@ -43,7 +43,7 @@ func HorizontalPodAutoscalerCondition() *HorizontalPodAutoscalerConditionApplyCo
|
|||||||
// WithType sets the Type field in the declarative configuration to the given value
|
// 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.
|
// 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.
|
// If called multiple times, the Type field is set to the value of the last call.
|
||||||
func (b *HorizontalPodAutoscalerConditionApplyConfiguration) WithType(value v2.HorizontalPodAutoscalerConditionType) *HorizontalPodAutoscalerConditionApplyConfiguration {
|
func (b *HorizontalPodAutoscalerConditionApplyConfiguration) WithType(value autoscalingv2.HorizontalPodAutoscalerConditionType) *HorizontalPodAutoscalerConditionApplyConfiguration {
|
||||||
b.Type = &value
|
b.Type = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,15 +19,15 @@ limitations under the License.
|
|||||||
package v2
|
package v2
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v2 "k8s.io/api/autoscaling/v2"
|
autoscalingv2 "k8s.io/api/autoscaling/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
// HPAScalingPolicyApplyConfiguration represents a declarative configuration of the HPAScalingPolicy type for use
|
// HPAScalingPolicyApplyConfiguration represents a declarative configuration of the HPAScalingPolicy type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type HPAScalingPolicyApplyConfiguration struct {
|
type HPAScalingPolicyApplyConfiguration struct {
|
||||||
Type *v2.HPAScalingPolicyType `json:"type,omitempty"`
|
Type *autoscalingv2.HPAScalingPolicyType `json:"type,omitempty"`
|
||||||
Value *int32 `json:"value,omitempty"`
|
Value *int32 `json:"value,omitempty"`
|
||||||
PeriodSeconds *int32 `json:"periodSeconds,omitempty"`
|
PeriodSeconds *int32 `json:"periodSeconds,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// HPAScalingPolicyApplyConfiguration constructs a declarative configuration of the HPAScalingPolicy type for use with
|
// HPAScalingPolicyApplyConfiguration constructs a declarative configuration of the HPAScalingPolicy type for use with
|
||||||
@ -39,7 +39,7 @@ func HPAScalingPolicy() *HPAScalingPolicyApplyConfiguration {
|
|||||||
// WithType sets the Type field in the declarative configuration to the given value
|
// 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.
|
// 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.
|
// If called multiple times, the Type field is set to the value of the last call.
|
||||||
func (b *HPAScalingPolicyApplyConfiguration) WithType(value v2.HPAScalingPolicyType) *HPAScalingPolicyApplyConfiguration {
|
func (b *HPAScalingPolicyApplyConfiguration) WithType(value autoscalingv2.HPAScalingPolicyType) *HPAScalingPolicyApplyConfiguration {
|
||||||
b.Type = &value
|
b.Type = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,14 +19,14 @@ limitations under the License.
|
|||||||
package v2
|
package v2
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v2 "k8s.io/api/autoscaling/v2"
|
autoscalingv2 "k8s.io/api/autoscaling/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
// HPAScalingRulesApplyConfiguration represents a declarative configuration of the HPAScalingRules type for use
|
// HPAScalingRulesApplyConfiguration represents a declarative configuration of the HPAScalingRules type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type HPAScalingRulesApplyConfiguration struct {
|
type HPAScalingRulesApplyConfiguration struct {
|
||||||
StabilizationWindowSeconds *int32 `json:"stabilizationWindowSeconds,omitempty"`
|
StabilizationWindowSeconds *int32 `json:"stabilizationWindowSeconds,omitempty"`
|
||||||
SelectPolicy *v2.ScalingPolicySelect `json:"selectPolicy,omitempty"`
|
SelectPolicy *autoscalingv2.ScalingPolicySelect `json:"selectPolicy,omitempty"`
|
||||||
Policies []HPAScalingPolicyApplyConfiguration `json:"policies,omitempty"`
|
Policies []HPAScalingPolicyApplyConfiguration `json:"policies,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -47,7 +47,7 @@ func (b *HPAScalingRulesApplyConfiguration) WithStabilizationWindowSeconds(value
|
|||||||
// WithSelectPolicy sets the SelectPolicy field in the declarative configuration to the given value
|
// WithSelectPolicy sets the SelectPolicy field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the SelectPolicy field is set to the value of the last call.
|
// If called multiple times, the SelectPolicy field is set to the value of the last call.
|
||||||
func (b *HPAScalingRulesApplyConfiguration) WithSelectPolicy(value v2.ScalingPolicySelect) *HPAScalingRulesApplyConfiguration {
|
func (b *HPAScalingRulesApplyConfiguration) WithSelectPolicy(value autoscalingv2.ScalingPolicySelect) *HPAScalingRulesApplyConfiguration {
|
||||||
b.SelectPolicy = &value
|
b.SelectPolicy = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,13 +19,13 @@ limitations under the License.
|
|||||||
package v2
|
package v2
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v2 "k8s.io/api/autoscaling/v2"
|
autoscalingv2 "k8s.io/api/autoscaling/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
// MetricSpecApplyConfiguration represents a declarative configuration of the MetricSpec type for use
|
// MetricSpecApplyConfiguration represents a declarative configuration of the MetricSpec type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type MetricSpecApplyConfiguration struct {
|
type MetricSpecApplyConfiguration struct {
|
||||||
Type *v2.MetricSourceType `json:"type,omitempty"`
|
Type *autoscalingv2.MetricSourceType `json:"type,omitempty"`
|
||||||
Object *ObjectMetricSourceApplyConfiguration `json:"object,omitempty"`
|
Object *ObjectMetricSourceApplyConfiguration `json:"object,omitempty"`
|
||||||
Pods *PodsMetricSourceApplyConfiguration `json:"pods,omitempty"`
|
Pods *PodsMetricSourceApplyConfiguration `json:"pods,omitempty"`
|
||||||
Resource *ResourceMetricSourceApplyConfiguration `json:"resource,omitempty"`
|
Resource *ResourceMetricSourceApplyConfiguration `json:"resource,omitempty"`
|
||||||
@ -42,7 +42,7 @@ func MetricSpec() *MetricSpecApplyConfiguration {
|
|||||||
// WithType sets the Type field in the declarative configuration to the given value
|
// 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.
|
// 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.
|
// If called multiple times, the Type field is set to the value of the last call.
|
||||||
func (b *MetricSpecApplyConfiguration) WithType(value v2.MetricSourceType) *MetricSpecApplyConfiguration {
|
func (b *MetricSpecApplyConfiguration) WithType(value autoscalingv2.MetricSourceType) *MetricSpecApplyConfiguration {
|
||||||
b.Type = &value
|
b.Type = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,13 +19,13 @@ limitations under the License.
|
|||||||
package v2
|
package v2
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v2 "k8s.io/api/autoscaling/v2"
|
autoscalingv2 "k8s.io/api/autoscaling/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
// MetricStatusApplyConfiguration represents a declarative configuration of the MetricStatus type for use
|
// MetricStatusApplyConfiguration represents a declarative configuration of the MetricStatus type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type MetricStatusApplyConfiguration struct {
|
type MetricStatusApplyConfiguration struct {
|
||||||
Type *v2.MetricSourceType `json:"type,omitempty"`
|
Type *autoscalingv2.MetricSourceType `json:"type,omitempty"`
|
||||||
Object *ObjectMetricStatusApplyConfiguration `json:"object,omitempty"`
|
Object *ObjectMetricStatusApplyConfiguration `json:"object,omitempty"`
|
||||||
Pods *PodsMetricStatusApplyConfiguration `json:"pods,omitempty"`
|
Pods *PodsMetricStatusApplyConfiguration `json:"pods,omitempty"`
|
||||||
Resource *ResourceMetricStatusApplyConfiguration `json:"resource,omitempty"`
|
Resource *ResourceMetricStatusApplyConfiguration `json:"resource,omitempty"`
|
||||||
@ -42,7 +42,7 @@ func MetricStatus() *MetricStatusApplyConfiguration {
|
|||||||
// WithType sets the Type field in the declarative configuration to the given value
|
// 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.
|
// 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.
|
// If called multiple times, the Type field is set to the value of the last call.
|
||||||
func (b *MetricStatusApplyConfiguration) WithType(value v2.MetricSourceType) *MetricStatusApplyConfiguration {
|
func (b *MetricStatusApplyConfiguration) WithType(value autoscalingv2.MetricSourceType) *MetricStatusApplyConfiguration {
|
||||||
b.Type = &value
|
b.Type = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,17 +19,17 @@ limitations under the License.
|
|||||||
package v2
|
package v2
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v2 "k8s.io/api/autoscaling/v2"
|
autoscalingv2 "k8s.io/api/autoscaling/v2"
|
||||||
resource "k8s.io/apimachinery/pkg/api/resource"
|
resource "k8s.io/apimachinery/pkg/api/resource"
|
||||||
)
|
)
|
||||||
|
|
||||||
// MetricTargetApplyConfiguration represents a declarative configuration of the MetricTarget type for use
|
// MetricTargetApplyConfiguration represents a declarative configuration of the MetricTarget type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type MetricTargetApplyConfiguration struct {
|
type MetricTargetApplyConfiguration struct {
|
||||||
Type *v2.MetricTargetType `json:"type,omitempty"`
|
Type *autoscalingv2.MetricTargetType `json:"type,omitempty"`
|
||||||
Value *resource.Quantity `json:"value,omitempty"`
|
Value *resource.Quantity `json:"value,omitempty"`
|
||||||
AverageValue *resource.Quantity `json:"averageValue,omitempty"`
|
AverageValue *resource.Quantity `json:"averageValue,omitempty"`
|
||||||
AverageUtilization *int32 `json:"averageUtilization,omitempty"`
|
AverageUtilization *int32 `json:"averageUtilization,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// MetricTargetApplyConfiguration constructs a declarative configuration of the MetricTarget type for use with
|
// MetricTargetApplyConfiguration constructs a declarative configuration of the MetricTarget type for use with
|
||||||
@ -41,7 +41,7 @@ func MetricTarget() *MetricTargetApplyConfiguration {
|
|||||||
// WithType sets the Type field in the declarative configuration to the given value
|
// 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.
|
// 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.
|
// If called multiple times, the Type field is set to the value of the last call.
|
||||||
func (b *MetricTargetApplyConfiguration) WithType(value v2.MetricTargetType) *MetricTargetApplyConfiguration {
|
func (b *MetricTargetApplyConfiguration) WithType(value autoscalingv2.MetricTargetType) *MetricTargetApplyConfiguration {
|
||||||
b.Type = &value
|
b.Type = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@ limitations under the License.
|
|||||||
package v2beta1
|
package v2beta1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v2beta1 "k8s.io/api/autoscaling/v2beta1"
|
autoscalingv2beta1 "k8s.io/api/autoscaling/v2beta1"
|
||||||
v1 "k8s.io/api/core/v1"
|
v1 "k8s.io/api/core/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
)
|
)
|
||||||
@ -27,11 +27,11 @@ import (
|
|||||||
// HorizontalPodAutoscalerConditionApplyConfiguration represents a declarative configuration of the HorizontalPodAutoscalerCondition type for use
|
// HorizontalPodAutoscalerConditionApplyConfiguration represents a declarative configuration of the HorizontalPodAutoscalerCondition type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type HorizontalPodAutoscalerConditionApplyConfiguration struct {
|
type HorizontalPodAutoscalerConditionApplyConfiguration struct {
|
||||||
Type *v2beta1.HorizontalPodAutoscalerConditionType `json:"type,omitempty"`
|
Type *autoscalingv2beta1.HorizontalPodAutoscalerConditionType `json:"type,omitempty"`
|
||||||
Status *v1.ConditionStatus `json:"status,omitempty"`
|
Status *v1.ConditionStatus `json:"status,omitempty"`
|
||||||
LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
|
LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
|
||||||
Reason *string `json:"reason,omitempty"`
|
Reason *string `json:"reason,omitempty"`
|
||||||
Message *string `json:"message,omitempty"`
|
Message *string `json:"message,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// HorizontalPodAutoscalerConditionApplyConfiguration constructs a declarative configuration of the HorizontalPodAutoscalerCondition type for use with
|
// HorizontalPodAutoscalerConditionApplyConfiguration constructs a declarative configuration of the HorizontalPodAutoscalerCondition type for use with
|
||||||
@ -43,7 +43,7 @@ func HorizontalPodAutoscalerCondition() *HorizontalPodAutoscalerConditionApplyCo
|
|||||||
// WithType sets the Type field in the declarative configuration to the given value
|
// 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.
|
// 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.
|
// If called multiple times, the Type field is set to the value of the last call.
|
||||||
func (b *HorizontalPodAutoscalerConditionApplyConfiguration) WithType(value v2beta1.HorizontalPodAutoscalerConditionType) *HorizontalPodAutoscalerConditionApplyConfiguration {
|
func (b *HorizontalPodAutoscalerConditionApplyConfiguration) WithType(value autoscalingv2beta1.HorizontalPodAutoscalerConditionType) *HorizontalPodAutoscalerConditionApplyConfiguration {
|
||||||
b.Type = &value
|
b.Type = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,13 +19,13 @@ limitations under the License.
|
|||||||
package v2beta1
|
package v2beta1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v2beta1 "k8s.io/api/autoscaling/v2beta1"
|
autoscalingv2beta1 "k8s.io/api/autoscaling/v2beta1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// MetricSpecApplyConfiguration represents a declarative configuration of the MetricSpec type for use
|
// MetricSpecApplyConfiguration represents a declarative configuration of the MetricSpec type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type MetricSpecApplyConfiguration struct {
|
type MetricSpecApplyConfiguration struct {
|
||||||
Type *v2beta1.MetricSourceType `json:"type,omitempty"`
|
Type *autoscalingv2beta1.MetricSourceType `json:"type,omitempty"`
|
||||||
Object *ObjectMetricSourceApplyConfiguration `json:"object,omitempty"`
|
Object *ObjectMetricSourceApplyConfiguration `json:"object,omitempty"`
|
||||||
Pods *PodsMetricSourceApplyConfiguration `json:"pods,omitempty"`
|
Pods *PodsMetricSourceApplyConfiguration `json:"pods,omitempty"`
|
||||||
Resource *ResourceMetricSourceApplyConfiguration `json:"resource,omitempty"`
|
Resource *ResourceMetricSourceApplyConfiguration `json:"resource,omitempty"`
|
||||||
@ -42,7 +42,7 @@ func MetricSpec() *MetricSpecApplyConfiguration {
|
|||||||
// WithType sets the Type field in the declarative configuration to the given value
|
// 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.
|
// 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.
|
// If called multiple times, the Type field is set to the value of the last call.
|
||||||
func (b *MetricSpecApplyConfiguration) WithType(value v2beta1.MetricSourceType) *MetricSpecApplyConfiguration {
|
func (b *MetricSpecApplyConfiguration) WithType(value autoscalingv2beta1.MetricSourceType) *MetricSpecApplyConfiguration {
|
||||||
b.Type = &value
|
b.Type = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,13 +19,13 @@ limitations under the License.
|
|||||||
package v2beta1
|
package v2beta1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v2beta1 "k8s.io/api/autoscaling/v2beta1"
|
autoscalingv2beta1 "k8s.io/api/autoscaling/v2beta1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// MetricStatusApplyConfiguration represents a declarative configuration of the MetricStatus type for use
|
// MetricStatusApplyConfiguration represents a declarative configuration of the MetricStatus type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type MetricStatusApplyConfiguration struct {
|
type MetricStatusApplyConfiguration struct {
|
||||||
Type *v2beta1.MetricSourceType `json:"type,omitempty"`
|
Type *autoscalingv2beta1.MetricSourceType `json:"type,omitempty"`
|
||||||
Object *ObjectMetricStatusApplyConfiguration `json:"object,omitempty"`
|
Object *ObjectMetricStatusApplyConfiguration `json:"object,omitempty"`
|
||||||
Pods *PodsMetricStatusApplyConfiguration `json:"pods,omitempty"`
|
Pods *PodsMetricStatusApplyConfiguration `json:"pods,omitempty"`
|
||||||
Resource *ResourceMetricStatusApplyConfiguration `json:"resource,omitempty"`
|
Resource *ResourceMetricStatusApplyConfiguration `json:"resource,omitempty"`
|
||||||
@ -42,7 +42,7 @@ func MetricStatus() *MetricStatusApplyConfiguration {
|
|||||||
// WithType sets the Type field in the declarative configuration to the given value
|
// 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.
|
// 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.
|
// If called multiple times, the Type field is set to the value of the last call.
|
||||||
func (b *MetricStatusApplyConfiguration) WithType(value v2beta1.MetricSourceType) *MetricStatusApplyConfiguration {
|
func (b *MetricStatusApplyConfiguration) WithType(value autoscalingv2beta1.MetricSourceType) *MetricStatusApplyConfiguration {
|
||||||
b.Type = &value
|
b.Type = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@ limitations under the License.
|
|||||||
package v2beta2
|
package v2beta2
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v2beta2 "k8s.io/api/autoscaling/v2beta2"
|
autoscalingv2beta2 "k8s.io/api/autoscaling/v2beta2"
|
||||||
v1 "k8s.io/api/core/v1"
|
v1 "k8s.io/api/core/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
)
|
)
|
||||||
@ -27,11 +27,11 @@ import (
|
|||||||
// HorizontalPodAutoscalerConditionApplyConfiguration represents a declarative configuration of the HorizontalPodAutoscalerCondition type for use
|
// HorizontalPodAutoscalerConditionApplyConfiguration represents a declarative configuration of the HorizontalPodAutoscalerCondition type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type HorizontalPodAutoscalerConditionApplyConfiguration struct {
|
type HorizontalPodAutoscalerConditionApplyConfiguration struct {
|
||||||
Type *v2beta2.HorizontalPodAutoscalerConditionType `json:"type,omitempty"`
|
Type *autoscalingv2beta2.HorizontalPodAutoscalerConditionType `json:"type,omitempty"`
|
||||||
Status *v1.ConditionStatus `json:"status,omitempty"`
|
Status *v1.ConditionStatus `json:"status,omitempty"`
|
||||||
LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
|
LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
|
||||||
Reason *string `json:"reason,omitempty"`
|
Reason *string `json:"reason,omitempty"`
|
||||||
Message *string `json:"message,omitempty"`
|
Message *string `json:"message,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// HorizontalPodAutoscalerConditionApplyConfiguration constructs a declarative configuration of the HorizontalPodAutoscalerCondition type for use with
|
// HorizontalPodAutoscalerConditionApplyConfiguration constructs a declarative configuration of the HorizontalPodAutoscalerCondition type for use with
|
||||||
@ -43,7 +43,7 @@ func HorizontalPodAutoscalerCondition() *HorizontalPodAutoscalerConditionApplyCo
|
|||||||
// WithType sets the Type field in the declarative configuration to the given value
|
// 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.
|
// 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.
|
// If called multiple times, the Type field is set to the value of the last call.
|
||||||
func (b *HorizontalPodAutoscalerConditionApplyConfiguration) WithType(value v2beta2.HorizontalPodAutoscalerConditionType) *HorizontalPodAutoscalerConditionApplyConfiguration {
|
func (b *HorizontalPodAutoscalerConditionApplyConfiguration) WithType(value autoscalingv2beta2.HorizontalPodAutoscalerConditionType) *HorizontalPodAutoscalerConditionApplyConfiguration {
|
||||||
b.Type = &value
|
b.Type = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,15 +19,15 @@ limitations under the License.
|
|||||||
package v2beta2
|
package v2beta2
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v2beta2 "k8s.io/api/autoscaling/v2beta2"
|
autoscalingv2beta2 "k8s.io/api/autoscaling/v2beta2"
|
||||||
)
|
)
|
||||||
|
|
||||||
// HPAScalingPolicyApplyConfiguration represents a declarative configuration of the HPAScalingPolicy type for use
|
// HPAScalingPolicyApplyConfiguration represents a declarative configuration of the HPAScalingPolicy type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type HPAScalingPolicyApplyConfiguration struct {
|
type HPAScalingPolicyApplyConfiguration struct {
|
||||||
Type *v2beta2.HPAScalingPolicyType `json:"type,omitempty"`
|
Type *autoscalingv2beta2.HPAScalingPolicyType `json:"type,omitempty"`
|
||||||
Value *int32 `json:"value,omitempty"`
|
Value *int32 `json:"value,omitempty"`
|
||||||
PeriodSeconds *int32 `json:"periodSeconds,omitempty"`
|
PeriodSeconds *int32 `json:"periodSeconds,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// HPAScalingPolicyApplyConfiguration constructs a declarative configuration of the HPAScalingPolicy type for use with
|
// HPAScalingPolicyApplyConfiguration constructs a declarative configuration of the HPAScalingPolicy type for use with
|
||||||
@ -39,7 +39,7 @@ func HPAScalingPolicy() *HPAScalingPolicyApplyConfiguration {
|
|||||||
// WithType sets the Type field in the declarative configuration to the given value
|
// 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.
|
// 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.
|
// If called multiple times, the Type field is set to the value of the last call.
|
||||||
func (b *HPAScalingPolicyApplyConfiguration) WithType(value v2beta2.HPAScalingPolicyType) *HPAScalingPolicyApplyConfiguration {
|
func (b *HPAScalingPolicyApplyConfiguration) WithType(value autoscalingv2beta2.HPAScalingPolicyType) *HPAScalingPolicyApplyConfiguration {
|
||||||
b.Type = &value
|
b.Type = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,15 +19,15 @@ limitations under the License.
|
|||||||
package v2beta2
|
package v2beta2
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v2beta2 "k8s.io/api/autoscaling/v2beta2"
|
autoscalingv2beta2 "k8s.io/api/autoscaling/v2beta2"
|
||||||
)
|
)
|
||||||
|
|
||||||
// HPAScalingRulesApplyConfiguration represents a declarative configuration of the HPAScalingRules type for use
|
// HPAScalingRulesApplyConfiguration represents a declarative configuration of the HPAScalingRules type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type HPAScalingRulesApplyConfiguration struct {
|
type HPAScalingRulesApplyConfiguration struct {
|
||||||
StabilizationWindowSeconds *int32 `json:"stabilizationWindowSeconds,omitempty"`
|
StabilizationWindowSeconds *int32 `json:"stabilizationWindowSeconds,omitempty"`
|
||||||
SelectPolicy *v2beta2.ScalingPolicySelect `json:"selectPolicy,omitempty"`
|
SelectPolicy *autoscalingv2beta2.ScalingPolicySelect `json:"selectPolicy,omitempty"`
|
||||||
Policies []HPAScalingPolicyApplyConfiguration `json:"policies,omitempty"`
|
Policies []HPAScalingPolicyApplyConfiguration `json:"policies,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// HPAScalingRulesApplyConfiguration constructs a declarative configuration of the HPAScalingRules type for use with
|
// HPAScalingRulesApplyConfiguration constructs a declarative configuration of the HPAScalingRules type for use with
|
||||||
@ -47,7 +47,7 @@ func (b *HPAScalingRulesApplyConfiguration) WithStabilizationWindowSeconds(value
|
|||||||
// WithSelectPolicy sets the SelectPolicy field in the declarative configuration to the given value
|
// WithSelectPolicy sets the SelectPolicy field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the SelectPolicy field is set to the value of the last call.
|
// If called multiple times, the SelectPolicy field is set to the value of the last call.
|
||||||
func (b *HPAScalingRulesApplyConfiguration) WithSelectPolicy(value v2beta2.ScalingPolicySelect) *HPAScalingRulesApplyConfiguration {
|
func (b *HPAScalingRulesApplyConfiguration) WithSelectPolicy(value autoscalingv2beta2.ScalingPolicySelect) *HPAScalingRulesApplyConfiguration {
|
||||||
b.SelectPolicy = &value
|
b.SelectPolicy = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,13 +19,13 @@ limitations under the License.
|
|||||||
package v2beta2
|
package v2beta2
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v2beta2 "k8s.io/api/autoscaling/v2beta2"
|
autoscalingv2beta2 "k8s.io/api/autoscaling/v2beta2"
|
||||||
)
|
)
|
||||||
|
|
||||||
// MetricSpecApplyConfiguration represents a declarative configuration of the MetricSpec type for use
|
// MetricSpecApplyConfiguration represents a declarative configuration of the MetricSpec type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type MetricSpecApplyConfiguration struct {
|
type MetricSpecApplyConfiguration struct {
|
||||||
Type *v2beta2.MetricSourceType `json:"type,omitempty"`
|
Type *autoscalingv2beta2.MetricSourceType `json:"type,omitempty"`
|
||||||
Object *ObjectMetricSourceApplyConfiguration `json:"object,omitempty"`
|
Object *ObjectMetricSourceApplyConfiguration `json:"object,omitempty"`
|
||||||
Pods *PodsMetricSourceApplyConfiguration `json:"pods,omitempty"`
|
Pods *PodsMetricSourceApplyConfiguration `json:"pods,omitempty"`
|
||||||
Resource *ResourceMetricSourceApplyConfiguration `json:"resource,omitempty"`
|
Resource *ResourceMetricSourceApplyConfiguration `json:"resource,omitempty"`
|
||||||
@ -42,7 +42,7 @@ func MetricSpec() *MetricSpecApplyConfiguration {
|
|||||||
// WithType sets the Type field in the declarative configuration to the given value
|
// 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.
|
// 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.
|
// If called multiple times, the Type field is set to the value of the last call.
|
||||||
func (b *MetricSpecApplyConfiguration) WithType(value v2beta2.MetricSourceType) *MetricSpecApplyConfiguration {
|
func (b *MetricSpecApplyConfiguration) WithType(value autoscalingv2beta2.MetricSourceType) *MetricSpecApplyConfiguration {
|
||||||
b.Type = &value
|
b.Type = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,13 +19,13 @@ limitations under the License.
|
|||||||
package v2beta2
|
package v2beta2
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v2beta2 "k8s.io/api/autoscaling/v2beta2"
|
autoscalingv2beta2 "k8s.io/api/autoscaling/v2beta2"
|
||||||
)
|
)
|
||||||
|
|
||||||
// MetricStatusApplyConfiguration represents a declarative configuration of the MetricStatus type for use
|
// MetricStatusApplyConfiguration represents a declarative configuration of the MetricStatus type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type MetricStatusApplyConfiguration struct {
|
type MetricStatusApplyConfiguration struct {
|
||||||
Type *v2beta2.MetricSourceType `json:"type,omitempty"`
|
Type *autoscalingv2beta2.MetricSourceType `json:"type,omitempty"`
|
||||||
Object *ObjectMetricStatusApplyConfiguration `json:"object,omitempty"`
|
Object *ObjectMetricStatusApplyConfiguration `json:"object,omitempty"`
|
||||||
Pods *PodsMetricStatusApplyConfiguration `json:"pods,omitempty"`
|
Pods *PodsMetricStatusApplyConfiguration `json:"pods,omitempty"`
|
||||||
Resource *ResourceMetricStatusApplyConfiguration `json:"resource,omitempty"`
|
Resource *ResourceMetricStatusApplyConfiguration `json:"resource,omitempty"`
|
||||||
@ -42,7 +42,7 @@ func MetricStatus() *MetricStatusApplyConfiguration {
|
|||||||
// WithType sets the Type field in the declarative configuration to the given value
|
// 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.
|
// 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.
|
// If called multiple times, the Type field is set to the value of the last call.
|
||||||
func (b *MetricStatusApplyConfiguration) WithType(value v2beta2.MetricSourceType) *MetricStatusApplyConfiguration {
|
func (b *MetricStatusApplyConfiguration) WithType(value autoscalingv2beta2.MetricSourceType) *MetricStatusApplyConfiguration {
|
||||||
b.Type = &value
|
b.Type = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,17 +19,17 @@ limitations under the License.
|
|||||||
package v2beta2
|
package v2beta2
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v2beta2 "k8s.io/api/autoscaling/v2beta2"
|
autoscalingv2beta2 "k8s.io/api/autoscaling/v2beta2"
|
||||||
resource "k8s.io/apimachinery/pkg/api/resource"
|
resource "k8s.io/apimachinery/pkg/api/resource"
|
||||||
)
|
)
|
||||||
|
|
||||||
// MetricTargetApplyConfiguration represents a declarative configuration of the MetricTarget type for use
|
// MetricTargetApplyConfiguration represents a declarative configuration of the MetricTarget type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type MetricTargetApplyConfiguration struct {
|
type MetricTargetApplyConfiguration struct {
|
||||||
Type *v2beta2.MetricTargetType `json:"type,omitempty"`
|
Type *autoscalingv2beta2.MetricTargetType `json:"type,omitempty"`
|
||||||
Value *resource.Quantity `json:"value,omitempty"`
|
Value *resource.Quantity `json:"value,omitempty"`
|
||||||
AverageValue *resource.Quantity `json:"averageValue,omitempty"`
|
AverageValue *resource.Quantity `json:"averageValue,omitempty"`
|
||||||
AverageUtilization *int32 `json:"averageUtilization,omitempty"`
|
AverageUtilization *int32 `json:"averageUtilization,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// MetricTargetApplyConfiguration constructs a declarative configuration of the MetricTarget type for use with
|
// MetricTargetApplyConfiguration constructs a declarative configuration of the MetricTarget type for use with
|
||||||
@ -41,7 +41,7 @@ func MetricTarget() *MetricTargetApplyConfiguration {
|
|||||||
// WithType sets the Type field in the declarative configuration to the given value
|
// 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.
|
// 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.
|
// If called multiple times, the Type field is set to the value of the last call.
|
||||||
func (b *MetricTargetApplyConfiguration) WithType(value v2beta2.MetricTargetType) *MetricTargetApplyConfiguration {
|
func (b *MetricTargetApplyConfiguration) WithType(value autoscalingv2beta2.MetricTargetType) *MetricTargetApplyConfiguration {
|
||||||
b.Type = &value
|
b.Type = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,21 +19,21 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
apibatchv1 "k8s.io/api/batch/v1"
|
batchv1 "k8s.io/api/batch/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
types "k8s.io/apimachinery/pkg/types"
|
types "k8s.io/apimachinery/pkg/types"
|
||||||
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
|
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
|
||||||
internal "k8s.io/client-go/applyconfigurations/internal"
|
internal "k8s.io/client-go/applyconfigurations/internal"
|
||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CronJobApplyConfiguration represents a declarative configuration of the CronJob type for use
|
// CronJobApplyConfiguration represents a declarative configuration of the CronJob type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type CronJobApplyConfiguration struct {
|
type CronJobApplyConfiguration struct {
|
||||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||||
Spec *CronJobSpecApplyConfiguration `json:"spec,omitempty"`
|
Spec *CronJobSpecApplyConfiguration `json:"spec,omitempty"`
|
||||||
Status *CronJobStatusApplyConfiguration `json:"status,omitempty"`
|
Status *CronJobStatusApplyConfiguration `json:"status,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// CronJob constructs a declarative configuration of the CronJob type for use with
|
// CronJob constructs a declarative configuration of the CronJob type for use with
|
||||||
@ -58,18 +58,18 @@ func CronJob(name, namespace string) *CronJobApplyConfiguration {
|
|||||||
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
|
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
|
||||||
// applied if another fieldManager has updated or force applied any of the previously applied fields.
|
// applied if another fieldManager has updated or force applied any of the previously applied fields.
|
||||||
// Experimental!
|
// Experimental!
|
||||||
func ExtractCronJob(cronJob *apibatchv1.CronJob, fieldManager string) (*CronJobApplyConfiguration, error) {
|
func ExtractCronJob(cronJob *batchv1.CronJob, fieldManager string) (*CronJobApplyConfiguration, error) {
|
||||||
return extractCronJob(cronJob, fieldManager, "")
|
return extractCronJob(cronJob, fieldManager, "")
|
||||||
}
|
}
|
||||||
|
|
||||||
// ExtractCronJobStatus is the same as ExtractCronJob except
|
// ExtractCronJobStatus is the same as ExtractCronJob except
|
||||||
// that it extracts the status subresource applied configuration.
|
// that it extracts the status subresource applied configuration.
|
||||||
// Experimental!
|
// Experimental!
|
||||||
func ExtractCronJobStatus(cronJob *apibatchv1.CronJob, fieldManager string) (*CronJobApplyConfiguration, error) {
|
func ExtractCronJobStatus(cronJob *batchv1.CronJob, fieldManager string) (*CronJobApplyConfiguration, error) {
|
||||||
return extractCronJob(cronJob, fieldManager, "status")
|
return extractCronJob(cronJob, fieldManager, "status")
|
||||||
}
|
}
|
||||||
|
|
||||||
func extractCronJob(cronJob *apibatchv1.CronJob, fieldManager string, subresource string) (*CronJobApplyConfiguration, error) {
|
func extractCronJob(cronJob *batchv1.CronJob, fieldManager string, subresource string) (*CronJobApplyConfiguration, error) {
|
||||||
b := &CronJobApplyConfiguration{}
|
b := &CronJobApplyConfiguration{}
|
||||||
err := managedfields.ExtractInto(cronJob, internal.Parser().Type("io.k8s.api.batch.v1.CronJob"), fieldManager, b, subresource)
|
err := managedfields.ExtractInto(cronJob, internal.Parser().Type("io.k8s.api.batch.v1.CronJob"), fieldManager, b, subresource)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -156,7 +156,7 @@ func (b *CronJobApplyConfiguration) WithGeneration(value int64) *CronJobApplyCon
|
|||||||
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
|
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
|
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
|
||||||
func (b *CronJobApplyConfiguration) WithCreationTimestamp(value metav1.Time) *CronJobApplyConfiguration {
|
func (b *CronJobApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *CronJobApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
|
b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
|
||||||
return b
|
return b
|
||||||
@ -165,7 +165,7 @@ func (b *CronJobApplyConfiguration) WithCreationTimestamp(value metav1.Time) *Cr
|
|||||||
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
|
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
|
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
|
||||||
func (b *CronJobApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *CronJobApplyConfiguration {
|
func (b *CronJobApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *CronJobApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
|
b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
|
||||||
return b
|
return b
|
||||||
@ -213,7 +213,7 @@ func (b *CronJobApplyConfiguration) WithAnnotations(entries map[string]string) *
|
|||||||
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
|
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
|
||||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
// 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 OwnerReferences field.
|
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
|
||||||
func (b *CronJobApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *CronJobApplyConfiguration {
|
func (b *CronJobApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *CronJobApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
for i := range values {
|
for i := range values {
|
||||||
if values[i] == nil {
|
if values[i] == nil {
|
||||||
@ -237,7 +237,7 @@ func (b *CronJobApplyConfiguration) WithFinalizers(values ...string) *CronJobApp
|
|||||||
|
|
||||||
func (b *CronJobApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
|
func (b *CronJobApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
|
||||||
if b.ObjectMetaApplyConfiguration == nil {
|
if b.ObjectMetaApplyConfiguration == nil {
|
||||||
b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
|
b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1 "k8s.io/api/batch/v1"
|
batchv1 "k8s.io/api/batch/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CronJobSpecApplyConfiguration represents a declarative configuration of the CronJobSpec type for use
|
// CronJobSpecApplyConfiguration represents a declarative configuration of the CronJobSpec type for use
|
||||||
@ -28,7 +28,7 @@ type CronJobSpecApplyConfiguration struct {
|
|||||||
Schedule *string `json:"schedule,omitempty"`
|
Schedule *string `json:"schedule,omitempty"`
|
||||||
TimeZone *string `json:"timeZone,omitempty"`
|
TimeZone *string `json:"timeZone,omitempty"`
|
||||||
StartingDeadlineSeconds *int64 `json:"startingDeadlineSeconds,omitempty"`
|
StartingDeadlineSeconds *int64 `json:"startingDeadlineSeconds,omitempty"`
|
||||||
ConcurrencyPolicy *v1.ConcurrencyPolicy `json:"concurrencyPolicy,omitempty"`
|
ConcurrencyPolicy *batchv1.ConcurrencyPolicy `json:"concurrencyPolicy,omitempty"`
|
||||||
Suspend *bool `json:"suspend,omitempty"`
|
Suspend *bool `json:"suspend,omitempty"`
|
||||||
JobTemplate *JobTemplateSpecApplyConfiguration `json:"jobTemplate,omitempty"`
|
JobTemplate *JobTemplateSpecApplyConfiguration `json:"jobTemplate,omitempty"`
|
||||||
SuccessfulJobsHistoryLimit *int32 `json:"successfulJobsHistoryLimit,omitempty"`
|
SuccessfulJobsHistoryLimit *int32 `json:"successfulJobsHistoryLimit,omitempty"`
|
||||||
@ -68,7 +68,7 @@ func (b *CronJobSpecApplyConfiguration) WithStartingDeadlineSeconds(value int64)
|
|||||||
// WithConcurrencyPolicy sets the ConcurrencyPolicy field in the declarative configuration to the given value
|
// WithConcurrencyPolicy sets the ConcurrencyPolicy field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the ConcurrencyPolicy field is set to the value of the last call.
|
// If called multiple times, the ConcurrencyPolicy field is set to the value of the last call.
|
||||||
func (b *CronJobSpecApplyConfiguration) WithConcurrencyPolicy(value v1.ConcurrencyPolicy) *CronJobSpecApplyConfiguration {
|
func (b *CronJobSpecApplyConfiguration) WithConcurrencyPolicy(value batchv1.ConcurrencyPolicy) *CronJobSpecApplyConfiguration {
|
||||||
b.ConcurrencyPolicy = &value
|
b.ConcurrencyPolicy = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -20,15 +20,15 @@ package v1
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
v1 "k8s.io/client-go/applyconfigurations/core/v1"
|
corev1 "k8s.io/client-go/applyconfigurations/core/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CronJobStatusApplyConfiguration represents a declarative configuration of the CronJobStatus type for use
|
// CronJobStatusApplyConfiguration represents a declarative configuration of the CronJobStatus type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type CronJobStatusApplyConfiguration struct {
|
type CronJobStatusApplyConfiguration struct {
|
||||||
Active []v1.ObjectReferenceApplyConfiguration `json:"active,omitempty"`
|
Active []corev1.ObjectReferenceApplyConfiguration `json:"active,omitempty"`
|
||||||
LastScheduleTime *metav1.Time `json:"lastScheduleTime,omitempty"`
|
LastScheduleTime *metav1.Time `json:"lastScheduleTime,omitempty"`
|
||||||
LastSuccessfulTime *metav1.Time `json:"lastSuccessfulTime,omitempty"`
|
LastSuccessfulTime *metav1.Time `json:"lastSuccessfulTime,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// CronJobStatusApplyConfiguration constructs a declarative configuration of the CronJobStatus type for use with
|
// CronJobStatusApplyConfiguration constructs a declarative configuration of the CronJobStatus type for use with
|
||||||
@ -40,7 +40,7 @@ func CronJobStatus() *CronJobStatusApplyConfiguration {
|
|||||||
// WithActive adds the given value to the Active field in the declarative configuration
|
// WithActive adds the given value to the Active field in the declarative configuration
|
||||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
// 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 Active field.
|
// If called multiple times, values provided by each call will be appended to the Active field.
|
||||||
func (b *CronJobStatusApplyConfiguration) WithActive(values ...*v1.ObjectReferenceApplyConfiguration) *CronJobStatusApplyConfiguration {
|
func (b *CronJobStatusApplyConfiguration) WithActive(values ...*corev1.ObjectReferenceApplyConfiguration) *CronJobStatusApplyConfiguration {
|
||||||
for i := range values {
|
for i := range values {
|
||||||
if values[i] == nil {
|
if values[i] == nil {
|
||||||
panic("nil value passed to WithActive")
|
panic("nil value passed to WithActive")
|
||||||
|
@ -19,21 +19,21 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
apibatchv1 "k8s.io/api/batch/v1"
|
batchv1 "k8s.io/api/batch/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
types "k8s.io/apimachinery/pkg/types"
|
types "k8s.io/apimachinery/pkg/types"
|
||||||
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
|
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
|
||||||
internal "k8s.io/client-go/applyconfigurations/internal"
|
internal "k8s.io/client-go/applyconfigurations/internal"
|
||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// JobApplyConfiguration represents a declarative configuration of the Job type for use
|
// JobApplyConfiguration represents a declarative configuration of the Job type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type JobApplyConfiguration struct {
|
type JobApplyConfiguration struct {
|
||||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||||
Spec *JobSpecApplyConfiguration `json:"spec,omitempty"`
|
Spec *JobSpecApplyConfiguration `json:"spec,omitempty"`
|
||||||
Status *JobStatusApplyConfiguration `json:"status,omitempty"`
|
Status *JobStatusApplyConfiguration `json:"status,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Job constructs a declarative configuration of the Job type for use with
|
// Job constructs a declarative configuration of the Job type for use with
|
||||||
@ -58,18 +58,18 @@ func Job(name, namespace string) *JobApplyConfiguration {
|
|||||||
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
|
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
|
||||||
// applied if another fieldManager has updated or force applied any of the previously applied fields.
|
// applied if another fieldManager has updated or force applied any of the previously applied fields.
|
||||||
// Experimental!
|
// Experimental!
|
||||||
func ExtractJob(job *apibatchv1.Job, fieldManager string) (*JobApplyConfiguration, error) {
|
func ExtractJob(job *batchv1.Job, fieldManager string) (*JobApplyConfiguration, error) {
|
||||||
return extractJob(job, fieldManager, "")
|
return extractJob(job, fieldManager, "")
|
||||||
}
|
}
|
||||||
|
|
||||||
// ExtractJobStatus is the same as ExtractJob except
|
// ExtractJobStatus is the same as ExtractJob except
|
||||||
// that it extracts the status subresource applied configuration.
|
// that it extracts the status subresource applied configuration.
|
||||||
// Experimental!
|
// Experimental!
|
||||||
func ExtractJobStatus(job *apibatchv1.Job, fieldManager string) (*JobApplyConfiguration, error) {
|
func ExtractJobStatus(job *batchv1.Job, fieldManager string) (*JobApplyConfiguration, error) {
|
||||||
return extractJob(job, fieldManager, "status")
|
return extractJob(job, fieldManager, "status")
|
||||||
}
|
}
|
||||||
|
|
||||||
func extractJob(job *apibatchv1.Job, fieldManager string, subresource string) (*JobApplyConfiguration, error) {
|
func extractJob(job *batchv1.Job, fieldManager string, subresource string) (*JobApplyConfiguration, error) {
|
||||||
b := &JobApplyConfiguration{}
|
b := &JobApplyConfiguration{}
|
||||||
err := managedfields.ExtractInto(job, internal.Parser().Type("io.k8s.api.batch.v1.Job"), fieldManager, b, subresource)
|
err := managedfields.ExtractInto(job, internal.Parser().Type("io.k8s.api.batch.v1.Job"), fieldManager, b, subresource)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -156,7 +156,7 @@ func (b *JobApplyConfiguration) WithGeneration(value int64) *JobApplyConfigurati
|
|||||||
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
|
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
|
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
|
||||||
func (b *JobApplyConfiguration) WithCreationTimestamp(value metav1.Time) *JobApplyConfiguration {
|
func (b *JobApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *JobApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
|
b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
|
||||||
return b
|
return b
|
||||||
@ -165,7 +165,7 @@ func (b *JobApplyConfiguration) WithCreationTimestamp(value metav1.Time) *JobApp
|
|||||||
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
|
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
|
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
|
||||||
func (b *JobApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *JobApplyConfiguration {
|
func (b *JobApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *JobApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
|
b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
|
||||||
return b
|
return b
|
||||||
@ -213,7 +213,7 @@ func (b *JobApplyConfiguration) WithAnnotations(entries map[string]string) *JobA
|
|||||||
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
|
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
|
||||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
// 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 OwnerReferences field.
|
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
|
||||||
func (b *JobApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *JobApplyConfiguration {
|
func (b *JobApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *JobApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
for i := range values {
|
for i := range values {
|
||||||
if values[i] == nil {
|
if values[i] == nil {
|
||||||
@ -237,7 +237,7 @@ func (b *JobApplyConfiguration) WithFinalizers(values ...string) *JobApplyConfig
|
|||||||
|
|
||||||
func (b *JobApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
|
func (b *JobApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
|
||||||
if b.ObjectMetaApplyConfiguration == nil {
|
if b.ObjectMetaApplyConfiguration == nil {
|
||||||
b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
|
b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1 "k8s.io/api/batch/v1"
|
batchv1 "k8s.io/api/batch/v1"
|
||||||
corev1 "k8s.io/api/core/v1"
|
corev1 "k8s.io/api/core/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
)
|
)
|
||||||
@ -27,12 +27,12 @@ import (
|
|||||||
// JobConditionApplyConfiguration represents a declarative configuration of the JobCondition type for use
|
// JobConditionApplyConfiguration represents a declarative configuration of the JobCondition type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type JobConditionApplyConfiguration struct {
|
type JobConditionApplyConfiguration struct {
|
||||||
Type *v1.JobConditionType `json:"type,omitempty"`
|
Type *batchv1.JobConditionType `json:"type,omitempty"`
|
||||||
Status *corev1.ConditionStatus `json:"status,omitempty"`
|
Status *corev1.ConditionStatus `json:"status,omitempty"`
|
||||||
LastProbeTime *metav1.Time `json:"lastProbeTime,omitempty"`
|
LastProbeTime *metav1.Time `json:"lastProbeTime,omitempty"`
|
||||||
LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
|
LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
|
||||||
Reason *string `json:"reason,omitempty"`
|
Reason *string `json:"reason,omitempty"`
|
||||||
Message *string `json:"message,omitempty"`
|
Message *string `json:"message,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// JobConditionApplyConfiguration constructs a declarative configuration of the JobCondition type for use with
|
// JobConditionApplyConfiguration constructs a declarative configuration of the JobCondition type for use with
|
||||||
@ -44,7 +44,7 @@ func JobCondition() *JobConditionApplyConfiguration {
|
|||||||
// WithType sets the Type field in the declarative configuration to the given value
|
// 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.
|
// 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.
|
// If called multiple times, the Type field is set to the value of the last call.
|
||||||
func (b *JobConditionApplyConfiguration) WithType(value v1.JobConditionType) *JobConditionApplyConfiguration {
|
func (b *JobConditionApplyConfiguration) WithType(value batchv1.JobConditionType) *JobConditionApplyConfiguration {
|
||||||
b.Type = &value
|
b.Type = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,16 +19,16 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
types "k8s.io/apimachinery/pkg/types"
|
types "k8s.io/apimachinery/pkg/types"
|
||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// JobTemplateSpecApplyConfiguration represents a declarative configuration of the JobTemplateSpec type for use
|
// JobTemplateSpecApplyConfiguration represents a declarative configuration of the JobTemplateSpec type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type JobTemplateSpecApplyConfiguration struct {
|
type JobTemplateSpecApplyConfiguration struct {
|
||||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||||
Spec *JobSpecApplyConfiguration `json:"spec,omitempty"`
|
Spec *JobSpecApplyConfiguration `json:"spec,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// JobTemplateSpecApplyConfiguration constructs a declarative configuration of the JobTemplateSpec type for use with
|
// JobTemplateSpecApplyConfiguration constructs a declarative configuration of the JobTemplateSpec type for use with
|
||||||
@ -94,7 +94,7 @@ func (b *JobTemplateSpecApplyConfiguration) WithGeneration(value int64) *JobTemp
|
|||||||
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
|
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
|
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
|
||||||
func (b *JobTemplateSpecApplyConfiguration) WithCreationTimestamp(value metav1.Time) *JobTemplateSpecApplyConfiguration {
|
func (b *JobTemplateSpecApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *JobTemplateSpecApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
|
b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
|
||||||
return b
|
return b
|
||||||
@ -103,7 +103,7 @@ func (b *JobTemplateSpecApplyConfiguration) WithCreationTimestamp(value metav1.T
|
|||||||
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
|
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
|
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
|
||||||
func (b *JobTemplateSpecApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *JobTemplateSpecApplyConfiguration {
|
func (b *JobTemplateSpecApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *JobTemplateSpecApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
|
b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
|
||||||
return b
|
return b
|
||||||
@ -151,7 +151,7 @@ func (b *JobTemplateSpecApplyConfiguration) WithAnnotations(entries map[string]s
|
|||||||
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
|
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
|
||||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
// 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 OwnerReferences field.
|
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
|
||||||
func (b *JobTemplateSpecApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *JobTemplateSpecApplyConfiguration {
|
func (b *JobTemplateSpecApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *JobTemplateSpecApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
for i := range values {
|
for i := range values {
|
||||||
if values[i] == nil {
|
if values[i] == nil {
|
||||||
@ -175,7 +175,7 @@ func (b *JobTemplateSpecApplyConfiguration) WithFinalizers(values ...string) *Jo
|
|||||||
|
|
||||||
func (b *JobTemplateSpecApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
|
func (b *JobTemplateSpecApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
|
||||||
if b.ObjectMetaApplyConfiguration == nil {
|
if b.ObjectMetaApplyConfiguration == nil {
|
||||||
b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
|
b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,15 +19,15 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1 "k8s.io/api/batch/v1"
|
batchv1 "k8s.io/api/batch/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// PodFailurePolicyOnExitCodesRequirementApplyConfiguration represents a declarative configuration of the PodFailurePolicyOnExitCodesRequirement type for use
|
// PodFailurePolicyOnExitCodesRequirementApplyConfiguration represents a declarative configuration of the PodFailurePolicyOnExitCodesRequirement type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type PodFailurePolicyOnExitCodesRequirementApplyConfiguration struct {
|
type PodFailurePolicyOnExitCodesRequirementApplyConfiguration struct {
|
||||||
ContainerName *string `json:"containerName,omitempty"`
|
ContainerName *string `json:"containerName,omitempty"`
|
||||||
Operator *v1.PodFailurePolicyOnExitCodesOperator `json:"operator,omitempty"`
|
Operator *batchv1.PodFailurePolicyOnExitCodesOperator `json:"operator,omitempty"`
|
||||||
Values []int32 `json:"values,omitempty"`
|
Values []int32 `json:"values,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// PodFailurePolicyOnExitCodesRequirementApplyConfiguration constructs a declarative configuration of the PodFailurePolicyOnExitCodesRequirement type for use with
|
// PodFailurePolicyOnExitCodesRequirementApplyConfiguration constructs a declarative configuration of the PodFailurePolicyOnExitCodesRequirement type for use with
|
||||||
@ -47,7 +47,7 @@ func (b *PodFailurePolicyOnExitCodesRequirementApplyConfiguration) WithContainer
|
|||||||
// WithOperator sets the Operator field in the declarative configuration to the given value
|
// WithOperator sets the Operator field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the Operator field is set to the value of the last call.
|
// If called multiple times, the Operator field is set to the value of the last call.
|
||||||
func (b *PodFailurePolicyOnExitCodesRequirementApplyConfiguration) WithOperator(value v1.PodFailurePolicyOnExitCodesOperator) *PodFailurePolicyOnExitCodesRequirementApplyConfiguration {
|
func (b *PodFailurePolicyOnExitCodesRequirementApplyConfiguration) WithOperator(value batchv1.PodFailurePolicyOnExitCodesOperator) *PodFailurePolicyOnExitCodesRequirementApplyConfiguration {
|
||||||
b.Operator = &value
|
b.Operator = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,14 +19,14 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1 "k8s.io/api/core/v1"
|
corev1 "k8s.io/api/core/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// PodFailurePolicyOnPodConditionsPatternApplyConfiguration represents a declarative configuration of the PodFailurePolicyOnPodConditionsPattern type for use
|
// PodFailurePolicyOnPodConditionsPatternApplyConfiguration represents a declarative configuration of the PodFailurePolicyOnPodConditionsPattern type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type PodFailurePolicyOnPodConditionsPatternApplyConfiguration struct {
|
type PodFailurePolicyOnPodConditionsPatternApplyConfiguration struct {
|
||||||
Type *v1.PodConditionType `json:"type,omitempty"`
|
Type *corev1.PodConditionType `json:"type,omitempty"`
|
||||||
Status *v1.ConditionStatus `json:"status,omitempty"`
|
Status *corev1.ConditionStatus `json:"status,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// PodFailurePolicyOnPodConditionsPatternApplyConfiguration constructs a declarative configuration of the PodFailurePolicyOnPodConditionsPattern type for use with
|
// PodFailurePolicyOnPodConditionsPatternApplyConfiguration constructs a declarative configuration of the PodFailurePolicyOnPodConditionsPattern type for use with
|
||||||
@ -38,7 +38,7 @@ func PodFailurePolicyOnPodConditionsPattern() *PodFailurePolicyOnPodConditionsPa
|
|||||||
// WithType sets the Type field in the declarative configuration to the given value
|
// 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.
|
// 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.
|
// If called multiple times, the Type field is set to the value of the last call.
|
||||||
func (b *PodFailurePolicyOnPodConditionsPatternApplyConfiguration) WithType(value v1.PodConditionType) *PodFailurePolicyOnPodConditionsPatternApplyConfiguration {
|
func (b *PodFailurePolicyOnPodConditionsPatternApplyConfiguration) WithType(value corev1.PodConditionType) *PodFailurePolicyOnPodConditionsPatternApplyConfiguration {
|
||||||
b.Type = &value
|
b.Type = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
@ -46,7 +46,7 @@ func (b *PodFailurePolicyOnPodConditionsPatternApplyConfiguration) WithType(valu
|
|||||||
// WithStatus sets the Status field in the declarative configuration to the given value
|
// 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.
|
// 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.
|
// If called multiple times, the Status field is set to the value of the last call.
|
||||||
func (b *PodFailurePolicyOnPodConditionsPatternApplyConfiguration) WithStatus(value v1.ConditionStatus) *PodFailurePolicyOnPodConditionsPatternApplyConfiguration {
|
func (b *PodFailurePolicyOnPodConditionsPatternApplyConfiguration) WithStatus(value corev1.ConditionStatus) *PodFailurePolicyOnPodConditionsPatternApplyConfiguration {
|
||||||
b.Status = &value
|
b.Status = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,13 +19,13 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1 "k8s.io/api/batch/v1"
|
batchv1 "k8s.io/api/batch/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// PodFailurePolicyRuleApplyConfiguration represents a declarative configuration of the PodFailurePolicyRule type for use
|
// PodFailurePolicyRuleApplyConfiguration represents a declarative configuration of the PodFailurePolicyRule type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type PodFailurePolicyRuleApplyConfiguration struct {
|
type PodFailurePolicyRuleApplyConfiguration struct {
|
||||||
Action *v1.PodFailurePolicyAction `json:"action,omitempty"`
|
Action *batchv1.PodFailurePolicyAction `json:"action,omitempty"`
|
||||||
OnExitCodes *PodFailurePolicyOnExitCodesRequirementApplyConfiguration `json:"onExitCodes,omitempty"`
|
OnExitCodes *PodFailurePolicyOnExitCodesRequirementApplyConfiguration `json:"onExitCodes,omitempty"`
|
||||||
OnPodConditions []PodFailurePolicyOnPodConditionsPatternApplyConfiguration `json:"onPodConditions,omitempty"`
|
OnPodConditions []PodFailurePolicyOnPodConditionsPatternApplyConfiguration `json:"onPodConditions,omitempty"`
|
||||||
}
|
}
|
||||||
@ -39,7 +39,7 @@ func PodFailurePolicyRule() *PodFailurePolicyRuleApplyConfiguration {
|
|||||||
// WithAction sets the Action field in the declarative configuration to the given value
|
// WithAction sets the Action field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the Action field is set to the value of the last call.
|
// If called multiple times, the Action field is set to the value of the last call.
|
||||||
func (b *PodFailurePolicyRuleApplyConfiguration) WithAction(value v1.PodFailurePolicyAction) *PodFailurePolicyRuleApplyConfiguration {
|
func (b *PodFailurePolicyRuleApplyConfiguration) WithAction(value batchv1.PodFailurePolicyAction) *PodFailurePolicyRuleApplyConfiguration {
|
||||||
b.Action = &value
|
b.Action = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@ limitations under the License.
|
|||||||
package v1beta1
|
package v1beta1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1beta1 "k8s.io/api/batch/v1beta1"
|
batchv1beta1 "k8s.io/api/batch/v1beta1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CronJobSpecApplyConfiguration represents a declarative configuration of the CronJobSpec type for use
|
// CronJobSpecApplyConfiguration represents a declarative configuration of the CronJobSpec type for use
|
||||||
@ -28,7 +28,7 @@ type CronJobSpecApplyConfiguration struct {
|
|||||||
Schedule *string `json:"schedule,omitempty"`
|
Schedule *string `json:"schedule,omitempty"`
|
||||||
TimeZone *string `json:"timeZone,omitempty"`
|
TimeZone *string `json:"timeZone,omitempty"`
|
||||||
StartingDeadlineSeconds *int64 `json:"startingDeadlineSeconds,omitempty"`
|
StartingDeadlineSeconds *int64 `json:"startingDeadlineSeconds,omitempty"`
|
||||||
ConcurrencyPolicy *v1beta1.ConcurrencyPolicy `json:"concurrencyPolicy,omitempty"`
|
ConcurrencyPolicy *batchv1beta1.ConcurrencyPolicy `json:"concurrencyPolicy,omitempty"`
|
||||||
Suspend *bool `json:"suspend,omitempty"`
|
Suspend *bool `json:"suspend,omitempty"`
|
||||||
JobTemplate *JobTemplateSpecApplyConfiguration `json:"jobTemplate,omitempty"`
|
JobTemplate *JobTemplateSpecApplyConfiguration `json:"jobTemplate,omitempty"`
|
||||||
SuccessfulJobsHistoryLimit *int32 `json:"successfulJobsHistoryLimit,omitempty"`
|
SuccessfulJobsHistoryLimit *int32 `json:"successfulJobsHistoryLimit,omitempty"`
|
||||||
@ -68,7 +68,7 @@ func (b *CronJobSpecApplyConfiguration) WithStartingDeadlineSeconds(value int64)
|
|||||||
// WithConcurrencyPolicy sets the ConcurrencyPolicy field in the declarative configuration to the given value
|
// WithConcurrencyPolicy sets the ConcurrencyPolicy field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the ConcurrencyPolicy field is set to the value of the last call.
|
// If called multiple times, the ConcurrencyPolicy field is set to the value of the last call.
|
||||||
func (b *CronJobSpecApplyConfiguration) WithConcurrencyPolicy(value v1beta1.ConcurrencyPolicy) *CronJobSpecApplyConfiguration {
|
func (b *CronJobSpecApplyConfiguration) WithConcurrencyPolicy(value batchv1beta1.ConcurrencyPolicy) *CronJobSpecApplyConfiguration {
|
||||||
b.ConcurrencyPolicy = &value
|
b.ConcurrencyPolicy = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,21 +19,21 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
apicertificatesv1 "k8s.io/api/certificates/v1"
|
certificatesv1 "k8s.io/api/certificates/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
types "k8s.io/apimachinery/pkg/types"
|
types "k8s.io/apimachinery/pkg/types"
|
||||||
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
|
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
|
||||||
internal "k8s.io/client-go/applyconfigurations/internal"
|
internal "k8s.io/client-go/applyconfigurations/internal"
|
||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CertificateSigningRequestApplyConfiguration represents a declarative configuration of the CertificateSigningRequest type for use
|
// CertificateSigningRequestApplyConfiguration represents a declarative configuration of the CertificateSigningRequest type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type CertificateSigningRequestApplyConfiguration struct {
|
type CertificateSigningRequestApplyConfiguration struct {
|
||||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||||
Spec *CertificateSigningRequestSpecApplyConfiguration `json:"spec,omitempty"`
|
Spec *CertificateSigningRequestSpecApplyConfiguration `json:"spec,omitempty"`
|
||||||
Status *CertificateSigningRequestStatusApplyConfiguration `json:"status,omitempty"`
|
Status *CertificateSigningRequestStatusApplyConfiguration `json:"status,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// CertificateSigningRequest constructs a declarative configuration of the CertificateSigningRequest type for use with
|
// CertificateSigningRequest constructs a declarative configuration of the CertificateSigningRequest type for use with
|
||||||
@ -57,18 +57,18 @@ func CertificateSigningRequest(name string) *CertificateSigningRequestApplyConfi
|
|||||||
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
|
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
|
||||||
// applied if another fieldManager has updated or force applied any of the previously applied fields.
|
// applied if another fieldManager has updated or force applied any of the previously applied fields.
|
||||||
// Experimental!
|
// Experimental!
|
||||||
func ExtractCertificateSigningRequest(certificateSigningRequest *apicertificatesv1.CertificateSigningRequest, fieldManager string) (*CertificateSigningRequestApplyConfiguration, error) {
|
func ExtractCertificateSigningRequest(certificateSigningRequest *certificatesv1.CertificateSigningRequest, fieldManager string) (*CertificateSigningRequestApplyConfiguration, error) {
|
||||||
return extractCertificateSigningRequest(certificateSigningRequest, fieldManager, "")
|
return extractCertificateSigningRequest(certificateSigningRequest, fieldManager, "")
|
||||||
}
|
}
|
||||||
|
|
||||||
// ExtractCertificateSigningRequestStatus is the same as ExtractCertificateSigningRequest except
|
// ExtractCertificateSigningRequestStatus is the same as ExtractCertificateSigningRequest except
|
||||||
// that it extracts the status subresource applied configuration.
|
// that it extracts the status subresource applied configuration.
|
||||||
// Experimental!
|
// Experimental!
|
||||||
func ExtractCertificateSigningRequestStatus(certificateSigningRequest *apicertificatesv1.CertificateSigningRequest, fieldManager string) (*CertificateSigningRequestApplyConfiguration, error) {
|
func ExtractCertificateSigningRequestStatus(certificateSigningRequest *certificatesv1.CertificateSigningRequest, fieldManager string) (*CertificateSigningRequestApplyConfiguration, error) {
|
||||||
return extractCertificateSigningRequest(certificateSigningRequest, fieldManager, "status")
|
return extractCertificateSigningRequest(certificateSigningRequest, fieldManager, "status")
|
||||||
}
|
}
|
||||||
|
|
||||||
func extractCertificateSigningRequest(certificateSigningRequest *apicertificatesv1.CertificateSigningRequest, fieldManager string, subresource string) (*CertificateSigningRequestApplyConfiguration, error) {
|
func extractCertificateSigningRequest(certificateSigningRequest *certificatesv1.CertificateSigningRequest, fieldManager string, subresource string) (*CertificateSigningRequestApplyConfiguration, error) {
|
||||||
b := &CertificateSigningRequestApplyConfiguration{}
|
b := &CertificateSigningRequestApplyConfiguration{}
|
||||||
err := managedfields.ExtractInto(certificateSigningRequest, internal.Parser().Type("io.k8s.api.certificates.v1.CertificateSigningRequest"), fieldManager, b, subresource)
|
err := managedfields.ExtractInto(certificateSigningRequest, internal.Parser().Type("io.k8s.api.certificates.v1.CertificateSigningRequest"), fieldManager, b, subresource)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -154,7 +154,7 @@ func (b *CertificateSigningRequestApplyConfiguration) WithGeneration(value int64
|
|||||||
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
|
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
|
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
|
||||||
func (b *CertificateSigningRequestApplyConfiguration) WithCreationTimestamp(value metav1.Time) *CertificateSigningRequestApplyConfiguration {
|
func (b *CertificateSigningRequestApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *CertificateSigningRequestApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
|
b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
|
||||||
return b
|
return b
|
||||||
@ -163,7 +163,7 @@ func (b *CertificateSigningRequestApplyConfiguration) WithCreationTimestamp(valu
|
|||||||
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
|
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
|
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
|
||||||
func (b *CertificateSigningRequestApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *CertificateSigningRequestApplyConfiguration {
|
func (b *CertificateSigningRequestApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *CertificateSigningRequestApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
|
b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
|
||||||
return b
|
return b
|
||||||
@ -211,7 +211,7 @@ func (b *CertificateSigningRequestApplyConfiguration) WithAnnotations(entries ma
|
|||||||
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
|
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
|
||||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
// 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 OwnerReferences field.
|
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
|
||||||
func (b *CertificateSigningRequestApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *CertificateSigningRequestApplyConfiguration {
|
func (b *CertificateSigningRequestApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *CertificateSigningRequestApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
for i := range values {
|
for i := range values {
|
||||||
if values[i] == nil {
|
if values[i] == nil {
|
||||||
@ -235,7 +235,7 @@ func (b *CertificateSigningRequestApplyConfiguration) WithFinalizers(values ...s
|
|||||||
|
|
||||||
func (b *CertificateSigningRequestApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
|
func (b *CertificateSigningRequestApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
|
||||||
if b.ObjectMetaApplyConfiguration == nil {
|
if b.ObjectMetaApplyConfiguration == nil {
|
||||||
b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
|
b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1 "k8s.io/api/certificates/v1"
|
certificatesv1 "k8s.io/api/certificates/v1"
|
||||||
corev1 "k8s.io/api/core/v1"
|
corev1 "k8s.io/api/core/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
)
|
)
|
||||||
@ -27,12 +27,12 @@ import (
|
|||||||
// CertificateSigningRequestConditionApplyConfiguration represents a declarative configuration of the CertificateSigningRequestCondition type for use
|
// CertificateSigningRequestConditionApplyConfiguration represents a declarative configuration of the CertificateSigningRequestCondition type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type CertificateSigningRequestConditionApplyConfiguration struct {
|
type CertificateSigningRequestConditionApplyConfiguration struct {
|
||||||
Type *v1.RequestConditionType `json:"type,omitempty"`
|
Type *certificatesv1.RequestConditionType `json:"type,omitempty"`
|
||||||
Status *corev1.ConditionStatus `json:"status,omitempty"`
|
Status *corev1.ConditionStatus `json:"status,omitempty"`
|
||||||
Reason *string `json:"reason,omitempty"`
|
Reason *string `json:"reason,omitempty"`
|
||||||
Message *string `json:"message,omitempty"`
|
Message *string `json:"message,omitempty"`
|
||||||
LastUpdateTime *metav1.Time `json:"lastUpdateTime,omitempty"`
|
LastUpdateTime *metav1.Time `json:"lastUpdateTime,omitempty"`
|
||||||
LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
|
LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// CertificateSigningRequestConditionApplyConfiguration constructs a declarative configuration of the CertificateSigningRequestCondition type for use with
|
// CertificateSigningRequestConditionApplyConfiguration constructs a declarative configuration of the CertificateSigningRequestCondition type for use with
|
||||||
@ -44,7 +44,7 @@ func CertificateSigningRequestCondition() *CertificateSigningRequestConditionApp
|
|||||||
// WithType sets the Type field in the declarative configuration to the given value
|
// 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.
|
// 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.
|
// If called multiple times, the Type field is set to the value of the last call.
|
||||||
func (b *CertificateSigningRequestConditionApplyConfiguration) WithType(value v1.RequestConditionType) *CertificateSigningRequestConditionApplyConfiguration {
|
func (b *CertificateSigningRequestConditionApplyConfiguration) WithType(value certificatesv1.RequestConditionType) *CertificateSigningRequestConditionApplyConfiguration {
|
||||||
b.Type = &value
|
b.Type = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,20 +19,20 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1 "k8s.io/api/certificates/v1"
|
certificatesv1 "k8s.io/api/certificates/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CertificateSigningRequestSpecApplyConfiguration represents a declarative configuration of the CertificateSigningRequestSpec type for use
|
// CertificateSigningRequestSpecApplyConfiguration represents a declarative configuration of the CertificateSigningRequestSpec type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type CertificateSigningRequestSpecApplyConfiguration struct {
|
type CertificateSigningRequestSpecApplyConfiguration struct {
|
||||||
Request []byte `json:"request,omitempty"`
|
Request []byte `json:"request,omitempty"`
|
||||||
SignerName *string `json:"signerName,omitempty"`
|
SignerName *string `json:"signerName,omitempty"`
|
||||||
ExpirationSeconds *int32 `json:"expirationSeconds,omitempty"`
|
ExpirationSeconds *int32 `json:"expirationSeconds,omitempty"`
|
||||||
Usages []v1.KeyUsage `json:"usages,omitempty"`
|
Usages []certificatesv1.KeyUsage `json:"usages,omitempty"`
|
||||||
Username *string `json:"username,omitempty"`
|
Username *string `json:"username,omitempty"`
|
||||||
UID *string `json:"uid,omitempty"`
|
UID *string `json:"uid,omitempty"`
|
||||||
Groups []string `json:"groups,omitempty"`
|
Groups []string `json:"groups,omitempty"`
|
||||||
Extra map[string]v1.ExtraValue `json:"extra,omitempty"`
|
Extra map[string]certificatesv1.ExtraValue `json:"extra,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// CertificateSigningRequestSpecApplyConfiguration constructs a declarative configuration of the CertificateSigningRequestSpec type for use with
|
// CertificateSigningRequestSpecApplyConfiguration constructs a declarative configuration of the CertificateSigningRequestSpec type for use with
|
||||||
@ -70,7 +70,7 @@ func (b *CertificateSigningRequestSpecApplyConfiguration) WithExpirationSeconds(
|
|||||||
// WithUsages adds the given value to the Usages field in the declarative configuration
|
// WithUsages adds the given value to the Usages field in the declarative configuration
|
||||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
// 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 Usages field.
|
// If called multiple times, values provided by each call will be appended to the Usages field.
|
||||||
func (b *CertificateSigningRequestSpecApplyConfiguration) WithUsages(values ...v1.KeyUsage) *CertificateSigningRequestSpecApplyConfiguration {
|
func (b *CertificateSigningRequestSpecApplyConfiguration) WithUsages(values ...certificatesv1.KeyUsage) *CertificateSigningRequestSpecApplyConfiguration {
|
||||||
for i := range values {
|
for i := range values {
|
||||||
b.Usages = append(b.Usages, values[i])
|
b.Usages = append(b.Usages, values[i])
|
||||||
}
|
}
|
||||||
@ -107,9 +107,9 @@ func (b *CertificateSigningRequestSpecApplyConfiguration) WithGroups(values ...s
|
|||||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
||||||
// If called multiple times, the entries provided by each call will be put on the Extra field,
|
// If called multiple times, the entries provided by each call will be put on the Extra field,
|
||||||
// overwriting an existing map entries in Extra field with the same key.
|
// overwriting an existing map entries in Extra field with the same key.
|
||||||
func (b *CertificateSigningRequestSpecApplyConfiguration) WithExtra(entries map[string]v1.ExtraValue) *CertificateSigningRequestSpecApplyConfiguration {
|
func (b *CertificateSigningRequestSpecApplyConfiguration) WithExtra(entries map[string]certificatesv1.ExtraValue) *CertificateSigningRequestSpecApplyConfiguration {
|
||||||
if b.Extra == nil && len(entries) > 0 {
|
if b.Extra == nil && len(entries) > 0 {
|
||||||
b.Extra = make(map[string]v1.ExtraValue, len(entries))
|
b.Extra = make(map[string]certificatesv1.ExtraValue, len(entries))
|
||||||
}
|
}
|
||||||
for k, v := range entries {
|
for k, v := range entries {
|
||||||
b.Extra[k] = v
|
b.Extra[k] = v
|
||||||
|
@ -19,7 +19,7 @@ limitations under the License.
|
|||||||
package v1beta1
|
package v1beta1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1beta1 "k8s.io/api/certificates/v1beta1"
|
certificatesv1beta1 "k8s.io/api/certificates/v1beta1"
|
||||||
v1 "k8s.io/api/core/v1"
|
v1 "k8s.io/api/core/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
)
|
)
|
||||||
@ -27,12 +27,12 @@ import (
|
|||||||
// CertificateSigningRequestConditionApplyConfiguration represents a declarative configuration of the CertificateSigningRequestCondition type for use
|
// CertificateSigningRequestConditionApplyConfiguration represents a declarative configuration of the CertificateSigningRequestCondition type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type CertificateSigningRequestConditionApplyConfiguration struct {
|
type CertificateSigningRequestConditionApplyConfiguration struct {
|
||||||
Type *v1beta1.RequestConditionType `json:"type,omitempty"`
|
Type *certificatesv1beta1.RequestConditionType `json:"type,omitempty"`
|
||||||
Status *v1.ConditionStatus `json:"status,omitempty"`
|
Status *v1.ConditionStatus `json:"status,omitempty"`
|
||||||
Reason *string `json:"reason,omitempty"`
|
Reason *string `json:"reason,omitempty"`
|
||||||
Message *string `json:"message,omitempty"`
|
Message *string `json:"message,omitempty"`
|
||||||
LastUpdateTime *metav1.Time `json:"lastUpdateTime,omitempty"`
|
LastUpdateTime *metav1.Time `json:"lastUpdateTime,omitempty"`
|
||||||
LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
|
LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// CertificateSigningRequestConditionApplyConfiguration constructs a declarative configuration of the CertificateSigningRequestCondition type for use with
|
// CertificateSigningRequestConditionApplyConfiguration constructs a declarative configuration of the CertificateSigningRequestCondition type for use with
|
||||||
@ -44,7 +44,7 @@ func CertificateSigningRequestCondition() *CertificateSigningRequestConditionApp
|
|||||||
// WithType sets the Type field in the declarative configuration to the given value
|
// 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.
|
// 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.
|
// If called multiple times, the Type field is set to the value of the last call.
|
||||||
func (b *CertificateSigningRequestConditionApplyConfiguration) WithType(value v1beta1.RequestConditionType) *CertificateSigningRequestConditionApplyConfiguration {
|
func (b *CertificateSigningRequestConditionApplyConfiguration) WithType(value certificatesv1beta1.RequestConditionType) *CertificateSigningRequestConditionApplyConfiguration {
|
||||||
b.Type = &value
|
b.Type = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,20 +19,20 @@ limitations under the License.
|
|||||||
package v1beta1
|
package v1beta1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1beta1 "k8s.io/api/certificates/v1beta1"
|
certificatesv1beta1 "k8s.io/api/certificates/v1beta1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CertificateSigningRequestSpecApplyConfiguration represents a declarative configuration of the CertificateSigningRequestSpec type for use
|
// CertificateSigningRequestSpecApplyConfiguration represents a declarative configuration of the CertificateSigningRequestSpec type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type CertificateSigningRequestSpecApplyConfiguration struct {
|
type CertificateSigningRequestSpecApplyConfiguration struct {
|
||||||
Request []byte `json:"request,omitempty"`
|
Request []byte `json:"request,omitempty"`
|
||||||
SignerName *string `json:"signerName,omitempty"`
|
SignerName *string `json:"signerName,omitempty"`
|
||||||
ExpirationSeconds *int32 `json:"expirationSeconds,omitempty"`
|
ExpirationSeconds *int32 `json:"expirationSeconds,omitempty"`
|
||||||
Usages []v1beta1.KeyUsage `json:"usages,omitempty"`
|
Usages []certificatesv1beta1.KeyUsage `json:"usages,omitempty"`
|
||||||
Username *string `json:"username,omitempty"`
|
Username *string `json:"username,omitempty"`
|
||||||
UID *string `json:"uid,omitempty"`
|
UID *string `json:"uid,omitempty"`
|
||||||
Groups []string `json:"groups,omitempty"`
|
Groups []string `json:"groups,omitempty"`
|
||||||
Extra map[string]v1beta1.ExtraValue `json:"extra,omitempty"`
|
Extra map[string]certificatesv1beta1.ExtraValue `json:"extra,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// CertificateSigningRequestSpecApplyConfiguration constructs a declarative configuration of the CertificateSigningRequestSpec type for use with
|
// CertificateSigningRequestSpecApplyConfiguration constructs a declarative configuration of the CertificateSigningRequestSpec type for use with
|
||||||
@ -70,7 +70,7 @@ func (b *CertificateSigningRequestSpecApplyConfiguration) WithExpirationSeconds(
|
|||||||
// WithUsages adds the given value to the Usages field in the declarative configuration
|
// WithUsages adds the given value to the Usages field in the declarative configuration
|
||||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
// 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 Usages field.
|
// If called multiple times, values provided by each call will be appended to the Usages field.
|
||||||
func (b *CertificateSigningRequestSpecApplyConfiguration) WithUsages(values ...v1beta1.KeyUsage) *CertificateSigningRequestSpecApplyConfiguration {
|
func (b *CertificateSigningRequestSpecApplyConfiguration) WithUsages(values ...certificatesv1beta1.KeyUsage) *CertificateSigningRequestSpecApplyConfiguration {
|
||||||
for i := range values {
|
for i := range values {
|
||||||
b.Usages = append(b.Usages, values[i])
|
b.Usages = append(b.Usages, values[i])
|
||||||
}
|
}
|
||||||
@ -107,9 +107,9 @@ func (b *CertificateSigningRequestSpecApplyConfiguration) WithGroups(values ...s
|
|||||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
||||||
// If called multiple times, the entries provided by each call will be put on the Extra field,
|
// If called multiple times, the entries provided by each call will be put on the Extra field,
|
||||||
// overwriting an existing map entries in Extra field with the same key.
|
// overwriting an existing map entries in Extra field with the same key.
|
||||||
func (b *CertificateSigningRequestSpecApplyConfiguration) WithExtra(entries map[string]v1beta1.ExtraValue) *CertificateSigningRequestSpecApplyConfiguration {
|
func (b *CertificateSigningRequestSpecApplyConfiguration) WithExtra(entries map[string]certificatesv1beta1.ExtraValue) *CertificateSigningRequestSpecApplyConfiguration {
|
||||||
if b.Extra == nil && len(entries) > 0 {
|
if b.Extra == nil && len(entries) > 0 {
|
||||||
b.Extra = make(map[string]v1beta1.ExtraValue, len(entries))
|
b.Extra = make(map[string]certificatesv1beta1.ExtraValue, len(entries))
|
||||||
}
|
}
|
||||||
for k, v := range entries {
|
for k, v := range entries {
|
||||||
b.Extra[k] = v
|
b.Extra[k] = v
|
||||||
|
@ -19,20 +19,20 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
apicoordinationv1 "k8s.io/api/coordination/v1"
|
coordinationv1 "k8s.io/api/coordination/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
types "k8s.io/apimachinery/pkg/types"
|
types "k8s.io/apimachinery/pkg/types"
|
||||||
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
|
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
|
||||||
internal "k8s.io/client-go/applyconfigurations/internal"
|
internal "k8s.io/client-go/applyconfigurations/internal"
|
||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// LeaseApplyConfiguration represents a declarative configuration of the Lease type for use
|
// LeaseApplyConfiguration represents a declarative configuration of the Lease type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type LeaseApplyConfiguration struct {
|
type LeaseApplyConfiguration struct {
|
||||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||||
Spec *LeaseSpecApplyConfiguration `json:"spec,omitempty"`
|
Spec *LeaseSpecApplyConfiguration `json:"spec,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Lease constructs a declarative configuration of the Lease type for use with
|
// Lease constructs a declarative configuration of the Lease type for use with
|
||||||
@ -57,18 +57,18 @@ func Lease(name, namespace string) *LeaseApplyConfiguration {
|
|||||||
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
|
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
|
||||||
// applied if another fieldManager has updated or force applied any of the previously applied fields.
|
// applied if another fieldManager has updated or force applied any of the previously applied fields.
|
||||||
// Experimental!
|
// Experimental!
|
||||||
func ExtractLease(lease *apicoordinationv1.Lease, fieldManager string) (*LeaseApplyConfiguration, error) {
|
func ExtractLease(lease *coordinationv1.Lease, fieldManager string) (*LeaseApplyConfiguration, error) {
|
||||||
return extractLease(lease, fieldManager, "")
|
return extractLease(lease, fieldManager, "")
|
||||||
}
|
}
|
||||||
|
|
||||||
// ExtractLeaseStatus is the same as ExtractLease except
|
// ExtractLeaseStatus is the same as ExtractLease except
|
||||||
// that it extracts the status subresource applied configuration.
|
// that it extracts the status subresource applied configuration.
|
||||||
// Experimental!
|
// Experimental!
|
||||||
func ExtractLeaseStatus(lease *apicoordinationv1.Lease, fieldManager string) (*LeaseApplyConfiguration, error) {
|
func ExtractLeaseStatus(lease *coordinationv1.Lease, fieldManager string) (*LeaseApplyConfiguration, error) {
|
||||||
return extractLease(lease, fieldManager, "status")
|
return extractLease(lease, fieldManager, "status")
|
||||||
}
|
}
|
||||||
|
|
||||||
func extractLease(lease *apicoordinationv1.Lease, fieldManager string, subresource string) (*LeaseApplyConfiguration, error) {
|
func extractLease(lease *coordinationv1.Lease, fieldManager string, subresource string) (*LeaseApplyConfiguration, error) {
|
||||||
b := &LeaseApplyConfiguration{}
|
b := &LeaseApplyConfiguration{}
|
||||||
err := managedfields.ExtractInto(lease, internal.Parser().Type("io.k8s.api.coordination.v1.Lease"), fieldManager, b, subresource)
|
err := managedfields.ExtractInto(lease, internal.Parser().Type("io.k8s.api.coordination.v1.Lease"), fieldManager, b, subresource)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -155,7 +155,7 @@ func (b *LeaseApplyConfiguration) WithGeneration(value int64) *LeaseApplyConfigu
|
|||||||
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
|
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
|
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
|
||||||
func (b *LeaseApplyConfiguration) WithCreationTimestamp(value metav1.Time) *LeaseApplyConfiguration {
|
func (b *LeaseApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *LeaseApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
|
b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
|
||||||
return b
|
return b
|
||||||
@ -164,7 +164,7 @@ func (b *LeaseApplyConfiguration) WithCreationTimestamp(value metav1.Time) *Leas
|
|||||||
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
|
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
|
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
|
||||||
func (b *LeaseApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *LeaseApplyConfiguration {
|
func (b *LeaseApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *LeaseApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
|
b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
|
||||||
return b
|
return b
|
||||||
@ -212,7 +212,7 @@ func (b *LeaseApplyConfiguration) WithAnnotations(entries map[string]string) *Le
|
|||||||
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
|
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
|
||||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
// 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 OwnerReferences field.
|
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
|
||||||
func (b *LeaseApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *LeaseApplyConfiguration {
|
func (b *LeaseApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *LeaseApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
for i := range values {
|
for i := range values {
|
||||||
if values[i] == nil {
|
if values[i] == nil {
|
||||||
@ -236,7 +236,7 @@ func (b *LeaseApplyConfiguration) WithFinalizers(values ...string) *LeaseApplyCo
|
|||||||
|
|
||||||
func (b *LeaseApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
|
func (b *LeaseApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
|
||||||
if b.ObjectMetaApplyConfiguration == nil {
|
if b.ObjectMetaApplyConfiguration == nil {
|
||||||
b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
|
b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ package v1
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
coordinationv1 "k8s.io/api/coordination/v1"
|
coordinationv1 "k8s.io/api/coordination/v1"
|
||||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// LeaseSpecApplyConfiguration represents a declarative configuration of the LeaseSpec type for use
|
// LeaseSpecApplyConfiguration represents a declarative configuration of the LeaseSpec type for use
|
||||||
@ -28,8 +28,8 @@ import (
|
|||||||
type LeaseSpecApplyConfiguration struct {
|
type LeaseSpecApplyConfiguration struct {
|
||||||
HolderIdentity *string `json:"holderIdentity,omitempty"`
|
HolderIdentity *string `json:"holderIdentity,omitempty"`
|
||||||
LeaseDurationSeconds *int32 `json:"leaseDurationSeconds,omitempty"`
|
LeaseDurationSeconds *int32 `json:"leaseDurationSeconds,omitempty"`
|
||||||
AcquireTime *v1.MicroTime `json:"acquireTime,omitempty"`
|
AcquireTime *metav1.MicroTime `json:"acquireTime,omitempty"`
|
||||||
RenewTime *v1.MicroTime `json:"renewTime,omitempty"`
|
RenewTime *metav1.MicroTime `json:"renewTime,omitempty"`
|
||||||
LeaseTransitions *int32 `json:"leaseTransitions,omitempty"`
|
LeaseTransitions *int32 `json:"leaseTransitions,omitempty"`
|
||||||
Strategy *coordinationv1.CoordinatedLeaseStrategy `json:"strategy,omitempty"`
|
Strategy *coordinationv1.CoordinatedLeaseStrategy `json:"strategy,omitempty"`
|
||||||
PreferredHolder *string `json:"preferredHolder,omitempty"`
|
PreferredHolder *string `json:"preferredHolder,omitempty"`
|
||||||
@ -60,7 +60,7 @@ func (b *LeaseSpecApplyConfiguration) WithLeaseDurationSeconds(value int32) *Lea
|
|||||||
// WithAcquireTime sets the AcquireTime field in the declarative configuration to the given value
|
// WithAcquireTime sets the AcquireTime field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the AcquireTime field is set to the value of the last call.
|
// If called multiple times, the AcquireTime field is set to the value of the last call.
|
||||||
func (b *LeaseSpecApplyConfiguration) WithAcquireTime(value v1.MicroTime) *LeaseSpecApplyConfiguration {
|
func (b *LeaseSpecApplyConfiguration) WithAcquireTime(value metav1.MicroTime) *LeaseSpecApplyConfiguration {
|
||||||
b.AcquireTime = &value
|
b.AcquireTime = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
@ -68,7 +68,7 @@ func (b *LeaseSpecApplyConfiguration) WithAcquireTime(value v1.MicroTime) *Lease
|
|||||||
// WithRenewTime sets the RenewTime field in the declarative configuration to the given value
|
// WithRenewTime sets the RenewTime field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the RenewTime field is set to the value of the last call.
|
// If called multiple times, the RenewTime field is set to the value of the last call.
|
||||||
func (b *LeaseSpecApplyConfiguration) WithRenewTime(value v1.MicroTime) *LeaseSpecApplyConfiguration {
|
func (b *LeaseSpecApplyConfiguration) WithRenewTime(value metav1.MicroTime) *LeaseSpecApplyConfiguration {
|
||||||
b.RenewTime = &value
|
b.RenewTime = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,14 +19,14 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1 "k8s.io/api/core/v1"
|
corev1 "k8s.io/api/core/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// AppArmorProfileApplyConfiguration represents a declarative configuration of the AppArmorProfile type for use
|
// AppArmorProfileApplyConfiguration represents a declarative configuration of the AppArmorProfile type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type AppArmorProfileApplyConfiguration struct {
|
type AppArmorProfileApplyConfiguration struct {
|
||||||
Type *v1.AppArmorProfileType `json:"type,omitempty"`
|
Type *corev1.AppArmorProfileType `json:"type,omitempty"`
|
||||||
LocalhostProfile *string `json:"localhostProfile,omitempty"`
|
LocalhostProfile *string `json:"localhostProfile,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// AppArmorProfileApplyConfiguration constructs a declarative configuration of the AppArmorProfile type for use with
|
// AppArmorProfileApplyConfiguration constructs a declarative configuration of the AppArmorProfile type for use with
|
||||||
@ -38,7 +38,7 @@ func AppArmorProfile() *AppArmorProfileApplyConfiguration {
|
|||||||
// WithType sets the Type field in the declarative configuration to the given value
|
// 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.
|
// 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.
|
// If called multiple times, the Type field is set to the value of the last call.
|
||||||
func (b *AppArmorProfileApplyConfiguration) WithType(value v1.AppArmorProfileType) *AppArmorProfileApplyConfiguration {
|
func (b *AppArmorProfileApplyConfiguration) WithType(value corev1.AppArmorProfileType) *AppArmorProfileApplyConfiguration {
|
||||||
b.Type = &value
|
b.Type = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,14 +19,14 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1 "k8s.io/api/core/v1"
|
corev1 "k8s.io/api/core/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// AttachedVolumeApplyConfiguration represents a declarative configuration of the AttachedVolume type for use
|
// AttachedVolumeApplyConfiguration represents a declarative configuration of the AttachedVolume type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type AttachedVolumeApplyConfiguration struct {
|
type AttachedVolumeApplyConfiguration struct {
|
||||||
Name *v1.UniqueVolumeName `json:"name,omitempty"`
|
Name *corev1.UniqueVolumeName `json:"name,omitempty"`
|
||||||
DevicePath *string `json:"devicePath,omitempty"`
|
DevicePath *string `json:"devicePath,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// AttachedVolumeApplyConfiguration constructs a declarative configuration of the AttachedVolume type for use with
|
// AttachedVolumeApplyConfiguration constructs a declarative configuration of the AttachedVolume type for use with
|
||||||
@ -38,7 +38,7 @@ func AttachedVolume() *AttachedVolumeApplyConfiguration {
|
|||||||
// WithName sets the Name field in the declarative configuration to the given value
|
// 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.
|
// 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.
|
// If called multiple times, the Name field is set to the value of the last call.
|
||||||
func (b *AttachedVolumeApplyConfiguration) WithName(value v1.UniqueVolumeName) *AttachedVolumeApplyConfiguration {
|
func (b *AttachedVolumeApplyConfiguration) WithName(value corev1.UniqueVolumeName) *AttachedVolumeApplyConfiguration {
|
||||||
b.Name = &value
|
b.Name = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,18 +19,18 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1 "k8s.io/api/core/v1"
|
corev1 "k8s.io/api/core/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// AzureDiskVolumeSourceApplyConfiguration represents a declarative configuration of the AzureDiskVolumeSource type for use
|
// AzureDiskVolumeSourceApplyConfiguration represents a declarative configuration of the AzureDiskVolumeSource type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type AzureDiskVolumeSourceApplyConfiguration struct {
|
type AzureDiskVolumeSourceApplyConfiguration struct {
|
||||||
DiskName *string `json:"diskName,omitempty"`
|
DiskName *string `json:"diskName,omitempty"`
|
||||||
DataDiskURI *string `json:"diskURI,omitempty"`
|
DataDiskURI *string `json:"diskURI,omitempty"`
|
||||||
CachingMode *v1.AzureDataDiskCachingMode `json:"cachingMode,omitempty"`
|
CachingMode *corev1.AzureDataDiskCachingMode `json:"cachingMode,omitempty"`
|
||||||
FSType *string `json:"fsType,omitempty"`
|
FSType *string `json:"fsType,omitempty"`
|
||||||
ReadOnly *bool `json:"readOnly,omitempty"`
|
ReadOnly *bool `json:"readOnly,omitempty"`
|
||||||
Kind *v1.AzureDataDiskKind `json:"kind,omitempty"`
|
Kind *corev1.AzureDataDiskKind `json:"kind,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// AzureDiskVolumeSourceApplyConfiguration constructs a declarative configuration of the AzureDiskVolumeSource type for use with
|
// AzureDiskVolumeSourceApplyConfiguration constructs a declarative configuration of the AzureDiskVolumeSource type for use with
|
||||||
@ -58,7 +58,7 @@ func (b *AzureDiskVolumeSourceApplyConfiguration) WithDataDiskURI(value string)
|
|||||||
// WithCachingMode sets the CachingMode field in the declarative configuration to the given value
|
// WithCachingMode sets the CachingMode field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the CachingMode field is set to the value of the last call.
|
// If called multiple times, the CachingMode field is set to the value of the last call.
|
||||||
func (b *AzureDiskVolumeSourceApplyConfiguration) WithCachingMode(value v1.AzureDataDiskCachingMode) *AzureDiskVolumeSourceApplyConfiguration {
|
func (b *AzureDiskVolumeSourceApplyConfiguration) WithCachingMode(value corev1.AzureDataDiskCachingMode) *AzureDiskVolumeSourceApplyConfiguration {
|
||||||
b.CachingMode = &value
|
b.CachingMode = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
@ -82,7 +82,7 @@ func (b *AzureDiskVolumeSourceApplyConfiguration) WithReadOnly(value bool) *Azur
|
|||||||
// WithKind sets the Kind field in the declarative configuration to the given value
|
// 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.
|
// 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.
|
// If called multiple times, the Kind field is set to the value of the last call.
|
||||||
func (b *AzureDiskVolumeSourceApplyConfiguration) WithKind(value v1.AzureDataDiskKind) *AzureDiskVolumeSourceApplyConfiguration {
|
func (b *AzureDiskVolumeSourceApplyConfiguration) WithKind(value corev1.AzureDataDiskKind) *AzureDiskVolumeSourceApplyConfiguration {
|
||||||
b.Kind = &value
|
b.Kind = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,14 +19,14 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1 "k8s.io/api/core/v1"
|
corev1 "k8s.io/api/core/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CapabilitiesApplyConfiguration represents a declarative configuration of the Capabilities type for use
|
// CapabilitiesApplyConfiguration represents a declarative configuration of the Capabilities type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type CapabilitiesApplyConfiguration struct {
|
type CapabilitiesApplyConfiguration struct {
|
||||||
Add []v1.Capability `json:"add,omitempty"`
|
Add []corev1.Capability `json:"add,omitempty"`
|
||||||
Drop []v1.Capability `json:"drop,omitempty"`
|
Drop []corev1.Capability `json:"drop,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// CapabilitiesApplyConfiguration constructs a declarative configuration of the Capabilities type for use with
|
// CapabilitiesApplyConfiguration constructs a declarative configuration of the Capabilities type for use with
|
||||||
@ -38,7 +38,7 @@ func Capabilities() *CapabilitiesApplyConfiguration {
|
|||||||
// WithAdd adds the given value to the Add field in the declarative configuration
|
// WithAdd adds the given value to the Add field in the declarative configuration
|
||||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
// 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 Add field.
|
// If called multiple times, values provided by each call will be appended to the Add field.
|
||||||
func (b *CapabilitiesApplyConfiguration) WithAdd(values ...v1.Capability) *CapabilitiesApplyConfiguration {
|
func (b *CapabilitiesApplyConfiguration) WithAdd(values ...corev1.Capability) *CapabilitiesApplyConfiguration {
|
||||||
for i := range values {
|
for i := range values {
|
||||||
b.Add = append(b.Add, values[i])
|
b.Add = append(b.Add, values[i])
|
||||||
}
|
}
|
||||||
@ -48,7 +48,7 @@ func (b *CapabilitiesApplyConfiguration) WithAdd(values ...v1.Capability) *Capab
|
|||||||
// WithDrop adds the given value to the Drop field in the declarative configuration
|
// WithDrop adds the given value to the Drop field in the declarative configuration
|
||||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
// 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 Drop field.
|
// If called multiple times, values provided by each call will be appended to the Drop field.
|
||||||
func (b *CapabilitiesApplyConfiguration) WithDrop(values ...v1.Capability) *CapabilitiesApplyConfiguration {
|
func (b *CapabilitiesApplyConfiguration) WithDrop(values ...corev1.Capability) *CapabilitiesApplyConfiguration {
|
||||||
for i := range values {
|
for i := range values {
|
||||||
b.Drop = append(b.Drop, values[i])
|
b.Drop = append(b.Drop, values[i])
|
||||||
}
|
}
|
||||||
|
@ -19,17 +19,17 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ClusterTrustBundleProjectionApplyConfiguration represents a declarative configuration of the ClusterTrustBundleProjection type for use
|
// ClusterTrustBundleProjectionApplyConfiguration represents a declarative configuration of the ClusterTrustBundleProjection type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ClusterTrustBundleProjectionApplyConfiguration struct {
|
type ClusterTrustBundleProjectionApplyConfiguration struct {
|
||||||
Name *string `json:"name,omitempty"`
|
Name *string `json:"name,omitempty"`
|
||||||
SignerName *string `json:"signerName,omitempty"`
|
SignerName *string `json:"signerName,omitempty"`
|
||||||
LabelSelector *v1.LabelSelectorApplyConfiguration `json:"labelSelector,omitempty"`
|
LabelSelector *metav1.LabelSelectorApplyConfiguration `json:"labelSelector,omitempty"`
|
||||||
Optional *bool `json:"optional,omitempty"`
|
Optional *bool `json:"optional,omitempty"`
|
||||||
Path *string `json:"path,omitempty"`
|
Path *string `json:"path,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ClusterTrustBundleProjectionApplyConfiguration constructs a declarative configuration of the ClusterTrustBundleProjection type for use with
|
// ClusterTrustBundleProjectionApplyConfiguration constructs a declarative configuration of the ClusterTrustBundleProjection type for use with
|
||||||
@ -57,7 +57,7 @@ func (b *ClusterTrustBundleProjectionApplyConfiguration) WithSignerName(value st
|
|||||||
// WithLabelSelector sets the LabelSelector field in the declarative configuration to the given value
|
// WithLabelSelector sets the LabelSelector field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the LabelSelector field is set to the value of the last call.
|
// If called multiple times, the LabelSelector field is set to the value of the last call.
|
||||||
func (b *ClusterTrustBundleProjectionApplyConfiguration) WithLabelSelector(value *v1.LabelSelectorApplyConfiguration) *ClusterTrustBundleProjectionApplyConfiguration {
|
func (b *ClusterTrustBundleProjectionApplyConfiguration) WithLabelSelector(value *metav1.LabelSelectorApplyConfiguration) *ClusterTrustBundleProjectionApplyConfiguration {
|
||||||
b.LabelSelector = value
|
b.LabelSelector = value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,16 +19,16 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1 "k8s.io/api/core/v1"
|
corev1 "k8s.io/api/core/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ComponentConditionApplyConfiguration represents a declarative configuration of the ComponentCondition type for use
|
// ComponentConditionApplyConfiguration represents a declarative configuration of the ComponentCondition type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ComponentConditionApplyConfiguration struct {
|
type ComponentConditionApplyConfiguration struct {
|
||||||
Type *v1.ComponentConditionType `json:"type,omitempty"`
|
Type *corev1.ComponentConditionType `json:"type,omitempty"`
|
||||||
Status *v1.ConditionStatus `json:"status,omitempty"`
|
Status *corev1.ConditionStatus `json:"status,omitempty"`
|
||||||
Message *string `json:"message,omitempty"`
|
Message *string `json:"message,omitempty"`
|
||||||
Error *string `json:"error,omitempty"`
|
Error *string `json:"error,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ComponentConditionApplyConfiguration constructs a declarative configuration of the ComponentCondition type for use with
|
// ComponentConditionApplyConfiguration constructs a declarative configuration of the ComponentCondition type for use with
|
||||||
@ -40,7 +40,7 @@ func ComponentCondition() *ComponentConditionApplyConfiguration {
|
|||||||
// WithType sets the Type field in the declarative configuration to the given value
|
// 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.
|
// 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.
|
// If called multiple times, the Type field is set to the value of the last call.
|
||||||
func (b *ComponentConditionApplyConfiguration) WithType(value v1.ComponentConditionType) *ComponentConditionApplyConfiguration {
|
func (b *ComponentConditionApplyConfiguration) WithType(value corev1.ComponentConditionType) *ComponentConditionApplyConfiguration {
|
||||||
b.Type = &value
|
b.Type = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
@ -48,7 +48,7 @@ func (b *ComponentConditionApplyConfiguration) WithType(value v1.ComponentCondit
|
|||||||
// WithStatus sets the Status field in the declarative configuration to the given value
|
// 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.
|
// 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.
|
// If called multiple times, the Status field is set to the value of the last call.
|
||||||
func (b *ComponentConditionApplyConfiguration) WithStatus(value v1.ConditionStatus) *ComponentConditionApplyConfiguration {
|
func (b *ComponentConditionApplyConfiguration) WithStatus(value corev1.ConditionStatus) *ComponentConditionApplyConfiguration {
|
||||||
b.Status = &value
|
b.Status = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,20 +19,20 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
apicorev1 "k8s.io/api/core/v1"
|
corev1 "k8s.io/api/core/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
types "k8s.io/apimachinery/pkg/types"
|
types "k8s.io/apimachinery/pkg/types"
|
||||||
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
|
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
|
||||||
internal "k8s.io/client-go/applyconfigurations/internal"
|
internal "k8s.io/client-go/applyconfigurations/internal"
|
||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ComponentStatusApplyConfiguration represents a declarative configuration of the ComponentStatus type for use
|
// ComponentStatusApplyConfiguration represents a declarative configuration of the ComponentStatus type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ComponentStatusApplyConfiguration struct {
|
type ComponentStatusApplyConfiguration struct {
|
||||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||||
Conditions []ComponentConditionApplyConfiguration `json:"conditions,omitempty"`
|
Conditions []ComponentConditionApplyConfiguration `json:"conditions,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ComponentStatus constructs a declarative configuration of the ComponentStatus type for use with
|
// ComponentStatus constructs a declarative configuration of the ComponentStatus type for use with
|
||||||
@ -56,18 +56,18 @@ func ComponentStatus(name string) *ComponentStatusApplyConfiguration {
|
|||||||
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
|
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
|
||||||
// applied if another fieldManager has updated or force applied any of the previously applied fields.
|
// applied if another fieldManager has updated or force applied any of the previously applied fields.
|
||||||
// Experimental!
|
// Experimental!
|
||||||
func ExtractComponentStatus(componentStatus *apicorev1.ComponentStatus, fieldManager string) (*ComponentStatusApplyConfiguration, error) {
|
func ExtractComponentStatus(componentStatus *corev1.ComponentStatus, fieldManager string) (*ComponentStatusApplyConfiguration, error) {
|
||||||
return extractComponentStatus(componentStatus, fieldManager, "")
|
return extractComponentStatus(componentStatus, fieldManager, "")
|
||||||
}
|
}
|
||||||
|
|
||||||
// ExtractComponentStatusStatus is the same as ExtractComponentStatus except
|
// ExtractComponentStatusStatus is the same as ExtractComponentStatus except
|
||||||
// that it extracts the status subresource applied configuration.
|
// that it extracts the status subresource applied configuration.
|
||||||
// Experimental!
|
// Experimental!
|
||||||
func ExtractComponentStatusStatus(componentStatus *apicorev1.ComponentStatus, fieldManager string) (*ComponentStatusApplyConfiguration, error) {
|
func ExtractComponentStatusStatus(componentStatus *corev1.ComponentStatus, fieldManager string) (*ComponentStatusApplyConfiguration, error) {
|
||||||
return extractComponentStatus(componentStatus, fieldManager, "status")
|
return extractComponentStatus(componentStatus, fieldManager, "status")
|
||||||
}
|
}
|
||||||
|
|
||||||
func extractComponentStatus(componentStatus *apicorev1.ComponentStatus, fieldManager string, subresource string) (*ComponentStatusApplyConfiguration, error) {
|
func extractComponentStatus(componentStatus *corev1.ComponentStatus, fieldManager string, subresource string) (*ComponentStatusApplyConfiguration, error) {
|
||||||
b := &ComponentStatusApplyConfiguration{}
|
b := &ComponentStatusApplyConfiguration{}
|
||||||
err := managedfields.ExtractInto(componentStatus, internal.Parser().Type("io.k8s.api.core.v1.ComponentStatus"), fieldManager, b, subresource)
|
err := managedfields.ExtractInto(componentStatus, internal.Parser().Type("io.k8s.api.core.v1.ComponentStatus"), fieldManager, b, subresource)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -153,7 +153,7 @@ func (b *ComponentStatusApplyConfiguration) WithGeneration(value int64) *Compone
|
|||||||
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
|
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
|
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
|
||||||
func (b *ComponentStatusApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ComponentStatusApplyConfiguration {
|
func (b *ComponentStatusApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ComponentStatusApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
|
b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
|
||||||
return b
|
return b
|
||||||
@ -162,7 +162,7 @@ func (b *ComponentStatusApplyConfiguration) WithCreationTimestamp(value metav1.T
|
|||||||
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
|
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
|
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
|
||||||
func (b *ComponentStatusApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ComponentStatusApplyConfiguration {
|
func (b *ComponentStatusApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ComponentStatusApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
|
b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
|
||||||
return b
|
return b
|
||||||
@ -210,7 +210,7 @@ func (b *ComponentStatusApplyConfiguration) WithAnnotations(entries map[string]s
|
|||||||
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
|
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
|
||||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
// 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 OwnerReferences field.
|
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
|
||||||
func (b *ComponentStatusApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ComponentStatusApplyConfiguration {
|
func (b *ComponentStatusApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ComponentStatusApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
for i := range values {
|
for i := range values {
|
||||||
if values[i] == nil {
|
if values[i] == nil {
|
||||||
@ -234,7 +234,7 @@ func (b *ComponentStatusApplyConfiguration) WithFinalizers(values ...string) *Co
|
|||||||
|
|
||||||
func (b *ComponentStatusApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
|
func (b *ComponentStatusApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
|
||||||
if b.ObjectMetaApplyConfiguration == nil {
|
if b.ObjectMetaApplyConfiguration == nil {
|
||||||
b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
|
b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,21 +20,21 @@ package v1
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
corev1 "k8s.io/api/core/v1"
|
corev1 "k8s.io/api/core/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
types "k8s.io/apimachinery/pkg/types"
|
types "k8s.io/apimachinery/pkg/types"
|
||||||
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
|
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
|
||||||
internal "k8s.io/client-go/applyconfigurations/internal"
|
internal "k8s.io/client-go/applyconfigurations/internal"
|
||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ConfigMapApplyConfiguration represents a declarative configuration of the ConfigMap type for use
|
// ConfigMapApplyConfiguration represents a declarative configuration of the ConfigMap type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ConfigMapApplyConfiguration struct {
|
type ConfigMapApplyConfiguration struct {
|
||||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||||
Immutable *bool `json:"immutable,omitempty"`
|
Immutable *bool `json:"immutable,omitempty"`
|
||||||
Data map[string]string `json:"data,omitempty"`
|
Data map[string]string `json:"data,omitempty"`
|
||||||
BinaryData map[string][]byte `json:"binaryData,omitempty"`
|
BinaryData map[string][]byte `json:"binaryData,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ConfigMap constructs a declarative configuration of the ConfigMap type for use with
|
// ConfigMap constructs a declarative configuration of the ConfigMap type for use with
|
||||||
@ -157,7 +157,7 @@ func (b *ConfigMapApplyConfiguration) WithGeneration(value int64) *ConfigMapAppl
|
|||||||
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
|
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
|
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
|
||||||
func (b *ConfigMapApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ConfigMapApplyConfiguration {
|
func (b *ConfigMapApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ConfigMapApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
|
b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
|
||||||
return b
|
return b
|
||||||
@ -166,7 +166,7 @@ func (b *ConfigMapApplyConfiguration) WithCreationTimestamp(value metav1.Time) *
|
|||||||
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
|
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
|
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
|
||||||
func (b *ConfigMapApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ConfigMapApplyConfiguration {
|
func (b *ConfigMapApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ConfigMapApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
|
b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
|
||||||
return b
|
return b
|
||||||
@ -214,7 +214,7 @@ func (b *ConfigMapApplyConfiguration) WithAnnotations(entries map[string]string)
|
|||||||
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
|
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
|
||||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
// 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 OwnerReferences field.
|
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
|
||||||
func (b *ConfigMapApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ConfigMapApplyConfiguration {
|
func (b *ConfigMapApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *ConfigMapApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
for i := range values {
|
for i := range values {
|
||||||
if values[i] == nil {
|
if values[i] == nil {
|
||||||
@ -238,7 +238,7 @@ func (b *ConfigMapApplyConfiguration) WithFinalizers(values ...string) *ConfigMa
|
|||||||
|
|
||||||
func (b *ConfigMapApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
|
func (b *ConfigMapApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
|
||||||
if b.ObjectMetaApplyConfiguration == nil {
|
if b.ObjectMetaApplyConfiguration == nil {
|
||||||
b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
|
b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,17 +19,17 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1 "k8s.io/api/core/v1"
|
corev1 "k8s.io/api/core/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ContainerPortApplyConfiguration represents a declarative configuration of the ContainerPort type for use
|
// ContainerPortApplyConfiguration represents a declarative configuration of the ContainerPort type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ContainerPortApplyConfiguration struct {
|
type ContainerPortApplyConfiguration struct {
|
||||||
Name *string `json:"name,omitempty"`
|
Name *string `json:"name,omitempty"`
|
||||||
HostPort *int32 `json:"hostPort,omitempty"`
|
HostPort *int32 `json:"hostPort,omitempty"`
|
||||||
ContainerPort *int32 `json:"containerPort,omitempty"`
|
ContainerPort *int32 `json:"containerPort,omitempty"`
|
||||||
Protocol *v1.Protocol `json:"protocol,omitempty"`
|
Protocol *corev1.Protocol `json:"protocol,omitempty"`
|
||||||
HostIP *string `json:"hostIP,omitempty"`
|
HostIP *string `json:"hostIP,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ContainerPortApplyConfiguration constructs a declarative configuration of the ContainerPort type for use with
|
// ContainerPortApplyConfiguration constructs a declarative configuration of the ContainerPort type for use with
|
||||||
@ -65,7 +65,7 @@ func (b *ContainerPortApplyConfiguration) WithContainerPort(value int32) *Contai
|
|||||||
// WithProtocol sets the Protocol field in the declarative configuration to the given value
|
// WithProtocol sets the Protocol field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the Protocol field is set to the value of the last call.
|
// If called multiple times, the Protocol field is set to the value of the last call.
|
||||||
func (b *ContainerPortApplyConfiguration) WithProtocol(value v1.Protocol) *ContainerPortApplyConfiguration {
|
func (b *ContainerPortApplyConfiguration) WithProtocol(value corev1.Protocol) *ContainerPortApplyConfiguration {
|
||||||
b.Protocol = &value
|
b.Protocol = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,14 +19,14 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1 "k8s.io/api/core/v1"
|
corev1 "k8s.io/api/core/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ContainerResizePolicyApplyConfiguration represents a declarative configuration of the ContainerResizePolicy type for use
|
// ContainerResizePolicyApplyConfiguration represents a declarative configuration of the ContainerResizePolicy type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ContainerResizePolicyApplyConfiguration struct {
|
type ContainerResizePolicyApplyConfiguration struct {
|
||||||
ResourceName *v1.ResourceName `json:"resourceName,omitempty"`
|
ResourceName *corev1.ResourceName `json:"resourceName,omitempty"`
|
||||||
RestartPolicy *v1.ResourceResizeRestartPolicy `json:"restartPolicy,omitempty"`
|
RestartPolicy *corev1.ResourceResizeRestartPolicy `json:"restartPolicy,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ContainerResizePolicyApplyConfiguration constructs a declarative configuration of the ContainerResizePolicy type for use with
|
// ContainerResizePolicyApplyConfiguration constructs a declarative configuration of the ContainerResizePolicy type for use with
|
||||||
@ -38,7 +38,7 @@ func ContainerResizePolicy() *ContainerResizePolicyApplyConfiguration {
|
|||||||
// WithResourceName sets the ResourceName field in the declarative configuration to the given value
|
// WithResourceName sets the ResourceName field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the ResourceName field is set to the value of the last call.
|
// If called multiple times, the ResourceName field is set to the value of the last call.
|
||||||
func (b *ContainerResizePolicyApplyConfiguration) WithResourceName(value v1.ResourceName) *ContainerResizePolicyApplyConfiguration {
|
func (b *ContainerResizePolicyApplyConfiguration) WithResourceName(value corev1.ResourceName) *ContainerResizePolicyApplyConfiguration {
|
||||||
b.ResourceName = &value
|
b.ResourceName = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
@ -46,7 +46,7 @@ func (b *ContainerResizePolicyApplyConfiguration) WithResourceName(value v1.Reso
|
|||||||
// WithRestartPolicy sets the RestartPolicy field in the declarative configuration to the given value
|
// WithRestartPolicy sets the RestartPolicy field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the RestartPolicy field is set to the value of the last call.
|
// If called multiple times, the RestartPolicy field is set to the value of the last call.
|
||||||
func (b *ContainerResizePolicyApplyConfiguration) WithRestartPolicy(value v1.ResourceResizeRestartPolicy) *ContainerResizePolicyApplyConfiguration {
|
func (b *ContainerResizePolicyApplyConfiguration) WithRestartPolicy(value corev1.ResourceResizeRestartPolicy) *ContainerResizePolicyApplyConfiguration {
|
||||||
b.RestartPolicy = &value
|
b.RestartPolicy = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,13 +19,13 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ContainerStateRunningApplyConfiguration represents a declarative configuration of the ContainerStateRunning type for use
|
// ContainerStateRunningApplyConfiguration represents a declarative configuration of the ContainerStateRunning type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ContainerStateRunningApplyConfiguration struct {
|
type ContainerStateRunningApplyConfiguration struct {
|
||||||
StartedAt *v1.Time `json:"startedAt,omitempty"`
|
StartedAt *metav1.Time `json:"startedAt,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ContainerStateRunningApplyConfiguration constructs a declarative configuration of the ContainerStateRunning type for use with
|
// ContainerStateRunningApplyConfiguration constructs a declarative configuration of the ContainerStateRunning type for use with
|
||||||
@ -37,7 +37,7 @@ func ContainerStateRunning() *ContainerStateRunningApplyConfiguration {
|
|||||||
// WithStartedAt sets the StartedAt field in the declarative configuration to the given value
|
// WithStartedAt sets the StartedAt field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the StartedAt field is set to the value of the last call.
|
// If called multiple times, the StartedAt field is set to the value of the last call.
|
||||||
func (b *ContainerStateRunningApplyConfiguration) WithStartedAt(value v1.Time) *ContainerStateRunningApplyConfiguration {
|
func (b *ContainerStateRunningApplyConfiguration) WithStartedAt(value metav1.Time) *ContainerStateRunningApplyConfiguration {
|
||||||
b.StartedAt = &value
|
b.StartedAt = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,19 +19,19 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ContainerStateTerminatedApplyConfiguration represents a declarative configuration of the ContainerStateTerminated type for use
|
// ContainerStateTerminatedApplyConfiguration represents a declarative configuration of the ContainerStateTerminated type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type ContainerStateTerminatedApplyConfiguration struct {
|
type ContainerStateTerminatedApplyConfiguration struct {
|
||||||
ExitCode *int32 `json:"exitCode,omitempty"`
|
ExitCode *int32 `json:"exitCode,omitempty"`
|
||||||
Signal *int32 `json:"signal,omitempty"`
|
Signal *int32 `json:"signal,omitempty"`
|
||||||
Reason *string `json:"reason,omitempty"`
|
Reason *string `json:"reason,omitempty"`
|
||||||
Message *string `json:"message,omitempty"`
|
Message *string `json:"message,omitempty"`
|
||||||
StartedAt *v1.Time `json:"startedAt,omitempty"`
|
StartedAt *metav1.Time `json:"startedAt,omitempty"`
|
||||||
FinishedAt *v1.Time `json:"finishedAt,omitempty"`
|
FinishedAt *metav1.Time `json:"finishedAt,omitempty"`
|
||||||
ContainerID *string `json:"containerID,omitempty"`
|
ContainerID *string `json:"containerID,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ContainerStateTerminatedApplyConfiguration constructs a declarative configuration of the ContainerStateTerminated type for use with
|
// ContainerStateTerminatedApplyConfiguration constructs a declarative configuration of the ContainerStateTerminated type for use with
|
||||||
@ -75,7 +75,7 @@ func (b *ContainerStateTerminatedApplyConfiguration) WithMessage(value string) *
|
|||||||
// WithStartedAt sets the StartedAt field in the declarative configuration to the given value
|
// WithStartedAt sets the StartedAt field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the StartedAt field is set to the value of the last call.
|
// If called multiple times, the StartedAt field is set to the value of the last call.
|
||||||
func (b *ContainerStateTerminatedApplyConfiguration) WithStartedAt(value v1.Time) *ContainerStateTerminatedApplyConfiguration {
|
func (b *ContainerStateTerminatedApplyConfiguration) WithStartedAt(value metav1.Time) *ContainerStateTerminatedApplyConfiguration {
|
||||||
b.StartedAt = &value
|
b.StartedAt = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
@ -83,7 +83,7 @@ func (b *ContainerStateTerminatedApplyConfiguration) WithStartedAt(value v1.Time
|
|||||||
// WithFinishedAt sets the FinishedAt field in the declarative configuration to the given value
|
// WithFinishedAt sets the FinishedAt field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the FinishedAt field is set to the value of the last call.
|
// If called multiple times, the FinishedAt field is set to the value of the last call.
|
||||||
func (b *ContainerStateTerminatedApplyConfiguration) WithFinishedAt(value v1.Time) *ContainerStateTerminatedApplyConfiguration {
|
func (b *ContainerStateTerminatedApplyConfiguration) WithFinishedAt(value metav1.Time) *ContainerStateTerminatedApplyConfiguration {
|
||||||
b.FinishedAt = &value
|
b.FinishedAt = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,15 +19,15 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1 "k8s.io/api/core/v1"
|
corev1 "k8s.io/api/core/v1"
|
||||||
resource "k8s.io/apimachinery/pkg/api/resource"
|
resource "k8s.io/apimachinery/pkg/api/resource"
|
||||||
)
|
)
|
||||||
|
|
||||||
// EmptyDirVolumeSourceApplyConfiguration represents a declarative configuration of the EmptyDirVolumeSource type for use
|
// EmptyDirVolumeSourceApplyConfiguration represents a declarative configuration of the EmptyDirVolumeSource type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type EmptyDirVolumeSourceApplyConfiguration struct {
|
type EmptyDirVolumeSourceApplyConfiguration struct {
|
||||||
Medium *v1.StorageMedium `json:"medium,omitempty"`
|
Medium *corev1.StorageMedium `json:"medium,omitempty"`
|
||||||
SizeLimit *resource.Quantity `json:"sizeLimit,omitempty"`
|
SizeLimit *resource.Quantity `json:"sizeLimit,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// EmptyDirVolumeSourceApplyConfiguration constructs a declarative configuration of the EmptyDirVolumeSource type for use with
|
// EmptyDirVolumeSourceApplyConfiguration constructs a declarative configuration of the EmptyDirVolumeSource type for use with
|
||||||
@ -39,7 +39,7 @@ func EmptyDirVolumeSource() *EmptyDirVolumeSourceApplyConfiguration {
|
|||||||
// WithMedium sets the Medium field in the declarative configuration to the given value
|
// WithMedium sets the Medium field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the Medium field is set to the value of the last call.
|
// If called multiple times, the Medium field is set to the value of the last call.
|
||||||
func (b *EmptyDirVolumeSourceApplyConfiguration) WithMedium(value v1.StorageMedium) *EmptyDirVolumeSourceApplyConfiguration {
|
func (b *EmptyDirVolumeSourceApplyConfiguration) WithMedium(value corev1.StorageMedium) *EmptyDirVolumeSourceApplyConfiguration {
|
||||||
b.Medium = &value
|
b.Medium = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,16 +19,16 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1 "k8s.io/api/core/v1"
|
corev1 "k8s.io/api/core/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// EndpointPortApplyConfiguration represents a declarative configuration of the EndpointPort type for use
|
// EndpointPortApplyConfiguration represents a declarative configuration of the EndpointPort type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type EndpointPortApplyConfiguration struct {
|
type EndpointPortApplyConfiguration struct {
|
||||||
Name *string `json:"name,omitempty"`
|
Name *string `json:"name,omitempty"`
|
||||||
Port *int32 `json:"port,omitempty"`
|
Port *int32 `json:"port,omitempty"`
|
||||||
Protocol *v1.Protocol `json:"protocol,omitempty"`
|
Protocol *corev1.Protocol `json:"protocol,omitempty"`
|
||||||
AppProtocol *string `json:"appProtocol,omitempty"`
|
AppProtocol *string `json:"appProtocol,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// EndpointPortApplyConfiguration constructs a declarative configuration of the EndpointPort type for use with
|
// EndpointPortApplyConfiguration constructs a declarative configuration of the EndpointPort type for use with
|
||||||
@ -56,7 +56,7 @@ func (b *EndpointPortApplyConfiguration) WithPort(value int32) *EndpointPortAppl
|
|||||||
// WithProtocol sets the Protocol field in the declarative configuration to the given value
|
// WithProtocol sets the Protocol field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the Protocol field is set to the value of the last call.
|
// If called multiple times, the Protocol field is set to the value of the last call.
|
||||||
func (b *EndpointPortApplyConfiguration) WithProtocol(value v1.Protocol) *EndpointPortApplyConfiguration {
|
func (b *EndpointPortApplyConfiguration) WithProtocol(value corev1.Protocol) *EndpointPortApplyConfiguration {
|
||||||
b.Protocol = &value
|
b.Protocol = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,20 +19,20 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
apicorev1 "k8s.io/api/core/v1"
|
corev1 "k8s.io/api/core/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
types "k8s.io/apimachinery/pkg/types"
|
types "k8s.io/apimachinery/pkg/types"
|
||||||
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
|
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
|
||||||
internal "k8s.io/client-go/applyconfigurations/internal"
|
internal "k8s.io/client-go/applyconfigurations/internal"
|
||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// EndpointsApplyConfiguration represents a declarative configuration of the Endpoints type for use
|
// EndpointsApplyConfiguration represents a declarative configuration of the Endpoints type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type EndpointsApplyConfiguration struct {
|
type EndpointsApplyConfiguration struct {
|
||||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||||
Subsets []EndpointSubsetApplyConfiguration `json:"subsets,omitempty"`
|
Subsets []EndpointSubsetApplyConfiguration `json:"subsets,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Endpoints constructs a declarative configuration of the Endpoints type for use with
|
// Endpoints constructs a declarative configuration of the Endpoints type for use with
|
||||||
@ -57,18 +57,18 @@ func Endpoints(name, namespace string) *EndpointsApplyConfiguration {
|
|||||||
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
|
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
|
||||||
// applied if another fieldManager has updated or force applied any of the previously applied fields.
|
// applied if another fieldManager has updated or force applied any of the previously applied fields.
|
||||||
// Experimental!
|
// Experimental!
|
||||||
func ExtractEndpoints(endpoints *apicorev1.Endpoints, fieldManager string) (*EndpointsApplyConfiguration, error) {
|
func ExtractEndpoints(endpoints *corev1.Endpoints, fieldManager string) (*EndpointsApplyConfiguration, error) {
|
||||||
return extractEndpoints(endpoints, fieldManager, "")
|
return extractEndpoints(endpoints, fieldManager, "")
|
||||||
}
|
}
|
||||||
|
|
||||||
// ExtractEndpointsStatus is the same as ExtractEndpoints except
|
// ExtractEndpointsStatus is the same as ExtractEndpoints except
|
||||||
// that it extracts the status subresource applied configuration.
|
// that it extracts the status subresource applied configuration.
|
||||||
// Experimental!
|
// Experimental!
|
||||||
func ExtractEndpointsStatus(endpoints *apicorev1.Endpoints, fieldManager string) (*EndpointsApplyConfiguration, error) {
|
func ExtractEndpointsStatus(endpoints *corev1.Endpoints, fieldManager string) (*EndpointsApplyConfiguration, error) {
|
||||||
return extractEndpoints(endpoints, fieldManager, "status")
|
return extractEndpoints(endpoints, fieldManager, "status")
|
||||||
}
|
}
|
||||||
|
|
||||||
func extractEndpoints(endpoints *apicorev1.Endpoints, fieldManager string, subresource string) (*EndpointsApplyConfiguration, error) {
|
func extractEndpoints(endpoints *corev1.Endpoints, fieldManager string, subresource string) (*EndpointsApplyConfiguration, error) {
|
||||||
b := &EndpointsApplyConfiguration{}
|
b := &EndpointsApplyConfiguration{}
|
||||||
err := managedfields.ExtractInto(endpoints, internal.Parser().Type("io.k8s.api.core.v1.Endpoints"), fieldManager, b, subresource)
|
err := managedfields.ExtractInto(endpoints, internal.Parser().Type("io.k8s.api.core.v1.Endpoints"), fieldManager, b, subresource)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -155,7 +155,7 @@ func (b *EndpointsApplyConfiguration) WithGeneration(value int64) *EndpointsAppl
|
|||||||
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
|
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
|
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
|
||||||
func (b *EndpointsApplyConfiguration) WithCreationTimestamp(value metav1.Time) *EndpointsApplyConfiguration {
|
func (b *EndpointsApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *EndpointsApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
|
b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
|
||||||
return b
|
return b
|
||||||
@ -164,7 +164,7 @@ func (b *EndpointsApplyConfiguration) WithCreationTimestamp(value metav1.Time) *
|
|||||||
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
|
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
|
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
|
||||||
func (b *EndpointsApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *EndpointsApplyConfiguration {
|
func (b *EndpointsApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *EndpointsApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
|
b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
|
||||||
return b
|
return b
|
||||||
@ -212,7 +212,7 @@ func (b *EndpointsApplyConfiguration) WithAnnotations(entries map[string]string)
|
|||||||
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
|
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
|
||||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
// 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 OwnerReferences field.
|
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
|
||||||
func (b *EndpointsApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *EndpointsApplyConfiguration {
|
func (b *EndpointsApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *EndpointsApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
for i := range values {
|
for i := range values {
|
||||||
if values[i] == nil {
|
if values[i] == nil {
|
||||||
@ -236,7 +236,7 @@ func (b *EndpointsApplyConfiguration) WithFinalizers(values ...string) *Endpoint
|
|||||||
|
|
||||||
func (b *EndpointsApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
|
func (b *EndpointsApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
|
||||||
if b.ObjectMetaApplyConfiguration == nil {
|
if b.ObjectMetaApplyConfiguration == nil {
|
||||||
b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
|
b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,33 +19,33 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
apicorev1 "k8s.io/api/core/v1"
|
corev1 "k8s.io/api/core/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
apismetav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
types "k8s.io/apimachinery/pkg/types"
|
types "k8s.io/apimachinery/pkg/types"
|
||||||
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
|
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
|
||||||
internal "k8s.io/client-go/applyconfigurations/internal"
|
internal "k8s.io/client-go/applyconfigurations/internal"
|
||||||
v1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
metav1 "k8s.io/client-go/applyconfigurations/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// EventApplyConfiguration represents a declarative configuration of the Event type for use
|
// EventApplyConfiguration represents a declarative configuration of the Event type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type EventApplyConfiguration struct {
|
type EventApplyConfiguration struct {
|
||||||
v1.TypeMetaApplyConfiguration `json:",inline"`
|
metav1.TypeMetaApplyConfiguration `json:",inline"`
|
||||||
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
|
||||||
InvolvedObject *ObjectReferenceApplyConfiguration `json:"involvedObject,omitempty"`
|
InvolvedObject *ObjectReferenceApplyConfiguration `json:"involvedObject,omitempty"`
|
||||||
Reason *string `json:"reason,omitempty"`
|
Reason *string `json:"reason,omitempty"`
|
||||||
Message *string `json:"message,omitempty"`
|
Message *string `json:"message,omitempty"`
|
||||||
Source *EventSourceApplyConfiguration `json:"source,omitempty"`
|
Source *EventSourceApplyConfiguration `json:"source,omitempty"`
|
||||||
FirstTimestamp *metav1.Time `json:"firstTimestamp,omitempty"`
|
FirstTimestamp *apismetav1.Time `json:"firstTimestamp,omitempty"`
|
||||||
LastTimestamp *metav1.Time `json:"lastTimestamp,omitempty"`
|
LastTimestamp *apismetav1.Time `json:"lastTimestamp,omitempty"`
|
||||||
Count *int32 `json:"count,omitempty"`
|
Count *int32 `json:"count,omitempty"`
|
||||||
Type *string `json:"type,omitempty"`
|
Type *string `json:"type,omitempty"`
|
||||||
EventTime *metav1.MicroTime `json:"eventTime,omitempty"`
|
EventTime *apismetav1.MicroTime `json:"eventTime,omitempty"`
|
||||||
Series *EventSeriesApplyConfiguration `json:"series,omitempty"`
|
Series *EventSeriesApplyConfiguration `json:"series,omitempty"`
|
||||||
Action *string `json:"action,omitempty"`
|
Action *string `json:"action,omitempty"`
|
||||||
Related *ObjectReferenceApplyConfiguration `json:"related,omitempty"`
|
Related *ObjectReferenceApplyConfiguration `json:"related,omitempty"`
|
||||||
ReportingController *string `json:"reportingComponent,omitempty"`
|
ReportingController *string `json:"reportingComponent,omitempty"`
|
||||||
ReportingInstance *string `json:"reportingInstance,omitempty"`
|
ReportingInstance *string `json:"reportingInstance,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Event constructs a declarative configuration of the Event type for use with
|
// Event constructs a declarative configuration of the Event type for use with
|
||||||
@ -70,18 +70,18 @@ func Event(name, namespace string) *EventApplyConfiguration {
|
|||||||
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
|
// Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously
|
||||||
// applied if another fieldManager has updated or force applied any of the previously applied fields.
|
// applied if another fieldManager has updated or force applied any of the previously applied fields.
|
||||||
// Experimental!
|
// Experimental!
|
||||||
func ExtractEvent(event *apicorev1.Event, fieldManager string) (*EventApplyConfiguration, error) {
|
func ExtractEvent(event *corev1.Event, fieldManager string) (*EventApplyConfiguration, error) {
|
||||||
return extractEvent(event, fieldManager, "")
|
return extractEvent(event, fieldManager, "")
|
||||||
}
|
}
|
||||||
|
|
||||||
// ExtractEventStatus is the same as ExtractEvent except
|
// ExtractEventStatus is the same as ExtractEvent except
|
||||||
// that it extracts the status subresource applied configuration.
|
// that it extracts the status subresource applied configuration.
|
||||||
// Experimental!
|
// Experimental!
|
||||||
func ExtractEventStatus(event *apicorev1.Event, fieldManager string) (*EventApplyConfiguration, error) {
|
func ExtractEventStatus(event *corev1.Event, fieldManager string) (*EventApplyConfiguration, error) {
|
||||||
return extractEvent(event, fieldManager, "status")
|
return extractEvent(event, fieldManager, "status")
|
||||||
}
|
}
|
||||||
|
|
||||||
func extractEvent(event *apicorev1.Event, fieldManager string, subresource string) (*EventApplyConfiguration, error) {
|
func extractEvent(event *corev1.Event, fieldManager string, subresource string) (*EventApplyConfiguration, error) {
|
||||||
b := &EventApplyConfiguration{}
|
b := &EventApplyConfiguration{}
|
||||||
err := managedfields.ExtractInto(event, internal.Parser().Type("io.k8s.api.core.v1.Event"), fieldManager, b, subresource)
|
err := managedfields.ExtractInto(event, internal.Parser().Type("io.k8s.api.core.v1.Event"), fieldManager, b, subresource)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -168,7 +168,7 @@ func (b *EventApplyConfiguration) WithGeneration(value int64) *EventApplyConfigu
|
|||||||
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
|
// WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
|
// If called multiple times, the CreationTimestamp field is set to the value of the last call.
|
||||||
func (b *EventApplyConfiguration) WithCreationTimestamp(value metav1.Time) *EventApplyConfiguration {
|
func (b *EventApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *EventApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
|
b.ObjectMetaApplyConfiguration.CreationTimestamp = &value
|
||||||
return b
|
return b
|
||||||
@ -177,7 +177,7 @@ func (b *EventApplyConfiguration) WithCreationTimestamp(value metav1.Time) *Even
|
|||||||
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
|
// WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
|
// If called multiple times, the DeletionTimestamp field is set to the value of the last call.
|
||||||
func (b *EventApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *EventApplyConfiguration {
|
func (b *EventApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *EventApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
|
b.ObjectMetaApplyConfiguration.DeletionTimestamp = &value
|
||||||
return b
|
return b
|
||||||
@ -225,7 +225,7 @@ func (b *EventApplyConfiguration) WithAnnotations(entries map[string]string) *Ev
|
|||||||
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
|
// WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration
|
||||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
// 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 OwnerReferences field.
|
// If called multiple times, values provided by each call will be appended to the OwnerReferences field.
|
||||||
func (b *EventApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *EventApplyConfiguration {
|
func (b *EventApplyConfiguration) WithOwnerReferences(values ...*metav1.OwnerReferenceApplyConfiguration) *EventApplyConfiguration {
|
||||||
b.ensureObjectMetaApplyConfigurationExists()
|
b.ensureObjectMetaApplyConfigurationExists()
|
||||||
for i := range values {
|
for i := range values {
|
||||||
if values[i] == nil {
|
if values[i] == nil {
|
||||||
@ -249,7 +249,7 @@ func (b *EventApplyConfiguration) WithFinalizers(values ...string) *EventApplyCo
|
|||||||
|
|
||||||
func (b *EventApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
|
func (b *EventApplyConfiguration) ensureObjectMetaApplyConfigurationExists() {
|
||||||
if b.ObjectMetaApplyConfiguration == nil {
|
if b.ObjectMetaApplyConfiguration == nil {
|
||||||
b.ObjectMetaApplyConfiguration = &v1.ObjectMetaApplyConfiguration{}
|
b.ObjectMetaApplyConfiguration = &metav1.ObjectMetaApplyConfiguration{}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -288,7 +288,7 @@ func (b *EventApplyConfiguration) WithSource(value *EventSourceApplyConfiguratio
|
|||||||
// WithFirstTimestamp sets the FirstTimestamp field in the declarative configuration to the given value
|
// WithFirstTimestamp sets the FirstTimestamp field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the FirstTimestamp field is set to the value of the last call.
|
// If called multiple times, the FirstTimestamp field is set to the value of the last call.
|
||||||
func (b *EventApplyConfiguration) WithFirstTimestamp(value metav1.Time) *EventApplyConfiguration {
|
func (b *EventApplyConfiguration) WithFirstTimestamp(value apismetav1.Time) *EventApplyConfiguration {
|
||||||
b.FirstTimestamp = &value
|
b.FirstTimestamp = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
@ -296,7 +296,7 @@ func (b *EventApplyConfiguration) WithFirstTimestamp(value metav1.Time) *EventAp
|
|||||||
// WithLastTimestamp sets the LastTimestamp field in the declarative configuration to the given value
|
// WithLastTimestamp sets the LastTimestamp field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the LastTimestamp field is set to the value of the last call.
|
// If called multiple times, the LastTimestamp field is set to the value of the last call.
|
||||||
func (b *EventApplyConfiguration) WithLastTimestamp(value metav1.Time) *EventApplyConfiguration {
|
func (b *EventApplyConfiguration) WithLastTimestamp(value apismetav1.Time) *EventApplyConfiguration {
|
||||||
b.LastTimestamp = &value
|
b.LastTimestamp = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
@ -320,7 +320,7 @@ func (b *EventApplyConfiguration) WithType(value string) *EventApplyConfiguratio
|
|||||||
// WithEventTime sets the EventTime field in the declarative configuration to the given value
|
// WithEventTime sets the EventTime field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the EventTime field is set to the value of the last call.
|
// If called multiple times, the EventTime field is set to the value of the last call.
|
||||||
func (b *EventApplyConfiguration) WithEventTime(value metav1.MicroTime) *EventApplyConfiguration {
|
func (b *EventApplyConfiguration) WithEventTime(value apismetav1.MicroTime) *EventApplyConfiguration {
|
||||||
b.EventTime = &value
|
b.EventTime = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
@ -19,14 +19,14 @@ limitations under the License.
|
|||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// EventSeriesApplyConfiguration represents a declarative configuration of the EventSeries type for use
|
// EventSeriesApplyConfiguration represents a declarative configuration of the EventSeries type for use
|
||||||
// with apply.
|
// with apply.
|
||||||
type EventSeriesApplyConfiguration struct {
|
type EventSeriesApplyConfiguration struct {
|
||||||
Count *int32 `json:"count,omitempty"`
|
Count *int32 `json:"count,omitempty"`
|
||||||
LastObservedTime *v1.MicroTime `json:"lastObservedTime,omitempty"`
|
LastObservedTime *metav1.MicroTime `json:"lastObservedTime,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// EventSeriesApplyConfiguration constructs a declarative configuration of the EventSeries type for use with
|
// EventSeriesApplyConfiguration constructs a declarative configuration of the EventSeries type for use with
|
||||||
@ -46,7 +46,7 @@ func (b *EventSeriesApplyConfiguration) WithCount(value int32) *EventSeriesApply
|
|||||||
// WithLastObservedTime sets the LastObservedTime field in the declarative configuration to the given value
|
// WithLastObservedTime sets the LastObservedTime field in the declarative configuration to the given value
|
||||||
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
||||||
// If called multiple times, the LastObservedTime field is set to the value of the last call.
|
// If called multiple times, the LastObservedTime field is set to the value of the last call.
|
||||||
func (b *EventSeriesApplyConfiguration) WithLastObservedTime(value v1.MicroTime) *EventSeriesApplyConfiguration {
|
func (b *EventSeriesApplyConfiguration) WithLastObservedTime(value metav1.MicroTime) *EventSeriesApplyConfiguration {
|
||||||
b.LastObservedTime = &value
|
b.LastObservedTime = &value
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user