package v1beta1

import "k8s.io/client-go/applyconfigurations/extensions/v1beta1"

Index

Types

type DaemonSetApplyConfiguration

type DaemonSetApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration `json:",inline"`
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	// The desired behavior of this daemon set.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	Spec *DaemonSetSpecApplyConfiguration `json:"spec,omitempty"`
	// The current status of this daemon set. This data may be
	// out of date by some window of time.
	// Populated by the system.
	// Read-only.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	Status *DaemonSetStatusApplyConfiguration `json:"status,omitempty"`
}

DaemonSetApplyConfiguration represents a declarative configuration of the DaemonSet type for use with apply.

DEPRECATED - This group version of DaemonSet is deprecated by apps/v1beta2/DaemonSet. See the release notes for more information. DaemonSet represents the configuration of a daemon set.

func DaemonSet

func DaemonSet(name, namespace string) *DaemonSetApplyConfiguration

DaemonSet constructs a declarative configuration of the DaemonSet type for use with apply.

func ExtractDaemonSet

func ExtractDaemonSet(daemonSet *extensionsv1beta1.DaemonSet, fieldManager string) (*DaemonSetApplyConfiguration, error)

ExtractDaemonSet extracts the applied configuration owned by fieldManager from daemonSet. If no managedFields are found in daemonSet for fieldManager, a DaemonSetApplyConfiguration is returned with only the Name, Namespace (if applicable), APIVersion and Kind populated. It is possible that no managed fields were found for because other field managers have taken ownership of all the fields previously owned by fieldManager, or because the fieldManager never owned fields any fields. daemonSet must be a unmodified DaemonSet API object that was retrieved from the Kubernetes API. ExtractDaemonSet provides a way to perform a extract/modify-in-place/apply workflow. 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.

func ExtractDaemonSetFrom

func ExtractDaemonSetFrom(daemonSet *extensionsv1beta1.DaemonSet, fieldManager string, subresource string) (*DaemonSetApplyConfiguration, error)

ExtractDaemonSetFrom extracts the applied configuration owned by fieldManager from daemonSet for the specified subresource. Pass an empty string for subresource to extract the main resource. Common subresources include "status", "scale", etc. daemonSet must be a unmodified DaemonSet API object that was retrieved from the Kubernetes API. ExtractDaemonSetFrom provides a way to perform a extract/modify-in-place/apply workflow. 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.

func ExtractDaemonSetStatus

func ExtractDaemonSetStatus(daemonSet *extensionsv1beta1.DaemonSet, fieldManager string) (*DaemonSetApplyConfiguration, error)

ExtractDaemonSetStatus extracts the applied configuration owned by fieldManager from daemonSet for the status subresource.

func (*DaemonSetApplyConfiguration) GetAPIVersion

func (b *DaemonSetApplyConfiguration) GetAPIVersion() *string

GetAPIVersion retrieves the value of the APIVersion field in the declarative configuration.

func (*DaemonSetApplyConfiguration) GetKind

func (b *DaemonSetApplyConfiguration) GetKind() *string

GetKind retrieves the value of the Kind field in the declarative configuration.

func (*DaemonSetApplyConfiguration) GetName

func (b *DaemonSetApplyConfiguration) GetName() *string

GetName retrieves the value of the Name field in the declarative configuration.

func (*DaemonSetApplyConfiguration) GetNamespace

func (b *DaemonSetApplyConfiguration) GetNamespace() *string

GetNamespace retrieves the value of the Namespace field in the declarative configuration.

func (DaemonSetApplyConfiguration) IsApplyConfiguration

func (b DaemonSetApplyConfiguration) IsApplyConfiguration()

func (*DaemonSetApplyConfiguration) WithAPIVersion

WithAPIVersion sets the APIVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the APIVersion field is set to the value of the last call.

func (*DaemonSetApplyConfiguration) WithAnnotations

func (b *DaemonSetApplyConfiguration) WithAnnotations(entries map[string]string) *DaemonSetApplyConfiguration

WithAnnotations puts the entries into the Annotations field in the declarative configuration 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 Annotations field, overwriting an existing map entries in Annotations field with the same key.

func (*DaemonSetApplyConfiguration) WithCreationTimestamp

func (b *DaemonSetApplyConfiguration) WithCreationTimestamp(value metav1.Time) *DaemonSetApplyConfiguration

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. If called multiple times, the CreationTimestamp field is set to the value of the last call.

func (*DaemonSetApplyConfiguration) WithDeletionGracePeriodSeconds

func (b *DaemonSetApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *DaemonSetApplyConfiguration

WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.

func (*DaemonSetApplyConfiguration) WithDeletionTimestamp

func (b *DaemonSetApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *DaemonSetApplyConfiguration

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. If called multiple times, the DeletionTimestamp field is set to the value of the last call.

func (*DaemonSetApplyConfiguration) WithFinalizers

func (b *DaemonSetApplyConfiguration) WithFinalizers(values ...string) *DaemonSetApplyConfiguration

WithFinalizers adds the given value to the Finalizers field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Finalizers field.

func (*DaemonSetApplyConfiguration) WithGenerateName

WithGenerateName sets the GenerateName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the GenerateName field is set to the value of the last call.

func (*DaemonSetApplyConfiguration) WithGeneration

WithGeneration sets the Generation field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Generation field is set to the value of the last call.

func (*DaemonSetApplyConfiguration) WithKind

WithKind sets the Kind field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Kind field is set to the value of the last call.

func (*DaemonSetApplyConfiguration) WithLabels

WithLabels puts the entries into the Labels field in the declarative configuration 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 Labels field, overwriting an existing map entries in Labels field with the same key.

func (*DaemonSetApplyConfiguration) WithName

WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.

func (*DaemonSetApplyConfiguration) WithNamespace

WithNamespace sets the Namespace field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Namespace field is set to the value of the last call.

func (*DaemonSetApplyConfiguration) WithOwnerReferences

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. If called multiple times, values provided by each call will be appended to the OwnerReferences field.

func (*DaemonSetApplyConfiguration) WithResourceVersion

func (b *DaemonSetApplyConfiguration) WithResourceVersion(value string) *DaemonSetApplyConfiguration

WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ResourceVersion field is set to the value of the last call.

func (*DaemonSetApplyConfiguration) WithSpec

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. If called multiple times, the Spec field is set to the value of the last call.

func (*DaemonSetApplyConfiguration) WithStatus

WithStatus sets the Status field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Status field is set to the value of the last call.

func (*DaemonSetApplyConfiguration) WithUID

WithUID sets the UID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UID field is set to the value of the last call.

type DaemonSetConditionApplyConfiguration

type DaemonSetConditionApplyConfiguration struct {
	// Type of DaemonSet condition.
	Type *extensionsv1beta1.DaemonSetConditionType `json:"type,omitempty"`
	// Status of the condition, one of True, False, Unknown.
	Status *v1.ConditionStatus `json:"status,omitempty"`
	// Last time the condition transitioned from one status to another.
	LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
	// The reason for the condition's last transition.
	Reason *string `json:"reason,omitempty"`
	// A human readable message indicating details about the transition.
	Message *string `json:"message,omitempty"`
}

DaemonSetConditionApplyConfiguration represents a declarative configuration of the DaemonSetCondition type for use with apply.

TODO: Add valid condition types of a DaemonSet. DaemonSetCondition describes the state of a DaemonSet at a certain point.

func DaemonSetCondition

func DaemonSetCondition() *DaemonSetConditionApplyConfiguration

DaemonSetConditionApplyConfiguration constructs a declarative configuration of the DaemonSetCondition type for use with apply.

func (*DaemonSetConditionApplyConfiguration) WithLastTransitionTime

WithLastTransitionTime sets the LastTransitionTime field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the LastTransitionTime field is set to the value of the last call.

func (*DaemonSetConditionApplyConfiguration) WithMessage

WithMessage sets the Message field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Message field is set to the value of the last call.

func (*DaemonSetConditionApplyConfiguration) WithReason

WithReason sets the Reason field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Reason field is set to the value of the last call.

func (*DaemonSetConditionApplyConfiguration) WithStatus

WithStatus sets the Status field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Status field is set to the value of the last call.

func (*DaemonSetConditionApplyConfiguration) WithType

WithType sets the Type field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Type field is set to the value of the last call.

type DaemonSetSpecApplyConfiguration

type DaemonSetSpecApplyConfiguration struct {
	// A label query over pods that are managed by the daemon set.
	// Must match in order to be controlled.
	// If empty, defaulted to labels on Pod template.
	// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
	Selector *v1.LabelSelectorApplyConfiguration `json:"selector,omitempty"`
	// An object that describes the pod that will be created.
	// The DaemonSet will create exactly one copy of this pod on every node
	// that matches the template's node selector (or on every node if no node
	// selector is specified).
	// More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
	Template *corev1.PodTemplateSpecApplyConfiguration `json:"template,omitempty"`
	// An update strategy to replace existing DaemonSet pods with new pods.
	UpdateStrategy *DaemonSetUpdateStrategyApplyConfiguration `json:"updateStrategy,omitempty"`
	// The minimum number of seconds for which a newly created DaemonSet pod should
	// be ready without any of its container crashing, for it to be considered
	// available. Defaults to 0 (pod will be considered available as soon as it
	// is ready).
	MinReadySeconds *int32 `json:"minReadySeconds,omitempty"`
	// DEPRECATED.
	// A sequence number representing a specific generation of the template.
	// Populated by the system. It can be set only during the creation.
	TemplateGeneration *int64 `json:"templateGeneration,omitempty"`
	// The number of old history to retain to allow rollback.
	// This is a pointer to distinguish between explicit zero and not specified.
	// Defaults to 10.
	RevisionHistoryLimit *int32 `json:"revisionHistoryLimit,omitempty"`
}

DaemonSetSpecApplyConfiguration represents a declarative configuration of the DaemonSetSpec type for use with apply.

DaemonSetSpec is the specification of a daemon set.

func DaemonSetSpec

func DaemonSetSpec() *DaemonSetSpecApplyConfiguration

DaemonSetSpecApplyConfiguration constructs a declarative configuration of the DaemonSetSpec type for use with apply.

func (*DaemonSetSpecApplyConfiguration) WithMinReadySeconds

WithMinReadySeconds sets the MinReadySeconds field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the MinReadySeconds field is set to the value of the last call.

func (*DaemonSetSpecApplyConfiguration) WithRevisionHistoryLimit

func (b *DaemonSetSpecApplyConfiguration) WithRevisionHistoryLimit(value int32) *DaemonSetSpecApplyConfiguration

WithRevisionHistoryLimit sets the RevisionHistoryLimit field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the RevisionHistoryLimit field is set to the value of the last call.

func (*DaemonSetSpecApplyConfiguration) WithSelector

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. If called multiple times, the Selector field is set to the value of the last call.

func (*DaemonSetSpecApplyConfiguration) WithTemplate

WithTemplate sets the Template field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Template field is set to the value of the last call.

func (*DaemonSetSpecApplyConfiguration) WithTemplateGeneration

func (b *DaemonSetSpecApplyConfiguration) WithTemplateGeneration(value int64) *DaemonSetSpecApplyConfiguration

WithTemplateGeneration sets the TemplateGeneration field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the TemplateGeneration field is set to the value of the last call.

func (*DaemonSetSpecApplyConfiguration) WithUpdateStrategy

WithUpdateStrategy sets the UpdateStrategy field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UpdateStrategy field is set to the value of the last call.

type DaemonSetStatusApplyConfiguration

type DaemonSetStatusApplyConfiguration struct {
	// The number of nodes that are running at least 1
	// daemon pod and are supposed to run the daemon pod.
	// More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
	CurrentNumberScheduled *int32 `json:"currentNumberScheduled,omitempty"`
	// The number of nodes that are running the daemon pod, but are
	// not supposed to run the daemon pod.
	// More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
	NumberMisscheduled *int32 `json:"numberMisscheduled,omitempty"`
	// The total number of nodes that should be running the daemon
	// pod (including nodes correctly running the daemon pod).
	// More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
	DesiredNumberScheduled *int32 `json:"desiredNumberScheduled,omitempty"`
	// The number of nodes that should be running the daemon pod and have one
	// or more of the daemon pod running and ready.
	NumberReady *int32 `json:"numberReady,omitempty"`
	// The most recent generation observed by the daemon set controller.
	ObservedGeneration *int64 `json:"observedGeneration,omitempty"`
	// The total number of nodes that are running updated daemon pod
	UpdatedNumberScheduled *int32 `json:"updatedNumberScheduled,omitempty"`
	// The number of nodes that should be running the
	// daemon pod and have one or more of the daemon pod running and
	// available (ready for at least spec.minReadySeconds)
	NumberAvailable *int32 `json:"numberAvailable,omitempty"`
	// The number of nodes that should be running the
	// daemon pod and have none of the daemon pod running and available
	// (ready for at least spec.minReadySeconds)
	NumberUnavailable *int32 `json:"numberUnavailable,omitempty"`
	// Count of hash collisions for the DaemonSet. The DaemonSet controller
	// uses this field as a collision avoidance mechanism when it needs to
	// create the name for the newest ControllerRevision.
	CollisionCount *int32 `json:"collisionCount,omitempty"`
	// Represents the latest available observations of a DaemonSet's current state.
	Conditions []DaemonSetConditionApplyConfiguration `json:"conditions,omitempty"`
}

DaemonSetStatusApplyConfiguration represents a declarative configuration of the DaemonSetStatus type for use with apply.

DaemonSetStatus represents the current status of a daemon set.

func DaemonSetStatus

func DaemonSetStatus() *DaemonSetStatusApplyConfiguration

DaemonSetStatusApplyConfiguration constructs a declarative configuration of the DaemonSetStatus type for use with apply.

func (*DaemonSetStatusApplyConfiguration) WithCollisionCount

WithCollisionCount sets the CollisionCount field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CollisionCount field is set to the value of the last call.

func (*DaemonSetStatusApplyConfiguration) WithConditions

WithConditions adds the given value to the Conditions field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Conditions field.

func (*DaemonSetStatusApplyConfiguration) WithCurrentNumberScheduled

func (b *DaemonSetStatusApplyConfiguration) WithCurrentNumberScheduled(value int32) *DaemonSetStatusApplyConfiguration

WithCurrentNumberScheduled sets the CurrentNumberScheduled field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CurrentNumberScheduled field is set to the value of the last call.

func (*DaemonSetStatusApplyConfiguration) WithDesiredNumberScheduled

func (b *DaemonSetStatusApplyConfiguration) WithDesiredNumberScheduled(value int32) *DaemonSetStatusApplyConfiguration

WithDesiredNumberScheduled sets the DesiredNumberScheduled field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DesiredNumberScheduled field is set to the value of the last call.

func (*DaemonSetStatusApplyConfiguration) WithNumberAvailable

WithNumberAvailable sets the NumberAvailable field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the NumberAvailable field is set to the value of the last call.

func (*DaemonSetStatusApplyConfiguration) WithNumberMisscheduled

WithNumberMisscheduled sets the NumberMisscheduled field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the NumberMisscheduled field is set to the value of the last call.

func (*DaemonSetStatusApplyConfiguration) WithNumberReady

WithNumberReady sets the NumberReady field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the NumberReady field is set to the value of the last call.

func (*DaemonSetStatusApplyConfiguration) WithNumberUnavailable

WithNumberUnavailable sets the NumberUnavailable field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the NumberUnavailable field is set to the value of the last call.

func (*DaemonSetStatusApplyConfiguration) WithObservedGeneration

WithObservedGeneration sets the ObservedGeneration field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ObservedGeneration field is set to the value of the last call.

func (*DaemonSetStatusApplyConfiguration) WithUpdatedNumberScheduled

func (b *DaemonSetStatusApplyConfiguration) WithUpdatedNumberScheduled(value int32) *DaemonSetStatusApplyConfiguration

WithUpdatedNumberScheduled sets the UpdatedNumberScheduled field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UpdatedNumberScheduled field is set to the value of the last call.

type DaemonSetUpdateStrategyApplyConfiguration

type DaemonSetUpdateStrategyApplyConfiguration struct {
	// Type of daemon set update. Can be "RollingUpdate" or "OnDelete".
	// Default is OnDelete.
	Type *extensionsv1beta1.DaemonSetUpdateStrategyType `json:"type,omitempty"`
	// Rolling update config params. Present only if type = "RollingUpdate".
	// ---
	// TODO: Update this to follow our convention for oneOf, whatever we decide it
	// to be. Same as Deployment `strategy.rollingUpdate`.
	// See https://github.com/kubernetes/kubernetes/issues/35345
	RollingUpdate *RollingUpdateDaemonSetApplyConfiguration `json:"rollingUpdate,omitempty"`
}

DaemonSetUpdateStrategyApplyConfiguration represents a declarative configuration of the DaemonSetUpdateStrategy type for use with apply.

DaemonSetUpdateStrategy indicates the strategy that the DaemonSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy.

func DaemonSetUpdateStrategy

func DaemonSetUpdateStrategy() *DaemonSetUpdateStrategyApplyConfiguration

DaemonSetUpdateStrategyApplyConfiguration constructs a declarative configuration of the DaemonSetUpdateStrategy type for use with apply.

func (*DaemonSetUpdateStrategyApplyConfiguration) WithRollingUpdate

WithRollingUpdate sets the RollingUpdate field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the RollingUpdate field is set to the value of the last call.

func (*DaemonSetUpdateStrategyApplyConfiguration) WithType

WithType sets the Type field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Type field is set to the value of the last call.

type DeploymentApplyConfiguration

type DeploymentApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration `json:",inline"`
	// Standard object metadata.
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	// Specification of the desired behavior of the Deployment.
	Spec *DeploymentSpecApplyConfiguration `json:"spec,omitempty"`
	// Most recently observed status of the Deployment.
	Status *DeploymentStatusApplyConfiguration `json:"status,omitempty"`
}

DeploymentApplyConfiguration represents a declarative configuration of the Deployment type for use with apply.

DEPRECATED - This group version of Deployment is deprecated by apps/v1beta2/Deployment. See the release notes for more information. Deployment enables declarative updates for Pods and ReplicaSets.

func Deployment

func Deployment(name, namespace string) *DeploymentApplyConfiguration

Deployment constructs a declarative configuration of the Deployment type for use with apply.

func ExtractDeployment

func ExtractDeployment(deployment *extensionsv1beta1.Deployment, fieldManager string) (*DeploymentApplyConfiguration, error)

ExtractDeployment extracts the applied configuration owned by fieldManager from deployment. If no managedFields are found in deployment for fieldManager, a DeploymentApplyConfiguration is returned with only the Name, Namespace (if applicable), APIVersion and Kind populated. It is possible that no managed fields were found for because other field managers have taken ownership of all the fields previously owned by fieldManager, or because the fieldManager never owned fields any fields. deployment must be a unmodified Deployment API object that was retrieved from the Kubernetes API. ExtractDeployment provides a way to perform a extract/modify-in-place/apply workflow. 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.

func ExtractDeploymentFrom

func ExtractDeploymentFrom(deployment *extensionsv1beta1.Deployment, fieldManager string, subresource string) (*DeploymentApplyConfiguration, error)

ExtractDeploymentFrom extracts the applied configuration owned by fieldManager from deployment for the specified subresource. Pass an empty string for subresource to extract the main resource. Common subresources include "status", "scale", etc. deployment must be a unmodified Deployment API object that was retrieved from the Kubernetes API. ExtractDeploymentFrom provides a way to perform a extract/modify-in-place/apply workflow. 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.

func ExtractDeploymentScale

func ExtractDeploymentScale(deployment *extensionsv1beta1.Deployment, fieldManager string) (*DeploymentApplyConfiguration, error)

ExtractDeploymentScale extracts the applied configuration owned by fieldManager from deployment for the scale subresource.

func ExtractDeploymentStatus

func ExtractDeploymentStatus(deployment *extensionsv1beta1.Deployment, fieldManager string) (*DeploymentApplyConfiguration, error)

ExtractDeploymentStatus extracts the applied configuration owned by fieldManager from deployment for the status subresource.

func (*DeploymentApplyConfiguration) GetAPIVersion

func (b *DeploymentApplyConfiguration) GetAPIVersion() *string

GetAPIVersion retrieves the value of the APIVersion field in the declarative configuration.

func (*DeploymentApplyConfiguration) GetKind

func (b *DeploymentApplyConfiguration) GetKind() *string

GetKind retrieves the value of the Kind field in the declarative configuration.

func (*DeploymentApplyConfiguration) GetName

func (b *DeploymentApplyConfiguration) GetName() *string

GetName retrieves the value of the Name field in the declarative configuration.

func (*DeploymentApplyConfiguration) GetNamespace

func (b *DeploymentApplyConfiguration) GetNamespace() *string

GetNamespace retrieves the value of the Namespace field in the declarative configuration.

func (DeploymentApplyConfiguration) IsApplyConfiguration

func (b DeploymentApplyConfiguration) IsApplyConfiguration()

func (*DeploymentApplyConfiguration) WithAPIVersion

WithAPIVersion sets the APIVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the APIVersion field is set to the value of the last call.

func (*DeploymentApplyConfiguration) WithAnnotations

WithAnnotations puts the entries into the Annotations field in the declarative configuration 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 Annotations field, overwriting an existing map entries in Annotations field with the same key.

func (*DeploymentApplyConfiguration) WithCreationTimestamp

func (b *DeploymentApplyConfiguration) WithCreationTimestamp(value metav1.Time) *DeploymentApplyConfiguration

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. If called multiple times, the CreationTimestamp field is set to the value of the last call.

func (*DeploymentApplyConfiguration) WithDeletionGracePeriodSeconds

func (b *DeploymentApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *DeploymentApplyConfiguration

WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.

func (*DeploymentApplyConfiguration) WithDeletionTimestamp

func (b *DeploymentApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *DeploymentApplyConfiguration

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. If called multiple times, the DeletionTimestamp field is set to the value of the last call.

func (*DeploymentApplyConfiguration) WithFinalizers

WithFinalizers adds the given value to the Finalizers field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Finalizers field.

func (*DeploymentApplyConfiguration) WithGenerateName

WithGenerateName sets the GenerateName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the GenerateName field is set to the value of the last call.

func (*DeploymentApplyConfiguration) WithGeneration

WithGeneration sets the Generation field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Generation field is set to the value of the last call.

func (*DeploymentApplyConfiguration) WithKind

WithKind sets the Kind field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Kind field is set to the value of the last call.

func (*DeploymentApplyConfiguration) WithLabels

WithLabels puts the entries into the Labels field in the declarative configuration 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 Labels field, overwriting an existing map entries in Labels field with the same key.

func (*DeploymentApplyConfiguration) WithName

WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.

func (*DeploymentApplyConfiguration) WithNamespace

WithNamespace sets the Namespace field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Namespace field is set to the value of the last call.

func (*DeploymentApplyConfiguration) WithOwnerReferences

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. If called multiple times, values provided by each call will be appended to the OwnerReferences field.

func (*DeploymentApplyConfiguration) WithResourceVersion

func (b *DeploymentApplyConfiguration) WithResourceVersion(value string) *DeploymentApplyConfiguration

WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ResourceVersion field is set to the value of the last call.

func (*DeploymentApplyConfiguration) WithSpec

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. If called multiple times, the Spec field is set to the value of the last call.

func (*DeploymentApplyConfiguration) WithStatus

WithStatus sets the Status field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Status field is set to the value of the last call.

func (*DeploymentApplyConfiguration) WithUID

WithUID sets the UID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UID field is set to the value of the last call.

type DeploymentConditionApplyConfiguration

type DeploymentConditionApplyConfiguration struct {
	// Type of deployment condition.
	Type *extensionsv1beta1.DeploymentConditionType `json:"type,omitempty"`
	// Status of the condition, one of True, False, Unknown.
	Status *v1.ConditionStatus `json:"status,omitempty"`
	// The last time this condition was updated.
	LastUpdateTime *metav1.Time `json:"lastUpdateTime,omitempty"`
	// Last time the condition transitioned from one status to another.
	LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
	// The reason for the condition's last transition.
	Reason *string `json:"reason,omitempty"`
	// A human readable message indicating details about the transition.
	Message *string `json:"message,omitempty"`
}

DeploymentConditionApplyConfiguration represents a declarative configuration of the DeploymentCondition type for use with apply.

DeploymentCondition describes the state of a deployment at a certain point.

func DeploymentCondition

func DeploymentCondition() *DeploymentConditionApplyConfiguration

DeploymentConditionApplyConfiguration constructs a declarative configuration of the DeploymentCondition type for use with apply.

func (*DeploymentConditionApplyConfiguration) WithLastTransitionTime

WithLastTransitionTime sets the LastTransitionTime field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the LastTransitionTime field is set to the value of the last call.

func (*DeploymentConditionApplyConfiguration) WithLastUpdateTime

WithLastUpdateTime sets the LastUpdateTime field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the LastUpdateTime field is set to the value of the last call.

func (*DeploymentConditionApplyConfiguration) WithMessage

WithMessage sets the Message field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Message field is set to the value of the last call.

func (*DeploymentConditionApplyConfiguration) WithReason

WithReason sets the Reason field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Reason field is set to the value of the last call.

func (*DeploymentConditionApplyConfiguration) WithStatus

WithStatus sets the Status field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Status field is set to the value of the last call.

func (*DeploymentConditionApplyConfiguration) WithType

WithType sets the Type field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Type field is set to the value of the last call.

type DeploymentSpecApplyConfiguration

type DeploymentSpecApplyConfiguration struct {
	// Number of desired pods. This is a pointer to distinguish between explicit
	// zero and not specified. Defaults to 1.
	Replicas *int32 `json:"replicas,omitempty"`
	// Label selector for pods. Existing ReplicaSets whose pods are
	// selected by this will be the ones affected by this deployment.
	Selector *v1.LabelSelectorApplyConfiguration `json:"selector,omitempty"`
	// Template describes the pods that will be created.
	Template *corev1.PodTemplateSpecApplyConfiguration `json:"template,omitempty"`
	// The deployment strategy to use to replace existing pods with new ones.
	Strategy *DeploymentStrategyApplyConfiguration `json:"strategy,omitempty"`
	// Minimum number of seconds for which a newly created pod should be ready
	// without any of its container crashing, for it to be considered available.
	// Defaults to 0 (pod will be considered available as soon as it is ready)
	MinReadySeconds *int32 `json:"minReadySeconds,omitempty"`
	// The number of old ReplicaSets to retain to allow rollback.
	// This is a pointer to distinguish between explicit zero and not specified.
	// This is set to the max value of int32 (i.e. 2147483647) by default, which
	// means "retaining all old ReplicaSets".
	RevisionHistoryLimit *int32 `json:"revisionHistoryLimit,omitempty"`
	// Indicates that the deployment is paused and will not be processed by the
	// deployment controller.
	Paused *bool `json:"paused,omitempty"`
	// DEPRECATED.
	// The config this deployment is rolling back to. Will be cleared after rollback is done.
	RollbackTo *RollbackConfigApplyConfiguration `json:"rollbackTo,omitempty"`
	// The maximum time in seconds for a deployment to make progress before it
	// is considered to be failed. The deployment controller will continue to
	// process failed deployments and a condition with a ProgressDeadlineExceeded
	// reason will be surfaced in the deployment status. Note that progress will
	// not be estimated during the time a deployment is paused. This is set to
	// the max value of int32 (i.e. 2147483647) by default, which means "no deadline".
	ProgressDeadlineSeconds *int32 `json:"progressDeadlineSeconds,omitempty"`
}

DeploymentSpecApplyConfiguration represents a declarative configuration of the DeploymentSpec type for use with apply.

DeploymentSpec is the specification of the desired behavior of the Deployment.

func DeploymentSpec

func DeploymentSpec() *DeploymentSpecApplyConfiguration

DeploymentSpecApplyConfiguration constructs a declarative configuration of the DeploymentSpec type for use with apply.

func (*DeploymentSpecApplyConfiguration) WithMinReadySeconds

WithMinReadySeconds sets the MinReadySeconds field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the MinReadySeconds field is set to the value of the last call.

func (*DeploymentSpecApplyConfiguration) WithPaused

WithPaused sets the Paused field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Paused field is set to the value of the last call.

func (*DeploymentSpecApplyConfiguration) WithProgressDeadlineSeconds

func (b *DeploymentSpecApplyConfiguration) WithProgressDeadlineSeconds(value int32) *DeploymentSpecApplyConfiguration

WithProgressDeadlineSeconds sets the ProgressDeadlineSeconds field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ProgressDeadlineSeconds field is set to the value of the last call.

func (*DeploymentSpecApplyConfiguration) WithReplicas

WithReplicas sets the Replicas field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Replicas field is set to the value of the last call.

func (*DeploymentSpecApplyConfiguration) WithRevisionHistoryLimit

func (b *DeploymentSpecApplyConfiguration) WithRevisionHistoryLimit(value int32) *DeploymentSpecApplyConfiguration

WithRevisionHistoryLimit sets the RevisionHistoryLimit field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the RevisionHistoryLimit field is set to the value of the last call.

func (*DeploymentSpecApplyConfiguration) WithRollbackTo

WithRollbackTo sets the RollbackTo field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the RollbackTo field is set to the value of the last call.

func (*DeploymentSpecApplyConfiguration) WithSelector

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. If called multiple times, the Selector field is set to the value of the last call.

func (*DeploymentSpecApplyConfiguration) WithStrategy

WithStrategy sets the Strategy field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Strategy field is set to the value of the last call.

func (*DeploymentSpecApplyConfiguration) WithTemplate

WithTemplate sets the Template field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Template field is set to the value of the last call.

type DeploymentStatusApplyConfiguration

type DeploymentStatusApplyConfiguration struct {
	// The generation observed by the deployment controller.
	ObservedGeneration *int64 `json:"observedGeneration,omitempty"`
	// Total number of non-terminating pods targeted by this deployment (their labels match the selector).
	Replicas *int32 `json:"replicas,omitempty"`
	// Total number of non-terminating pods targeted by this deployment that have the desired template spec.
	UpdatedReplicas *int32 `json:"updatedReplicas,omitempty"`
	// Total number of non-terminating pods targeted by this Deployment with a Ready Condition.
	ReadyReplicas *int32 `json:"readyReplicas,omitempty"`
	// Total number of available non-terminating pods (ready for at least minReadySeconds) targeted by this deployment.
	AvailableReplicas *int32 `json:"availableReplicas,omitempty"`
	// Total number of unavailable pods targeted by this deployment. This is the total number of
	// pods that are still required for the deployment to have 100% available capacity. They may
	// either be pods that are running but not yet available or pods that still have not been created.
	UnavailableReplicas *int32 `json:"unavailableReplicas,omitempty"`
	// Total number of terminating pods targeted by this deployment. Terminating pods have a non-null
	// .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase.
	//
	// This is a beta field and requires enabling DeploymentReplicaSetTerminatingReplicas feature (enabled by default).
	TerminatingReplicas *int32 `json:"terminatingReplicas,omitempty"`
	// Represents the latest available observations of a deployment's current state.
	Conditions []DeploymentConditionApplyConfiguration `json:"conditions,omitempty"`
	// Count of hash collisions for the Deployment. The Deployment controller uses this
	// field as a collision avoidance mechanism when it needs to create the name for the
	// newest ReplicaSet.
	CollisionCount *int32 `json:"collisionCount,omitempty"`
}

DeploymentStatusApplyConfiguration represents a declarative configuration of the DeploymentStatus type for use with apply.

DeploymentStatus is the most recently observed status of the Deployment.

func DeploymentStatus

func DeploymentStatus() *DeploymentStatusApplyConfiguration

DeploymentStatusApplyConfiguration constructs a declarative configuration of the DeploymentStatus type for use with apply.

func (*DeploymentStatusApplyConfiguration) WithAvailableReplicas

WithAvailableReplicas sets the AvailableReplicas field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the AvailableReplicas field is set to the value of the last call.

func (*DeploymentStatusApplyConfiguration) WithCollisionCount

WithCollisionCount sets the CollisionCount field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CollisionCount field is set to the value of the last call.

func (*DeploymentStatusApplyConfiguration) WithConditions

WithConditions adds the given value to the Conditions field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Conditions field.

func (*DeploymentStatusApplyConfiguration) WithObservedGeneration

WithObservedGeneration sets the ObservedGeneration field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ObservedGeneration field is set to the value of the last call.

func (*DeploymentStatusApplyConfiguration) WithReadyReplicas

WithReadyReplicas sets the ReadyReplicas field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ReadyReplicas field is set to the value of the last call.

func (*DeploymentStatusApplyConfiguration) WithReplicas

WithReplicas sets the Replicas field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Replicas field is set to the value of the last call.

func (*DeploymentStatusApplyConfiguration) WithTerminatingReplicas

WithTerminatingReplicas sets the TerminatingReplicas field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the TerminatingReplicas field is set to the value of the last call.

func (*DeploymentStatusApplyConfiguration) WithUnavailableReplicas

WithUnavailableReplicas sets the UnavailableReplicas field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UnavailableReplicas field is set to the value of the last call.

func (*DeploymentStatusApplyConfiguration) WithUpdatedReplicas

WithUpdatedReplicas sets the UpdatedReplicas field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UpdatedReplicas field is set to the value of the last call.

type DeploymentStrategyApplyConfiguration

type DeploymentStrategyApplyConfiguration struct {
	// Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate.
	Type *extensionsv1beta1.DeploymentStrategyType `json:"type,omitempty"`
	// Rolling update config params. Present only if DeploymentStrategyType =
	// RollingUpdate.
	// ---
	// TODO: Update this to follow our convention for oneOf, whatever we decide it
	// to be.
	RollingUpdate *RollingUpdateDeploymentApplyConfiguration `json:"rollingUpdate,omitempty"`
}

DeploymentStrategyApplyConfiguration represents a declarative configuration of the DeploymentStrategy type for use with apply.

DeploymentStrategy describes how to replace existing pods with new ones.

func DeploymentStrategy

func DeploymentStrategy() *DeploymentStrategyApplyConfiguration

DeploymentStrategyApplyConfiguration constructs a declarative configuration of the DeploymentStrategy type for use with apply.

func (*DeploymentStrategyApplyConfiguration) WithRollingUpdate

WithRollingUpdate sets the RollingUpdate field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the RollingUpdate field is set to the value of the last call.

func (*DeploymentStrategyApplyConfiguration) WithType

WithType sets the Type field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Type field is set to the value of the last call.

type HTTPIngressPathApplyConfiguration

type HTTPIngressPathApplyConfiguration struct {
	// Path is matched against the path of an incoming request. Currently it can
	// contain characters disallowed from the conventional "path" part of a URL
	// as defined by RFC 3986. Paths must begin with a '/'. When unspecified,
	// all paths from incoming requests are matched.
	Path *string `json:"path,omitempty"`
	// PathType determines the interpretation of the Path matching. PathType can
	// be one of the following values:
	// * Exact: Matches the URL path exactly.
	// * Prefix: Matches based on a URL path prefix split by '/'. Matching is
	// done on a path element by element basis. A path element refers is the
	// list of labels in the path split by the '/' separator. A request is a
	// match for path p if every p is an element-wise prefix of p of the
	// request path. Note that if the last element of the path is a substring
	// of the last element in request path, it is not a match (e.g. /foo/bar
	// matches /foo/bar/baz, but does not match /foo/barbaz).
	// * ImplementationSpecific: Interpretation of the Path matching is up to
	// the IngressClass. Implementations can treat this as a separate PathType
	// or treat it identically to Prefix or Exact path types.
	// Implementations are required to support all path types.
	// Defaults to ImplementationSpecific.
	PathType *extensionsv1beta1.PathType `json:"pathType,omitempty"`
	// Backend defines the referenced service endpoint to which the traffic
	// will be forwarded to.
	Backend *IngressBackendApplyConfiguration `json:"backend,omitempty"`
}

HTTPIngressPathApplyConfiguration represents a declarative configuration of the HTTPIngressPath type for use with apply.

HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend.

func HTTPIngressPath

func HTTPIngressPath() *HTTPIngressPathApplyConfiguration

HTTPIngressPathApplyConfiguration constructs a declarative configuration of the HTTPIngressPath type for use with apply.

func (*HTTPIngressPathApplyConfiguration) WithBackend

WithBackend sets the Backend field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Backend field is set to the value of the last call.

func (*HTTPIngressPathApplyConfiguration) WithPath

WithPath sets the Path field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Path field is set to the value of the last call.

func (*HTTPIngressPathApplyConfiguration) WithPathType

WithPathType sets the PathType field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the PathType field is set to the value of the last call.

type HTTPIngressRuleValueApplyConfiguration

type HTTPIngressRuleValueApplyConfiguration struct {
	// A collection of paths that map requests to backends.
	Paths []HTTPIngressPathApplyConfiguration `json:"paths,omitempty"`
}

HTTPIngressRuleValueApplyConfiguration represents a declarative configuration of the HTTPIngressRuleValue type for use with apply.

HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http://<host>/<path>?<searchpart> -> backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'.

func HTTPIngressRuleValue

func HTTPIngressRuleValue() *HTTPIngressRuleValueApplyConfiguration

HTTPIngressRuleValueApplyConfiguration constructs a declarative configuration of the HTTPIngressRuleValue type for use with apply.

func (*HTTPIngressRuleValueApplyConfiguration) WithPaths

WithPaths adds the given value to the Paths field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Paths field.

type IPBlockApplyConfiguration

type IPBlockApplyConfiguration struct {
	// CIDR is a string representing the IP Block
	// Valid examples are "192.168.1.0/24" or "2001:db8::/64"
	CIDR *string `json:"cidr,omitempty"`
	// Except is a slice of CIDRs that should not be included within an IP Block
	// Valid examples are "192.168.1.0/24" or "2001:db8::/64"
	// Except values will be rejected if they are outside the CIDR range
	Except []string `json:"except,omitempty"`
}

IPBlockApplyConfiguration represents a declarative configuration of the IPBlock type for use with apply.

DEPRECATED 1.9 - This group version of IPBlock is deprecated by networking/v1/IPBlock. IPBlock describes a particular CIDR (Ex. "192.168.1.0/24","2001:db8::/64") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.

func IPBlock

func IPBlock() *IPBlockApplyConfiguration

IPBlockApplyConfiguration constructs a declarative configuration of the IPBlock type for use with apply.

func (*IPBlockApplyConfiguration) WithCIDR

WithCIDR sets the CIDR field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CIDR field is set to the value of the last call.

func (*IPBlockApplyConfiguration) WithExcept

WithExcept adds the given value to the Except field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Except field.

type IngressApplyConfiguration

type IngressApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration `json:",inline"`
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	// Spec is the desired state of the Ingress.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	Spec *IngressSpecApplyConfiguration `json:"spec,omitempty"`
	// Status is the current state of the Ingress.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	Status *IngressStatusApplyConfiguration `json:"status,omitempty"`
}

IngressApplyConfiguration represents a declarative configuration of the Ingress type for use with apply.

Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc. DEPRECATED - This group version of Ingress is deprecated by networking.k8s.io/v1beta1 Ingress. See the release notes for more information.

func ExtractIngress

func ExtractIngress(ingress *extensionsv1beta1.Ingress, fieldManager string) (*IngressApplyConfiguration, error)

ExtractIngress extracts the applied configuration owned by fieldManager from ingress. If no managedFields are found in ingress for fieldManager, a IngressApplyConfiguration is returned with only the Name, Namespace (if applicable), APIVersion and Kind populated. It is possible that no managed fields were found for because other field managers have taken ownership of all the fields previously owned by fieldManager, or because the fieldManager never owned fields any fields. ingress must be a unmodified Ingress API object that was retrieved from the Kubernetes API. ExtractIngress provides a way to perform a extract/modify-in-place/apply workflow. 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.

func ExtractIngressFrom

func ExtractIngressFrom(ingress *extensionsv1beta1.Ingress, fieldManager string, subresource string) (*IngressApplyConfiguration, error)

ExtractIngressFrom extracts the applied configuration owned by fieldManager from ingress for the specified subresource. Pass an empty string for subresource to extract the main resource. Common subresources include "status", "scale", etc. ingress must be a unmodified Ingress API object that was retrieved from the Kubernetes API. ExtractIngressFrom provides a way to perform a extract/modify-in-place/apply workflow. 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.

func ExtractIngressStatus

func ExtractIngressStatus(ingress *extensionsv1beta1.Ingress, fieldManager string) (*IngressApplyConfiguration, error)

ExtractIngressStatus extracts the applied configuration owned by fieldManager from ingress for the status subresource.

func Ingress

func Ingress(name, namespace string) *IngressApplyConfiguration

Ingress constructs a declarative configuration of the Ingress type for use with apply.

func (*IngressApplyConfiguration) GetAPIVersion

func (b *IngressApplyConfiguration) GetAPIVersion() *string

GetAPIVersion retrieves the value of the APIVersion field in the declarative configuration.

func (*IngressApplyConfiguration) GetKind

func (b *IngressApplyConfiguration) GetKind() *string

GetKind retrieves the value of the Kind field in the declarative configuration.

func (*IngressApplyConfiguration) GetName

func (b *IngressApplyConfiguration) GetName() *string

GetName retrieves the value of the Name field in the declarative configuration.

func (*IngressApplyConfiguration) GetNamespace

func (b *IngressApplyConfiguration) GetNamespace() *string

GetNamespace retrieves the value of the Namespace field in the declarative configuration.

func (IngressApplyConfiguration) IsApplyConfiguration

func (b IngressApplyConfiguration) IsApplyConfiguration()

func (*IngressApplyConfiguration) WithAPIVersion

WithAPIVersion sets the APIVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the APIVersion field is set to the value of the last call.

func (*IngressApplyConfiguration) WithAnnotations

func (b *IngressApplyConfiguration) WithAnnotations(entries map[string]string) *IngressApplyConfiguration

WithAnnotations puts the entries into the Annotations field in the declarative configuration 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 Annotations field, overwriting an existing map entries in Annotations field with the same key.

func (*IngressApplyConfiguration) WithCreationTimestamp

func (b *IngressApplyConfiguration) WithCreationTimestamp(value metav1.Time) *IngressApplyConfiguration

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. If called multiple times, the CreationTimestamp field is set to the value of the last call.

func (*IngressApplyConfiguration) WithDeletionGracePeriodSeconds

func (b *IngressApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *IngressApplyConfiguration

WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.

func (*IngressApplyConfiguration) WithDeletionTimestamp

func (b *IngressApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *IngressApplyConfiguration

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. If called multiple times, the DeletionTimestamp field is set to the value of the last call.

func (*IngressApplyConfiguration) WithFinalizers

func (b *IngressApplyConfiguration) WithFinalizers(values ...string) *IngressApplyConfiguration

WithFinalizers adds the given value to the Finalizers field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Finalizers field.

func (*IngressApplyConfiguration) WithGenerateName

func (b *IngressApplyConfiguration) WithGenerateName(value string) *IngressApplyConfiguration

WithGenerateName sets the GenerateName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the GenerateName field is set to the value of the last call.

func (*IngressApplyConfiguration) WithGeneration

func (b *IngressApplyConfiguration) WithGeneration(value int64) *IngressApplyConfiguration

WithGeneration sets the Generation field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Generation field is set to the value of the last call.

func (*IngressApplyConfiguration) WithKind

WithKind sets the Kind field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Kind field is set to the value of the last call.

func (*IngressApplyConfiguration) WithLabels

WithLabels puts the entries into the Labels field in the declarative configuration 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 Labels field, overwriting an existing map entries in Labels field with the same key.

func (*IngressApplyConfiguration) WithName

WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.

func (*IngressApplyConfiguration) WithNamespace

WithNamespace sets the Namespace field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Namespace field is set to the value of the last call.

func (*IngressApplyConfiguration) WithOwnerReferences

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. If called multiple times, values provided by each call will be appended to the OwnerReferences field.

func (*IngressApplyConfiguration) WithResourceVersion

func (b *IngressApplyConfiguration) WithResourceVersion(value string) *IngressApplyConfiguration

WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ResourceVersion field is set to the value of the last call.

func (*IngressApplyConfiguration) WithSpec

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. If called multiple times, the Spec field is set to the value of the last call.

func (*IngressApplyConfiguration) WithStatus

WithStatus sets the Status field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Status field is set to the value of the last call.

func (*IngressApplyConfiguration) WithUID

WithUID sets the UID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UID field is set to the value of the last call.

type IngressBackendApplyConfiguration

type IngressBackendApplyConfiguration struct {
	// Specifies the name of the referenced service.
	ServiceName *string `json:"serviceName,omitempty"`
	// Specifies the port of the referenced service.
	ServicePort *intstr.IntOrString `json:"servicePort,omitempty"`
	// Resource is an ObjectRef to another Kubernetes resource in the namespace
	// of the Ingress object. If resource is specified, serviceName and servicePort
	// must not be specified.
	Resource *v1.TypedLocalObjectReferenceApplyConfiguration `json:"resource,omitempty"`
}

IngressBackendApplyConfiguration represents a declarative configuration of the IngressBackend type for use with apply.

IngressBackend describes all endpoints for a given service and port.

func IngressBackend

func IngressBackend() *IngressBackendApplyConfiguration

IngressBackendApplyConfiguration constructs a declarative configuration of the IngressBackend type for use with apply.

func (*IngressBackendApplyConfiguration) WithResource

WithResource sets the Resource field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Resource field is set to the value of the last call.

func (*IngressBackendApplyConfiguration) WithServiceName

WithServiceName sets the ServiceName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ServiceName field is set to the value of the last call.

func (*IngressBackendApplyConfiguration) WithServicePort

WithServicePort sets the ServicePort field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ServicePort field is set to the value of the last call.

type IngressLoadBalancerIngressApplyConfiguration

type IngressLoadBalancerIngressApplyConfiguration struct {
	// IP is set for load-balancer ingress points that are IP based.
	IP *string `json:"ip,omitempty"`
	// Hostname is set for load-balancer ingress points that are DNS based.
	Hostname *string `json:"hostname,omitempty"`
	// Ports provides information about the ports exposed by this LoadBalancer.
	Ports []IngressPortStatusApplyConfiguration `json:"ports,omitempty"`
}

IngressLoadBalancerIngressApplyConfiguration represents a declarative configuration of the IngressLoadBalancerIngress type for use with apply.

IngressLoadBalancerIngress represents the status of a load-balancer ingress point.

func IngressLoadBalancerIngress

func IngressLoadBalancerIngress() *IngressLoadBalancerIngressApplyConfiguration

IngressLoadBalancerIngressApplyConfiguration constructs a declarative configuration of the IngressLoadBalancerIngress type for use with apply.

func (*IngressLoadBalancerIngressApplyConfiguration) WithHostname

WithHostname sets the Hostname field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Hostname field is set to the value of the last call.

func (*IngressLoadBalancerIngressApplyConfiguration) WithIP

WithIP sets the IP field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the IP field is set to the value of the last call.

func (*IngressLoadBalancerIngressApplyConfiguration) WithPorts

WithPorts adds the given value to the Ports field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Ports field.

type IngressLoadBalancerStatusApplyConfiguration

type IngressLoadBalancerStatusApplyConfiguration struct {
	// Ingress is a list containing ingress points for the load-balancer.
	Ingress []IngressLoadBalancerIngressApplyConfiguration `json:"ingress,omitempty"`
}

IngressLoadBalancerStatusApplyConfiguration represents a declarative configuration of the IngressLoadBalancerStatus type for use with apply.

LoadBalancerStatus represents the status of a load-balancer.

func IngressLoadBalancerStatus

func IngressLoadBalancerStatus() *IngressLoadBalancerStatusApplyConfiguration

IngressLoadBalancerStatusApplyConfiguration constructs a declarative configuration of the IngressLoadBalancerStatus type for use with apply.

func (*IngressLoadBalancerStatusApplyConfiguration) WithIngress

WithIngress adds the given value to the Ingress field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Ingress field.

type IngressPortStatusApplyConfiguration

type IngressPortStatusApplyConfiguration struct {
	// Port is the port number of the ingress port.
	Port *int32 `json:"port,omitempty"`
	// Protocol is the protocol of the ingress port.
	// The supported values are: "TCP", "UDP", "SCTP"
	Protocol *v1.Protocol `json:"protocol,omitempty"`
	// Error is to record the problem with the service port
	// The format of the error shall comply with the following rules:
	// - built-in error values shall be specified in this file and those shall use
	// CamelCase names
	// - cloud provider specific error values must have names that comply with the
	// format foo.example.com/CamelCase.
	// ---
	// The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
	Error *string `json:"error,omitempty"`
}

IngressPortStatusApplyConfiguration represents a declarative configuration of the IngressPortStatus type for use with apply.

IngressPortStatus represents the error condition of a service port

func IngressPortStatus

func IngressPortStatus() *IngressPortStatusApplyConfiguration

IngressPortStatusApplyConfiguration constructs a declarative configuration of the IngressPortStatus type for use with apply.

func (*IngressPortStatusApplyConfiguration) WithError

WithError sets the Error field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Error field is set to the value of the last call.

func (*IngressPortStatusApplyConfiguration) WithPort

WithPort sets the Port field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Port field is set to the value of the last call.

func (*IngressPortStatusApplyConfiguration) WithProtocol

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. If called multiple times, the Protocol field is set to the value of the last call.

type IngressRuleApplyConfiguration

type IngressRuleApplyConfiguration struct {
	// Host is the fully qualified domain name of a network host, as defined by RFC 3986.
	// Note the following deviations from the "host" part of the
	// URI as defined in RFC 3986:
	// 1. IPs are not allowed. Currently an IngressRuleValue can only apply to
	// the IP in the Spec of the parent Ingress.
	// 2. The `:` delimiter is not respected because ports are not allowed.
	// Currently the port of an Ingress is implicitly :80 for http and
	// :443 for https.
	// Both these may change in the future.
	// Incoming requests are matched against the host before the
	// IngressRuleValue. If the host is unspecified, the Ingress routes all
	// traffic based on the specified IngressRuleValue.
	//
	// Host can be "precise" which is a domain name without the terminating dot of
	// a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name
	// prefixed with a single wildcard label (e.g. "*.foo.com").
	// The wildcard character '*' must appear by itself as the first DNS label and
	// matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*").
	// Requests will be matched against the Host field in the following way:
	// 1. If Host is precise, the request matches this rule if the http host header is equal to Host.
	// 2. If Host is a wildcard, then the request matches this rule if the http host header
	// is to equal to the suffix (removing the first label) of the wildcard rule.
	Host *string `json:"host,omitempty"`
	// IngressRuleValue represents a rule to route requests for this IngressRule.
	// If unspecified, the rule defaults to a http catch-all. Whether that sends
	// just traffic matching the host to the default backend or all traffic to the
	// default backend, is left to the controller fulfilling the Ingress. Http is
	// currently the only supported IngressRuleValue.
	IngressRuleValueApplyConfiguration `json:",inline"`
}

IngressRuleApplyConfiguration represents a declarative configuration of the IngressRule type for use with apply.

IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue.

func IngressRule

func IngressRule() *IngressRuleApplyConfiguration

IngressRuleApplyConfiguration constructs a declarative configuration of the IngressRule type for use with apply.

func (*IngressRuleApplyConfiguration) WithHTTP

WithHTTP sets the HTTP field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the HTTP field is set to the value of the last call.

func (*IngressRuleApplyConfiguration) WithHost

WithHost sets the Host field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Host field is set to the value of the last call.

type IngressRuleValueApplyConfiguration

type IngressRuleValueApplyConfiguration struct {
	// http is a list of http selectors pointing to backends.
	// A path is matched against the path of an incoming request. Currently it can
	// contain characters disallowed from the conventional "path" part of a URL
	// as defined by RFC 3986. Paths must begin with a '/'.
	// A backend defines the referenced service endpoint to which the traffic
	// will be forwarded to.
	HTTP *HTTPIngressRuleValueApplyConfiguration `json:"http,omitempty"`
}

IngressRuleValueApplyConfiguration represents a declarative configuration of the IngressRuleValue type for use with apply.

IngressRuleValue represents a rule to apply against incoming requests. If the rule is satisfied, the request is routed to the specified backend. Currently mixing different types of rules in a single Ingress is disallowed, so exactly one of the following must be set.

func IngressRuleValue

func IngressRuleValue() *IngressRuleValueApplyConfiguration

IngressRuleValueApplyConfiguration constructs a declarative configuration of the IngressRuleValue type for use with apply.

func (*IngressRuleValueApplyConfiguration) WithHTTP

WithHTTP sets the HTTP field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the HTTP field is set to the value of the last call.

type IngressSpecApplyConfiguration

type IngressSpecApplyConfiguration struct {
	// IngressClassName is the name of the IngressClass cluster resource. The
	// associated IngressClass defines which controller will implement the
	// resource. This replaces the deprecated `kubernetes.io/ingress.class`
	// annotation. For backwards compatibility, when that annotation is set, it
	// must be given precedence over this field. The controller may emit a
	// warning if the field and annotation have different values.
	// Implementations of this API should ignore Ingresses without a class
	// specified. An IngressClass resource may be marked as default, which can
	// be used to set a default value for this field. For more information,
	// refer to the IngressClass documentation.
	IngressClassName *string `json:"ingressClassName,omitempty"`
	// A default backend capable of servicing requests that don't match any
	// rule. At least one of 'backend' or 'rules' must be specified. This field
	// is optional to allow the loadbalancer controller or defaulting logic to
	// specify a global default.
	Backend *IngressBackendApplyConfiguration `json:"backend,omitempty"`
	// TLS configuration. Currently the Ingress only supports a single TLS
	// port, 443. If multiple members of this list specify different hosts, they
	// will be multiplexed on the same port according to the hostname specified
	// through the SNI TLS extension, if the ingress controller fulfilling the
	// ingress supports SNI.
	TLS []IngressTLSApplyConfiguration `json:"tls,omitempty"`
	// A list of host rules used to configure the Ingress. If unspecified, or
	// no rule matches, all traffic is sent to the default backend.
	Rules []IngressRuleApplyConfiguration `json:"rules,omitempty"`
}

IngressSpecApplyConfiguration represents a declarative configuration of the IngressSpec type for use with apply.

IngressSpec describes the Ingress the user wishes to exist.

func IngressSpec

func IngressSpec() *IngressSpecApplyConfiguration

IngressSpecApplyConfiguration constructs a declarative configuration of the IngressSpec type for use with apply.

func (*IngressSpecApplyConfiguration) WithBackend

WithBackend sets the Backend field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Backend field is set to the value of the last call.

func (*IngressSpecApplyConfiguration) WithIngressClassName

func (b *IngressSpecApplyConfiguration) WithIngressClassName(value string) *IngressSpecApplyConfiguration

WithIngressClassName sets the IngressClassName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the IngressClassName field is set to the value of the last call.

func (*IngressSpecApplyConfiguration) WithRules

WithRules adds the given value to the Rules field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Rules field.

func (*IngressSpecApplyConfiguration) WithTLS

WithTLS adds the given value to the TLS field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the TLS field.

type IngressStatusApplyConfiguration

type IngressStatusApplyConfiguration struct {
	// LoadBalancer contains the current status of the load-balancer.
	LoadBalancer *IngressLoadBalancerStatusApplyConfiguration `json:"loadBalancer,omitempty"`
}

IngressStatusApplyConfiguration represents a declarative configuration of the IngressStatus type for use with apply.

IngressStatus describe the current state of the Ingress.

func IngressStatus

func IngressStatus() *IngressStatusApplyConfiguration

IngressStatusApplyConfiguration constructs a declarative configuration of the IngressStatus type for use with apply.

func (*IngressStatusApplyConfiguration) WithLoadBalancer

WithLoadBalancer sets the LoadBalancer field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the LoadBalancer field is set to the value of the last call.

type IngressTLSApplyConfiguration

type IngressTLSApplyConfiguration struct {
	// Hosts are a list of hosts included in the TLS certificate. The values in
	// this list must match the name/s used in the tlsSecret. Defaults to the
	// wildcard host setting for the loadbalancer controller fulfilling this
	// Ingress, if left unspecified.
	Hosts []string `json:"hosts,omitempty"`
	// SecretName is the name of the secret used to terminate SSL traffic on 443.
	// Field is left optional to allow SSL routing based on SNI hostname alone.
	// If the SNI host in a listener conflicts with the "Host" header field used
	// by an IngressRule, the SNI host is used for termination and value of the
	// Host header is used for routing.
	SecretName *string `json:"secretName,omitempty"`
}

IngressTLSApplyConfiguration represents a declarative configuration of the IngressTLS type for use with apply.

IngressTLS describes the transport layer security associated with an Ingress.

func IngressTLS

func IngressTLS() *IngressTLSApplyConfiguration

IngressTLSApplyConfiguration constructs a declarative configuration of the IngressTLS type for use with apply.

func (*IngressTLSApplyConfiguration) WithHosts

WithHosts adds the given value to the Hosts field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Hosts field.

func (*IngressTLSApplyConfiguration) WithSecretName

WithSecretName sets the SecretName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the SecretName field is set to the value of the last call.

type NetworkPolicyApplyConfiguration

type NetworkPolicyApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration `json:",inline"`
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	// Specification of the desired behavior for this NetworkPolicy.
	Spec *NetworkPolicySpecApplyConfiguration `json:"spec,omitempty"`
}

NetworkPolicyApplyConfiguration represents a declarative configuration of the NetworkPolicy type for use with apply.

DEPRECATED 1.9 - This group version of NetworkPolicy is deprecated by networking/v1/NetworkPolicy. NetworkPolicy describes what network traffic is allowed for a set of Pods

func ExtractNetworkPolicy

func ExtractNetworkPolicy(networkPolicy *extensionsv1beta1.NetworkPolicy, fieldManager string) (*NetworkPolicyApplyConfiguration, error)

ExtractNetworkPolicy extracts the applied configuration owned by fieldManager from networkPolicy. If no managedFields are found in networkPolicy for fieldManager, a NetworkPolicyApplyConfiguration is returned with only the Name, Namespace (if applicable), APIVersion and Kind populated. It is possible that no managed fields were found for because other field managers have taken ownership of all the fields previously owned by fieldManager, or because the fieldManager never owned fields any fields. networkPolicy must be a unmodified NetworkPolicy API object that was retrieved from the Kubernetes API. ExtractNetworkPolicy provides a way to perform a extract/modify-in-place/apply workflow. 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.

func ExtractNetworkPolicyFrom

func ExtractNetworkPolicyFrom(networkPolicy *extensionsv1beta1.NetworkPolicy, fieldManager string, subresource string) (*NetworkPolicyApplyConfiguration, error)

ExtractNetworkPolicyFrom extracts the applied configuration owned by fieldManager from networkPolicy for the specified subresource. Pass an empty string for subresource to extract the main resource. Common subresources include "status", "scale", etc. networkPolicy must be a unmodified NetworkPolicy API object that was retrieved from the Kubernetes API. ExtractNetworkPolicyFrom provides a way to perform a extract/modify-in-place/apply workflow. 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.

func NetworkPolicy

func NetworkPolicy(name, namespace string) *NetworkPolicyApplyConfiguration

NetworkPolicy constructs a declarative configuration of the NetworkPolicy type for use with apply.

func (*NetworkPolicyApplyConfiguration) GetAPIVersion

func (b *NetworkPolicyApplyConfiguration) GetAPIVersion() *string

GetAPIVersion retrieves the value of the APIVersion field in the declarative configuration.

func (*NetworkPolicyApplyConfiguration) GetKind

GetKind retrieves the value of the Kind field in the declarative configuration.

func (*NetworkPolicyApplyConfiguration) GetName

GetName retrieves the value of the Name field in the declarative configuration.

func (*NetworkPolicyApplyConfiguration) GetNamespace

func (b *NetworkPolicyApplyConfiguration) GetNamespace() *string

GetNamespace retrieves the value of the Namespace field in the declarative configuration.

func (NetworkPolicyApplyConfiguration) IsApplyConfiguration

func (b NetworkPolicyApplyConfiguration) IsApplyConfiguration()

func (*NetworkPolicyApplyConfiguration) WithAPIVersion

WithAPIVersion sets the APIVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the APIVersion field is set to the value of the last call.

func (*NetworkPolicyApplyConfiguration) WithAnnotations

WithAnnotations puts the entries into the Annotations field in the declarative configuration 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 Annotations field, overwriting an existing map entries in Annotations field with the same key.

func (*NetworkPolicyApplyConfiguration) WithCreationTimestamp

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. If called multiple times, the CreationTimestamp field is set to the value of the last call.

func (*NetworkPolicyApplyConfiguration) WithDeletionGracePeriodSeconds

func (b *NetworkPolicyApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *NetworkPolicyApplyConfiguration

WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.

func (*NetworkPolicyApplyConfiguration) WithDeletionTimestamp

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. If called multiple times, the DeletionTimestamp field is set to the value of the last call.

func (*NetworkPolicyApplyConfiguration) WithFinalizers

WithFinalizers adds the given value to the Finalizers field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Finalizers field.

func (*NetworkPolicyApplyConfiguration) WithGenerateName

WithGenerateName sets the GenerateName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the GenerateName field is set to the value of the last call.

func (*NetworkPolicyApplyConfiguration) WithGeneration

WithGeneration sets the Generation field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Generation field is set to the value of the last call.

func (*NetworkPolicyApplyConfiguration) WithKind

WithKind sets the Kind field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Kind field is set to the value of the last call.

func (*NetworkPolicyApplyConfiguration) WithLabels

WithLabels puts the entries into the Labels field in the declarative configuration 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 Labels field, overwriting an existing map entries in Labels field with the same key.

func (*NetworkPolicyApplyConfiguration) WithName

WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.

func (*NetworkPolicyApplyConfiguration) WithNamespace

WithNamespace sets the Namespace field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Namespace field is set to the value of the last call.

func (*NetworkPolicyApplyConfiguration) WithOwnerReferences

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. If called multiple times, values provided by each call will be appended to the OwnerReferences field.

func (*NetworkPolicyApplyConfiguration) WithResourceVersion

WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ResourceVersion field is set to the value of the last call.

func (*NetworkPolicyApplyConfiguration) WithSpec

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. If called multiple times, the Spec field is set to the value of the last call.

func (*NetworkPolicyApplyConfiguration) WithUID

WithUID sets the UID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UID field is set to the value of the last call.

type NetworkPolicyEgressRuleApplyConfiguration

type NetworkPolicyEgressRuleApplyConfiguration struct {
	// List of destination ports for outgoing traffic.
	// Each item in this list is combined using a logical OR. If this field is
	// empty or missing, this rule matches all ports (traffic not restricted by port).
	// If this field is present and contains at least one item, then this rule allows
	// traffic only if the traffic matches at least one port in the list.
	Ports []NetworkPolicyPortApplyConfiguration `json:"ports,omitempty"`
	// List of destinations for outgoing traffic of pods selected for this rule.
	// Items in this list are combined using a logical OR operation. If this field is
	// empty or missing, this rule matches all destinations (traffic not restricted by
	// destination). If this field is present and contains at least one item, this rule
	// allows traffic only if the traffic matches at least one item in the to list.
	To []NetworkPolicyPeerApplyConfiguration `json:"to,omitempty"`
}

NetworkPolicyEgressRuleApplyConfiguration represents a declarative configuration of the NetworkPolicyEgressRule type for use with apply.

DEPRECATED 1.9 - This group version of NetworkPolicyEgressRule is deprecated by networking/v1/NetworkPolicyEgressRule. NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. This type is beta-level in 1.8

func NetworkPolicyEgressRule

func NetworkPolicyEgressRule() *NetworkPolicyEgressRuleApplyConfiguration

NetworkPolicyEgressRuleApplyConfiguration constructs a declarative configuration of the NetworkPolicyEgressRule type for use with apply.

func (*NetworkPolicyEgressRuleApplyConfiguration) WithPorts

WithPorts adds the given value to the Ports field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Ports field.

func (*NetworkPolicyEgressRuleApplyConfiguration) WithTo

WithTo adds the given value to the To field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the To field.

type NetworkPolicyIngressRuleApplyConfiguration

type NetworkPolicyIngressRuleApplyConfiguration struct {
	// List of ports which should be made accessible on the pods selected for this rule.
	// Each item in this list is combined using a logical OR.
	// If this field is empty or missing, this rule matches all ports (traffic not restricted by port).
	// If this field is present and contains at least one item, then this rule allows traffic
	// only if the traffic matches at least one port in the list.
	Ports []NetworkPolicyPortApplyConfiguration `json:"ports,omitempty"`
	// List of sources which should be able to access the pods selected for this rule.
	// Items in this list are combined using a logical OR operation.
	// If this field is empty or missing, this rule matches all sources (traffic not restricted by source).
	// If this field is present and contains at least one item, this rule allows traffic only if the
	// traffic matches at least one item in the from list.
	From []NetworkPolicyPeerApplyConfiguration `json:"from,omitempty"`
}

NetworkPolicyIngressRuleApplyConfiguration represents a declarative configuration of the NetworkPolicyIngressRule type for use with apply.

DEPRECATED 1.9 - This group version of NetworkPolicyIngressRule is deprecated by networking/v1/NetworkPolicyIngressRule. This NetworkPolicyIngressRule matches traffic if and only if the traffic matches both ports AND from.

func NetworkPolicyIngressRule

func NetworkPolicyIngressRule() *NetworkPolicyIngressRuleApplyConfiguration

NetworkPolicyIngressRuleApplyConfiguration constructs a declarative configuration of the NetworkPolicyIngressRule type for use with apply.

func (*NetworkPolicyIngressRuleApplyConfiguration) WithFrom

WithFrom adds the given value to the From field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the From field.

func (*NetworkPolicyIngressRuleApplyConfiguration) WithPorts

WithPorts adds the given value to the Ports field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Ports field.

type NetworkPolicyPeerApplyConfiguration

type NetworkPolicyPeerApplyConfiguration struct {
	// This is a label selector which selects Pods. This field follows standard label
	// selector semantics; if present but empty, it selects all pods.
	//
	// If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects
	// the Pods matching PodSelector in the Namespaces selected by NamespaceSelector.
	// Otherwise it selects the Pods matching PodSelector in the policy's own Namespace.
	PodSelector *v1.LabelSelectorApplyConfiguration `json:"podSelector,omitempty"`
	// Selects Namespaces using cluster-scoped labels. This field follows standard label
	// selector semantics; if present but empty, it selects all namespaces.
	//
	// If PodSelector is also set, then the NetworkPolicyPeer as a whole selects
	// the Pods matching PodSelector in the Namespaces selected by NamespaceSelector.
	// Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector.
	NamespaceSelector *v1.LabelSelectorApplyConfiguration `json:"namespaceSelector,omitempty"`
	// IPBlock defines policy on a particular IPBlock. If this field is set then
	// neither of the other fields can be.
	IPBlock *IPBlockApplyConfiguration `json:"ipBlock,omitempty"`
}

NetworkPolicyPeerApplyConfiguration represents a declarative configuration of the NetworkPolicyPeer type for use with apply.

DEPRECATED 1.9 - This group version of NetworkPolicyPeer is deprecated by networking/v1/NetworkPolicyPeer.

func NetworkPolicyPeer

func NetworkPolicyPeer() *NetworkPolicyPeerApplyConfiguration

NetworkPolicyPeerApplyConfiguration constructs a declarative configuration of the NetworkPolicyPeer type for use with apply.

func (*NetworkPolicyPeerApplyConfiguration) WithIPBlock

WithIPBlock sets the IPBlock field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the IPBlock field is set to the value of the last call.

func (*NetworkPolicyPeerApplyConfiguration) WithNamespaceSelector

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. If called multiple times, the NamespaceSelector field is set to the value of the last call.

func (*NetworkPolicyPeerApplyConfiguration) WithPodSelector

WithPodSelector sets the PodSelector field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the PodSelector field is set to the value of the last call.

type NetworkPolicyPortApplyConfiguration

type NetworkPolicyPortApplyConfiguration struct {
	// Optional.  The protocol (TCP, UDP, or SCTP) which traffic must match.
	// If not specified, this field defaults to TCP.
	Protocol *v1.Protocol `json:"protocol,omitempty"`
	// The port on the given protocol. This can either be a numerical or named
	// port on a pod. If this field is not provided, this matches all port names and
	// numbers.
	// If present, only traffic on the specified protocol AND port will be matched.
	Port *intstr.IntOrString `json:"port,omitempty"`
	// If set, indicates that the range of ports from port to endPort, inclusive,
	// should be allowed by the policy. This field cannot be defined if the port field
	// is not defined or if the port field is defined as a named (string) port.
	// The endPort must be equal or greater than port.
	EndPort *int32 `json:"endPort,omitempty"`
}

NetworkPolicyPortApplyConfiguration represents a declarative configuration of the NetworkPolicyPort type for use with apply.

DEPRECATED 1.9 - This group version of NetworkPolicyPort is deprecated by networking/v1/NetworkPolicyPort.

func NetworkPolicyPort

func NetworkPolicyPort() *NetworkPolicyPortApplyConfiguration

NetworkPolicyPortApplyConfiguration constructs a declarative configuration of the NetworkPolicyPort type for use with apply.

func (*NetworkPolicyPortApplyConfiguration) WithEndPort

WithEndPort sets the EndPort field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the EndPort field is set to the value of the last call.

func (*NetworkPolicyPortApplyConfiguration) WithPort

WithPort sets the Port field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Port field is set to the value of the last call.

func (*NetworkPolicyPortApplyConfiguration) WithProtocol

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. If called multiple times, the Protocol field is set to the value of the last call.

type NetworkPolicySpecApplyConfiguration

type NetworkPolicySpecApplyConfiguration struct {
	// Selects the pods to which this NetworkPolicy object applies.  The array of ingress rules
	// is applied to any pods selected by this field. Multiple network policies can select the
	// same set of pods.  In this case, the ingress rules for each are combined additively.
	// This field is NOT optional and follows standard label selector semantics.
	// An empty podSelector matches all pods in this namespace.
	PodSelector *v1.LabelSelectorApplyConfiguration `json:"podSelector,omitempty"`
	// List of ingress rules to be applied to the selected pods.
	// Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod
	// OR if the traffic source is the pod's local node,
	// OR if the traffic matches at least one ingress rule across all of the NetworkPolicy
	// objects whose podSelector matches the pod.
	// If this field is empty then this NetworkPolicy does not allow any traffic
	// (and serves solely to ensure that the pods it selects are isolated by default).
	Ingress []NetworkPolicyIngressRuleApplyConfiguration `json:"ingress,omitempty"`
	// List of egress rules to be applied to the selected pods. Outgoing traffic is
	// allowed if there are no NetworkPolicies selecting the pod (and cluster policy
	// otherwise allows the traffic), OR if the traffic matches at least one egress rule
	// across all of the NetworkPolicy objects whose podSelector matches the pod. If
	// this field is empty then this NetworkPolicy limits all outgoing traffic (and serves
	// solely to ensure that the pods it selects are isolated by default).
	// This field is beta-level in 1.8
	Egress []NetworkPolicyEgressRuleApplyConfiguration `json:"egress,omitempty"`
	// List of rule types that the NetworkPolicy relates to.
	// Valid options are ["Ingress"], ["Egress"], or ["Ingress", "Egress"].
	// If this field is not specified, it will default based on the existence of Ingress or Egress rules;
	// policies that contain an Egress section are assumed to affect Egress, and all policies
	// (whether or not they contain an Ingress section) are assumed to affect Ingress.
	// If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ].
	// Likewise, if you want to write a policy that specifies that no egress is allowed,
	// you must specify a policyTypes value that include "Egress" (since such a policy would not include
	// an Egress section and would otherwise default to just [ "Ingress" ]).
	// This field is beta-level in 1.8
	PolicyTypes []extensionsv1beta1.PolicyType `json:"policyTypes,omitempty"`
}

NetworkPolicySpecApplyConfiguration represents a declarative configuration of the NetworkPolicySpec type for use with apply.

DEPRECATED 1.9 - This group version of NetworkPolicySpec is deprecated by networking/v1/NetworkPolicySpec.

func NetworkPolicySpec

func NetworkPolicySpec() *NetworkPolicySpecApplyConfiguration

NetworkPolicySpecApplyConfiguration constructs a declarative configuration of the NetworkPolicySpec type for use with apply.

func (*NetworkPolicySpecApplyConfiguration) WithEgress

WithEgress adds the given value to the Egress field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Egress field.

func (*NetworkPolicySpecApplyConfiguration) WithIngress

WithIngress adds the given value to the Ingress field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Ingress field.

func (*NetworkPolicySpecApplyConfiguration) WithPodSelector

WithPodSelector sets the PodSelector field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the PodSelector field is set to the value of the last call.

func (*NetworkPolicySpecApplyConfiguration) WithPolicyTypes

WithPolicyTypes adds the given value to the PolicyTypes field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the PolicyTypes field.

type ReplicaSetApplyConfiguration

type ReplicaSetApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration `json:",inline"`
	// If the Labels of a ReplicaSet are empty, they are defaulted to
	// be the same as the Pod(s) that the ReplicaSet manages.
	// Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	// Spec defines the specification of the desired behavior of the ReplicaSet.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	Spec *ReplicaSetSpecApplyConfiguration `json:"spec,omitempty"`
	// Status is the most recently observed status of the ReplicaSet.
	// This data may be out of date by some window of time.
	// Populated by the system.
	// Read-only.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	Status *ReplicaSetStatusApplyConfiguration `json:"status,omitempty"`
}

ReplicaSetApplyConfiguration represents a declarative configuration of the ReplicaSet type for use with apply.

DEPRECATED - This group version of ReplicaSet is deprecated by apps/v1beta2/ReplicaSet. See the release notes for more information. ReplicaSet ensures that a specified number of pod replicas are running at any given time.

func ExtractReplicaSet

func ExtractReplicaSet(replicaSet *extensionsv1beta1.ReplicaSet, fieldManager string) (*ReplicaSetApplyConfiguration, error)

ExtractReplicaSet extracts the applied configuration owned by fieldManager from replicaSet. If no managedFields are found in replicaSet for fieldManager, a ReplicaSetApplyConfiguration is returned with only the Name, Namespace (if applicable), APIVersion and Kind populated. It is possible that no managed fields were found for because other field managers have taken ownership of all the fields previously owned by fieldManager, or because the fieldManager never owned fields any fields. replicaSet must be a unmodified ReplicaSet API object that was retrieved from the Kubernetes API. ExtractReplicaSet provides a way to perform a extract/modify-in-place/apply workflow. 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.

func ExtractReplicaSetFrom

func ExtractReplicaSetFrom(replicaSet *extensionsv1beta1.ReplicaSet, fieldManager string, subresource string) (*ReplicaSetApplyConfiguration, error)

ExtractReplicaSetFrom extracts the applied configuration owned by fieldManager from replicaSet for the specified subresource. Pass an empty string for subresource to extract the main resource. Common subresources include "status", "scale", etc. replicaSet must be a unmodified ReplicaSet API object that was retrieved from the Kubernetes API. ExtractReplicaSetFrom provides a way to perform a extract/modify-in-place/apply workflow. 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.

func ExtractReplicaSetScale

func ExtractReplicaSetScale(replicaSet *extensionsv1beta1.ReplicaSet, fieldManager string) (*ReplicaSetApplyConfiguration, error)

ExtractReplicaSetScale extracts the applied configuration owned by fieldManager from replicaSet for the scale subresource.

func ExtractReplicaSetStatus

func ExtractReplicaSetStatus(replicaSet *extensionsv1beta1.ReplicaSet, fieldManager string) (*ReplicaSetApplyConfiguration, error)

ExtractReplicaSetStatus extracts the applied configuration owned by fieldManager from replicaSet for the status subresource.

func ReplicaSet

func ReplicaSet(name, namespace string) *ReplicaSetApplyConfiguration

ReplicaSet constructs a declarative configuration of the ReplicaSet type for use with apply.

func (*ReplicaSetApplyConfiguration) GetAPIVersion

func (b *ReplicaSetApplyConfiguration) GetAPIVersion() *string

GetAPIVersion retrieves the value of the APIVersion field in the declarative configuration.

func (*ReplicaSetApplyConfiguration) GetKind

func (b *ReplicaSetApplyConfiguration) GetKind() *string

GetKind retrieves the value of the Kind field in the declarative configuration.

func (*ReplicaSetApplyConfiguration) GetName

func (b *ReplicaSetApplyConfiguration) GetName() *string

GetName retrieves the value of the Name field in the declarative configuration.

func (*ReplicaSetApplyConfiguration) GetNamespace

func (b *ReplicaSetApplyConfiguration) GetNamespace() *string

GetNamespace retrieves the value of the Namespace field in the declarative configuration.

func (ReplicaSetApplyConfiguration) IsApplyConfiguration

func (b ReplicaSetApplyConfiguration) IsApplyConfiguration()

func (*ReplicaSetApplyConfiguration) WithAPIVersion

WithAPIVersion sets the APIVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the APIVersion field is set to the value of the last call.

func (*ReplicaSetApplyConfiguration) WithAnnotations

WithAnnotations puts the entries into the Annotations field in the declarative configuration 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 Annotations field, overwriting an existing map entries in Annotations field with the same key.

func (*ReplicaSetApplyConfiguration) WithCreationTimestamp

func (b *ReplicaSetApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ReplicaSetApplyConfiguration

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. If called multiple times, the CreationTimestamp field is set to the value of the last call.

func (*ReplicaSetApplyConfiguration) WithDeletionGracePeriodSeconds

func (b *ReplicaSetApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ReplicaSetApplyConfiguration

WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.

func (*ReplicaSetApplyConfiguration) WithDeletionTimestamp

func (b *ReplicaSetApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ReplicaSetApplyConfiguration

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. If called multiple times, the DeletionTimestamp field is set to the value of the last call.

func (*ReplicaSetApplyConfiguration) WithFinalizers

WithFinalizers adds the given value to the Finalizers field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Finalizers field.

func (*ReplicaSetApplyConfiguration) WithGenerateName

WithGenerateName sets the GenerateName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the GenerateName field is set to the value of the last call.

func (*ReplicaSetApplyConfiguration) WithGeneration

WithGeneration sets the Generation field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Generation field is set to the value of the last call.

func (*ReplicaSetApplyConfiguration) WithKind

WithKind sets the Kind field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Kind field is set to the value of the last call.

func (*ReplicaSetApplyConfiguration) WithLabels

WithLabels puts the entries into the Labels field in the declarative configuration 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 Labels field, overwriting an existing map entries in Labels field with the same key.

func (*ReplicaSetApplyConfiguration) WithName

WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.

func (*ReplicaSetApplyConfiguration) WithNamespace

WithNamespace sets the Namespace field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Namespace field is set to the value of the last call.

func (*ReplicaSetApplyConfiguration) WithOwnerReferences

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. If called multiple times, values provided by each call will be appended to the OwnerReferences field.

func (*ReplicaSetApplyConfiguration) WithResourceVersion

func (b *ReplicaSetApplyConfiguration) WithResourceVersion(value string) *ReplicaSetApplyConfiguration

WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ResourceVersion field is set to the value of the last call.

func (*ReplicaSetApplyConfiguration) WithSpec

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. If called multiple times, the Spec field is set to the value of the last call.

func (*ReplicaSetApplyConfiguration) WithStatus

WithStatus sets the Status field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Status field is set to the value of the last call.

func (*ReplicaSetApplyConfiguration) WithUID

WithUID sets the UID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UID field is set to the value of the last call.

type ReplicaSetConditionApplyConfiguration

type ReplicaSetConditionApplyConfiguration struct {
	// Type of replica set condition.
	Type *extensionsv1beta1.ReplicaSetConditionType `json:"type,omitempty"`
	// Status of the condition, one of True, False, Unknown.
	Status *v1.ConditionStatus `json:"status,omitempty"`
	// The last time the condition transitioned from one status to another.
	LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
	// The reason for the condition's last transition.
	Reason *string `json:"reason,omitempty"`
	// A human readable message indicating details about the transition.
	Message *string `json:"message,omitempty"`
}

ReplicaSetConditionApplyConfiguration represents a declarative configuration of the ReplicaSetCondition type for use with apply.

ReplicaSetCondition describes the state of a replica set at a certain point.

func ReplicaSetCondition

func ReplicaSetCondition() *ReplicaSetConditionApplyConfiguration

ReplicaSetConditionApplyConfiguration constructs a declarative configuration of the ReplicaSetCondition type for use with apply.

func (*ReplicaSetConditionApplyConfiguration) WithLastTransitionTime

WithLastTransitionTime sets the LastTransitionTime field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the LastTransitionTime field is set to the value of the last call.

func (*ReplicaSetConditionApplyConfiguration) WithMessage

WithMessage sets the Message field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Message field is set to the value of the last call.

func (*ReplicaSetConditionApplyConfiguration) WithReason

WithReason sets the Reason field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Reason field is set to the value of the last call.

func (*ReplicaSetConditionApplyConfiguration) WithStatus

WithStatus sets the Status field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Status field is set to the value of the last call.

func (*ReplicaSetConditionApplyConfiguration) WithType

WithType sets the Type field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Type field is set to the value of the last call.

type ReplicaSetSpecApplyConfiguration

type ReplicaSetSpecApplyConfiguration struct {
	// Replicas is the number of desired pods.
	// This is a pointer to distinguish between explicit zero and unspecified.
	// Defaults to 1.
	// More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset
	Replicas *int32 `json:"replicas,omitempty"`
	// Minimum number of seconds for which a newly created pod should be ready
	// without any of its container crashing, for it to be considered available.
	// Defaults to 0 (pod will be considered available as soon as it is ready)
	MinReadySeconds *int32 `json:"minReadySeconds,omitempty"`
	// Selector is a label query over pods that should match the replica count.
	// If the selector is empty, it is defaulted to the labels present on the pod template.
	// Label keys and values that must match in order to be controlled by this replica set.
	// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
	Selector *v1.LabelSelectorApplyConfiguration `json:"selector,omitempty"`
	// Template is the object that describes the pod that will be created if
	// insufficient replicas are detected.
	// More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/#pod-template
	Template *corev1.PodTemplateSpecApplyConfiguration `json:"template,omitempty"`
}

ReplicaSetSpecApplyConfiguration represents a declarative configuration of the ReplicaSetSpec type for use with apply.

ReplicaSetSpec is the specification of a ReplicaSet.

func ReplicaSetSpec

func ReplicaSetSpec() *ReplicaSetSpecApplyConfiguration

ReplicaSetSpecApplyConfiguration constructs a declarative configuration of the ReplicaSetSpec type for use with apply.

func (*ReplicaSetSpecApplyConfiguration) WithMinReadySeconds

WithMinReadySeconds sets the MinReadySeconds field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the MinReadySeconds field is set to the value of the last call.

func (*ReplicaSetSpecApplyConfiguration) WithReplicas

WithReplicas sets the Replicas field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Replicas field is set to the value of the last call.

func (*ReplicaSetSpecApplyConfiguration) WithSelector

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. If called multiple times, the Selector field is set to the value of the last call.

func (*ReplicaSetSpecApplyConfiguration) WithTemplate

WithTemplate sets the Template field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Template field is set to the value of the last call.

type ReplicaSetStatusApplyConfiguration

type ReplicaSetStatusApplyConfiguration struct {
	// Replicas is the most recently observed number of non-terminating pods.
	// More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset
	Replicas *int32 `json:"replicas,omitempty"`
	// The number of non-terminating pods that have labels matching the labels of the pod template of the replicaset.
	FullyLabeledReplicas *int32 `json:"fullyLabeledReplicas,omitempty"`
	// The number of non-terminating pods targeted by this ReplicaSet with a Ready Condition.
	ReadyReplicas *int32 `json:"readyReplicas,omitempty"`
	// The number of available non-terminating pods (ready for at least minReadySeconds) for this replica set.
	AvailableReplicas *int32 `json:"availableReplicas,omitempty"`
	// The number of terminating pods for this replica set. Terminating pods have a non-null .metadata.deletionTimestamp
	// and have not yet reached the Failed or Succeeded .status.phase.
	//
	// This is a beta field and requires enabling DeploymentReplicaSetTerminatingReplicas feature (enabled by default).
	TerminatingReplicas *int32 `json:"terminatingReplicas,omitempty"`
	// ObservedGeneration reflects the generation of the most recently observed ReplicaSet.
	ObservedGeneration *int64 `json:"observedGeneration,omitempty"`
	// Represents the latest available observations of a replica set's current state.
	Conditions []ReplicaSetConditionApplyConfiguration `json:"conditions,omitempty"`
}

ReplicaSetStatusApplyConfiguration represents a declarative configuration of the ReplicaSetStatus type for use with apply.

ReplicaSetStatus represents the current status of a ReplicaSet.

func ReplicaSetStatus

func ReplicaSetStatus() *ReplicaSetStatusApplyConfiguration

ReplicaSetStatusApplyConfiguration constructs a declarative configuration of the ReplicaSetStatus type for use with apply.

func (*ReplicaSetStatusApplyConfiguration) WithAvailableReplicas

WithAvailableReplicas sets the AvailableReplicas field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the AvailableReplicas field is set to the value of the last call.

func (*ReplicaSetStatusApplyConfiguration) WithConditions

WithConditions adds the given value to the Conditions field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Conditions field.

func (*ReplicaSetStatusApplyConfiguration) WithFullyLabeledReplicas

WithFullyLabeledReplicas sets the FullyLabeledReplicas field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the FullyLabeledReplicas field is set to the value of the last call.

func (*ReplicaSetStatusApplyConfiguration) WithObservedGeneration

WithObservedGeneration sets the ObservedGeneration field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ObservedGeneration field is set to the value of the last call.

func (*ReplicaSetStatusApplyConfiguration) WithReadyReplicas

WithReadyReplicas sets the ReadyReplicas field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ReadyReplicas field is set to the value of the last call.

func (*ReplicaSetStatusApplyConfiguration) WithReplicas

WithReplicas sets the Replicas field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Replicas field is set to the value of the last call.

func (*ReplicaSetStatusApplyConfiguration) WithTerminatingReplicas

WithTerminatingReplicas sets the TerminatingReplicas field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the TerminatingReplicas field is set to the value of the last call.

type RollbackConfigApplyConfiguration

type RollbackConfigApplyConfiguration struct {
	// The revision to rollback to. If set to 0, rollback to the last revision.
	Revision *int64 `json:"revision,omitempty"`
}

RollbackConfigApplyConfiguration represents a declarative configuration of the RollbackConfig type for use with apply.

DEPRECATED.

func RollbackConfig

func RollbackConfig() *RollbackConfigApplyConfiguration

RollbackConfigApplyConfiguration constructs a declarative configuration of the RollbackConfig type for use with apply.

func (*RollbackConfigApplyConfiguration) WithRevision

WithRevision sets the Revision field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Revision field is set to the value of the last call.

type RollingUpdateDaemonSetApplyConfiguration

type RollingUpdateDaemonSetApplyConfiguration struct {
	// The maximum number of DaemonSet pods that can be unavailable during the
	// update. Value can be an absolute number (ex: 5) or a percentage of total
	// number of DaemonSet pods at the start of the update (ex: 10%). Absolute
	// number is calculated from percentage by rounding up.
	// This cannot be 0 if MaxSurge is 0
	// Default value is 1.
	// Example: when this is set to 30%, at most 30% of the total number of nodes
	// that should be running the daemon pod (i.e. status.desiredNumberScheduled)
	// can have their pods stopped for an update at any given time. The update
	// starts by stopping at most 30% of those DaemonSet pods and then brings
	// up new DaemonSet pods in their place. Once the new pods are available,
	// it then proceeds onto other DaemonSet pods, thus ensuring that at least
	// 70% of original number of DaemonSet pods are available at all times during
	// the update.
	MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty"`
	// The maximum number of nodes with an existing available DaemonSet pod that
	// can have an updated DaemonSet pod during during an update.
	// Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
	// This can not be 0 if MaxUnavailable is 0.
	// Absolute number is calculated from percentage by rounding up to a minimum of 1.
	// Default value is 0.
	// Example: when this is set to 30%, at most 30% of the total number of nodes
	// that should be running the daemon pod (i.e. status.desiredNumberScheduled)
	// can have their a new pod created before the old pod is marked as deleted.
	// The update starts by launching new pods on 30% of nodes. Once an updated
	// pod is available (Ready for at least minReadySeconds) the old DaemonSet pod
	// on that node is marked deleted. If the old pod becomes unavailable for any
	// reason (Ready transitions to false, is evicted, or is drained) an updated
	// pod is immediately created on that node without considering surge limits.
	// Allowing surge implies the possibility that the resources consumed by the
	// daemonset on any given node can double if the readiness check fails, and
	// so resource intensive daemonsets should take into account that they may
	// cause evictions during disruption.
	// This is an alpha field and requires enabling DaemonSetUpdateSurge feature gate.
	MaxSurge *intstr.IntOrString `json:"maxSurge,omitempty"`
}

RollingUpdateDaemonSetApplyConfiguration represents a declarative configuration of the RollingUpdateDaemonSet type for use with apply.

Spec to control the desired behavior of daemon set rolling update.

func RollingUpdateDaemonSet

func RollingUpdateDaemonSet() *RollingUpdateDaemonSetApplyConfiguration

RollingUpdateDaemonSetApplyConfiguration constructs a declarative configuration of the RollingUpdateDaemonSet type for use with apply.

func (*RollingUpdateDaemonSetApplyConfiguration) WithMaxSurge

WithMaxSurge sets the MaxSurge field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the MaxSurge field is set to the value of the last call.

func (*RollingUpdateDaemonSetApplyConfiguration) WithMaxUnavailable

WithMaxUnavailable sets the MaxUnavailable field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the MaxUnavailable field is set to the value of the last call.

type RollingUpdateDeploymentApplyConfiguration

type RollingUpdateDeploymentApplyConfiguration struct {
	// The maximum number of pods that can be unavailable during the update.
	// Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
	// Absolute number is calculated from percentage by rounding down.
	// This can not be 0 if MaxSurge is 0.
	// By default, a fixed value of 1 is used.
	// Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods
	// immediately when the rolling update starts. Once new pods are ready, old RC
	// can be scaled down further, followed by scaling up the new RC, ensuring
	// that the total number of pods available at all times during the update is at
	// least 70% of desired pods.
	MaxUnavailable *intstr.IntOrString `json:"maxUnavailable,omitempty"`
	// The maximum number of pods that can be scheduled above the desired number of
	// pods.
	// Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
	// This can not be 0 if MaxUnavailable is 0.
	// Absolute number is calculated from percentage by rounding up.
	// By default, a value of 1 is used.
	// Example: when this is set to 30%, the new RC can be scaled up immediately when
	// the rolling update starts, such that the total number of old and new pods do not exceed
	// 130% of desired pods. Once old pods have been killed,
	// new RC can be scaled up further, ensuring that total number of pods running
	// at any time during the update is at most 130% of desired pods.
	MaxSurge *intstr.IntOrString `json:"maxSurge,omitempty"`
}

RollingUpdateDeploymentApplyConfiguration represents a declarative configuration of the RollingUpdateDeployment type for use with apply.

Spec to control the desired behavior of rolling update.

func RollingUpdateDeployment

func RollingUpdateDeployment() *RollingUpdateDeploymentApplyConfiguration

RollingUpdateDeploymentApplyConfiguration constructs a declarative configuration of the RollingUpdateDeployment type for use with apply.

func (*RollingUpdateDeploymentApplyConfiguration) WithMaxSurge

WithMaxSurge sets the MaxSurge field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the MaxSurge field is set to the value of the last call.

func (*RollingUpdateDeploymentApplyConfiguration) WithMaxUnavailable

WithMaxUnavailable sets the MaxUnavailable field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the MaxUnavailable field is set to the value of the last call.

type ScaleApplyConfiguration

type ScaleApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration `json:",inline"`
	// Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	// defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
	Spec *extensionsv1beta1.ScaleSpec `json:"spec,omitempty"`
	// current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only.
	Status *extensionsv1beta1.ScaleStatus `json:"status,omitempty"`
}

ScaleApplyConfiguration represents a declarative configuration of the Scale type for use with apply.

represents a scaling request for a resource.

func Scale

func Scale() *ScaleApplyConfiguration

ScaleApplyConfiguration constructs a declarative configuration of the Scale type for use with apply.

func (*ScaleApplyConfiguration) GetAPIVersion

func (b *ScaleApplyConfiguration) GetAPIVersion() *string

GetAPIVersion retrieves the value of the APIVersion field in the declarative configuration.

func (*ScaleApplyConfiguration) GetKind

func (b *ScaleApplyConfiguration) GetKind() *string

GetKind retrieves the value of the Kind field in the declarative configuration.

func (*ScaleApplyConfiguration) GetName

func (b *ScaleApplyConfiguration) GetName() *string

GetName retrieves the value of the Name field in the declarative configuration.

func (*ScaleApplyConfiguration) GetNamespace

func (b *ScaleApplyConfiguration) GetNamespace() *string

GetNamespace retrieves the value of the Namespace field in the declarative configuration.

func (ScaleApplyConfiguration) IsApplyConfiguration

func (b ScaleApplyConfiguration) IsApplyConfiguration()

func (*ScaleApplyConfiguration) WithAPIVersion

func (b *ScaleApplyConfiguration) WithAPIVersion(value string) *ScaleApplyConfiguration

WithAPIVersion sets the APIVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the APIVersion field is set to the value of the last call.

func (*ScaleApplyConfiguration) WithAnnotations

func (b *ScaleApplyConfiguration) WithAnnotations(entries map[string]string) *ScaleApplyConfiguration

WithAnnotations puts the entries into the Annotations field in the declarative configuration 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 Annotations field, overwriting an existing map entries in Annotations field with the same key.

func (*ScaleApplyConfiguration) WithCreationTimestamp

func (b *ScaleApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ScaleApplyConfiguration

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. If called multiple times, the CreationTimestamp field is set to the value of the last call.

func (*ScaleApplyConfiguration) WithDeletionGracePeriodSeconds

func (b *ScaleApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ScaleApplyConfiguration

WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.

func (*ScaleApplyConfiguration) WithDeletionTimestamp

func (b *ScaleApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ScaleApplyConfiguration

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. If called multiple times, the DeletionTimestamp field is set to the value of the last call.

func (*ScaleApplyConfiguration) WithFinalizers

func (b *ScaleApplyConfiguration) WithFinalizers(values ...string) *ScaleApplyConfiguration

WithFinalizers adds the given value to the Finalizers field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Finalizers field.

func (*ScaleApplyConfiguration) WithGenerateName

func (b *ScaleApplyConfiguration) WithGenerateName(value string) *ScaleApplyConfiguration

WithGenerateName sets the GenerateName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the GenerateName field is set to the value of the last call.

func (*ScaleApplyConfiguration) WithGeneration

func (b *ScaleApplyConfiguration) WithGeneration(value int64) *ScaleApplyConfiguration

WithGeneration sets the Generation field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Generation field is set to the value of the last call.

func (*ScaleApplyConfiguration) WithKind

WithKind sets the Kind field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Kind field is set to the value of the last call.

func (*ScaleApplyConfiguration) WithLabels

func (b *ScaleApplyConfiguration) WithLabels(entries map[string]string) *ScaleApplyConfiguration

WithLabels puts the entries into the Labels field in the declarative configuration 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 Labels field, overwriting an existing map entries in Labels field with the same key.

func (*ScaleApplyConfiguration) WithName

WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.

func (*ScaleApplyConfiguration) WithNamespace

func (b *ScaleApplyConfiguration) WithNamespace(value string) *ScaleApplyConfiguration

WithNamespace sets the Namespace field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Namespace field is set to the value of the last call.

func (*ScaleApplyConfiguration) WithOwnerReferences

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. If called multiple times, values provided by each call will be appended to the OwnerReferences field.

func (*ScaleApplyConfiguration) WithResourceVersion

func (b *ScaleApplyConfiguration) WithResourceVersion(value string) *ScaleApplyConfiguration

WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ResourceVersion field is set to the value of the last call.

func (*ScaleApplyConfiguration) WithSpec

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. If called multiple times, the Spec field is set to the value of the last call.

func (*ScaleApplyConfiguration) WithStatus

WithStatus sets the Status field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Status field is set to the value of the last call.

func (*ScaleApplyConfiguration) WithUID

WithUID sets the UID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UID field is set to the value of the last call.

Source Files

daemonset.go daemonsetcondition.go daemonsetspec.go daemonsetstatus.go daemonsetupdatestrategy.go deployment.go deploymentcondition.go deploymentspec.go deploymentstatus.go deploymentstrategy.go httpingresspath.go httpingressrulevalue.go ingress.go ingressbackend.go ingressloadbalanceringress.go ingressloadbalancerstatus.go ingressportstatus.go ingressrule.go ingressrulevalue.go ingressspec.go ingressstatus.go ingresstls.go ipblock.go networkpolicy.go networkpolicyegressrule.go networkpolicyingressrule.go networkpolicypeer.go networkpolicyport.go networkpolicyspec.go replicaset.go replicasetcondition.go replicasetspec.go replicasetstatus.go rollbackconfig.go rollingupdatedaemonset.go rollingupdatedeployment.go scale.go

Version
v0.35.0-rc.0
Published
Dec 3, 2025
Platform
linux/amd64
Imports
9 packages
Last checked
7 minutes ago

Tools for package owners.