package v1

import "k8s.io/client-go/applyconfigurations/core/v1"

Index

Types

type AWSElasticBlockStoreVolumeSourceApplyConfiguration

type AWSElasticBlockStoreVolumeSourceApplyConfiguration struct {
	// volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume).
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
	VolumeID *string `json:"volumeID,omitempty"`
	// fsType is the filesystem type of the volume that you want to mount.
	// Tip: Ensure that the filesystem type is supported by the host operating system.
	// Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
	// TODO: how do we prevent errors in the filesystem from compromising the machine
	FSType *string `json:"fsType,omitempty"`
	// partition is the partition in the volume that you want to mount.
	// If omitted, the default is to mount by volume name.
	// Examples: For volume /dev/sda1, you specify the partition as "1".
	// Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty).
	Partition *int32 `json:"partition,omitempty"`
	// readOnly value true will force the readOnly setting in VolumeMounts.
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
	ReadOnly *bool `json:"readOnly,omitempty"`
}

AWSElasticBlockStoreVolumeSourceApplyConfiguration represents a declarative configuration of the AWSElasticBlockStoreVolumeSource type for use with apply.

Represents a Persistent Disk resource in AWS.

An AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling.

func AWSElasticBlockStoreVolumeSource

func AWSElasticBlockStoreVolumeSource() *AWSElasticBlockStoreVolumeSourceApplyConfiguration

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

func (*AWSElasticBlockStoreVolumeSourceApplyConfiguration) WithFSType

WithFSType sets the FSType 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 FSType field is set to the value of the last call.

func (*AWSElasticBlockStoreVolumeSourceApplyConfiguration) WithPartition

WithPartition sets the Partition 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 Partition field is set to the value of the last call.

func (*AWSElasticBlockStoreVolumeSourceApplyConfiguration) WithReadOnly

WithReadOnly sets the ReadOnly 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 ReadOnly field is set to the value of the last call.

func (*AWSElasticBlockStoreVolumeSourceApplyConfiguration) WithVolumeID

WithVolumeID sets the VolumeID 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 VolumeID field is set to the value of the last call.

type AffinityApplyConfiguration

type AffinityApplyConfiguration struct {
	// Describes node affinity scheduling rules for the pod.
	NodeAffinity *NodeAffinityApplyConfiguration `json:"nodeAffinity,omitempty"`
	// Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
	PodAffinity *PodAffinityApplyConfiguration `json:"podAffinity,omitempty"`
	// Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
	PodAntiAffinity *PodAntiAffinityApplyConfiguration `json:"podAntiAffinity,omitempty"`
}

AffinityApplyConfiguration represents a declarative configuration of the Affinity type for use with apply.

Affinity is a group of affinity scheduling rules.

func Affinity

func Affinity() *AffinityApplyConfiguration

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

func (*AffinityApplyConfiguration) WithNodeAffinity

WithNodeAffinity sets the NodeAffinity 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 NodeAffinity field is set to the value of the last call.

func (*AffinityApplyConfiguration) WithPodAffinity

WithPodAffinity sets the PodAffinity 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 PodAffinity field is set to the value of the last call.

func (*AffinityApplyConfiguration) WithPodAntiAffinity

WithPodAntiAffinity sets the PodAntiAffinity 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 PodAntiAffinity field is set to the value of the last call.

type AppArmorProfileApplyConfiguration

type AppArmorProfileApplyConfiguration struct {
	// type indicates which kind of AppArmor profile will be applied.
	// Valid options are:
	// Localhost - a profile pre-loaded on the node.
	// RuntimeDefault - the container runtime's default profile.
	// Unconfined - no AppArmor enforcement.
	Type *corev1.AppArmorProfileType `json:"type,omitempty"`
	// localhostProfile indicates a profile loaded on the node that should be used.
	// The profile must be preconfigured on the node to work.
	// Must match the loaded name of the profile.
	// Must be set if and only if type is "Localhost".
	LocalhostProfile *string `json:"localhostProfile,omitempty"`
}

AppArmorProfileApplyConfiguration represents a declarative configuration of the AppArmorProfile type for use with apply.

AppArmorProfile defines a pod or container's AppArmor settings.

func AppArmorProfile

func AppArmorProfile() *AppArmorProfileApplyConfiguration

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

func (*AppArmorProfileApplyConfiguration) WithLocalhostProfile

WithLocalhostProfile sets the LocalhostProfile 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 LocalhostProfile field is set to the value of the last call.

func (*AppArmorProfileApplyConfiguration) 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 AttachedVolumeApplyConfiguration

type AttachedVolumeApplyConfiguration struct {
	// Name of the attached volume
	Name *corev1.UniqueVolumeName `json:"name,omitempty"`
	// DevicePath represents the device path where the volume should be available
	DevicePath *string `json:"devicePath,omitempty"`
}

AttachedVolumeApplyConfiguration represents a declarative configuration of the AttachedVolume type for use with apply.

AttachedVolume describes a volume attached to a node

func AttachedVolume

func AttachedVolume() *AttachedVolumeApplyConfiguration

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

func (*AttachedVolumeApplyConfiguration) WithDevicePath

WithDevicePath sets the DevicePath 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 DevicePath field is set to the value of the last call.

func (*AttachedVolumeApplyConfiguration) 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.

type AzureDiskVolumeSourceApplyConfiguration

type AzureDiskVolumeSourceApplyConfiguration struct {
	// diskName is the Name of the data disk in the blob storage
	DiskName *string `json:"diskName,omitempty"`
	// diskURI is the URI of data disk in the blob storage
	DataDiskURI *string `json:"diskURI,omitempty"`
	// cachingMode is the Host Caching mode: None, Read Only, Read Write.
	CachingMode *corev1.AzureDataDiskCachingMode `json:"cachingMode,omitempty"`
	// fsType is Filesystem type to mount.
	// Must be a filesystem type supported by the host operating system.
	// Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
	FSType *string `json:"fsType,omitempty"`
	// readOnly Defaults to false (read/write). ReadOnly here will force
	// the ReadOnly setting in VolumeMounts.
	ReadOnly *bool `json:"readOnly,omitempty"`
	// kind expected values are Shared: multiple blob disks per storage account  Dedicated: single blob disk per storage account  Managed: azure managed data disk (only in managed availability set). defaults to shared
	Kind *corev1.AzureDataDiskKind `json:"kind,omitempty"`
}

AzureDiskVolumeSourceApplyConfiguration represents a declarative configuration of the AzureDiskVolumeSource type for use with apply.

AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.

func AzureDiskVolumeSource

func AzureDiskVolumeSource() *AzureDiskVolumeSourceApplyConfiguration

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

func (*AzureDiskVolumeSourceApplyConfiguration) WithCachingMode

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

func (*AzureDiskVolumeSourceApplyConfiguration) WithDataDiskURI

WithDataDiskURI sets the DataDiskURI 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 DataDiskURI field is set to the value of the last call.

func (*AzureDiskVolumeSourceApplyConfiguration) WithDiskName

WithDiskName sets the DiskName 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 DiskName field is set to the value of the last call.

func (*AzureDiskVolumeSourceApplyConfiguration) WithFSType

WithFSType sets the FSType 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 FSType field is set to the value of the last call.

func (*AzureDiskVolumeSourceApplyConfiguration) 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 (*AzureDiskVolumeSourceApplyConfiguration) WithReadOnly

WithReadOnly sets the ReadOnly 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 ReadOnly field is set to the value of the last call.

type AzureFilePersistentVolumeSourceApplyConfiguration

type AzureFilePersistentVolumeSourceApplyConfiguration struct {
	// secretName is the name of secret that contains Azure Storage Account Name and Key
	SecretName *string `json:"secretName,omitempty"`
	// shareName is the azure Share Name
	ShareName *string `json:"shareName,omitempty"`
	// readOnly defaults to false (read/write). ReadOnly here will force
	// the ReadOnly setting in VolumeMounts.
	ReadOnly *bool `json:"readOnly,omitempty"`
	// secretNamespace is the namespace of the secret that contains Azure Storage Account Name and Key
	// default is the same as the Pod
	SecretNamespace *string `json:"secretNamespace,omitempty"`
}

AzureFilePersistentVolumeSourceApplyConfiguration represents a declarative configuration of the AzureFilePersistentVolumeSource type for use with apply.

AzureFile represents an Azure File Service mount on the host and bind mount to the pod.

func AzureFilePersistentVolumeSource

func AzureFilePersistentVolumeSource() *AzureFilePersistentVolumeSourceApplyConfiguration

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

func (*AzureFilePersistentVolumeSourceApplyConfiguration) WithReadOnly

WithReadOnly sets the ReadOnly 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 ReadOnly field is set to the value of the last call.

func (*AzureFilePersistentVolumeSourceApplyConfiguration) 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.

func (*AzureFilePersistentVolumeSourceApplyConfiguration) WithSecretNamespace

WithSecretNamespace sets the SecretNamespace 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 SecretNamespace field is set to the value of the last call.

func (*AzureFilePersistentVolumeSourceApplyConfiguration) WithShareName

WithShareName sets the ShareName 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 ShareName field is set to the value of the last call.

type AzureFileVolumeSourceApplyConfiguration

type AzureFileVolumeSourceApplyConfiguration struct {
	// secretName is the  name of secret that contains Azure Storage Account Name and Key
	SecretName *string `json:"secretName,omitempty"`
	// shareName is the azure share Name
	ShareName *string `json:"shareName,omitempty"`
	// readOnly defaults to false (read/write). ReadOnly here will force
	// the ReadOnly setting in VolumeMounts.
	ReadOnly *bool `json:"readOnly,omitempty"`
}

AzureFileVolumeSourceApplyConfiguration represents a declarative configuration of the AzureFileVolumeSource type for use with apply.

AzureFile represents an Azure File Service mount on the host and bind mount to the pod.

func AzureFileVolumeSource

func AzureFileVolumeSource() *AzureFileVolumeSourceApplyConfiguration

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

func (*AzureFileVolumeSourceApplyConfiguration) WithReadOnly

WithReadOnly sets the ReadOnly 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 ReadOnly field is set to the value of the last call.

func (*AzureFileVolumeSourceApplyConfiguration) 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.

func (*AzureFileVolumeSourceApplyConfiguration) WithShareName

WithShareName sets the ShareName 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 ShareName field is set to the value of the last call.

type CSIPersistentVolumeSourceApplyConfiguration

type CSIPersistentVolumeSourceApplyConfiguration struct {
	// driver is the name of the driver to use for this volume.
	// Required.
	Driver *string `json:"driver,omitempty"`
	// volumeHandle is the unique volume name returned by the CSI volume
	// plugin’s CreateVolume to refer to the volume on all subsequent calls.
	// Required.
	VolumeHandle *string `json:"volumeHandle,omitempty"`
	// readOnly value to pass to ControllerPublishVolumeRequest.
	// Defaults to false (read/write).
	ReadOnly *bool `json:"readOnly,omitempty"`
	// fsType to mount. Must be a filesystem type supported by the host operating system.
	// Ex. "ext4", "xfs", "ntfs".
	FSType *string `json:"fsType,omitempty"`
	// volumeAttributes of the volume to publish.
	VolumeAttributes map[string]string `json:"volumeAttributes,omitempty"`
	// controllerPublishSecretRef is a reference to the secret object containing
	// sensitive information to pass to the CSI driver to complete the CSI
	// ControllerPublishVolume and ControllerUnpublishVolume calls.
	// This field is optional, and may be empty if no secret is required. If the
	// secret object contains more than one secret, all secrets are passed.
	ControllerPublishSecretRef *SecretReferenceApplyConfiguration `json:"controllerPublishSecretRef,omitempty"`
	// nodeStageSecretRef is a reference to the secret object containing sensitive
	// information to pass to the CSI driver to complete the CSI NodeStageVolume
	// and NodeStageVolume and NodeUnstageVolume calls.
	// This field is optional, and may be empty if no secret is required. If the
	// secret object contains more than one secret, all secrets are passed.
	NodeStageSecretRef *SecretReferenceApplyConfiguration `json:"nodeStageSecretRef,omitempty"`
	// nodePublishSecretRef is a reference to the secret object containing
	// sensitive information to pass to the CSI driver to complete the CSI
	// NodePublishVolume and NodeUnpublishVolume calls.
	// This field is optional, and may be empty if no secret is required. If the
	// secret object contains more than one secret, all secrets are passed.
	NodePublishSecretRef *SecretReferenceApplyConfiguration `json:"nodePublishSecretRef,omitempty"`
	// controllerExpandSecretRef is a reference to the secret object containing
	// sensitive information to pass to the CSI driver to complete the CSI
	// ControllerExpandVolume call.
	// This field is optional, and may be empty if no secret is required. If the
	// secret object contains more than one secret, all secrets are passed.
	ControllerExpandSecretRef *SecretReferenceApplyConfiguration `json:"controllerExpandSecretRef,omitempty"`
	// nodeExpandSecretRef is a reference to the secret object containing
	// sensitive information to pass to the CSI driver to complete the CSI
	// NodeExpandVolume call.
	// This field is optional, may be omitted if no secret is required. If the
	// secret object contains more than one secret, all secrets are passed.
	NodeExpandSecretRef *SecretReferenceApplyConfiguration `json:"nodeExpandSecretRef,omitempty"`
}

CSIPersistentVolumeSourceApplyConfiguration represents a declarative configuration of the CSIPersistentVolumeSource type for use with apply.

Represents storage that is managed by an external CSI volume driver

func CSIPersistentVolumeSource

func CSIPersistentVolumeSource() *CSIPersistentVolumeSourceApplyConfiguration

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

func (*CSIPersistentVolumeSourceApplyConfiguration) WithControllerExpandSecretRef

WithControllerExpandSecretRef sets the ControllerExpandSecretRef 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 ControllerExpandSecretRef field is set to the value of the last call.

func (*CSIPersistentVolumeSourceApplyConfiguration) WithControllerPublishSecretRef

WithControllerPublishSecretRef sets the ControllerPublishSecretRef 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 ControllerPublishSecretRef field is set to the value of the last call.

func (*CSIPersistentVolumeSourceApplyConfiguration) WithDriver

WithDriver sets the Driver 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 Driver field is set to the value of the last call.

func (*CSIPersistentVolumeSourceApplyConfiguration) WithFSType

WithFSType sets the FSType 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 FSType field is set to the value of the last call.

func (*CSIPersistentVolumeSourceApplyConfiguration) WithNodeExpandSecretRef

WithNodeExpandSecretRef sets the NodeExpandSecretRef 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 NodeExpandSecretRef field is set to the value of the last call.

func (*CSIPersistentVolumeSourceApplyConfiguration) WithNodePublishSecretRef

WithNodePublishSecretRef sets the NodePublishSecretRef 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 NodePublishSecretRef field is set to the value of the last call.

func (*CSIPersistentVolumeSourceApplyConfiguration) WithNodeStageSecretRef

WithNodeStageSecretRef sets the NodeStageSecretRef 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 NodeStageSecretRef field is set to the value of the last call.

func (*CSIPersistentVolumeSourceApplyConfiguration) WithReadOnly

WithReadOnly sets the ReadOnly 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 ReadOnly field is set to the value of the last call.

func (*CSIPersistentVolumeSourceApplyConfiguration) WithVolumeAttributes

WithVolumeAttributes puts the entries into the VolumeAttributes 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 VolumeAttributes field, overwriting an existing map entries in VolumeAttributes field with the same key.

func (*CSIPersistentVolumeSourceApplyConfiguration) WithVolumeHandle

WithVolumeHandle sets the VolumeHandle 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 VolumeHandle field is set to the value of the last call.

type CSIVolumeSourceApplyConfiguration

type CSIVolumeSourceApplyConfiguration struct {
	// driver is the name of the CSI driver that handles this volume.
	// Consult with your admin for the correct name as registered in the cluster.
	Driver *string `json:"driver,omitempty"`
	// readOnly specifies a read-only configuration for the volume.
	// Defaults to false (read/write).
	ReadOnly *bool `json:"readOnly,omitempty"`
	// fsType to mount. Ex. "ext4", "xfs", "ntfs".
	// If not provided, the empty value is passed to the associated CSI driver
	// which will determine the default filesystem to apply.
	FSType *string `json:"fsType,omitempty"`
	// volumeAttributes stores driver-specific properties that are passed to the CSI
	// driver. Consult your driver's documentation for supported values.
	VolumeAttributes map[string]string `json:"volumeAttributes,omitempty"`
	// nodePublishSecretRef is a reference to the secret object containing
	// sensitive information to pass to the CSI driver to complete the CSI
	// NodePublishVolume and NodeUnpublishVolume calls.
	// This field is optional, and  may be empty if no secret is required. If the
	// secret object contains more than one secret, all secret references are passed.
	NodePublishSecretRef *LocalObjectReferenceApplyConfiguration `json:"nodePublishSecretRef,omitempty"`
}

CSIVolumeSourceApplyConfiguration represents a declarative configuration of the CSIVolumeSource type for use with apply.

Represents a source location of a volume to mount, managed by an external CSI driver

func CSIVolumeSource

func CSIVolumeSource() *CSIVolumeSourceApplyConfiguration

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

func (*CSIVolumeSourceApplyConfiguration) WithDriver

WithDriver sets the Driver 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 Driver field is set to the value of the last call.

func (*CSIVolumeSourceApplyConfiguration) WithFSType

WithFSType sets the FSType 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 FSType field is set to the value of the last call.

func (*CSIVolumeSourceApplyConfiguration) WithNodePublishSecretRef

WithNodePublishSecretRef sets the NodePublishSecretRef 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 NodePublishSecretRef field is set to the value of the last call.

func (*CSIVolumeSourceApplyConfiguration) WithReadOnly

WithReadOnly sets the ReadOnly 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 ReadOnly field is set to the value of the last call.

func (*CSIVolumeSourceApplyConfiguration) WithVolumeAttributes

WithVolumeAttributes puts the entries into the VolumeAttributes 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 VolumeAttributes field, overwriting an existing map entries in VolumeAttributes field with the same key.

type CapabilitiesApplyConfiguration

type CapabilitiesApplyConfiguration struct {
	// Added capabilities
	Add []corev1.Capability `json:"add,omitempty"`
	// Removed capabilities
	Drop []corev1.Capability `json:"drop,omitempty"`
}

CapabilitiesApplyConfiguration represents a declarative configuration of the Capabilities type for use with apply.

Adds and removes POSIX capabilities from running containers.

func Capabilities

func Capabilities() *CapabilitiesApplyConfiguration

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

func (*CapabilitiesApplyConfiguration) WithAdd

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

func (*CapabilitiesApplyConfiguration) WithDrop

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

type CephFSPersistentVolumeSourceApplyConfiguration

type CephFSPersistentVolumeSourceApplyConfiguration struct {
	// monitors is Required: Monitors is a collection of Ceph monitors
	// More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
	Monitors []string `json:"monitors,omitempty"`
	// path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /
	Path *string `json:"path,omitempty"`
	// user is Optional: User is the rados user name, default is admin
	// More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
	User *string `json:"user,omitempty"`
	// secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
	// More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
	SecretFile *string `json:"secretFile,omitempty"`
	// secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty.
	// More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
	SecretRef *SecretReferenceApplyConfiguration `json:"secretRef,omitempty"`
	// readOnly is Optional: Defaults to false (read/write). ReadOnly here will force
	// the ReadOnly setting in VolumeMounts.
	// More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
	ReadOnly *bool `json:"readOnly,omitempty"`
}

CephFSPersistentVolumeSourceApplyConfiguration represents a declarative configuration of the CephFSPersistentVolumeSource type for use with apply.

Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.

func CephFSPersistentVolumeSource

func CephFSPersistentVolumeSource() *CephFSPersistentVolumeSourceApplyConfiguration

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

func (*CephFSPersistentVolumeSourceApplyConfiguration) WithMonitors

WithMonitors adds the given value to the Monitors 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 Monitors field.

func (*CephFSPersistentVolumeSourceApplyConfiguration) 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 (*CephFSPersistentVolumeSourceApplyConfiguration) WithReadOnly

WithReadOnly sets the ReadOnly 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 ReadOnly field is set to the value of the last call.

func (*CephFSPersistentVolumeSourceApplyConfiguration) WithSecretFile

WithSecretFile sets the SecretFile 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 SecretFile field is set to the value of the last call.

func (*CephFSPersistentVolumeSourceApplyConfiguration) WithSecretRef

WithSecretRef sets the SecretRef 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 SecretRef field is set to the value of the last call.

func (*CephFSPersistentVolumeSourceApplyConfiguration) WithUser

WithUser sets the User 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 User field is set to the value of the last call.

type CephFSVolumeSourceApplyConfiguration

type CephFSVolumeSourceApplyConfiguration struct {
	// monitors is Required: Monitors is a collection of Ceph monitors
	// More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
	Monitors []string `json:"monitors,omitempty"`
	// path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /
	Path *string `json:"path,omitempty"`
	// user is optional: User is the rados user name, default is admin
	// More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
	User *string `json:"user,omitempty"`
	// secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
	// More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
	SecretFile *string `json:"secretFile,omitempty"`
	// secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty.
	// More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
	SecretRef *LocalObjectReferenceApplyConfiguration `json:"secretRef,omitempty"`
	// readOnly is Optional: Defaults to false (read/write). ReadOnly here will force
	// the ReadOnly setting in VolumeMounts.
	// More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
	ReadOnly *bool `json:"readOnly,omitempty"`
}

CephFSVolumeSourceApplyConfiguration represents a declarative configuration of the CephFSVolumeSource type for use with apply.

Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.

func CephFSVolumeSource

func CephFSVolumeSource() *CephFSVolumeSourceApplyConfiguration

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

func (*CephFSVolumeSourceApplyConfiguration) WithMonitors

WithMonitors adds the given value to the Monitors 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 Monitors field.

func (*CephFSVolumeSourceApplyConfiguration) 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 (*CephFSVolumeSourceApplyConfiguration) WithReadOnly

WithReadOnly sets the ReadOnly 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 ReadOnly field is set to the value of the last call.

func (*CephFSVolumeSourceApplyConfiguration) WithSecretFile

WithSecretFile sets the SecretFile 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 SecretFile field is set to the value of the last call.

func (*CephFSVolumeSourceApplyConfiguration) WithSecretRef

WithSecretRef sets the SecretRef 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 SecretRef field is set to the value of the last call.

func (*CephFSVolumeSourceApplyConfiguration) WithUser

WithUser sets the User 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 User field is set to the value of the last call.

type CinderPersistentVolumeSourceApplyConfiguration

type CinderPersistentVolumeSourceApplyConfiguration struct {
	// volumeID used to identify the volume in cinder.
	// More info: https://examples.k8s.io/mysql-cinder-pd/README.md
	VolumeID *string `json:"volumeID,omitempty"`
	// fsType Filesystem type to mount.
	// Must be a filesystem type supported by the host operating system.
	// Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
	// More info: https://examples.k8s.io/mysql-cinder-pd/README.md
	FSType *string `json:"fsType,omitempty"`
	// readOnly is Optional: Defaults to false (read/write). ReadOnly here will force
	// the ReadOnly setting in VolumeMounts.
	// More info: https://examples.k8s.io/mysql-cinder-pd/README.md
	ReadOnly *bool `json:"readOnly,omitempty"`
	// secretRef is Optional: points to a secret object containing parameters used to connect
	// to OpenStack.
	SecretRef *SecretReferenceApplyConfiguration `json:"secretRef,omitempty"`
}

CinderPersistentVolumeSourceApplyConfiguration represents a declarative configuration of the CinderPersistentVolumeSource type for use with apply.

Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.

func CinderPersistentVolumeSource

func CinderPersistentVolumeSource() *CinderPersistentVolumeSourceApplyConfiguration

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

func (*CinderPersistentVolumeSourceApplyConfiguration) WithFSType

WithFSType sets the FSType 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 FSType field is set to the value of the last call.

func (*CinderPersistentVolumeSourceApplyConfiguration) WithReadOnly

WithReadOnly sets the ReadOnly 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 ReadOnly field is set to the value of the last call.

func (*CinderPersistentVolumeSourceApplyConfiguration) WithSecretRef

WithSecretRef sets the SecretRef 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 SecretRef field is set to the value of the last call.

func (*CinderPersistentVolumeSourceApplyConfiguration) WithVolumeID

WithVolumeID sets the VolumeID 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 VolumeID field is set to the value of the last call.

type CinderVolumeSourceApplyConfiguration

type CinderVolumeSourceApplyConfiguration struct {
	// volumeID used to identify the volume in cinder.
	// More info: https://examples.k8s.io/mysql-cinder-pd/README.md
	VolumeID *string `json:"volumeID,omitempty"`
	// fsType is the filesystem type to mount.
	// Must be a filesystem type supported by the host operating system.
	// Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
	// More info: https://examples.k8s.io/mysql-cinder-pd/README.md
	FSType *string `json:"fsType,omitempty"`
	// readOnly defaults to false (read/write). ReadOnly here will force
	// the ReadOnly setting in VolumeMounts.
	// More info: https://examples.k8s.io/mysql-cinder-pd/README.md
	ReadOnly *bool `json:"readOnly,omitempty"`
	// secretRef is optional: points to a secret object containing parameters used to connect
	// to OpenStack.
	SecretRef *LocalObjectReferenceApplyConfiguration `json:"secretRef,omitempty"`
}

CinderVolumeSourceApplyConfiguration represents a declarative configuration of the CinderVolumeSource type for use with apply.

Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.

func CinderVolumeSource

func CinderVolumeSource() *CinderVolumeSourceApplyConfiguration

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

func (*CinderVolumeSourceApplyConfiguration) WithFSType

WithFSType sets the FSType 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 FSType field is set to the value of the last call.

func (*CinderVolumeSourceApplyConfiguration) WithReadOnly

WithReadOnly sets the ReadOnly 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 ReadOnly field is set to the value of the last call.

func (*CinderVolumeSourceApplyConfiguration) WithSecretRef

WithSecretRef sets the SecretRef 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 SecretRef field is set to the value of the last call.

func (*CinderVolumeSourceApplyConfiguration) WithVolumeID

WithVolumeID sets the VolumeID 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 VolumeID field is set to the value of the last call.

type ClientIPConfigApplyConfiguration

type ClientIPConfigApplyConfiguration struct {
	// timeoutSeconds specifies the seconds of ClientIP type session sticky time.
	// The value must be >0 && <=86400(for 1 day) if ServiceAffinity == "ClientIP".
	// Default value is 10800(for 3 hours).
	TimeoutSeconds *int32 `json:"timeoutSeconds,omitempty"`
}

ClientIPConfigApplyConfiguration represents a declarative configuration of the ClientIPConfig type for use with apply.

ClientIPConfig represents the configurations of Client IP based session affinity.

func ClientIPConfig

func ClientIPConfig() *ClientIPConfigApplyConfiguration

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

func (*ClientIPConfigApplyConfiguration) WithTimeoutSeconds

WithTimeoutSeconds sets the TimeoutSeconds 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 TimeoutSeconds field is set to the value of the last call.

type ClusterTrustBundleProjectionApplyConfiguration

type ClusterTrustBundleProjectionApplyConfiguration struct {
	// Select a single ClusterTrustBundle by object name.  Mutually-exclusive
	// with signerName and labelSelector.
	Name *string `json:"name,omitempty"`
	// Select all ClusterTrustBundles that match this signer name.
	// Mutually-exclusive with name.  The contents of all selected
	// ClusterTrustBundles will be unified and deduplicated.
	SignerName *string `json:"signerName,omitempty"`
	// Select all ClusterTrustBundles that match this label selector.  Only has
	// effect if signerName is set.  Mutually-exclusive with name.  If unset,
	// interpreted as "match nothing".  If set but empty, interpreted as "match
	// everything".
	LabelSelector *metav1.LabelSelectorApplyConfiguration `json:"labelSelector,omitempty"`
	// If true, don't block pod startup if the referenced ClusterTrustBundle(s)
	// aren't available.  If using name, then the named ClusterTrustBundle is
	// allowed not to exist.  If using signerName, then the combination of
	// signerName and labelSelector is allowed to match zero
	// ClusterTrustBundles.
	Optional *bool `json:"optional,omitempty"`
	// Relative path from the volume root to write the bundle.
	Path *string `json:"path,omitempty"`
}

ClusterTrustBundleProjectionApplyConfiguration represents a declarative configuration of the ClusterTrustBundleProjection type for use with apply.

ClusterTrustBundleProjection describes how to select a set of ClusterTrustBundle objects and project their contents into the pod filesystem.

func ClusterTrustBundleProjection

func ClusterTrustBundleProjection() *ClusterTrustBundleProjectionApplyConfiguration

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

func (*ClusterTrustBundleProjectionApplyConfiguration) WithLabelSelector

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

func (*ClusterTrustBundleProjectionApplyConfiguration) 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 (*ClusterTrustBundleProjectionApplyConfiguration) WithOptional

WithOptional sets the Optional 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 Optional field is set to the value of the last call.

func (*ClusterTrustBundleProjectionApplyConfiguration) 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 (*ClusterTrustBundleProjectionApplyConfiguration) WithSignerName

WithSignerName sets the SignerName 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 SignerName field is set to the value of the last call.

type ComponentConditionApplyConfiguration

type ComponentConditionApplyConfiguration struct {
	// Type of condition for a component.
	// Valid value: "Healthy"
	Type *corev1.ComponentConditionType `json:"type,omitempty"`
	// Status of the condition for a component.
	// Valid values for "Healthy": "True", "False", or "Unknown".
	Status *corev1.ConditionStatus `json:"status,omitempty"`
	// Message about the condition for a component.
	// For example, information about a health check.
	Message *string `json:"message,omitempty"`
	// Condition error code for a component.
	// For example, a health check error code.
	Error *string `json:"error,omitempty"`
}

ComponentConditionApplyConfiguration represents a declarative configuration of the ComponentCondition type for use with apply.

Information about the condition of a component.

func ComponentCondition

func ComponentCondition() *ComponentConditionApplyConfiguration

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

func (*ComponentConditionApplyConfiguration) 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 (*ComponentConditionApplyConfiguration) 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 (*ComponentConditionApplyConfiguration) 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 (*ComponentConditionApplyConfiguration) 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 ComponentStatusApplyConfiguration

type ComponentStatusApplyConfiguration struct {
	metav1.TypeMetaApplyConfiguration `json:",inline"`
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	// List of component conditions observed
	Conditions []ComponentConditionApplyConfiguration `json:"conditions,omitempty"`
}

ComponentStatusApplyConfiguration represents a declarative configuration of the ComponentStatus type for use with apply.

ComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+

func ComponentStatus

func ComponentStatus(name string) *ComponentStatusApplyConfiguration

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

func ExtractComponentStatus

func ExtractComponentStatus(componentStatus *corev1.ComponentStatus, fieldManager string) (*ComponentStatusApplyConfiguration, error)

ExtractComponentStatus extracts the applied configuration owned by fieldManager from componentStatus. If no managedFields are found in componentStatus for fieldManager, a ComponentStatusApplyConfiguration 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. componentStatus must be a unmodified ComponentStatus API object that was retrieved from the Kubernetes API. ExtractComponentStatus 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 ExtractComponentStatusFrom

func ExtractComponentStatusFrom(componentStatus *corev1.ComponentStatus, fieldManager string, subresource string) (*ComponentStatusApplyConfiguration, error)

ExtractComponentStatusFrom extracts the applied configuration owned by fieldManager from componentStatus for the specified subresource. Pass an empty string for subresource to extract the main resource. Common subresources include "status", "scale", etc. componentStatus must be a unmodified ComponentStatus API object that was retrieved from the Kubernetes API. ExtractComponentStatusFrom 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 (*ComponentStatusApplyConfiguration) GetAPIVersion

func (b *ComponentStatusApplyConfiguration) GetAPIVersion() *string

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

func (*ComponentStatusApplyConfiguration) GetKind

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

func (*ComponentStatusApplyConfiguration) GetName

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

func (*ComponentStatusApplyConfiguration) GetNamespace

func (b *ComponentStatusApplyConfiguration) GetNamespace() *string

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

func (ComponentStatusApplyConfiguration) IsApplyConfiguration

func (b ComponentStatusApplyConfiguration) IsApplyConfiguration()

func (*ComponentStatusApplyConfiguration) 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 (*ComponentStatusApplyConfiguration) 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 (*ComponentStatusApplyConfiguration) 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 (*ComponentStatusApplyConfiguration) 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 (*ComponentStatusApplyConfiguration) WithDeletionGracePeriodSeconds

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

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 (*ComponentStatusApplyConfiguration) 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 (*ComponentStatusApplyConfiguration) 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 (*ComponentStatusApplyConfiguration) 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 (*ComponentStatusApplyConfiguration) 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 (*ComponentStatusApplyConfiguration) 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 (*ComponentStatusApplyConfiguration) 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 (*ComponentStatusApplyConfiguration) 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 (*ComponentStatusApplyConfiguration) 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 (*ComponentStatusApplyConfiguration) 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 (*ComponentStatusApplyConfiguration) 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 (*ComponentStatusApplyConfiguration) 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 ConfigMapApplyConfiguration

type ConfigMapApplyConfiguration struct {
	metav1.TypeMetaApplyConfiguration `json:",inline"`
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	// Immutable, if set to true, ensures that data stored in the ConfigMap cannot
	// be updated (only object metadata can be modified).
	// If not set to true, the field can be modified at any time.
	// Defaulted to nil.
	Immutable *bool `json:"immutable,omitempty"`
	// Data contains the configuration data.
	// Each key must consist of alphanumeric characters, '-', '_' or '.'.
	// Values with non-UTF-8 byte sequences must use the BinaryData field.
	// The keys stored in Data must not overlap with the keys in
	// the BinaryData field, this is enforced during validation process.
	Data map[string]string `json:"data,omitempty"`
	// BinaryData contains the binary data.
	// Each key must consist of alphanumeric characters, '-', '_' or '.'.
	// BinaryData can contain byte sequences that are not in the UTF-8 range.
	// The keys stored in BinaryData must not overlap with the ones in
	// the Data field, this is enforced during validation process.
	// Using this field will require 1.10+ apiserver and
	// kubelet.
	BinaryData map[string][]byte `json:"binaryData,omitempty"`
}

ConfigMapApplyConfiguration represents a declarative configuration of the ConfigMap type for use with apply.

ConfigMap holds configuration data for pods to consume.

func ConfigMap

func ConfigMap(name, namespace string) *ConfigMapApplyConfiguration

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

func ExtractConfigMap

func ExtractConfigMap(configMap *corev1.ConfigMap, fieldManager string) (*ConfigMapApplyConfiguration, error)

ExtractConfigMap extracts the applied configuration owned by fieldManager from configMap. If no managedFields are found in configMap for fieldManager, a ConfigMapApplyConfiguration 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. configMap must be a unmodified ConfigMap API object that was retrieved from the Kubernetes API. ExtractConfigMap 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 ExtractConfigMapFrom

func ExtractConfigMapFrom(configMap *corev1.ConfigMap, fieldManager string, subresource string) (*ConfigMapApplyConfiguration, error)

ExtractConfigMapFrom extracts the applied configuration owned by fieldManager from configMap for the specified subresource. Pass an empty string for subresource to extract the main resource. Common subresources include "status", "scale", etc. configMap must be a unmodified ConfigMap API object that was retrieved from the Kubernetes API. ExtractConfigMapFrom 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 (*ConfigMapApplyConfiguration) GetAPIVersion

func (b *ConfigMapApplyConfiguration) GetAPIVersion() *string

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

func (*ConfigMapApplyConfiguration) GetKind

func (b *ConfigMapApplyConfiguration) GetKind() *string

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

func (*ConfigMapApplyConfiguration) GetName

func (b *ConfigMapApplyConfiguration) GetName() *string

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

func (*ConfigMapApplyConfiguration) GetNamespace

func (b *ConfigMapApplyConfiguration) GetNamespace() *string

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

func (ConfigMapApplyConfiguration) IsApplyConfiguration

func (b ConfigMapApplyConfiguration) IsApplyConfiguration()

func (*ConfigMapApplyConfiguration) 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 (*ConfigMapApplyConfiguration) WithAnnotations

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

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 (*ConfigMapApplyConfiguration) WithBinaryData

func (b *ConfigMapApplyConfiguration) WithBinaryData(entries map[string][]byte) *ConfigMapApplyConfiguration

WithBinaryData puts the entries into the BinaryData 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 BinaryData field, overwriting an existing map entries in BinaryData field with the same key.

func (*ConfigMapApplyConfiguration) 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 (*ConfigMapApplyConfiguration) WithData

WithData puts the entries into the Data 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 Data field, overwriting an existing map entries in Data field with the same key.

func (*ConfigMapApplyConfiguration) WithDeletionGracePeriodSeconds

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

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 (*ConfigMapApplyConfiguration) 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 (*ConfigMapApplyConfiguration) WithFinalizers

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

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 (*ConfigMapApplyConfiguration) 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 (*ConfigMapApplyConfiguration) 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 (*ConfigMapApplyConfiguration) WithImmutable

WithImmutable sets the Immutable 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 Immutable field is set to the value of the last call.

func (*ConfigMapApplyConfiguration) 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 (*ConfigMapApplyConfiguration) 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 (*ConfigMapApplyConfiguration) 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 (*ConfigMapApplyConfiguration) 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 (*ConfigMapApplyConfiguration) 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 (*ConfigMapApplyConfiguration) WithResourceVersion

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

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 (*ConfigMapApplyConfiguration) 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 ConfigMapEnvSourceApplyConfiguration

type ConfigMapEnvSourceApplyConfiguration struct {
	// The ConfigMap to select from.
	LocalObjectReferenceApplyConfiguration `json:",inline"`
	// Specify whether the ConfigMap must be defined
	Optional *bool `json:"optional,omitempty"`
}

ConfigMapEnvSourceApplyConfiguration represents a declarative configuration of the ConfigMapEnvSource type for use with apply.

ConfigMapEnvSource selects a ConfigMap to populate the environment variables with.

The contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables.

func ConfigMapEnvSource

func ConfigMapEnvSource() *ConfigMapEnvSourceApplyConfiguration

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

func (*ConfigMapEnvSourceApplyConfiguration) 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 (*ConfigMapEnvSourceApplyConfiguration) WithOptional

WithOptional sets the Optional 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 Optional field is set to the value of the last call.

type ConfigMapKeySelectorApplyConfiguration

type ConfigMapKeySelectorApplyConfiguration struct {
	// The ConfigMap to select from.
	LocalObjectReferenceApplyConfiguration `json:",inline"`
	// The key to select.
	Key *string `json:"key,omitempty"`
	// Specify whether the ConfigMap or its key must be defined
	Optional *bool `json:"optional,omitempty"`
}

ConfigMapKeySelectorApplyConfiguration represents a declarative configuration of the ConfigMapKeySelector type for use with apply.

Selects a key from a ConfigMap.

func ConfigMapKeySelector

func ConfigMapKeySelector() *ConfigMapKeySelectorApplyConfiguration

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

func (*ConfigMapKeySelectorApplyConfiguration) WithKey

WithKey sets the Key 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 Key field is set to the value of the last call.

func (*ConfigMapKeySelectorApplyConfiguration) 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 (*ConfigMapKeySelectorApplyConfiguration) WithOptional

WithOptional sets the Optional 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 Optional field is set to the value of the last call.

type ConfigMapNodeConfigSourceApplyConfiguration

type ConfigMapNodeConfigSourceApplyConfiguration struct {
	// Namespace is the metadata.namespace of the referenced ConfigMap.
	// This field is required in all cases.
	Namespace *string `json:"namespace,omitempty"`
	// Name is the metadata.name of the referenced ConfigMap.
	// This field is required in all cases.
	Name *string `json:"name,omitempty"`
	// UID is the metadata.UID of the referenced ConfigMap.
	// This field is forbidden in Node.Spec, and required in Node.Status.
	UID *types.UID `json:"uid,omitempty"`
	// ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap.
	// This field is forbidden in Node.Spec, and required in Node.Status.
	ResourceVersion *string `json:"resourceVersion,omitempty"`
	// KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure
	// This field is required in all cases.
	KubeletConfigKey *string `json:"kubeletConfigKey,omitempty"`
}

ConfigMapNodeConfigSourceApplyConfiguration represents a declarative configuration of the ConfigMapNodeConfigSource type for use with apply.

ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration

func ConfigMapNodeConfigSource

func ConfigMapNodeConfigSource() *ConfigMapNodeConfigSourceApplyConfiguration

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

func (*ConfigMapNodeConfigSourceApplyConfiguration) WithKubeletConfigKey

WithKubeletConfigKey sets the KubeletConfigKey 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 KubeletConfigKey field is set to the value of the last call.

func (*ConfigMapNodeConfigSourceApplyConfiguration) 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 (*ConfigMapNodeConfigSourceApplyConfiguration) 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 (*ConfigMapNodeConfigSourceApplyConfiguration) 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 (*ConfigMapNodeConfigSourceApplyConfiguration) 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 ConfigMapProjectionApplyConfiguration

type ConfigMapProjectionApplyConfiguration struct {
	LocalObjectReferenceApplyConfiguration `json:",inline"`
	// items if unspecified, each key-value pair in the Data field of the referenced
	// ConfigMap will be projected into the volume as a file whose name is the
	// key and content is the value. If specified, the listed keys will be
	// projected into the specified paths, and unlisted keys will not be
	// present. If a key is specified which is not present in the ConfigMap,
	// the volume setup will error unless it is marked optional. Paths must be
	// relative and may not contain the '..' path or start with '..'.
	Items []KeyToPathApplyConfiguration `json:"items,omitempty"`
	// optional specify whether the ConfigMap or its keys must be defined
	Optional *bool `json:"optional,omitempty"`
}

ConfigMapProjectionApplyConfiguration represents a declarative configuration of the ConfigMapProjection type for use with apply.

Adapts a ConfigMap into a projected volume.

The contents of the target ConfigMap's Data field will be presented in a projected volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. Note that this is identical to a configmap volume source without the default mode.

func ConfigMapProjection

func ConfigMapProjection() *ConfigMapProjectionApplyConfiguration

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

func (*ConfigMapProjectionApplyConfiguration) WithItems

WithItems adds the given value to the Items 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 Items field.

func (*ConfigMapProjectionApplyConfiguration) 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 (*ConfigMapProjectionApplyConfiguration) WithOptional

WithOptional sets the Optional 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 Optional field is set to the value of the last call.

type ConfigMapVolumeSourceApplyConfiguration

type ConfigMapVolumeSourceApplyConfiguration struct {
	LocalObjectReferenceApplyConfiguration `json:",inline"`
	// items if unspecified, each key-value pair in the Data field of the referenced
	// ConfigMap will be projected into the volume as a file whose name is the
	// key and content is the value. If specified, the listed keys will be
	// projected into the specified paths, and unlisted keys will not be
	// present. If a key is specified which is not present in the ConfigMap,
	// the volume setup will error unless it is marked optional. Paths must be
	// relative and may not contain the '..' path or start with '..'.
	Items []KeyToPathApplyConfiguration `json:"items,omitempty"`
	// defaultMode is optional: mode bits used to set permissions on created files by default.
	// Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
	// YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
	// Defaults to 0644.
	// Directories within the path are not affected by this setting.
	// This might be in conflict with other options that affect the file
	// mode, like fsGroup, and the result can be other mode bits set.
	DefaultMode *int32 `json:"defaultMode,omitempty"`
	// optional specify whether the ConfigMap or its keys must be defined
	Optional *bool `json:"optional,omitempty"`
}

ConfigMapVolumeSourceApplyConfiguration represents a declarative configuration of the ConfigMapVolumeSource type for use with apply.

Adapts a ConfigMap into a volume.

The contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling.

func ConfigMapVolumeSource

func ConfigMapVolumeSource() *ConfigMapVolumeSourceApplyConfiguration

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

func (*ConfigMapVolumeSourceApplyConfiguration) WithDefaultMode

WithDefaultMode sets the DefaultMode 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 DefaultMode field is set to the value of the last call.

func (*ConfigMapVolumeSourceApplyConfiguration) WithItems

WithItems adds the given value to the Items 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 Items field.

func (*ConfigMapVolumeSourceApplyConfiguration) 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 (*ConfigMapVolumeSourceApplyConfiguration) WithOptional

WithOptional sets the Optional 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 Optional field is set to the value of the last call.

type ContainerApplyConfiguration

type ContainerApplyConfiguration struct {
	// Name of the container specified as a DNS_LABEL.
	// Each container in a pod must have a unique name (DNS_LABEL).
	// Cannot be updated.
	Name *string `json:"name,omitempty"`
	// Container image name.
	// More info: https://kubernetes.io/docs/concepts/containers/images
	// This field is optional to allow higher level config management to default or override
	// container images in workload controllers like Deployments and StatefulSets.
	Image *string `json:"image,omitempty"`
	// Entrypoint array. Not executed within a shell.
	// The container image's ENTRYPOINT is used if this is not provided.
	// Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
	// cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
	// to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
	// produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
	// of whether the variable exists or not. Cannot be updated.
	// More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
	Command []string `json:"command,omitempty"`
	// Arguments to the entrypoint.
	// The container image's CMD is used if this is not provided.
	// Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
	// cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
	// to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
	// produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
	// of whether the variable exists or not. Cannot be updated.
	// More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
	Args []string `json:"args,omitempty"`
	// Container's working directory.
	// If not specified, the container runtime's default will be used, which
	// might be configured in the container image.
	// Cannot be updated.
	WorkingDir *string `json:"workingDir,omitempty"`
	// List of ports to expose from the container. Not specifying a port here
	// DOES NOT prevent that port from being exposed. Any port which is
	// listening on the default "0.0.0.0" address inside a container will be
	// accessible from the network.
	// Modifying this array with strategic merge patch may corrupt the data.
	// For more information See https://github.com/kubernetes/kubernetes/issues/108255.
	// Cannot be updated.
	Ports []ContainerPortApplyConfiguration `json:"ports,omitempty"`
	// List of sources to populate environment variables in the container.
	// The keys defined within a source may consist of any printable ASCII characters except '='.
	// When a key exists in multiple
	// sources, the value associated with the last source will take precedence.
	// Values defined by an Env with a duplicate key will take precedence.
	// Cannot be updated.
	EnvFrom []EnvFromSourceApplyConfiguration `json:"envFrom,omitempty"`
	// List of environment variables to set in the container.
	// Cannot be updated.
	Env []EnvVarApplyConfiguration `json:"env,omitempty"`
	// Compute Resources required by this container.
	// Cannot be updated.
	// More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
	Resources *ResourceRequirementsApplyConfiguration `json:"resources,omitempty"`
	// Resources resize policy for the container.
	// This field cannot be set on ephemeral containers.
	ResizePolicy []ContainerResizePolicyApplyConfiguration `json:"resizePolicy,omitempty"`
	// RestartPolicy defines the restart behavior of individual containers in a pod.
	// This overrides the pod-level restart policy. When this field is not specified,
	// the restart behavior is defined by the Pod's restart policy and the container type.
	// Additionally, setting the RestartPolicy as "Always" for the init container will
	// have the following effect:
	// this init container will be continually restarted on
	// exit until all regular containers have terminated. Once all regular
	// containers have completed, all init containers with restartPolicy "Always"
	// will be shut down. This lifecycle differs from normal init containers and
	// is often referred to as a "sidecar" container. Although this init
	// container still starts in the init container sequence, it does not wait
	// for the container to complete before proceeding to the next init
	// container. Instead, the next init container starts immediately after this
	// init container is started, or after any startupProbe has successfully
	// completed.
	RestartPolicy *corev1.ContainerRestartPolicy `json:"restartPolicy,omitempty"`
	// Represents a list of rules to be checked to determine if the
	// container should be restarted on exit. The rules are evaluated in
	// order. Once a rule matches a container exit condition, the remaining
	// rules are ignored. If no rule matches the container exit condition,
	// the Container-level restart policy determines the whether the container
	// is restarted or not. Constraints on the rules:
	// - At most 20 rules are allowed.
	// - Rules can have the same action.
	// - Identical rules are not forbidden in validations.
	// When rules are specified, container MUST set RestartPolicy explicitly
	// even it if matches the Pod's RestartPolicy.
	RestartPolicyRules []ContainerRestartRuleApplyConfiguration `json:"restartPolicyRules,omitempty"`
	// Pod volumes to mount into the container's filesystem.
	// Cannot be updated.
	VolumeMounts []VolumeMountApplyConfiguration `json:"volumeMounts,omitempty"`
	// volumeDevices is the list of block devices to be used by the container.
	VolumeDevices []VolumeDeviceApplyConfiguration `json:"volumeDevices,omitempty"`
	// Periodic probe of container liveness.
	// Container will be restarted if the probe fails.
	// Cannot be updated.
	// More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
	LivenessProbe *ProbeApplyConfiguration `json:"livenessProbe,omitempty"`
	// Periodic probe of container service readiness.
	// Container will be removed from service endpoints if the probe fails.
	// Cannot be updated.
	// More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
	ReadinessProbe *ProbeApplyConfiguration `json:"readinessProbe,omitempty"`
	// StartupProbe indicates that the Pod has successfully initialized.
	// If specified, no other probes are executed until this completes successfully.
	// If this probe fails, the Pod will be restarted, just as if the livenessProbe failed.
	// This can be used to provide different probe parameters at the beginning of a Pod's lifecycle,
	// when it might take a long time to load data or warm a cache, than during steady-state operation.
	// This cannot be updated.
	// More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
	StartupProbe *ProbeApplyConfiguration `json:"startupProbe,omitempty"`
	// Actions that the management system should take in response to container lifecycle events.
	// Cannot be updated.
	Lifecycle *LifecycleApplyConfiguration `json:"lifecycle,omitempty"`
	// Optional: Path at which the file to which the container's termination message
	// will be written is mounted into the container's filesystem.
	// Message written is intended to be brief final status, such as an assertion failure message.
	// Will be truncated by the node if greater than 4096 bytes. The total message length across
	// all containers will be limited to 12kb.
	// Defaults to /dev/termination-log.
	// Cannot be updated.
	TerminationMessagePath *string `json:"terminationMessagePath,omitempty"`
	// Indicate how the termination message should be populated. File will use the contents of
	// terminationMessagePath to populate the container status message on both success and failure.
	// FallbackToLogsOnError will use the last chunk of container log output if the termination
	// message file is empty and the container exited with an error.
	// The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
	// Defaults to File.
	// Cannot be updated.
	TerminationMessagePolicy *corev1.TerminationMessagePolicy `json:"terminationMessagePolicy,omitempty"`
	// Image pull policy.
	// One of Always, Never, IfNotPresent.
	// Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
	// Cannot be updated.
	// More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
	ImagePullPolicy *corev1.PullPolicy `json:"imagePullPolicy,omitempty"`
	// SecurityContext defines the security options the container should be run with.
	// If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.
	// More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
	SecurityContext *SecurityContextApplyConfiguration `json:"securityContext,omitempty"`
	// Whether this container should allocate a buffer for stdin in the container runtime. If this
	// is not set, reads from stdin in the container will always result in EOF.
	// Default is false.
	Stdin *bool `json:"stdin,omitempty"`
	// Whether the container runtime should close the stdin channel after it has been opened by
	// a single attach. When stdin is true the stdin stream will remain open across multiple attach
	// sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the
	// first client attaches to stdin, and then remains open and accepts data until the client disconnects,
	// at which time stdin is closed and remains closed until the container is restarted. If this
	// flag is false, a container processes that reads from stdin will never receive an EOF.
	// Default is false
	StdinOnce *bool `json:"stdinOnce,omitempty"`
	// Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
	// Default is false.
	TTY *bool `json:"tty,omitempty"`
}

ContainerApplyConfiguration represents a declarative configuration of the Container type for use with apply.

A single application container that you want to run within a pod.

func Container

func Container() *ContainerApplyConfiguration

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

func (*ContainerApplyConfiguration) WithArgs

WithArgs adds the given value to the Args 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 Args field.

func (*ContainerApplyConfiguration) WithCommand

WithCommand adds the given value to the Command 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 Command field.

func (*ContainerApplyConfiguration) WithEnv

WithEnv adds the given value to the Env 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 Env field.

func (*ContainerApplyConfiguration) WithEnvFrom

WithEnvFrom adds the given value to the EnvFrom 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 EnvFrom field.

func (*ContainerApplyConfiguration) WithImage

WithImage sets the Image 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 Image field is set to the value of the last call.

func (*ContainerApplyConfiguration) WithImagePullPolicy

WithImagePullPolicy sets the ImagePullPolicy 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 ImagePullPolicy field is set to the value of the last call.

func (*ContainerApplyConfiguration) WithLifecycle

WithLifecycle sets the Lifecycle 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 Lifecycle field is set to the value of the last call.

func (*ContainerApplyConfiguration) WithLivenessProbe

WithLivenessProbe sets the LivenessProbe 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 LivenessProbe field is set to the value of the last call.

func (*ContainerApplyConfiguration) 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 (*ContainerApplyConfiguration) 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 (*ContainerApplyConfiguration) WithReadinessProbe

WithReadinessProbe sets the ReadinessProbe 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 ReadinessProbe field is set to the value of the last call.

func (*ContainerApplyConfiguration) WithResizePolicy

WithResizePolicy adds the given value to the ResizePolicy 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 ResizePolicy field.

func (*ContainerApplyConfiguration) WithResources

WithResources sets the Resources 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 Resources field is set to the value of the last call.

func (*ContainerApplyConfiguration) WithRestartPolicy

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

func (*ContainerApplyConfiguration) WithRestartPolicyRules

WithRestartPolicyRules adds the given value to the RestartPolicyRules 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 RestartPolicyRules field.

func (*ContainerApplyConfiguration) WithSecurityContext

WithSecurityContext sets the SecurityContext 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 SecurityContext field is set to the value of the last call.

func (*ContainerApplyConfiguration) WithStartupProbe

WithStartupProbe sets the StartupProbe 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 StartupProbe field is set to the value of the last call.

func (*ContainerApplyConfiguration) WithStdin

WithStdin sets the Stdin 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 Stdin field is set to the value of the last call.

func (*ContainerApplyConfiguration) WithStdinOnce

WithStdinOnce sets the StdinOnce 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 StdinOnce field is set to the value of the last call.

func (*ContainerApplyConfiguration) WithTTY

WithTTY sets the TTY 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 TTY field is set to the value of the last call.

func (*ContainerApplyConfiguration) WithTerminationMessagePath

func (b *ContainerApplyConfiguration) WithTerminationMessagePath(value string) *ContainerApplyConfiguration

WithTerminationMessagePath sets the TerminationMessagePath 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 TerminationMessagePath field is set to the value of the last call.

func (*ContainerApplyConfiguration) WithTerminationMessagePolicy

WithTerminationMessagePolicy sets the TerminationMessagePolicy 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 TerminationMessagePolicy field is set to the value of the last call.

func (*ContainerApplyConfiguration) WithVolumeDevices

WithVolumeDevices adds the given value to the VolumeDevices 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 VolumeDevices field.

func (*ContainerApplyConfiguration) WithVolumeMounts

WithVolumeMounts adds the given value to the VolumeMounts 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 VolumeMounts field.

func (*ContainerApplyConfiguration) WithWorkingDir

WithWorkingDir sets the WorkingDir 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 WorkingDir field is set to the value of the last call.

type ContainerExtendedResourceRequestApplyConfiguration

type ContainerExtendedResourceRequestApplyConfiguration struct {
	// The name of the container requesting resources.
	ContainerName *string `json:"containerName,omitempty"`
	// The name of the extended resource in that container which gets backed by DRA.
	ResourceName *string `json:"resourceName,omitempty"`
	// The name of the request in the special ResourceClaim which corresponds to the extended resource.
	RequestName *string `json:"requestName,omitempty"`
}

ContainerExtendedResourceRequestApplyConfiguration represents a declarative configuration of the ContainerExtendedResourceRequest type for use with apply.

ContainerExtendedResourceRequest has the mapping of container name, extended resource name to the device request name.

func ContainerExtendedResourceRequest

func ContainerExtendedResourceRequest() *ContainerExtendedResourceRequestApplyConfiguration

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

func (*ContainerExtendedResourceRequestApplyConfiguration) WithContainerName

WithContainerName sets the ContainerName 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 ContainerName field is set to the value of the last call.

func (*ContainerExtendedResourceRequestApplyConfiguration) WithRequestName

WithRequestName sets the RequestName 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 RequestName field is set to the value of the last call.

func (*ContainerExtendedResourceRequestApplyConfiguration) WithResourceName

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

type ContainerImageApplyConfiguration

type ContainerImageApplyConfiguration struct {
	// Names by which this image is known.
	// e.g. ["kubernetes.example/hyperkube:v1.0.7", "cloud-vendor.registry.example/cloud-vendor/hyperkube:v1.0.7"]
	Names []string `json:"names,omitempty"`
	// The size of the image in bytes.
	SizeBytes *int64 `json:"sizeBytes,omitempty"`
}

ContainerImageApplyConfiguration represents a declarative configuration of the ContainerImage type for use with apply.

Describe a container image

func ContainerImage

func ContainerImage() *ContainerImageApplyConfiguration

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

func (*ContainerImageApplyConfiguration) WithNames

WithNames adds the given value to the Names 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 Names field.

func (*ContainerImageApplyConfiguration) WithSizeBytes

WithSizeBytes sets the SizeBytes 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 SizeBytes field is set to the value of the last call.

type ContainerPortApplyConfiguration

type ContainerPortApplyConfiguration struct {
	// If specified, this must be an IANA_SVC_NAME and unique within the pod. Each
	// named port in a pod must have a unique name. Name for the port that can be
	// referred to by services.
	Name *string `json:"name,omitempty"`
	// Number of port to expose on the host.
	// If specified, this must be a valid port number, 0 < x < 65536.
	// If HostNetwork is specified, this must match ContainerPort.
	// Most containers do not need this.
	HostPort *int32 `json:"hostPort,omitempty"`
	// Number of port to expose on the pod's IP address.
	// This must be a valid port number, 0 < x < 65536.
	ContainerPort *int32 `json:"containerPort,omitempty"`
	// Protocol for port. Must be UDP, TCP, or SCTP.
	// Defaults to "TCP".
	Protocol *corev1.Protocol `json:"protocol,omitempty"`
	// What host IP to bind the external port to.
	HostIP *string `json:"hostIP,omitempty"`
}

ContainerPortApplyConfiguration represents a declarative configuration of the ContainerPort type for use with apply.

ContainerPort represents a network port in a single container.

func ContainerPort

func ContainerPort() *ContainerPortApplyConfiguration

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

func (*ContainerPortApplyConfiguration) WithContainerPort

WithContainerPort sets the ContainerPort 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 ContainerPort field is set to the value of the last call.

func (*ContainerPortApplyConfiguration) WithHostIP

WithHostIP sets the HostIP 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 HostIP field is set to the value of the last call.

func (*ContainerPortApplyConfiguration) WithHostPort

WithHostPort sets the HostPort 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 HostPort field is set to the value of the last call.

func (*ContainerPortApplyConfiguration) 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 (*ContainerPortApplyConfiguration) 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 ContainerResizePolicyApplyConfiguration

type ContainerResizePolicyApplyConfiguration struct {
	// Name of the resource to which this resource resize policy applies.
	// Supported values: cpu, memory.
	ResourceName *corev1.ResourceName `json:"resourceName,omitempty"`
	// Restart policy to apply when specified resource is resized.
	// If not specified, it defaults to NotRequired.
	RestartPolicy *corev1.ResourceResizeRestartPolicy `json:"restartPolicy,omitempty"`
}

ContainerResizePolicyApplyConfiguration represents a declarative configuration of the ContainerResizePolicy type for use with apply.

ContainerResizePolicy represents resource resize policy for the container.

func ContainerResizePolicy

func ContainerResizePolicy() *ContainerResizePolicyApplyConfiguration

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

func (*ContainerResizePolicyApplyConfiguration) WithResourceName

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

func (*ContainerResizePolicyApplyConfiguration) WithRestartPolicy

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

type ContainerRestartRuleApplyConfiguration

type ContainerRestartRuleApplyConfiguration struct {
	// Specifies the action taken on a container exit if the requirements
	// are satisfied. The only possible value is "Restart" to restart the
	// container.
	Action *corev1.ContainerRestartRuleAction `json:"action,omitempty"`
	// Represents the exit codes to check on container exits.
	ExitCodes *ContainerRestartRuleOnExitCodesApplyConfiguration `json:"exitCodes,omitempty"`
}

ContainerRestartRuleApplyConfiguration represents a declarative configuration of the ContainerRestartRule type for use with apply.

ContainerRestartRule describes how a container exit is handled.

func ContainerRestartRule

func ContainerRestartRule() *ContainerRestartRuleApplyConfiguration

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

func (*ContainerRestartRuleApplyConfiguration) WithAction

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

func (*ContainerRestartRuleApplyConfiguration) WithExitCodes

WithExitCodes sets the ExitCodes 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 ExitCodes field is set to the value of the last call.

type ContainerRestartRuleOnExitCodesApplyConfiguration

type ContainerRestartRuleOnExitCodesApplyConfiguration struct {
	// Represents the relationship between the container exit code(s) and the
	// specified values. Possible values are:
	// - In: the requirement is satisfied if the container exit code is in the
	// set of specified values.
	// - NotIn: the requirement is satisfied if the container exit code is
	// not in the set of specified values.
	Operator *corev1.ContainerRestartRuleOnExitCodesOperator `json:"operator,omitempty"`
	// Specifies the set of values to check for container exit codes.
	// At most 255 elements are allowed.
	Values []int32 `json:"values,omitempty"`
}

ContainerRestartRuleOnExitCodesApplyConfiguration represents a declarative configuration of the ContainerRestartRuleOnExitCodes type for use with apply.

ContainerRestartRuleOnExitCodes describes the condition for handling an exited container based on its exit codes.

func ContainerRestartRuleOnExitCodes

func ContainerRestartRuleOnExitCodes() *ContainerRestartRuleOnExitCodesApplyConfiguration

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

func (*ContainerRestartRuleOnExitCodesApplyConfiguration) WithOperator

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

func (*ContainerRestartRuleOnExitCodesApplyConfiguration) WithValues

WithValues adds the given value to the Values 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 Values field.

type ContainerStateApplyConfiguration

type ContainerStateApplyConfiguration struct {
	// Details about a waiting container
	Waiting *ContainerStateWaitingApplyConfiguration `json:"waiting,omitempty"`
	// Details about a running container
	Running *ContainerStateRunningApplyConfiguration `json:"running,omitempty"`
	// Details about a terminated container
	Terminated *ContainerStateTerminatedApplyConfiguration `json:"terminated,omitempty"`
}

ContainerStateApplyConfiguration represents a declarative configuration of the ContainerState type for use with apply.

ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting.

func ContainerState

func ContainerState() *ContainerStateApplyConfiguration

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

func (*ContainerStateApplyConfiguration) WithRunning

WithRunning sets the Running 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 Running field is set to the value of the last call.

func (*ContainerStateApplyConfiguration) WithTerminated

WithTerminated sets the Terminated 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 Terminated field is set to the value of the last call.

func (*ContainerStateApplyConfiguration) WithWaiting

WithWaiting sets the Waiting 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 Waiting field is set to the value of the last call.

type ContainerStateRunningApplyConfiguration

type ContainerStateRunningApplyConfiguration struct {
	// Time at which the container was last (re-)started
	StartedAt *metav1.Time `json:"startedAt,omitempty"`
}

ContainerStateRunningApplyConfiguration represents a declarative configuration of the ContainerStateRunning type for use with apply.

ContainerStateRunning is a running state of a container.

func ContainerStateRunning

func ContainerStateRunning() *ContainerStateRunningApplyConfiguration

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

func (*ContainerStateRunningApplyConfiguration) WithStartedAt

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

type ContainerStateTerminatedApplyConfiguration

type ContainerStateTerminatedApplyConfiguration struct {
	// Exit status from the last termination of the container
	ExitCode *int32 `json:"exitCode,omitempty"`
	// Signal from the last termination of the container
	Signal *int32 `json:"signal,omitempty"`
	// (brief) reason from the last termination of the container
	Reason *string `json:"reason,omitempty"`
	// Message regarding the last termination of the container
	Message *string `json:"message,omitempty"`
	// Time at which previous execution of the container started
	StartedAt *metav1.Time `json:"startedAt,omitempty"`
	// Time at which the container last terminated
	FinishedAt *metav1.Time `json:"finishedAt,omitempty"`
	// Container's ID in the format '<type>://<container_id>'
	ContainerID *string `json:"containerID,omitempty"`
}

ContainerStateTerminatedApplyConfiguration represents a declarative configuration of the ContainerStateTerminated type for use with apply.

ContainerStateTerminated is a terminated state of a container.

func ContainerStateTerminated

func ContainerStateTerminated() *ContainerStateTerminatedApplyConfiguration

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

func (*ContainerStateTerminatedApplyConfiguration) WithContainerID

WithContainerID sets the ContainerID 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 ContainerID field is set to the value of the last call.

func (*ContainerStateTerminatedApplyConfiguration) WithExitCode

WithExitCode sets the ExitCode 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 ExitCode field is set to the value of the last call.

func (*ContainerStateTerminatedApplyConfiguration) WithFinishedAt

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

func (*ContainerStateTerminatedApplyConfiguration) 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 (*ContainerStateTerminatedApplyConfiguration) 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 (*ContainerStateTerminatedApplyConfiguration) WithSignal

WithSignal sets the Signal 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 Signal field is set to the value of the last call.

func (*ContainerStateTerminatedApplyConfiguration) WithStartedAt

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

type ContainerStateWaitingApplyConfiguration

type ContainerStateWaitingApplyConfiguration struct {
	// (brief) reason the container is not yet running.
	Reason *string `json:"reason,omitempty"`
	// Message regarding why the container is not yet running.
	Message *string `json:"message,omitempty"`
}

ContainerStateWaitingApplyConfiguration represents a declarative configuration of the ContainerStateWaiting type for use with apply.

ContainerStateWaiting is a waiting state of a container.

func ContainerStateWaiting

func ContainerStateWaiting() *ContainerStateWaitingApplyConfiguration

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

func (*ContainerStateWaitingApplyConfiguration) 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 (*ContainerStateWaitingApplyConfiguration) 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.

type ContainerStatusApplyConfiguration

type ContainerStatusApplyConfiguration struct {
	// Name is a DNS_LABEL representing the unique name of the container.
	// Each container in a pod must have a unique name across all container types.
	// Cannot be updated.
	Name *string `json:"name,omitempty"`
	// State holds details about the container's current condition.
	State *ContainerStateApplyConfiguration `json:"state,omitempty"`
	// LastTerminationState holds the last termination state of the container to
	// help debug container crashes and restarts. This field is not
	// populated if the container is still running and RestartCount is 0.
	LastTerminationState *ContainerStateApplyConfiguration `json:"lastState,omitempty"`
	// Ready specifies whether the container is currently passing its readiness check.
	// The value will change as readiness probes keep executing. If no readiness
	// probes are specified, this field defaults to true once the container is
	// fully started (see Started field).
	//
	// The value is typically used to determine whether a container is ready to
	// accept traffic.
	Ready *bool `json:"ready,omitempty"`
	// RestartCount holds the number of times the container has been restarted.
	// Kubelet makes an effort to always increment the value, but there
	// are cases when the state may be lost due to node restarts and then the value
	// may be reset to 0. The value is never negative.
	RestartCount *int32 `json:"restartCount,omitempty"`
	// Image is the name of container image that the container is running.
	// The container image may not match the image used in the PodSpec,
	// as it may have been resolved by the runtime.
	// More info: https://kubernetes.io/docs/concepts/containers/images.
	Image *string `json:"image,omitempty"`
	// ImageID is the image ID of the container's image. The image ID may not
	// match the image ID of the image used in the PodSpec, as it may have been
	// resolved by the runtime.
	ImageID *string `json:"imageID,omitempty"`
	// ContainerID is the ID of the container in the format '<type>://<container_id>'.
	// Where type is a container runtime identifier, returned from Version call of CRI API
	// (for example "containerd").
	ContainerID *string `json:"containerID,omitempty"`
	// Started indicates whether the container has finished its postStart lifecycle hook
	// and passed its startup probe.
	// Initialized as false, becomes true after startupProbe is considered
	// successful. Resets to false when the container is restarted, or if kubelet
	// loses state temporarily. In both cases, startup probes will run again.
	// Is always true when no startupProbe is defined and container is running and
	// has passed the postStart lifecycle hook. The null value must be treated the
	// same as false.
	Started *bool `json:"started,omitempty"`
	// AllocatedResources represents the compute resources allocated for this container by the
	// node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission
	// and after successfully admitting desired pod resize.
	AllocatedResources *corev1.ResourceList `json:"allocatedResources,omitempty"`
	// Resources represents the compute resource requests and limits that have been successfully
	// enacted on the running container after it has been started or has been successfully resized.
	Resources *ResourceRequirementsApplyConfiguration `json:"resources,omitempty"`
	// Status of volume mounts.
	VolumeMounts []VolumeMountStatusApplyConfiguration `json:"volumeMounts,omitempty"`
	// User represents user identity information initially attached to the first process of the container
	User *ContainerUserApplyConfiguration `json:"user,omitempty"`
	// AllocatedResourcesStatus represents the status of various resources
	// allocated for this Pod.
	AllocatedResourcesStatus []ResourceStatusApplyConfiguration `json:"allocatedResourcesStatus,omitempty"`
	// StopSignal reports the effective stop signal for this container
	StopSignal *corev1.Signal `json:"stopSignal,omitempty"`
}

ContainerStatusApplyConfiguration represents a declarative configuration of the ContainerStatus type for use with apply.

ContainerStatus contains details for the current status of this container.

func ContainerStatus

func ContainerStatus() *ContainerStatusApplyConfiguration

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

func (*ContainerStatusApplyConfiguration) WithAllocatedResources

WithAllocatedResources sets the AllocatedResources 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 AllocatedResources field is set to the value of the last call.

func (*ContainerStatusApplyConfiguration) WithAllocatedResourcesStatus

WithAllocatedResourcesStatus adds the given value to the AllocatedResourcesStatus 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 AllocatedResourcesStatus field.

func (*ContainerStatusApplyConfiguration) WithContainerID

WithContainerID sets the ContainerID 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 ContainerID field is set to the value of the last call.

func (*ContainerStatusApplyConfiguration) WithImage

WithImage sets the Image 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 Image field is set to the value of the last call.

func (*ContainerStatusApplyConfiguration) WithImageID

WithImageID sets the ImageID 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 ImageID field is set to the value of the last call.

func (*ContainerStatusApplyConfiguration) WithLastTerminationState

WithLastTerminationState sets the LastTerminationState 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 LastTerminationState field is set to the value of the last call.

func (*ContainerStatusApplyConfiguration) 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 (*ContainerStatusApplyConfiguration) WithReady

WithReady sets the Ready 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 Ready field is set to the value of the last call.

func (*ContainerStatusApplyConfiguration) WithResources

WithResources sets the Resources 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 Resources field is set to the value of the last call.

func (*ContainerStatusApplyConfiguration) WithRestartCount

WithRestartCount sets the RestartCount 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 RestartCount field is set to the value of the last call.

func (*ContainerStatusApplyConfiguration) WithStarted

WithStarted sets the Started 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 Started field is set to the value of the last call.

func (*ContainerStatusApplyConfiguration) WithState

WithState sets the State 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 State field is set to the value of the last call.

func (*ContainerStatusApplyConfiguration) WithStopSignal

WithStopSignal sets the StopSignal 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 StopSignal field is set to the value of the last call.

func (*ContainerStatusApplyConfiguration) WithUser

WithUser sets the User 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 User field is set to the value of the last call.

func (*ContainerStatusApplyConfiguration) WithVolumeMounts

WithVolumeMounts adds the given value to the VolumeMounts 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 VolumeMounts field.

type ContainerUserApplyConfiguration

type ContainerUserApplyConfiguration struct {
	// Linux holds user identity information initially attached to the first process of the containers in Linux.
	// Note that the actual running identity can be changed if the process has enough privilege to do so.
	Linux *LinuxContainerUserApplyConfiguration `json:"linux,omitempty"`
}

ContainerUserApplyConfiguration represents a declarative configuration of the ContainerUser type for use with apply.

ContainerUser represents user identity information

func ContainerUser

func ContainerUser() *ContainerUserApplyConfiguration

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

func (*ContainerUserApplyConfiguration) WithLinux

WithLinux sets the Linux 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 Linux field is set to the value of the last call.

type DaemonEndpointApplyConfiguration

type DaemonEndpointApplyConfiguration struct {
	// Port number of the given endpoint.
	Port *int32 `json:"Port,omitempty"`
}

DaemonEndpointApplyConfiguration represents a declarative configuration of the DaemonEndpoint type for use with apply.

DaemonEndpoint contains information about a single Daemon endpoint.

func DaemonEndpoint

func DaemonEndpoint() *DaemonEndpointApplyConfiguration

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

func (*DaemonEndpointApplyConfiguration) 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.

type DownwardAPIProjectionApplyConfiguration

type DownwardAPIProjectionApplyConfiguration struct {
	// Items is a list of DownwardAPIVolume file
	Items []DownwardAPIVolumeFileApplyConfiguration `json:"items,omitempty"`
}

DownwardAPIProjectionApplyConfiguration represents a declarative configuration of the DownwardAPIProjection type for use with apply.

Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode.

func DownwardAPIProjection

func DownwardAPIProjection() *DownwardAPIProjectionApplyConfiguration

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

func (*DownwardAPIProjectionApplyConfiguration) WithItems

WithItems adds the given value to the Items 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 Items field.

type DownwardAPIVolumeFileApplyConfiguration

type DownwardAPIVolumeFileApplyConfiguration struct {
	// Required: Path is  the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'
	Path *string `json:"path,omitempty"`
	// Required: Selects a field of the pod: only annotations, labels, name, namespace and uid are supported.
	FieldRef *ObjectFieldSelectorApplyConfiguration `json:"fieldRef,omitempty"`
	// Selects a resource of the container: only resources limits and requests
	// (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.
	ResourceFieldRef *ResourceFieldSelectorApplyConfiguration `json:"resourceFieldRef,omitempty"`
	// Optional: mode bits used to set permissions on this file, must be an octal value
	// between 0000 and 0777 or a decimal value between 0 and 511.
	// YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
	// If not specified, the volume defaultMode will be used.
	// This might be in conflict with other options that affect the file
	// mode, like fsGroup, and the result can be other mode bits set.
	Mode *int32 `json:"mode,omitempty"`
}

DownwardAPIVolumeFileApplyConfiguration represents a declarative configuration of the DownwardAPIVolumeFile type for use with apply.

DownwardAPIVolumeFile represents information to create the file containing the pod field

func DownwardAPIVolumeFile

func DownwardAPIVolumeFile() *DownwardAPIVolumeFileApplyConfiguration

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

func (*DownwardAPIVolumeFileApplyConfiguration) WithFieldRef

WithFieldRef sets the FieldRef 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 FieldRef field is set to the value of the last call.

func (*DownwardAPIVolumeFileApplyConfiguration) WithMode

WithMode sets the Mode 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 Mode field is set to the value of the last call.

func (*DownwardAPIVolumeFileApplyConfiguration) 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 (*DownwardAPIVolumeFileApplyConfiguration) WithResourceFieldRef

WithResourceFieldRef sets the ResourceFieldRef 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 ResourceFieldRef field is set to the value of the last call.

type DownwardAPIVolumeSourceApplyConfiguration

type DownwardAPIVolumeSourceApplyConfiguration struct {
	// Items is a list of downward API volume file
	Items []DownwardAPIVolumeFileApplyConfiguration `json:"items,omitempty"`
	// Optional: mode bits to use on created files by default. Must be a
	// Optional: mode bits used to set permissions on created files by default.
	// Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
	// YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
	// Defaults to 0644.
	// Directories within the path are not affected by this setting.
	// This might be in conflict with other options that affect the file
	// mode, like fsGroup, and the result can be other mode bits set.
	DefaultMode *int32 `json:"defaultMode,omitempty"`
}

DownwardAPIVolumeSourceApplyConfiguration represents a declarative configuration of the DownwardAPIVolumeSource type for use with apply.

DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling.

func DownwardAPIVolumeSource

func DownwardAPIVolumeSource() *DownwardAPIVolumeSourceApplyConfiguration

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

func (*DownwardAPIVolumeSourceApplyConfiguration) WithDefaultMode

WithDefaultMode sets the DefaultMode 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 DefaultMode field is set to the value of the last call.

func (*DownwardAPIVolumeSourceApplyConfiguration) WithItems

WithItems adds the given value to the Items 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 Items field.

type EmptyDirVolumeSourceApplyConfiguration

type EmptyDirVolumeSourceApplyConfiguration struct {
	// medium represents what type of storage medium should back this directory.
	// The default is "" which means to use the node's default medium.
	// Must be an empty string (default) or Memory.
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
	Medium *corev1.StorageMedium `json:"medium,omitempty"`
	// sizeLimit is the total amount of local storage required for this EmptyDir volume.
	// The size limit is also applicable for memory medium.
	// The maximum usage on memory medium EmptyDir would be the minimum value between
	// the SizeLimit specified here and the sum of memory limits of all containers in a pod.
	// The default is nil which means that the limit is undefined.
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
	SizeLimit *resource.Quantity `json:"sizeLimit,omitempty"`
}

EmptyDirVolumeSourceApplyConfiguration represents a declarative configuration of the EmptyDirVolumeSource type for use with apply.

Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling.

func EmptyDirVolumeSource

func EmptyDirVolumeSource() *EmptyDirVolumeSourceApplyConfiguration

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

func (*EmptyDirVolumeSourceApplyConfiguration) WithMedium

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

func (*EmptyDirVolumeSourceApplyConfiguration) WithSizeLimit

WithSizeLimit sets the SizeLimit 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 SizeLimit field is set to the value of the last call.

type EndpointAddressApplyConfiguration

type EndpointAddressApplyConfiguration struct {
	// The IP of this endpoint.
	// May not be loopback (127.0.0.0/8 or ::1), link-local (169.254.0.0/16 or fe80::/10),
	// or link-local multicast (224.0.0.0/24 or ff02::/16).
	IP *string `json:"ip,omitempty"`
	// The Hostname of this endpoint
	Hostname *string `json:"hostname,omitempty"`
	// Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.
	NodeName *string `json:"nodeName,omitempty"`
	// Reference to object providing the endpoint.
	TargetRef *ObjectReferenceApplyConfiguration `json:"targetRef,omitempty"`
}

EndpointAddressApplyConfiguration represents a declarative configuration of the EndpointAddress type for use with apply.

EndpointAddress is a tuple that describes single IP address. Deprecated: This API is deprecated in v1.33+.

func EndpointAddress

func EndpointAddress() *EndpointAddressApplyConfiguration

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

func (*EndpointAddressApplyConfiguration) 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 (*EndpointAddressApplyConfiguration) 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 (*EndpointAddressApplyConfiguration) WithNodeName

WithNodeName sets the NodeName 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 NodeName field is set to the value of the last call.

func (*EndpointAddressApplyConfiguration) WithTargetRef

WithTargetRef sets the TargetRef 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 TargetRef field is set to the value of the last call.

type EndpointPortApplyConfiguration

type EndpointPortApplyConfiguration struct {
	// The name of this port.  This must match the 'name' field in the
	// corresponding ServicePort.
	// Must be a DNS_LABEL.
	// Optional only if one port is defined.
	Name *string `json:"name,omitempty"`
	// The port number of the endpoint.
	Port *int32 `json:"port,omitempty"`
	// The IP protocol for this port.
	// Must be UDP, TCP, or SCTP.
	// Default is TCP.
	Protocol *corev1.Protocol `json:"protocol,omitempty"`
	// The application protocol for this port.
	// This is used as a hint for implementations to offer richer behavior for protocols that they understand.
	// This field follows standard Kubernetes label syntax.
	// Valid values are either:
	//
	// * Un-prefixed protocol names - reserved for IANA standard service names (as per
	// RFC-6335 and https://www.iana.org/assignments/service-names).
	//
	// * Kubernetes-defined prefixed names:
	// * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-
	// * 'kubernetes.io/ws'  - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455
	// * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455
	//
	// * Other protocols should use implementation-defined prefixed names such as
	// mycompany.com/my-custom-protocol.
	AppProtocol *string `json:"appProtocol,omitempty"`
}

EndpointPortApplyConfiguration represents a declarative configuration of the EndpointPort type for use with apply.

EndpointPort is a tuple that describes a single port. Deprecated: This API is deprecated in v1.33+.

func EndpointPort

func EndpointPort() *EndpointPortApplyConfiguration

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

func (*EndpointPortApplyConfiguration) WithAppProtocol

WithAppProtocol sets the AppProtocol 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 AppProtocol field is set to the value of the last call.

func (*EndpointPortApplyConfiguration) 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 (*EndpointPortApplyConfiguration) 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 (*EndpointPortApplyConfiguration) 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 EndpointSubsetApplyConfiguration

type EndpointSubsetApplyConfiguration struct {
	// IP addresses which offer the related ports that are marked as ready. These endpoints
	// should be considered safe for load balancers and clients to utilize.
	Addresses []EndpointAddressApplyConfiguration `json:"addresses,omitempty"`
	// IP addresses which offer the related ports but are not currently marked as ready
	// because they have not yet finished starting, have recently failed a readiness check,
	// or have recently failed a liveness check.
	NotReadyAddresses []EndpointAddressApplyConfiguration `json:"notReadyAddresses,omitempty"`
	// Port numbers available on the related IP addresses.
	Ports []EndpointPortApplyConfiguration `json:"ports,omitempty"`
}

EndpointSubsetApplyConfiguration represents a declarative configuration of the EndpointSubset type for use with apply.

EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given:

{ Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] }

The resulting set of endpoints can be viewed as:

a: [ 10.10.1.1:8675, 10.10.2.2:8675 ], b: [ 10.10.1.1:309, 10.10.2.2:309 ]

Deprecated: This API is deprecated in v1.33+.

func EndpointSubset

func EndpointSubset() *EndpointSubsetApplyConfiguration

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

func (*EndpointSubsetApplyConfiguration) WithAddresses

WithAddresses adds the given value to the Addresses 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 Addresses field.

func (*EndpointSubsetApplyConfiguration) WithNotReadyAddresses

WithNotReadyAddresses adds the given value to the NotReadyAddresses 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 NotReadyAddresses field.

func (*EndpointSubsetApplyConfiguration) 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 EndpointsApplyConfiguration

type EndpointsApplyConfiguration struct {
	metav1.TypeMetaApplyConfiguration `json:",inline"`
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	// The set of all endpoints is the union of all subsets. Addresses are placed into
	// subsets according to the IPs they share. A single address with multiple ports,
	// some of which are ready and some of which are not (because they come from
	// different containers) will result in the address being displayed in different
	// subsets for the different ports. No address will appear in both Addresses and
	// NotReadyAddresses in the same subset.
	// Sets of addresses and ports that comprise a service.
	Subsets []EndpointSubsetApplyConfiguration `json:"subsets,omitempty"`
}

EndpointsApplyConfiguration represents a declarative configuration of the Endpoints type for use with apply.

Endpoints is a collection of endpoints that implement the actual service. Example:

Name: "mysvc", Subsets: [ { Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] }, { Addresses: [{"ip": "10.10.3.3"}], Ports: [{"name": "a", "port": 93}, {"name": "b", "port": 76}] }, ]

Endpoints is a legacy API and does not contain information about all Service features. Use discoveryv1.EndpointSlice for complete information about Service endpoints.

Deprecated: This API is deprecated in v1.33+. Use discoveryv1.EndpointSlice.

func Endpoints

func Endpoints(name, namespace string) *EndpointsApplyConfiguration

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

func ExtractEndpoints

func ExtractEndpoints(endpoints *corev1.Endpoints, fieldManager string) (*EndpointsApplyConfiguration, error)

ExtractEndpoints extracts the applied configuration owned by fieldManager from endpoints. If no managedFields are found in endpoints for fieldManager, a EndpointsApplyConfiguration 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. endpoints must be a unmodified Endpoints API object that was retrieved from the Kubernetes API. ExtractEndpoints 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 ExtractEndpointsFrom

func ExtractEndpointsFrom(endpoints *corev1.Endpoints, fieldManager string, subresource string) (*EndpointsApplyConfiguration, error)

ExtractEndpointsFrom extracts the applied configuration owned by fieldManager from endpoints for the specified subresource. Pass an empty string for subresource to extract the main resource. Common subresources include "status", "scale", etc. endpoints must be a unmodified Endpoints API object that was retrieved from the Kubernetes API. ExtractEndpointsFrom 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 (*EndpointsApplyConfiguration) GetAPIVersion

func (b *EndpointsApplyConfiguration) GetAPIVersion() *string

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

func (*EndpointsApplyConfiguration) GetKind

func (b *EndpointsApplyConfiguration) GetKind() *string

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

func (*EndpointsApplyConfiguration) GetName

func (b *EndpointsApplyConfiguration) GetName() *string

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

func (*EndpointsApplyConfiguration) GetNamespace

func (b *EndpointsApplyConfiguration) GetNamespace() *string

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

func (EndpointsApplyConfiguration) IsApplyConfiguration

func (b EndpointsApplyConfiguration) IsApplyConfiguration()

func (*EndpointsApplyConfiguration) 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 (*EndpointsApplyConfiguration) WithAnnotations

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

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 (*EndpointsApplyConfiguration) 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 (*EndpointsApplyConfiguration) WithDeletionGracePeriodSeconds

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

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 (*EndpointsApplyConfiguration) 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 (*EndpointsApplyConfiguration) WithFinalizers

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

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 (*EndpointsApplyConfiguration) 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 (*EndpointsApplyConfiguration) 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 (*EndpointsApplyConfiguration) 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 (*EndpointsApplyConfiguration) 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 (*EndpointsApplyConfiguration) 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 (*EndpointsApplyConfiguration) 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 (*EndpointsApplyConfiguration) 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 (*EndpointsApplyConfiguration) WithResourceVersion

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

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 (*EndpointsApplyConfiguration) WithSubsets

WithSubsets adds the given value to the Subsets 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 Subsets field.

func (*EndpointsApplyConfiguration) 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 EnvFromSourceApplyConfiguration

type EnvFromSourceApplyConfiguration struct {
	// Optional text to prepend to the name of each environment variable.
	// May consist of any printable ASCII characters except '='.
	Prefix *string `json:"prefix,omitempty"`
	// The ConfigMap to select from
	ConfigMapRef *ConfigMapEnvSourceApplyConfiguration `json:"configMapRef,omitempty"`
	// The Secret to select from
	SecretRef *SecretEnvSourceApplyConfiguration `json:"secretRef,omitempty"`
}

EnvFromSourceApplyConfiguration represents a declarative configuration of the EnvFromSource type for use with apply.

EnvFromSource represents the source of a set of ConfigMaps or Secrets

func EnvFromSource

func EnvFromSource() *EnvFromSourceApplyConfiguration

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

func (*EnvFromSourceApplyConfiguration) WithConfigMapRef

WithConfigMapRef sets the ConfigMapRef 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 ConfigMapRef field is set to the value of the last call.

func (*EnvFromSourceApplyConfiguration) WithPrefix

WithPrefix sets the Prefix 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 Prefix field is set to the value of the last call.

func (*EnvFromSourceApplyConfiguration) WithSecretRef

WithSecretRef sets the SecretRef 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 SecretRef field is set to the value of the last call.

type EnvVarApplyConfiguration

type EnvVarApplyConfiguration struct {
	// Name of the environment variable.
	// May consist of any printable ASCII characters except '='.
	Name *string `json:"name,omitempty"`
	// Variable references $(VAR_NAME) are expanded
	// using the previously defined environment variables in the container and
	// any service environment variables. If a variable cannot be resolved,
	// the reference in the input string will be unchanged. Double $$ are reduced
	// to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.
	// "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)".
	// Escaped references will never be expanded, regardless of whether the variable
	// exists or not.
	// Defaults to "".
	Value *string `json:"value,omitempty"`
	// Source for the environment variable's value. Cannot be used if value is not empty.
	ValueFrom *EnvVarSourceApplyConfiguration `json:"valueFrom,omitempty"`
}

EnvVarApplyConfiguration represents a declarative configuration of the EnvVar type for use with apply.

EnvVar represents an environment variable present in a Container.

func EnvVar

func EnvVar() *EnvVarApplyConfiguration

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

func (*EnvVarApplyConfiguration) 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 (*EnvVarApplyConfiguration) WithValue

WithValue sets the Value 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 Value field is set to the value of the last call.

func (*EnvVarApplyConfiguration) WithValueFrom

WithValueFrom sets the ValueFrom 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 ValueFrom field is set to the value of the last call.

type EnvVarSourceApplyConfiguration

type EnvVarSourceApplyConfiguration struct {
	// Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['<KEY>']`, `metadata.annotations['<KEY>']`,
	// spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.
	FieldRef *ObjectFieldSelectorApplyConfiguration `json:"fieldRef,omitempty"`
	// Selects a resource of the container: only resources limits and requests
	// (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.
	ResourceFieldRef *ResourceFieldSelectorApplyConfiguration `json:"resourceFieldRef,omitempty"`
	// Selects a key of a ConfigMap.
	ConfigMapKeyRef *ConfigMapKeySelectorApplyConfiguration `json:"configMapKeyRef,omitempty"`
	// Selects a key of a secret in the pod's namespace
	SecretKeyRef *SecretKeySelectorApplyConfiguration `json:"secretKeyRef,omitempty"`
	// FileKeyRef selects a key of the env file.
	// Requires the EnvFiles feature gate to be enabled.
	FileKeyRef *FileKeySelectorApplyConfiguration `json:"fileKeyRef,omitempty"`
}

EnvVarSourceApplyConfiguration represents a declarative configuration of the EnvVarSource type for use with apply.

EnvVarSource represents a source for the value of an EnvVar.

func EnvVarSource

func EnvVarSource() *EnvVarSourceApplyConfiguration

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

func (*EnvVarSourceApplyConfiguration) WithConfigMapKeyRef

WithConfigMapKeyRef sets the ConfigMapKeyRef 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 ConfigMapKeyRef field is set to the value of the last call.

func (*EnvVarSourceApplyConfiguration) WithFieldRef

WithFieldRef sets the FieldRef 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 FieldRef field is set to the value of the last call.

func (*EnvVarSourceApplyConfiguration) WithFileKeyRef

WithFileKeyRef sets the FileKeyRef 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 FileKeyRef field is set to the value of the last call.

func (*EnvVarSourceApplyConfiguration) WithResourceFieldRef

WithResourceFieldRef sets the ResourceFieldRef 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 ResourceFieldRef field is set to the value of the last call.

func (*EnvVarSourceApplyConfiguration) WithSecretKeyRef

WithSecretKeyRef sets the SecretKeyRef 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 SecretKeyRef field is set to the value of the last call.

type EphemeralContainerApplyConfiguration

type EphemeralContainerApplyConfiguration struct {
	// Ephemeral containers have all of the fields of Container, plus additional fields
	// specific to ephemeral containers. Fields in common with Container are in the
	// following inlined struct so than an EphemeralContainer may easily be converted
	// to a Container.
	EphemeralContainerCommonApplyConfiguration `json:",inline"`
	// If set, the name of the container from PodSpec that this ephemeral container targets.
	// The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container.
	// If not set then the ephemeral container uses the namespaces configured in the Pod spec.
	//
	// The container runtime must implement support for this feature. If the runtime does not
	// support namespace targeting then the result of setting this field is undefined.
	TargetContainerName *string `json:"targetContainerName,omitempty"`
}

EphemeralContainerApplyConfiguration represents a declarative configuration of the EphemeralContainer type for use with apply.

An EphemeralContainer is a temporary container that you may add to an existing Pod for user-initiated activities such as debugging. Ephemeral containers have no resource or scheduling guarantees, and they will not be restarted when they exit or when a Pod is removed or restarted. The kubelet may evict a Pod if an ephemeral container causes the Pod to exceed its resource allocation.

To add an ephemeral container, use the ephemeralcontainers subresource of an existing Pod. Ephemeral containers may not be removed or restarted.

func EphemeralContainer

func EphemeralContainer() *EphemeralContainerApplyConfiguration

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

func (*EphemeralContainerApplyConfiguration) WithArgs

WithArgs adds the given value to the Args 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 Args field.

func (*EphemeralContainerApplyConfiguration) WithCommand

WithCommand adds the given value to the Command 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 Command field.

func (*EphemeralContainerApplyConfiguration) WithEnv

WithEnv adds the given value to the Env 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 Env field.

func (*EphemeralContainerApplyConfiguration) WithEnvFrom

WithEnvFrom adds the given value to the EnvFrom 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 EnvFrom field.

func (*EphemeralContainerApplyConfiguration) WithImage

WithImage sets the Image 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 Image field is set to the value of the last call.

func (*EphemeralContainerApplyConfiguration) WithImagePullPolicy

WithImagePullPolicy sets the ImagePullPolicy 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 ImagePullPolicy field is set to the value of the last call.

func (*EphemeralContainerApplyConfiguration) WithLifecycle

WithLifecycle sets the Lifecycle 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 Lifecycle field is set to the value of the last call.

func (*EphemeralContainerApplyConfiguration) WithLivenessProbe

WithLivenessProbe sets the LivenessProbe 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 LivenessProbe field is set to the value of the last call.

func (*EphemeralContainerApplyConfiguration) 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 (*EphemeralContainerApplyConfiguration) 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 (*EphemeralContainerApplyConfiguration) WithReadinessProbe

WithReadinessProbe sets the ReadinessProbe 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 ReadinessProbe field is set to the value of the last call.

func (*EphemeralContainerApplyConfiguration) WithResizePolicy

WithResizePolicy adds the given value to the ResizePolicy 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 ResizePolicy field.

func (*EphemeralContainerApplyConfiguration) WithResources

WithResources sets the Resources 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 Resources field is set to the value of the last call.

func (*EphemeralContainerApplyConfiguration) WithRestartPolicy

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

func (*EphemeralContainerApplyConfiguration) WithRestartPolicyRules

WithRestartPolicyRules adds the given value to the RestartPolicyRules 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 RestartPolicyRules field.

func (*EphemeralContainerApplyConfiguration) WithSecurityContext

WithSecurityContext sets the SecurityContext 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 SecurityContext field is set to the value of the last call.

func (*EphemeralContainerApplyConfiguration) WithStartupProbe

WithStartupProbe sets the StartupProbe 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 StartupProbe field is set to the value of the last call.

func (*EphemeralContainerApplyConfiguration) WithStdin

WithStdin sets the Stdin 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 Stdin field is set to the value of the last call.

func (*EphemeralContainerApplyConfiguration) WithStdinOnce

WithStdinOnce sets the StdinOnce 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 StdinOnce field is set to the value of the last call.

func (*EphemeralContainerApplyConfiguration) WithTTY

WithTTY sets the TTY 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 TTY field is set to the value of the last call.

func (*EphemeralContainerApplyConfiguration) WithTargetContainerName

WithTargetContainerName sets the TargetContainerName 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 TargetContainerName field is set to the value of the last call.

func (*EphemeralContainerApplyConfiguration) WithTerminationMessagePath

WithTerminationMessagePath sets the TerminationMessagePath 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 TerminationMessagePath field is set to the value of the last call.

func (*EphemeralContainerApplyConfiguration) WithTerminationMessagePolicy

WithTerminationMessagePolicy sets the TerminationMessagePolicy 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 TerminationMessagePolicy field is set to the value of the last call.

func (*EphemeralContainerApplyConfiguration) WithVolumeDevices

WithVolumeDevices adds the given value to the VolumeDevices 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 VolumeDevices field.

func (*EphemeralContainerApplyConfiguration) WithVolumeMounts

WithVolumeMounts adds the given value to the VolumeMounts 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 VolumeMounts field.

func (*EphemeralContainerApplyConfiguration) WithWorkingDir

WithWorkingDir sets the WorkingDir 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 WorkingDir field is set to the value of the last call.

type EphemeralContainerCommonApplyConfiguration

type EphemeralContainerCommonApplyConfiguration struct {
	// Name of the ephemeral container specified as a DNS_LABEL.
	// This name must be unique among all containers, init containers and ephemeral containers.
	Name *string `json:"name,omitempty"`
	// Container image name.
	// More info: https://kubernetes.io/docs/concepts/containers/images
	Image *string `json:"image,omitempty"`
	// Entrypoint array. Not executed within a shell.
	// The image's ENTRYPOINT is used if this is not provided.
	// Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
	// cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
	// to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
	// produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
	// of whether the variable exists or not. Cannot be updated.
	// More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
	Command []string `json:"command,omitempty"`
	// Arguments to the entrypoint.
	// The image's CMD is used if this is not provided.
	// Variable references $(VAR_NAME) are expanded using the container's environment. If a variable
	// cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced
	// to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will
	// produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless
	// of whether the variable exists or not. Cannot be updated.
	// More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
	Args []string `json:"args,omitempty"`
	// Container's working directory.
	// If not specified, the container runtime's default will be used, which
	// might be configured in the container image.
	// Cannot be updated.
	WorkingDir *string `json:"workingDir,omitempty"`
	// Ports are not allowed for ephemeral containers.
	Ports []ContainerPortApplyConfiguration `json:"ports,omitempty"`
	// List of sources to populate environment variables in the container.
	// The keys defined within a source may consist of any printable ASCII characters except '='.
	// When a key exists in multiple
	// sources, the value associated with the last source will take precedence.
	// Values defined by an Env with a duplicate key will take precedence.
	// Cannot be updated.
	EnvFrom []EnvFromSourceApplyConfiguration `json:"envFrom,omitempty"`
	// List of environment variables to set in the container.
	// Cannot be updated.
	Env []EnvVarApplyConfiguration `json:"env,omitempty"`
	// Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources
	// already allocated to the pod.
	Resources *ResourceRequirementsApplyConfiguration `json:"resources,omitempty"`
	// Resources resize policy for the container.
	ResizePolicy []ContainerResizePolicyApplyConfiguration `json:"resizePolicy,omitempty"`
	// Restart policy for the container to manage the restart behavior of each
	// container within a pod.
	// You cannot set this field on ephemeral containers.
	RestartPolicy *corev1.ContainerRestartPolicy `json:"restartPolicy,omitempty"`
	// Represents a list of rules to be checked to determine if the
	// container should be restarted on exit. You cannot set this field on
	// ephemeral containers.
	RestartPolicyRules []ContainerRestartRuleApplyConfiguration `json:"restartPolicyRules,omitempty"`
	// Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers.
	// Cannot be updated.
	VolumeMounts []VolumeMountApplyConfiguration `json:"volumeMounts,omitempty"`
	// volumeDevices is the list of block devices to be used by the container.
	VolumeDevices []VolumeDeviceApplyConfiguration `json:"volumeDevices,omitempty"`
	// Probes are not allowed for ephemeral containers.
	LivenessProbe *ProbeApplyConfiguration `json:"livenessProbe,omitempty"`
	// Probes are not allowed for ephemeral containers.
	ReadinessProbe *ProbeApplyConfiguration `json:"readinessProbe,omitempty"`
	// Probes are not allowed for ephemeral containers.
	StartupProbe *ProbeApplyConfiguration `json:"startupProbe,omitempty"`
	// Lifecycle is not allowed for ephemeral containers.
	Lifecycle *LifecycleApplyConfiguration `json:"lifecycle,omitempty"`
	// Optional: Path at which the file to which the container's termination message
	// will be written is mounted into the container's filesystem.
	// Message written is intended to be brief final status, such as an assertion failure message.
	// Will be truncated by the node if greater than 4096 bytes. The total message length across
	// all containers will be limited to 12kb.
	// Defaults to /dev/termination-log.
	// Cannot be updated.
	TerminationMessagePath *string `json:"terminationMessagePath,omitempty"`
	// Indicate how the termination message should be populated. File will use the contents of
	// terminationMessagePath to populate the container status message on both success and failure.
	// FallbackToLogsOnError will use the last chunk of container log output if the termination
	// message file is empty and the container exited with an error.
	// The log output is limited to 2048 bytes or 80 lines, whichever is smaller.
	// Defaults to File.
	// Cannot be updated.
	TerminationMessagePolicy *corev1.TerminationMessagePolicy `json:"terminationMessagePolicy,omitempty"`
	// Image pull policy.
	// One of Always, Never, IfNotPresent.
	// Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
	// Cannot be updated.
	// More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
	ImagePullPolicy *corev1.PullPolicy `json:"imagePullPolicy,omitempty"`
	// Optional: SecurityContext defines the security options the ephemeral container should be run with.
	// If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.
	SecurityContext *SecurityContextApplyConfiguration `json:"securityContext,omitempty"`
	// Whether this container should allocate a buffer for stdin in the container runtime. If this
	// is not set, reads from stdin in the container will always result in EOF.
	// Default is false.
	Stdin *bool `json:"stdin,omitempty"`
	// Whether the container runtime should close the stdin channel after it has been opened by
	// a single attach. When stdin is true the stdin stream will remain open across multiple attach
	// sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the
	// first client attaches to stdin, and then remains open and accepts data until the client disconnects,
	// at which time stdin is closed and remains closed until the container is restarted. If this
	// flag is false, a container processes that reads from stdin will never receive an EOF.
	// Default is false
	StdinOnce *bool `json:"stdinOnce,omitempty"`
	// Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
	// Default is false.
	TTY *bool `json:"tty,omitempty"`
}

EphemeralContainerCommonApplyConfiguration represents a declarative configuration of the EphemeralContainerCommon type for use with apply.

EphemeralContainerCommon is a copy of all fields in Container to be inlined in EphemeralContainer. This separate type allows easy conversion from EphemeralContainer to Container and allows separate documentation for the fields of EphemeralContainer. When a new field is added to Container it must be added here as well.

func EphemeralContainerCommon

func EphemeralContainerCommon() *EphemeralContainerCommonApplyConfiguration

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

func (*EphemeralContainerCommonApplyConfiguration) WithArgs

WithArgs adds the given value to the Args 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 Args field.

func (*EphemeralContainerCommonApplyConfiguration) WithCommand

WithCommand adds the given value to the Command 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 Command field.

func (*EphemeralContainerCommonApplyConfiguration) WithEnv

WithEnv adds the given value to the Env 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 Env field.

func (*EphemeralContainerCommonApplyConfiguration) WithEnvFrom

WithEnvFrom adds the given value to the EnvFrom 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 EnvFrom field.

func (*EphemeralContainerCommonApplyConfiguration) WithImage

WithImage sets the Image 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 Image field is set to the value of the last call.

func (*EphemeralContainerCommonApplyConfiguration) WithImagePullPolicy

WithImagePullPolicy sets the ImagePullPolicy 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 ImagePullPolicy field is set to the value of the last call.

func (*EphemeralContainerCommonApplyConfiguration) WithLifecycle

WithLifecycle sets the Lifecycle 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 Lifecycle field is set to the value of the last call.

func (*EphemeralContainerCommonApplyConfiguration) WithLivenessProbe

WithLivenessProbe sets the LivenessProbe 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 LivenessProbe field is set to the value of the last call.

func (*EphemeralContainerCommonApplyConfiguration) 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 (*EphemeralContainerCommonApplyConfiguration) 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 (*EphemeralContainerCommonApplyConfiguration) WithReadinessProbe

WithReadinessProbe sets the ReadinessProbe 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 ReadinessProbe field is set to the value of the last call.

func (*EphemeralContainerCommonApplyConfiguration) WithResizePolicy

WithResizePolicy adds the given value to the ResizePolicy 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 ResizePolicy field.

func (*EphemeralContainerCommonApplyConfiguration) WithResources

WithResources sets the Resources 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 Resources field is set to the value of the last call.

func (*EphemeralContainerCommonApplyConfiguration) WithRestartPolicy

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

func (*EphemeralContainerCommonApplyConfiguration) WithRestartPolicyRules

WithRestartPolicyRules adds the given value to the RestartPolicyRules 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 RestartPolicyRules field.

func (*EphemeralContainerCommonApplyConfiguration) WithSecurityContext

WithSecurityContext sets the SecurityContext 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 SecurityContext field is set to the value of the last call.

func (*EphemeralContainerCommonApplyConfiguration) WithStartupProbe

WithStartupProbe sets the StartupProbe 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 StartupProbe field is set to the value of the last call.

func (*EphemeralContainerCommonApplyConfiguration) WithStdin

WithStdin sets the Stdin 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 Stdin field is set to the value of the last call.

func (*EphemeralContainerCommonApplyConfiguration) WithStdinOnce

WithStdinOnce sets the StdinOnce 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 StdinOnce field is set to the value of the last call.

func (*EphemeralContainerCommonApplyConfiguration) WithTTY

WithTTY sets the TTY 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 TTY field is set to the value of the last call.

func (*EphemeralContainerCommonApplyConfiguration) WithTerminationMessagePath

WithTerminationMessagePath sets the TerminationMessagePath 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 TerminationMessagePath field is set to the value of the last call.

func (*EphemeralContainerCommonApplyConfiguration) WithTerminationMessagePolicy

WithTerminationMessagePolicy sets the TerminationMessagePolicy 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 TerminationMessagePolicy field is set to the value of the last call.

func (*EphemeralContainerCommonApplyConfiguration) WithVolumeDevices

WithVolumeDevices adds the given value to the VolumeDevices 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 VolumeDevices field.

func (*EphemeralContainerCommonApplyConfiguration) WithVolumeMounts

WithVolumeMounts adds the given value to the VolumeMounts 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 VolumeMounts field.

func (*EphemeralContainerCommonApplyConfiguration) WithWorkingDir

WithWorkingDir sets the WorkingDir 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 WorkingDir field is set to the value of the last call.

type EphemeralVolumeSourceApplyConfiguration

type EphemeralVolumeSourceApplyConfiguration struct {
	// Will be used to create a stand-alone PVC to provision the volume.
	// The pod in which this EphemeralVolumeSource is embedded will be the
	// owner of the PVC, i.e. the PVC will be deleted together with the
	// pod.  The name of the PVC will be `<pod name>-<volume name>` where
	// `<volume name>` is the name from the `PodSpec.Volumes` array
	// entry. Pod validation will reject the pod if the concatenated name
	// is not valid for a PVC (for example, too long).
	//
	// An existing PVC with that name that is not owned by the pod
	// will *not* be used for the pod to avoid using an unrelated
	// volume by mistake. Starting the pod is then blocked until
	// the unrelated PVC is removed. If such a pre-created PVC is
	// meant to be used by the pod, the PVC has to updated with an
	// owner reference to the pod once the pod exists. Normally
	// this should not be necessary, but it may be useful when
	// manually reconstructing a broken cluster.
	//
	// This field is read-only and no changes will be made by Kubernetes
	// to the PVC after it has been created.
	//
	// Required, must not be nil.
	VolumeClaimTemplate *PersistentVolumeClaimTemplateApplyConfiguration `json:"volumeClaimTemplate,omitempty"`
}

EphemeralVolumeSourceApplyConfiguration represents a declarative configuration of the EphemeralVolumeSource type for use with apply.

Represents an ephemeral volume that is handled by a normal storage driver.

func EphemeralVolumeSource

func EphemeralVolumeSource() *EphemeralVolumeSourceApplyConfiguration

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

func (*EphemeralVolumeSourceApplyConfiguration) WithVolumeClaimTemplate

WithVolumeClaimTemplate sets the VolumeClaimTemplate 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 VolumeClaimTemplate field is set to the value of the last call.

type EventApplyConfiguration

type EventApplyConfiguration struct {
	metav1.TypeMetaApplyConfiguration `json:",inline"`
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	// The object that this event is about.
	InvolvedObject *ObjectReferenceApplyConfiguration `json:"involvedObject,omitempty"`
	// This should be a short, machine understandable string that gives the reason
	// for the transition into the object's current status.
	// TODO: provide exact specification for format.
	Reason *string `json:"reason,omitempty"`
	// A human-readable description of the status of this operation.
	// TODO: decide on maximum length.
	Message *string `json:"message,omitempty"`
	// The component reporting this event. Should be a short machine understandable string.
	Source *EventSourceApplyConfiguration `json:"source,omitempty"`
	// The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)
	FirstTimestamp *apismetav1.Time `json:"firstTimestamp,omitempty"`
	// The time at which the most recent occurrence of this event was recorded.
	LastTimestamp *apismetav1.Time `json:"lastTimestamp,omitempty"`
	// The number of times this event has occurred.
	Count *int32 `json:"count,omitempty"`
	// Type of this event (Normal, Warning), new types could be added in the future
	Type *string `json:"type,omitempty"`
	// Time when this Event was first observed.
	EventTime *apismetav1.MicroTime `json:"eventTime,omitempty"`
	// Data about the Event series this event represents or nil if it's a singleton Event.
	Series *EventSeriesApplyConfiguration `json:"series,omitempty"`
	// What action was taken/failed regarding to the Regarding object.
	Action *string `json:"action,omitempty"`
	// Optional secondary object for more complex actions.
	Related *ObjectReferenceApplyConfiguration `json:"related,omitempty"`
	// Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.
	ReportingController *string `json:"reportingComponent,omitempty"`
	// ID of the controller instance, e.g. `kubelet-xyzf`.
	ReportingInstance *string `json:"reportingInstance,omitempty"`
}

EventApplyConfiguration represents a declarative configuration of the Event type for use with apply.

Event is a report of an event somewhere in the cluster. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.

func Event

func Event(name, namespace string) *EventApplyConfiguration

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

func ExtractEvent

func ExtractEvent(event *corev1.Event, fieldManager string) (*EventApplyConfiguration, error)

ExtractEvent extracts the applied configuration owned by fieldManager from event. If no managedFields are found in event for fieldManager, a EventApplyConfiguration 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. event must be a unmodified Event API object that was retrieved from the Kubernetes API. ExtractEvent 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 ExtractEventFrom

func ExtractEventFrom(event *corev1.Event, fieldManager string, subresource string) (*EventApplyConfiguration, error)

ExtractEventFrom extracts the applied configuration owned by fieldManager from event for the specified subresource. Pass an empty string for subresource to extract the main resource. Common subresources include "status", "scale", etc. event must be a unmodified Event API object that was retrieved from the Kubernetes API. ExtractEventFrom 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 (*EventApplyConfiguration) GetAPIVersion

func (b *EventApplyConfiguration) GetAPIVersion() *string

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

func (*EventApplyConfiguration) GetKind

func (b *EventApplyConfiguration) GetKind() *string

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

func (*EventApplyConfiguration) GetName

func (b *EventApplyConfiguration) GetName() *string

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

func (*EventApplyConfiguration) GetNamespace

func (b *EventApplyConfiguration) GetNamespace() *string

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

func (EventApplyConfiguration) IsApplyConfiguration

func (b EventApplyConfiguration) IsApplyConfiguration()

func (*EventApplyConfiguration) WithAPIVersion

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

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 (*EventApplyConfiguration) WithAction

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

func (*EventApplyConfiguration) WithAnnotations

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

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 (*EventApplyConfiguration) WithCount

WithCount sets the Count 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 Count field is set to the value of the last call.

func (*EventApplyConfiguration) WithCreationTimestamp

func (b *EventApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *EventApplyConfiguration

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 (*EventApplyConfiguration) WithDeletionGracePeriodSeconds

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

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 (*EventApplyConfiguration) WithDeletionTimestamp

func (b *EventApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *EventApplyConfiguration

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 (*EventApplyConfiguration) WithEventTime

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

func (*EventApplyConfiguration) WithFinalizers

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

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 (*EventApplyConfiguration) WithFirstTimestamp

func (b *EventApplyConfiguration) WithFirstTimestamp(value apismetav1.Time) *EventApplyConfiguration

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

func (*EventApplyConfiguration) WithGenerateName

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

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 (*EventApplyConfiguration) WithGeneration

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

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 (*EventApplyConfiguration) WithInvolvedObject

WithInvolvedObject sets the InvolvedObject 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 InvolvedObject field is set to the value of the last call.

func (*EventApplyConfiguration) 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 (*EventApplyConfiguration) WithLabels

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

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 (*EventApplyConfiguration) WithLastTimestamp

func (b *EventApplyConfiguration) WithLastTimestamp(value apismetav1.Time) *EventApplyConfiguration

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

func (*EventApplyConfiguration) 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 (*EventApplyConfiguration) 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 (*EventApplyConfiguration) WithNamespace

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

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 (*EventApplyConfiguration) 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 (*EventApplyConfiguration) 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 (*EventApplyConfiguration) WithRelated

WithRelated sets the Related 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 Related field is set to the value of the last call.

func (*EventApplyConfiguration) WithReportingController

func (b *EventApplyConfiguration) WithReportingController(value string) *EventApplyConfiguration

WithReportingController sets the ReportingController 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 ReportingController field is set to the value of the last call.

func (*EventApplyConfiguration) WithReportingInstance

func (b *EventApplyConfiguration) WithReportingInstance(value string) *EventApplyConfiguration

WithReportingInstance sets the ReportingInstance 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 ReportingInstance field is set to the value of the last call.

func (*EventApplyConfiguration) WithResourceVersion

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

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 (*EventApplyConfiguration) WithSeries

WithSeries sets the Series 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 Series field is set to the value of the last call.

func (*EventApplyConfiguration) WithSource

WithSource sets the Source 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 Source field is set to the value of the last call.

func (*EventApplyConfiguration) 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.

func (*EventApplyConfiguration) 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 EventSeriesApplyConfiguration

type EventSeriesApplyConfiguration struct {
	// Number of occurrences in this series up to the last heartbeat time
	Count *int32 `json:"count,omitempty"`
	// Time of the last occurrence observed
	LastObservedTime *metav1.MicroTime `json:"lastObservedTime,omitempty"`
}

EventSeriesApplyConfiguration represents a declarative configuration of the EventSeries type for use with apply.

EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time.

func EventSeries

func EventSeries() *EventSeriesApplyConfiguration

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

func (*EventSeriesApplyConfiguration) WithCount

WithCount sets the Count 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 Count field is set to the value of the last call.

func (*EventSeriesApplyConfiguration) WithLastObservedTime

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

type EventSourceApplyConfiguration

type EventSourceApplyConfiguration struct {
	// Component from which the event is generated.
	Component *string `json:"component,omitempty"`
	// Node name on which the event is generated.
	Host *string `json:"host,omitempty"`
}

EventSourceApplyConfiguration represents a declarative configuration of the EventSource type for use with apply.

EventSource contains information for an event.

func EventSource

func EventSource() *EventSourceApplyConfiguration

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

func (*EventSourceApplyConfiguration) WithComponent

WithComponent sets the Component 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 Component field is set to the value of the last call.

func (*EventSourceApplyConfiguration) 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 ExecActionApplyConfiguration

type ExecActionApplyConfiguration struct {
	// Command is the command line to execute inside the container, the working directory for the
	// command  is root ('/') in the container's filesystem. The command is simply exec'd, it is
	// not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use
	// a shell, you need to explicitly call out to that shell.
	// Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
	Command []string `json:"command,omitempty"`
}

ExecActionApplyConfiguration represents a declarative configuration of the ExecAction type for use with apply.

ExecAction describes a "run in container" action.

func ExecAction

func ExecAction() *ExecActionApplyConfiguration

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

func (*ExecActionApplyConfiguration) WithCommand

WithCommand adds the given value to the Command 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 Command field.

type FCVolumeSourceApplyConfiguration

type FCVolumeSourceApplyConfiguration struct {
	// targetWWNs is Optional: FC target worldwide names (WWNs)
	TargetWWNs []string `json:"targetWWNs,omitempty"`
	// lun is Optional: FC target lun number
	Lun *int32 `json:"lun,omitempty"`
	// fsType is the filesystem type to mount.
	// Must be a filesystem type supported by the host operating system.
	// Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
	// TODO: how do we prevent errors in the filesystem from compromising the machine
	FSType *string `json:"fsType,omitempty"`
	// readOnly is Optional: Defaults to false (read/write). ReadOnly here will force
	// the ReadOnly setting in VolumeMounts.
	ReadOnly *bool `json:"readOnly,omitempty"`
	// wwids Optional: FC volume world wide identifiers (wwids)
	// Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.
	WWIDs []string `json:"wwids,omitempty"`
}

FCVolumeSourceApplyConfiguration represents a declarative configuration of the FCVolumeSource type for use with apply.

Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling.

func FCVolumeSource

func FCVolumeSource() *FCVolumeSourceApplyConfiguration

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

func (*FCVolumeSourceApplyConfiguration) WithFSType

WithFSType sets the FSType 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 FSType field is set to the value of the last call.

func (*FCVolumeSourceApplyConfiguration) WithLun

WithLun sets the Lun 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 Lun field is set to the value of the last call.

func (*FCVolumeSourceApplyConfiguration) WithReadOnly

WithReadOnly sets the ReadOnly 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 ReadOnly field is set to the value of the last call.

func (*FCVolumeSourceApplyConfiguration) WithTargetWWNs

WithTargetWWNs adds the given value to the TargetWWNs 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 TargetWWNs field.

func (*FCVolumeSourceApplyConfiguration) WithWWIDs

WithWWIDs adds the given value to the WWIDs 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 WWIDs field.

type FileKeySelectorApplyConfiguration

type FileKeySelectorApplyConfiguration struct {
	// The name of the volume mount containing the env file.
	VolumeName *string `json:"volumeName,omitempty"`
	// The path within the volume from which to select the file.
	// Must be relative and may not contain the '..' path or start with '..'.
	Path *string `json:"path,omitempty"`
	// The key within the env file. An invalid key will prevent the pod from starting.
	// The keys defined within a source may consist of any printable ASCII characters except '='.
	// During Alpha stage of the EnvFiles feature gate, the key size is limited to 128 characters.
	Key *string `json:"key,omitempty"`
	// Specify whether the file or its key must be defined. If the file or key
	// does not exist, then the env var is not published.
	// If optional is set to true and the specified key does not exist,
	// the environment variable will not be set in the Pod's containers.
	//
	// If optional is set to false and the specified key does not exist,
	// an error will be returned during Pod creation.
	Optional *bool `json:"optional,omitempty"`
}

FileKeySelectorApplyConfiguration represents a declarative configuration of the FileKeySelector type for use with apply.

FileKeySelector selects a key of the env file.

func FileKeySelector

func FileKeySelector() *FileKeySelectorApplyConfiguration

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

func (*FileKeySelectorApplyConfiguration) WithKey

WithKey sets the Key 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 Key field is set to the value of the last call.

func (*FileKeySelectorApplyConfiguration) WithOptional

WithOptional sets the Optional 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 Optional field is set to the value of the last call.

func (*FileKeySelectorApplyConfiguration) 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 (*FileKeySelectorApplyConfiguration) WithVolumeName

WithVolumeName sets the VolumeName 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 VolumeName field is set to the value of the last call.

type FlexPersistentVolumeSourceApplyConfiguration

type FlexPersistentVolumeSourceApplyConfiguration struct {
	// driver is the name of the driver to use for this volume.
	Driver *string `json:"driver,omitempty"`
	// fsType is the Filesystem type to mount.
	// Must be a filesystem type supported by the host operating system.
	// Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.
	FSType *string `json:"fsType,omitempty"`
	// secretRef is Optional: SecretRef is reference to the secret object containing
	// sensitive information to pass to the plugin scripts. This may be
	// empty if no secret object is specified. If the secret object
	// contains more than one secret, all secrets are passed to the plugin
	// scripts.
	SecretRef *SecretReferenceApplyConfiguration `json:"secretRef,omitempty"`
	// readOnly is Optional: defaults to false (read/write). ReadOnly here will force
	// the ReadOnly setting in VolumeMounts.
	ReadOnly *bool `json:"readOnly,omitempty"`
	// options is Optional: this field holds extra command options if any.
	Options map[string]string `json:"options,omitempty"`
}

FlexPersistentVolumeSourceApplyConfiguration represents a declarative configuration of the FlexPersistentVolumeSource type for use with apply.

FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin.

func FlexPersistentVolumeSource

func FlexPersistentVolumeSource() *FlexPersistentVolumeSourceApplyConfiguration

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

func (*FlexPersistentVolumeSourceApplyConfiguration) WithDriver

WithDriver sets the Driver 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 Driver field is set to the value of the last call.

func (*FlexPersistentVolumeSourceApplyConfiguration) WithFSType

WithFSType sets the FSType 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 FSType field is set to the value of the last call.

func (*FlexPersistentVolumeSourceApplyConfiguration) WithOptions

WithOptions puts the entries into the Options 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 Options field, overwriting an existing map entries in Options field with the same key.

func (*FlexPersistentVolumeSourceApplyConfiguration) WithReadOnly

WithReadOnly sets the ReadOnly 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 ReadOnly field is set to the value of the last call.

func (*FlexPersistentVolumeSourceApplyConfiguration) WithSecretRef

WithSecretRef sets the SecretRef 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 SecretRef field is set to the value of the last call.

type FlexVolumeSourceApplyConfiguration

type FlexVolumeSourceApplyConfiguration struct {
	// driver is the name of the driver to use for this volume.
	Driver *string `json:"driver,omitempty"`
	// fsType is the filesystem type to mount.
	// Must be a filesystem type supported by the host operating system.
	// Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.
	FSType *string `json:"fsType,omitempty"`
	// secretRef is Optional: secretRef is reference to the secret object containing
	// sensitive information to pass to the plugin scripts. This may be
	// empty if no secret object is specified. If the secret object
	// contains more than one secret, all secrets are passed to the plugin
	// scripts.
	SecretRef *LocalObjectReferenceApplyConfiguration `json:"secretRef,omitempty"`
	// readOnly is Optional: defaults to false (read/write). ReadOnly here will force
	// the ReadOnly setting in VolumeMounts.
	ReadOnly *bool `json:"readOnly,omitempty"`
	// options is Optional: this field holds extra command options if any.
	Options map[string]string `json:"options,omitempty"`
}

FlexVolumeSourceApplyConfiguration represents a declarative configuration of the FlexVolumeSource type for use with apply.

FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.

func FlexVolumeSource

func FlexVolumeSource() *FlexVolumeSourceApplyConfiguration

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

func (*FlexVolumeSourceApplyConfiguration) WithDriver

WithDriver sets the Driver 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 Driver field is set to the value of the last call.

func (*FlexVolumeSourceApplyConfiguration) WithFSType

WithFSType sets the FSType 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 FSType field is set to the value of the last call.

func (*FlexVolumeSourceApplyConfiguration) WithOptions

WithOptions puts the entries into the Options 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 Options field, overwriting an existing map entries in Options field with the same key.

func (*FlexVolumeSourceApplyConfiguration) WithReadOnly

WithReadOnly sets the ReadOnly 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 ReadOnly field is set to the value of the last call.

func (*FlexVolumeSourceApplyConfiguration) WithSecretRef

WithSecretRef sets the SecretRef 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 SecretRef field is set to the value of the last call.

type FlockerVolumeSourceApplyConfiguration

type FlockerVolumeSourceApplyConfiguration struct {
	// datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker
	// should be considered as deprecated
	DatasetName *string `json:"datasetName,omitempty"`
	// datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset
	DatasetUUID *string `json:"datasetUUID,omitempty"`
}

FlockerVolumeSourceApplyConfiguration represents a declarative configuration of the FlockerVolumeSource type for use with apply.

Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling.

func FlockerVolumeSource

func FlockerVolumeSource() *FlockerVolumeSourceApplyConfiguration

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

func (*FlockerVolumeSourceApplyConfiguration) WithDatasetName

WithDatasetName sets the DatasetName 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 DatasetName field is set to the value of the last call.

func (*FlockerVolumeSourceApplyConfiguration) WithDatasetUUID

WithDatasetUUID sets the DatasetUUID 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 DatasetUUID field is set to the value of the last call.

type GCEPersistentDiskVolumeSourceApplyConfiguration

type GCEPersistentDiskVolumeSourceApplyConfiguration struct {
	// pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE.
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
	PDName *string `json:"pdName,omitempty"`
	// fsType is filesystem type of the volume that you want to mount.
	// Tip: Ensure that the filesystem type is supported by the host operating system.
	// Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
	// TODO: how do we prevent errors in the filesystem from compromising the machine
	FSType *string `json:"fsType,omitempty"`
	// partition is the partition in the volume that you want to mount.
	// If omitted, the default is to mount by volume name.
	// Examples: For volume /dev/sda1, you specify the partition as "1".
	// Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty).
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
	Partition *int32 `json:"partition,omitempty"`
	// readOnly here will force the ReadOnly setting in VolumeMounts.
	// Defaults to false.
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
	ReadOnly *bool `json:"readOnly,omitempty"`
}

GCEPersistentDiskVolumeSourceApplyConfiguration represents a declarative configuration of the GCEPersistentDiskVolumeSource type for use with apply.

Represents a Persistent Disk resource in Google Compute Engine.

A GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling.

func GCEPersistentDiskVolumeSource

func GCEPersistentDiskVolumeSource() *GCEPersistentDiskVolumeSourceApplyConfiguration

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

func (*GCEPersistentDiskVolumeSourceApplyConfiguration) WithFSType

WithFSType sets the FSType 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 FSType field is set to the value of the last call.

func (*GCEPersistentDiskVolumeSourceApplyConfiguration) WithPDName

WithPDName sets the PDName 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 PDName field is set to the value of the last call.

func (*GCEPersistentDiskVolumeSourceApplyConfiguration) WithPartition

WithPartition sets the Partition 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 Partition field is set to the value of the last call.

func (*GCEPersistentDiskVolumeSourceApplyConfiguration) WithReadOnly

WithReadOnly sets the ReadOnly 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 ReadOnly field is set to the value of the last call.

type GRPCActionApplyConfiguration

type GRPCActionApplyConfiguration struct {
	// Port number of the gRPC service. Number must be in the range 1 to 65535.
	Port *int32 `json:"port,omitempty"`
	// Service is the name of the service to place in the gRPC HealthCheckRequest
	// (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).
	//
	// If this is not specified, the default behavior is defined by gRPC.
	Service *string `json:"service,omitempty"`
}

GRPCActionApplyConfiguration represents a declarative configuration of the GRPCAction type for use with apply.

GRPCAction specifies an action involving a GRPC service.

func GRPCAction

func GRPCAction() *GRPCActionApplyConfiguration

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

func (*GRPCActionApplyConfiguration) 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 (*GRPCActionApplyConfiguration) WithService

WithService sets the Service 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 Service field is set to the value of the last call.

type GitRepoVolumeSourceApplyConfiguration

type GitRepoVolumeSourceApplyConfiguration struct {
	// repository is the URL
	Repository *string `json:"repository,omitempty"`
	// revision is the commit hash for the specified revision.
	Revision *string `json:"revision,omitempty"`
	// directory is the target directory name.
	// Must not contain or start with '..'.  If '.' is supplied, the volume directory will be the
	// git repository.  Otherwise, if specified, the volume will contain the git repository in
	// the subdirectory with the given name.
	Directory *string `json:"directory,omitempty"`
}

GitRepoVolumeSourceApplyConfiguration represents a declarative configuration of the GitRepoVolumeSource type for use with apply.

Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling.

DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.

func GitRepoVolumeSource

func GitRepoVolumeSource() *GitRepoVolumeSourceApplyConfiguration

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

func (*GitRepoVolumeSourceApplyConfiguration) WithDirectory

WithDirectory sets the Directory 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 Directory field is set to the value of the last call.

func (*GitRepoVolumeSourceApplyConfiguration) WithRepository

WithRepository sets the Repository 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 Repository field is set to the value of the last call.

func (*GitRepoVolumeSourceApplyConfiguration) 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 GlusterfsPersistentVolumeSourceApplyConfiguration

type GlusterfsPersistentVolumeSourceApplyConfiguration struct {
	// endpoints is the endpoint name that details Glusterfs topology.
	// More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
	EndpointsName *string `json:"endpoints,omitempty"`
	// path is the Glusterfs volume path.
	// More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
	Path *string `json:"path,omitempty"`
	// readOnly here will force the Glusterfs volume to be mounted with read-only permissions.
	// Defaults to false.
	// More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
	ReadOnly *bool `json:"readOnly,omitempty"`
	// endpointsNamespace is the namespace that contains Glusterfs endpoint.
	// If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC.
	// More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
	EndpointsNamespace *string `json:"endpointsNamespace,omitempty"`
}

GlusterfsPersistentVolumeSourceApplyConfiguration represents a declarative configuration of the GlusterfsPersistentVolumeSource type for use with apply.

Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.

func GlusterfsPersistentVolumeSource

func GlusterfsPersistentVolumeSource() *GlusterfsPersistentVolumeSourceApplyConfiguration

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

func (*GlusterfsPersistentVolumeSourceApplyConfiguration) WithEndpointsName

WithEndpointsName sets the EndpointsName 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 EndpointsName field is set to the value of the last call.

func (*GlusterfsPersistentVolumeSourceApplyConfiguration) WithEndpointsNamespace

WithEndpointsNamespace sets the EndpointsNamespace 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 EndpointsNamespace field is set to the value of the last call.

func (*GlusterfsPersistentVolumeSourceApplyConfiguration) 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 (*GlusterfsPersistentVolumeSourceApplyConfiguration) WithReadOnly

WithReadOnly sets the ReadOnly 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 ReadOnly field is set to the value of the last call.

type GlusterfsVolumeSourceApplyConfiguration

type GlusterfsVolumeSourceApplyConfiguration struct {
	// endpoints is the endpoint name that details Glusterfs topology.
	EndpointsName *string `json:"endpoints,omitempty"`
	// path is the Glusterfs volume path.
	// More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
	Path *string `json:"path,omitempty"`
	// readOnly here will force the Glusterfs volume to be mounted with read-only permissions.
	// Defaults to false.
	// More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
	ReadOnly *bool `json:"readOnly,omitempty"`
}

GlusterfsVolumeSourceApplyConfiguration represents a declarative configuration of the GlusterfsVolumeSource type for use with apply.

Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.

func GlusterfsVolumeSource

func GlusterfsVolumeSource() *GlusterfsVolumeSourceApplyConfiguration

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

func (*GlusterfsVolumeSourceApplyConfiguration) WithEndpointsName

WithEndpointsName sets the EndpointsName 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 EndpointsName field is set to the value of the last call.

func (*GlusterfsVolumeSourceApplyConfiguration) 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 (*GlusterfsVolumeSourceApplyConfiguration) WithReadOnly

WithReadOnly sets the ReadOnly 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 ReadOnly field is set to the value of the last call.

type HTTPGetActionApplyConfiguration

type HTTPGetActionApplyConfiguration struct {
	// Path to access on the HTTP server.
	Path *string `json:"path,omitempty"`
	// Name or number of the port to access on the container.
	// Number must be in the range 1 to 65535.
	// Name must be an IANA_SVC_NAME.
	Port *intstr.IntOrString `json:"port,omitempty"`
	// Host name to connect to, defaults to the pod IP. You probably want to set
	// "Host" in httpHeaders instead.
	Host *string `json:"host,omitempty"`
	// Scheme to use for connecting to the host.
	// Defaults to HTTP.
	Scheme *corev1.URIScheme `json:"scheme,omitempty"`
	// Custom headers to set in the request. HTTP allows repeated headers.
	HTTPHeaders []HTTPHeaderApplyConfiguration `json:"httpHeaders,omitempty"`
}

HTTPGetActionApplyConfiguration represents a declarative configuration of the HTTPGetAction type for use with apply.

HTTPGetAction describes an action based on HTTP Get requests.

func HTTPGetAction

func HTTPGetAction() *HTTPGetActionApplyConfiguration

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

func (*HTTPGetActionApplyConfiguration) WithHTTPHeaders

WithHTTPHeaders adds the given value to the HTTPHeaders 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 HTTPHeaders field.

func (*HTTPGetActionApplyConfiguration) 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.

func (*HTTPGetActionApplyConfiguration) 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 (*HTTPGetActionApplyConfiguration) 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 (*HTTPGetActionApplyConfiguration) WithScheme

WithScheme sets the Scheme 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 Scheme field is set to the value of the last call.

type HTTPHeaderApplyConfiguration

type HTTPHeaderApplyConfiguration struct {
	// The header field name.
	// This will be canonicalized upon output, so case-variant names will be understood as the same header.
	Name *string `json:"name,omitempty"`
	// The header field value
	Value *string `json:"value,omitempty"`
}

HTTPHeaderApplyConfiguration represents a declarative configuration of the HTTPHeader type for use with apply.

HTTPHeader describes a custom header to be used in HTTP probes

func HTTPHeader

func HTTPHeader() *HTTPHeaderApplyConfiguration

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

func (*HTTPHeaderApplyConfiguration) 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 (*HTTPHeaderApplyConfiguration) WithValue

WithValue sets the Value 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 Value field is set to the value of the last call.

type HostAliasApplyConfiguration

type HostAliasApplyConfiguration struct {
	// IP address of the host file entry.
	IP *string `json:"ip,omitempty"`
	// Hostnames for the above IP address.
	Hostnames []string `json:"hostnames,omitempty"`
}

HostAliasApplyConfiguration represents a declarative configuration of the HostAlias type for use with apply.

HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.

func HostAlias

func HostAlias() *HostAliasApplyConfiguration

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

func (*HostAliasApplyConfiguration) WithHostnames

func (b *HostAliasApplyConfiguration) WithHostnames(values ...string) *HostAliasApplyConfiguration

WithHostnames adds the given value to the Hostnames 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 Hostnames field.

func (*HostAliasApplyConfiguration) 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.

type HostIPApplyConfiguration

type HostIPApplyConfiguration struct {
	// IP is the IP address assigned to the host
	IP *string `json:"ip,omitempty"`
}

HostIPApplyConfiguration represents a declarative configuration of the HostIP type for use with apply.

HostIP represents a single IP address allocated to the host.

func HostIP

func HostIP() *HostIPApplyConfiguration

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

func (*HostIPApplyConfiguration) 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.

type HostPathVolumeSourceApplyConfiguration

type HostPathVolumeSourceApplyConfiguration struct {
	// path of the directory on the host.
	// If the path is a symlink, it will follow the link to the real path.
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
	Path *string `json:"path,omitempty"`
	// type for HostPath Volume
	// Defaults to ""
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
	Type *corev1.HostPathType `json:"type,omitempty"`
}

HostPathVolumeSourceApplyConfiguration represents a declarative configuration of the HostPathVolumeSource type for use with apply.

Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.

func HostPathVolumeSource

func HostPathVolumeSource() *HostPathVolumeSourceApplyConfiguration

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

func (*HostPathVolumeSourceApplyConfiguration) 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 (*HostPathVolumeSourceApplyConfiguration) 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 ISCSIPersistentVolumeSourceApplyConfiguration

type ISCSIPersistentVolumeSourceApplyConfiguration struct {
	// targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port
	// is other than default (typically TCP ports 860 and 3260).
	TargetPortal *string `json:"targetPortal,omitempty"`
	// iqn is Target iSCSI Qualified Name.
	IQN *string `json:"iqn,omitempty"`
	// lun is iSCSI Target Lun number.
	Lun *int32 `json:"lun,omitempty"`
	// iscsiInterface is the interface Name that uses an iSCSI transport.
	// Defaults to 'default' (tcp).
	ISCSIInterface *string `json:"iscsiInterface,omitempty"`
	// fsType is the filesystem type of the volume that you want to mount.
	// Tip: Ensure that the filesystem type is supported by the host operating system.
	// Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi
	// TODO: how do we prevent errors in the filesystem from compromising the machine
	FSType *string `json:"fsType,omitempty"`
	// readOnly here will force the ReadOnly setting in VolumeMounts.
	// Defaults to false.
	ReadOnly *bool `json:"readOnly,omitempty"`
	// portals is the iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port
	// is other than default (typically TCP ports 860 and 3260).
	Portals []string `json:"portals,omitempty"`
	// chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication
	DiscoveryCHAPAuth *bool `json:"chapAuthDiscovery,omitempty"`
	// chapAuthSession defines whether support iSCSI Session CHAP authentication
	SessionCHAPAuth *bool `json:"chapAuthSession,omitempty"`
	// secretRef is the CHAP Secret for iSCSI target and initiator authentication
	SecretRef *SecretReferenceApplyConfiguration `json:"secretRef,omitempty"`
	// initiatorName is the custom iSCSI Initiator Name.
	// If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface
	// <target portal>:<volume name> will be created for the connection.
	InitiatorName *string `json:"initiatorName,omitempty"`
}

ISCSIPersistentVolumeSourceApplyConfiguration represents a declarative configuration of the ISCSIPersistentVolumeSource type for use with apply.

ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.

func ISCSIPersistentVolumeSource

func ISCSIPersistentVolumeSource() *ISCSIPersistentVolumeSourceApplyConfiguration

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

func (*ISCSIPersistentVolumeSourceApplyConfiguration) WithDiscoveryCHAPAuth

WithDiscoveryCHAPAuth sets the DiscoveryCHAPAuth 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 DiscoveryCHAPAuth field is set to the value of the last call.

func (*ISCSIPersistentVolumeSourceApplyConfiguration) WithFSType

WithFSType sets the FSType 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 FSType field is set to the value of the last call.

func (*ISCSIPersistentVolumeSourceApplyConfiguration) WithIQN

WithIQN sets the IQN 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 IQN field is set to the value of the last call.

func (*ISCSIPersistentVolumeSourceApplyConfiguration) WithISCSIInterface

WithISCSIInterface sets the ISCSIInterface 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 ISCSIInterface field is set to the value of the last call.

func (*ISCSIPersistentVolumeSourceApplyConfiguration) WithInitiatorName

WithInitiatorName sets the InitiatorName 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 InitiatorName field is set to the value of the last call.

func (*ISCSIPersistentVolumeSourceApplyConfiguration) WithLun

WithLun sets the Lun 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 Lun field is set to the value of the last call.

func (*ISCSIPersistentVolumeSourceApplyConfiguration) WithPortals

WithPortals adds the given value to the Portals 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 Portals field.

func (*ISCSIPersistentVolumeSourceApplyConfiguration) WithReadOnly

WithReadOnly sets the ReadOnly 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 ReadOnly field is set to the value of the last call.

func (*ISCSIPersistentVolumeSourceApplyConfiguration) WithSecretRef

WithSecretRef sets the SecretRef 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 SecretRef field is set to the value of the last call.

func (*ISCSIPersistentVolumeSourceApplyConfiguration) WithSessionCHAPAuth

WithSessionCHAPAuth sets the SessionCHAPAuth 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 SessionCHAPAuth field is set to the value of the last call.

func (*ISCSIPersistentVolumeSourceApplyConfiguration) WithTargetPortal

WithTargetPortal sets the TargetPortal 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 TargetPortal field is set to the value of the last call.

type ISCSIVolumeSourceApplyConfiguration

type ISCSIVolumeSourceApplyConfiguration struct {
	// targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port
	// is other than default (typically TCP ports 860 and 3260).
	TargetPortal *string `json:"targetPortal,omitempty"`
	// iqn is the target iSCSI Qualified Name.
	IQN *string `json:"iqn,omitempty"`
	// lun represents iSCSI Target Lun number.
	Lun *int32 `json:"lun,omitempty"`
	// iscsiInterface is the interface Name that uses an iSCSI transport.
	// Defaults to 'default' (tcp).
	ISCSIInterface *string `json:"iscsiInterface,omitempty"`
	// fsType is the filesystem type of the volume that you want to mount.
	// Tip: Ensure that the filesystem type is supported by the host operating system.
	// Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi
	// TODO: how do we prevent errors in the filesystem from compromising the machine
	FSType *string `json:"fsType,omitempty"`
	// readOnly here will force the ReadOnly setting in VolumeMounts.
	// Defaults to false.
	ReadOnly *bool `json:"readOnly,omitempty"`
	// portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port
	// is other than default (typically TCP ports 860 and 3260).
	Portals []string `json:"portals,omitempty"`
	// chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication
	DiscoveryCHAPAuth *bool `json:"chapAuthDiscovery,omitempty"`
	// chapAuthSession defines whether support iSCSI Session CHAP authentication
	SessionCHAPAuth *bool `json:"chapAuthSession,omitempty"`
	// secretRef is the CHAP Secret for iSCSI target and initiator authentication
	SecretRef *LocalObjectReferenceApplyConfiguration `json:"secretRef,omitempty"`
	// initiatorName is the custom iSCSI Initiator Name.
	// If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface
	// <target portal>:<volume name> will be created for the connection.
	InitiatorName *string `json:"initiatorName,omitempty"`
}

ISCSIVolumeSourceApplyConfiguration represents a declarative configuration of the ISCSIVolumeSource type for use with apply.

Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.

func ISCSIVolumeSource

func ISCSIVolumeSource() *ISCSIVolumeSourceApplyConfiguration

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

func (*ISCSIVolumeSourceApplyConfiguration) WithDiscoveryCHAPAuth

WithDiscoveryCHAPAuth sets the DiscoveryCHAPAuth 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 DiscoveryCHAPAuth field is set to the value of the last call.

func (*ISCSIVolumeSourceApplyConfiguration) WithFSType

WithFSType sets the FSType 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 FSType field is set to the value of the last call.

func (*ISCSIVolumeSourceApplyConfiguration) WithIQN

WithIQN sets the IQN 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 IQN field is set to the value of the last call.

func (*ISCSIVolumeSourceApplyConfiguration) WithISCSIInterface

WithISCSIInterface sets the ISCSIInterface 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 ISCSIInterface field is set to the value of the last call.

func (*ISCSIVolumeSourceApplyConfiguration) WithInitiatorName

WithInitiatorName sets the InitiatorName 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 InitiatorName field is set to the value of the last call.

func (*ISCSIVolumeSourceApplyConfiguration) WithLun

WithLun sets the Lun 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 Lun field is set to the value of the last call.

func (*ISCSIVolumeSourceApplyConfiguration) WithPortals

WithPortals adds the given value to the Portals 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 Portals field.

func (*ISCSIVolumeSourceApplyConfiguration) WithReadOnly

WithReadOnly sets the ReadOnly 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 ReadOnly field is set to the value of the last call.

func (*ISCSIVolumeSourceApplyConfiguration) WithSecretRef

WithSecretRef sets the SecretRef 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 SecretRef field is set to the value of the last call.

func (*ISCSIVolumeSourceApplyConfiguration) WithSessionCHAPAuth

WithSessionCHAPAuth sets the SessionCHAPAuth 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 SessionCHAPAuth field is set to the value of the last call.

func (*ISCSIVolumeSourceApplyConfiguration) WithTargetPortal

WithTargetPortal sets the TargetPortal 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 TargetPortal field is set to the value of the last call.

type ImageVolumeSourceApplyConfiguration

type ImageVolumeSourceApplyConfiguration struct {
	// Required: Image or artifact reference to be used.
	// Behaves in the same way as pod.spec.containers[*].image.
	// Pull secrets will be assembled in the same way as for the container image by looking up node credentials, SA image pull secrets, and pod spec image pull secrets.
	// More info: https://kubernetes.io/docs/concepts/containers/images
	// This field is optional to allow higher level config management to default or override
	// container images in workload controllers like Deployments and StatefulSets.
	Reference *string `json:"reference,omitempty"`
	// Policy for pulling OCI objects. Possible values are:
	// Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails.
	// Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present.
	// IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails.
	// Defaults to Always if :latest tag is specified, or IfNotPresent otherwise.
	PullPolicy *corev1.PullPolicy `json:"pullPolicy,omitempty"`
}

ImageVolumeSourceApplyConfiguration represents a declarative configuration of the ImageVolumeSource type for use with apply.

ImageVolumeSource represents a image volume resource.

func ImageVolumeSource

func ImageVolumeSource() *ImageVolumeSourceApplyConfiguration

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

func (*ImageVolumeSourceApplyConfiguration) WithPullPolicy

WithPullPolicy sets the PullPolicy 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 PullPolicy field is set to the value of the last call.

func (*ImageVolumeSourceApplyConfiguration) WithReference

WithReference sets the Reference 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 Reference field is set to the value of the last call.

type KeyToPathApplyConfiguration

type KeyToPathApplyConfiguration struct {
	// key is the key to project.
	Key *string `json:"key,omitempty"`
	// path is the relative path of the file to map the key to.
	// May not be an absolute path.
	// May not contain the path element '..'.
	// May not start with the string '..'.
	Path *string `json:"path,omitempty"`
	// mode is Optional: mode bits used to set permissions on this file.
	// Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
	// YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
	// If not specified, the volume defaultMode will be used.
	// This might be in conflict with other options that affect the file
	// mode, like fsGroup, and the result can be other mode bits set.
	Mode *int32 `json:"mode,omitempty"`
}

KeyToPathApplyConfiguration represents a declarative configuration of the KeyToPath type for use with apply.

Maps a string key to a path within a volume.

func KeyToPath

func KeyToPath() *KeyToPathApplyConfiguration

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

func (*KeyToPathApplyConfiguration) WithKey

WithKey sets the Key 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 Key field is set to the value of the last call.

func (*KeyToPathApplyConfiguration) WithMode

WithMode sets the Mode 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 Mode field is set to the value of the last call.

func (*KeyToPathApplyConfiguration) 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.

type LifecycleApplyConfiguration

type LifecycleApplyConfiguration struct {
	// PostStart is called immediately after a container is created. If the handler fails,
	// the container is terminated and restarted according to its restart policy.
	// Other management of the container blocks until the hook completes.
	// More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
	PostStart *LifecycleHandlerApplyConfiguration `json:"postStart,omitempty"`
	// PreStop is called immediately before a container is terminated due to an
	// API request or management event such as liveness/startup probe failure,
	// preemption, resource contention, etc. The handler is not called if the
	// container crashes or exits. The Pod's termination grace period countdown begins before the
	// PreStop hook is executed. Regardless of the outcome of the handler, the
	// container will eventually terminate within the Pod's termination grace
	// period (unless delayed by finalizers). Other management of the container blocks until the hook completes
	// or until the termination grace period is reached.
	// More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks
	PreStop *LifecycleHandlerApplyConfiguration `json:"preStop,omitempty"`
	// StopSignal defines which signal will be sent to a container when it is being stopped.
	// If not specified, the default is defined by the container runtime in use.
	// StopSignal can only be set for Pods with a non-empty .spec.os.name
	StopSignal *corev1.Signal `json:"stopSignal,omitempty"`
}

LifecycleApplyConfiguration represents a declarative configuration of the Lifecycle type for use with apply.

Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.

func Lifecycle

func Lifecycle() *LifecycleApplyConfiguration

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

func (*LifecycleApplyConfiguration) WithPostStart

WithPostStart sets the PostStart 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 PostStart field is set to the value of the last call.

func (*LifecycleApplyConfiguration) WithPreStop

WithPreStop sets the PreStop 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 PreStop field is set to the value of the last call.

func (*LifecycleApplyConfiguration) WithStopSignal

WithStopSignal sets the StopSignal 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 StopSignal field is set to the value of the last call.

type LifecycleHandlerApplyConfiguration

type LifecycleHandlerApplyConfiguration struct {
	// Exec specifies a command to execute in the container.
	Exec *ExecActionApplyConfiguration `json:"exec,omitempty"`
	// HTTPGet specifies an HTTP GET request to perform.
	HTTPGet *HTTPGetActionApplyConfiguration `json:"httpGet,omitempty"`
	// Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept
	// for backward compatibility. There is no validation of this field and
	// lifecycle hooks will fail at runtime when it is specified.
	TCPSocket *TCPSocketActionApplyConfiguration `json:"tcpSocket,omitempty"`
	// Sleep represents a duration that the container should sleep.
	Sleep *SleepActionApplyConfiguration `json:"sleep,omitempty"`
}

LifecycleHandlerApplyConfiguration represents a declarative configuration of the LifecycleHandler type for use with apply.

LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified.

func LifecycleHandler

func LifecycleHandler() *LifecycleHandlerApplyConfiguration

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

func (*LifecycleHandlerApplyConfiguration) WithExec

WithExec sets the Exec 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 Exec field is set to the value of the last call.

func (*LifecycleHandlerApplyConfiguration) WithHTTPGet

WithHTTPGet sets the HTTPGet 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 HTTPGet field is set to the value of the last call.

func (*LifecycleHandlerApplyConfiguration) WithSleep

WithSleep sets the Sleep 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 Sleep field is set to the value of the last call.

func (*LifecycleHandlerApplyConfiguration) WithTCPSocket

WithTCPSocket sets the TCPSocket 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 TCPSocket field is set to the value of the last call.

type LimitRangeApplyConfiguration

type LimitRangeApplyConfiguration struct {
	metav1.TypeMetaApplyConfiguration `json:",inline"`
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	// Spec defines the limits enforced.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	Spec *LimitRangeSpecApplyConfiguration `json:"spec,omitempty"`
}

LimitRangeApplyConfiguration represents a declarative configuration of the LimitRange type for use with apply.

LimitRange sets resource usage limits for each kind of resource in a Namespace.

func ExtractLimitRange

func ExtractLimitRange(limitRange *corev1.LimitRange, fieldManager string) (*LimitRangeApplyConfiguration, error)

ExtractLimitRange extracts the applied configuration owned by fieldManager from limitRange. If no managedFields are found in limitRange for fieldManager, a LimitRangeApplyConfiguration 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. limitRange must be a unmodified LimitRange API object that was retrieved from the Kubernetes API. ExtractLimitRange 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 ExtractLimitRangeFrom

func ExtractLimitRangeFrom(limitRange *corev1.LimitRange, fieldManager string, subresource string) (*LimitRangeApplyConfiguration, error)

ExtractLimitRangeFrom extracts the applied configuration owned by fieldManager from limitRange for the specified subresource. Pass an empty string for subresource to extract the main resource. Common subresources include "status", "scale", etc. limitRange must be a unmodified LimitRange API object that was retrieved from the Kubernetes API. ExtractLimitRangeFrom 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 LimitRange

func LimitRange(name, namespace string) *LimitRangeApplyConfiguration

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

func (*LimitRangeApplyConfiguration) GetAPIVersion

func (b *LimitRangeApplyConfiguration) GetAPIVersion() *string

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

func (*LimitRangeApplyConfiguration) GetKind

func (b *LimitRangeApplyConfiguration) GetKind() *string

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

func (*LimitRangeApplyConfiguration) GetName

func (b *LimitRangeApplyConfiguration) GetName() *string

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

func (*LimitRangeApplyConfiguration) GetNamespace

func (b *LimitRangeApplyConfiguration) GetNamespace() *string

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

func (LimitRangeApplyConfiguration) IsApplyConfiguration

func (b LimitRangeApplyConfiguration) IsApplyConfiguration()

func (*LimitRangeApplyConfiguration) 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 (*LimitRangeApplyConfiguration) 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 (*LimitRangeApplyConfiguration) 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 (*LimitRangeApplyConfiguration) WithDeletionGracePeriodSeconds

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

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 (*LimitRangeApplyConfiguration) 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 (*LimitRangeApplyConfiguration) 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 (*LimitRangeApplyConfiguration) 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 (*LimitRangeApplyConfiguration) 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 (*LimitRangeApplyConfiguration) 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 (*LimitRangeApplyConfiguration) 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 (*LimitRangeApplyConfiguration) 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 (*LimitRangeApplyConfiguration) 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 (*LimitRangeApplyConfiguration) 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 (*LimitRangeApplyConfiguration) WithResourceVersion

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

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 (*LimitRangeApplyConfiguration) 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 (*LimitRangeApplyConfiguration) 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 LimitRangeItemApplyConfiguration

type LimitRangeItemApplyConfiguration struct {
	// Type of resource that this limit applies to.
	Type *corev1.LimitType `json:"type,omitempty"`
	// Max usage constraints on this kind by resource name.
	Max *corev1.ResourceList `json:"max,omitempty"`
	// Min usage constraints on this kind by resource name.
	Min *corev1.ResourceList `json:"min,omitempty"`
	// Default resource requirement limit value by resource name if resource limit is omitted.
	Default *corev1.ResourceList `json:"default,omitempty"`
	// DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.
	DefaultRequest *corev1.ResourceList `json:"defaultRequest,omitempty"`
	// MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.
	MaxLimitRequestRatio *corev1.ResourceList `json:"maxLimitRequestRatio,omitempty"`
}

LimitRangeItemApplyConfiguration represents a declarative configuration of the LimitRangeItem type for use with apply.

LimitRangeItem defines a min/max usage limit for any resource that matches on kind.

func LimitRangeItem

func LimitRangeItem() *LimitRangeItemApplyConfiguration

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

func (*LimitRangeItemApplyConfiguration) WithDefault

WithDefault sets the Default 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 Default field is set to the value of the last call.

func (*LimitRangeItemApplyConfiguration) WithDefaultRequest

WithDefaultRequest sets the DefaultRequest 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 DefaultRequest field is set to the value of the last call.

func (*LimitRangeItemApplyConfiguration) WithMax

WithMax sets the Max 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 Max field is set to the value of the last call.

func (*LimitRangeItemApplyConfiguration) WithMaxLimitRequestRatio

WithMaxLimitRequestRatio sets the MaxLimitRequestRatio 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 MaxLimitRequestRatio field is set to the value of the last call.

func (*LimitRangeItemApplyConfiguration) WithMin

WithMin sets the Min 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 Min field is set to the value of the last call.

func (*LimitRangeItemApplyConfiguration) 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 LimitRangeSpecApplyConfiguration

type LimitRangeSpecApplyConfiguration struct {
	// Limits is the list of LimitRangeItem objects that are enforced.
	Limits []LimitRangeItemApplyConfiguration `json:"limits,omitempty"`
}

LimitRangeSpecApplyConfiguration represents a declarative configuration of the LimitRangeSpec type for use with apply.

LimitRangeSpec defines a min/max usage limit for resources that match on kind.

func LimitRangeSpec

func LimitRangeSpec() *LimitRangeSpecApplyConfiguration

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

func (*LimitRangeSpecApplyConfiguration) WithLimits

WithLimits adds the given value to the Limits 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 Limits field.

type LinuxContainerUserApplyConfiguration

type LinuxContainerUserApplyConfiguration struct {
	// UID is the primary uid initially attached to the first process in the container
	UID *int64 `json:"uid,omitempty"`
	// GID is the primary gid initially attached to the first process in the container
	GID *int64 `json:"gid,omitempty"`
	// SupplementalGroups are the supplemental groups initially attached to the first process in the container
	SupplementalGroups []int64 `json:"supplementalGroups,omitempty"`
}

LinuxContainerUserApplyConfiguration represents a declarative configuration of the LinuxContainerUser type for use with apply.

LinuxContainerUser represents user identity information in Linux containers

func LinuxContainerUser

func LinuxContainerUser() *LinuxContainerUserApplyConfiguration

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

func (*LinuxContainerUserApplyConfiguration) WithGID

WithGID sets the GID 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 GID field is set to the value of the last call.

func (*LinuxContainerUserApplyConfiguration) WithSupplementalGroups

WithSupplementalGroups adds the given value to the SupplementalGroups 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 SupplementalGroups field.

func (*LinuxContainerUserApplyConfiguration) 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 LoadBalancerIngressApplyConfiguration

type LoadBalancerIngressApplyConfiguration struct {
	// IP is set for load-balancer ingress points that are IP based
	// (typically GCE or OpenStack load-balancers)
	IP *string `json:"ip,omitempty"`
	// Hostname is set for load-balancer ingress points that are DNS based
	// (typically AWS load-balancers)
	Hostname *string `json:"hostname,omitempty"`
	// IPMode specifies how the load-balancer IP behaves, and may only be specified when the ip field is specified.
	// Setting this to "VIP" indicates that traffic is delivered to the node with
	// the destination set to the load-balancer's IP and port.
	// Setting this to "Proxy" indicates that traffic is delivered to the node or pod with
	// the destination set to the node's IP and node port or the pod's IP and port.
	// Service implementations may use this information to adjust traffic routing.
	IPMode *corev1.LoadBalancerIPMode `json:"ipMode,omitempty"`
	// Ports is a list of records of service ports
	// If used, every port defined in the service should have an entry in it
	Ports []PortStatusApplyConfiguration `json:"ports,omitempty"`
}

LoadBalancerIngressApplyConfiguration represents a declarative configuration of the LoadBalancerIngress type for use with apply.

LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point.

func LoadBalancerIngress

func LoadBalancerIngress() *LoadBalancerIngressApplyConfiguration

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

func (*LoadBalancerIngressApplyConfiguration) 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 (*LoadBalancerIngressApplyConfiguration) 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 (*LoadBalancerIngressApplyConfiguration) WithIPMode

WithIPMode sets the IPMode 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 IPMode field is set to the value of the last call.

func (*LoadBalancerIngressApplyConfiguration) 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 LoadBalancerStatusApplyConfiguration

type LoadBalancerStatusApplyConfiguration struct {
	// Ingress is a list containing ingress points for the load-balancer.
	// Traffic intended for the service should be sent to these ingress points.
	Ingress []LoadBalancerIngressApplyConfiguration `json:"ingress,omitempty"`
}

LoadBalancerStatusApplyConfiguration represents a declarative configuration of the LoadBalancerStatus type for use with apply.

LoadBalancerStatus represents the status of a load-balancer.

func LoadBalancerStatus

func LoadBalancerStatus() *LoadBalancerStatusApplyConfiguration

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

func (*LoadBalancerStatusApplyConfiguration) 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 LocalObjectReferenceApplyConfiguration

type LocalObjectReferenceApplyConfiguration struct {
	// Name of the referent.
	// This field is effectively required, but due to backwards compatibility is
	// allowed to be empty. Instances of this type with an empty value here are
	// almost certainly wrong.
	// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
	// TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896.
	Name *string `json:"name,omitempty"`
}

LocalObjectReferenceApplyConfiguration represents a declarative configuration of the LocalObjectReference type for use with apply.

LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. --- New uses of this type are discouraged because of difficulty describing its usage when embedded in APIs. 1. Invalid usage help. It is impossible to add specific help for individual usage. In most embedded usages, there are particular restrictions like, "must refer only to types A and B" or "UID not honored" or "name must be restricted". Those cannot be well described when embedded. 2. Inconsistent validation. Because the usages are different, the validation rules are different by usage, which makes it hard for users to predict what will happen. 3. We cannot easily change it. Because this type is embedded in many locations, updates to this type will affect numerous schemas. Don't make new APIs embed an underspecified API type they do not control.

Instead of using this type, create a locally provided and used type that is well-focused on your reference. For example, ServiceReferences for admission registration: https://github.com/kubernetes/api/blob/release-1.17/admissionregistration/v1/types.go#L533 .

func LocalObjectReference

func LocalObjectReference() *LocalObjectReferenceApplyConfiguration

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

func (*LocalObjectReferenceApplyConfiguration) 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.

type LocalVolumeSourceApplyConfiguration

type LocalVolumeSourceApplyConfiguration struct {
	// path of the full path to the volume on the node.
	// It can be either a directory or block device (disk, partition, ...).
	Path *string `json:"path,omitempty"`
	// fsType is the filesystem type to mount.
	// It applies only when the Path is a block device.
	// Must be a filesystem type supported by the host operating system.
	// Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a filesystem if unspecified.
	FSType *string `json:"fsType,omitempty"`
}

LocalVolumeSourceApplyConfiguration represents a declarative configuration of the LocalVolumeSource type for use with apply.

Local represents directly-attached storage with node affinity

func LocalVolumeSource

func LocalVolumeSource() *LocalVolumeSourceApplyConfiguration

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

func (*LocalVolumeSourceApplyConfiguration) WithFSType

WithFSType sets the FSType 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 FSType field is set to the value of the last call.

func (*LocalVolumeSourceApplyConfiguration) 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.

type ModifyVolumeStatusApplyConfiguration

type ModifyVolumeStatusApplyConfiguration struct {
	// targetVolumeAttributesClassName is the name of the VolumeAttributesClass the PVC currently being reconciled
	TargetVolumeAttributesClassName *string `json:"targetVolumeAttributesClassName,omitempty"`
	// status is the status of the ControllerModifyVolume operation. It can be in any of following states:
	// - Pending
	// Pending indicates that the PersistentVolumeClaim cannot be modified due to unmet requirements, such as
	// the specified VolumeAttributesClass not existing.
	// - InProgress
	// InProgress indicates that the volume is being modified.
	// - Infeasible
	// Infeasible indicates that the request has been rejected as invalid by the CSI driver. To
	// resolve the error, a valid VolumeAttributesClass needs to be specified.
	// Note: New statuses can be added in the future. Consumers should check for unknown statuses and fail appropriately.
	Status *corev1.PersistentVolumeClaimModifyVolumeStatus `json:"status,omitempty"`
}

ModifyVolumeStatusApplyConfiguration represents a declarative configuration of the ModifyVolumeStatus type for use with apply.

ModifyVolumeStatus represents the status object of ControllerModifyVolume operation

func ModifyVolumeStatus

func ModifyVolumeStatus() *ModifyVolumeStatusApplyConfiguration

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

func (*ModifyVolumeStatusApplyConfiguration) 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 (*ModifyVolumeStatusApplyConfiguration) WithTargetVolumeAttributesClassName

func (b *ModifyVolumeStatusApplyConfiguration) WithTargetVolumeAttributesClassName(value string) *ModifyVolumeStatusApplyConfiguration

WithTargetVolumeAttributesClassName sets the TargetVolumeAttributesClassName 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 TargetVolumeAttributesClassName field is set to the value of the last call.

type NFSVolumeSourceApplyConfiguration

type NFSVolumeSourceApplyConfiguration struct {
	// server is the hostname or IP address of the NFS server.
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
	Server *string `json:"server,omitempty"`
	// path that is exported by the NFS server.
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
	Path *string `json:"path,omitempty"`
	// readOnly here will force the NFS export to be mounted with read-only permissions.
	// Defaults to false.
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
	ReadOnly *bool `json:"readOnly,omitempty"`
}

NFSVolumeSourceApplyConfiguration represents a declarative configuration of the NFSVolumeSource type for use with apply.

Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling.

func NFSVolumeSource

func NFSVolumeSource() *NFSVolumeSourceApplyConfiguration

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

func (*NFSVolumeSourceApplyConfiguration) 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 (*NFSVolumeSourceApplyConfiguration) WithReadOnly

WithReadOnly sets the ReadOnly 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 ReadOnly field is set to the value of the last call.

func (*NFSVolumeSourceApplyConfiguration) WithServer

WithServer sets the Server 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 Server field is set to the value of the last call.

type NamespaceApplyConfiguration

type NamespaceApplyConfiguration struct {
	metav1.TypeMetaApplyConfiguration `json:",inline"`
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	// Spec defines the behavior of the Namespace.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	Spec *NamespaceSpecApplyConfiguration `json:"spec,omitempty"`
	// Status describes the current status of a Namespace.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	Status *NamespaceStatusApplyConfiguration `json:"status,omitempty"`
}

NamespaceApplyConfiguration represents a declarative configuration of the Namespace type for use with apply.

Namespace provides a scope for Names. Use of multiple namespaces is optional.

func ExtractNamespace

func ExtractNamespace(namespace *corev1.Namespace, fieldManager string) (*NamespaceApplyConfiguration, error)

ExtractNamespace extracts the applied configuration owned by fieldManager from namespace. If no managedFields are found in namespace for fieldManager, a NamespaceApplyConfiguration 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. namespace must be a unmodified Namespace API object that was retrieved from the Kubernetes API. ExtractNamespace 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 ExtractNamespaceFrom

func ExtractNamespaceFrom(namespace *corev1.Namespace, fieldManager string, subresource string) (*NamespaceApplyConfiguration, error)

ExtractNamespaceFrom extracts the applied configuration owned by fieldManager from namespace for the specified subresource. Pass an empty string for subresource to extract the main resource. Common subresources include "status", "scale", etc. namespace must be a unmodified Namespace API object that was retrieved from the Kubernetes API. ExtractNamespaceFrom 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 ExtractNamespaceStatus

func ExtractNamespaceStatus(namespace *corev1.Namespace, fieldManager string) (*NamespaceApplyConfiguration, error)

ExtractNamespaceStatus extracts the applied configuration owned by fieldManager from namespace for the status subresource.

func Namespace

func Namespace(name string) *NamespaceApplyConfiguration

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

func (*NamespaceApplyConfiguration) GetAPIVersion

func (b *NamespaceApplyConfiguration) GetAPIVersion() *string

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

func (*NamespaceApplyConfiguration) GetKind

func (b *NamespaceApplyConfiguration) GetKind() *string

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

func (*NamespaceApplyConfiguration) GetName

func (b *NamespaceApplyConfiguration) GetName() *string

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

func (*NamespaceApplyConfiguration) GetNamespace

func (b *NamespaceApplyConfiguration) GetNamespace() *string

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

func (NamespaceApplyConfiguration) IsApplyConfiguration

func (b NamespaceApplyConfiguration) IsApplyConfiguration()

func (*NamespaceApplyConfiguration) 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 (*NamespaceApplyConfiguration) WithAnnotations

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

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 (*NamespaceApplyConfiguration) 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 (*NamespaceApplyConfiguration) WithDeletionGracePeriodSeconds

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

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 (*NamespaceApplyConfiguration) 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 (*NamespaceApplyConfiguration) WithFinalizers

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

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 (*NamespaceApplyConfiguration) 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 (*NamespaceApplyConfiguration) 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 (*NamespaceApplyConfiguration) 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 (*NamespaceApplyConfiguration) 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 (*NamespaceApplyConfiguration) 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 (*NamespaceApplyConfiguration) 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 (*NamespaceApplyConfiguration) 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 (*NamespaceApplyConfiguration) WithResourceVersion

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

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 (*NamespaceApplyConfiguration) 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 (*NamespaceApplyConfiguration) 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 (*NamespaceApplyConfiguration) 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 NamespaceConditionApplyConfiguration

type NamespaceConditionApplyConfiguration struct {
	// Type of namespace controller condition.
	Type *corev1.NamespaceConditionType `json:"type,omitempty"`
	// Status of the condition, one of True, False, Unknown.
	Status *corev1.ConditionStatus `json:"status,omitempty"`
	// Last time the condition transitioned from one status to another.
	LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
	// Unique, one-word, CamelCase reason for the condition's last transition.
	Reason *string `json:"reason,omitempty"`
	// Human-readable message indicating details about last transition.
	Message *string `json:"message,omitempty"`
}

NamespaceConditionApplyConfiguration represents a declarative configuration of the NamespaceCondition type for use with apply.

NamespaceCondition contains details about state of namespace.

func NamespaceCondition

func NamespaceCondition() *NamespaceConditionApplyConfiguration

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

func (*NamespaceConditionApplyConfiguration) 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 (*NamespaceConditionApplyConfiguration) 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 (*NamespaceConditionApplyConfiguration) 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 (*NamespaceConditionApplyConfiguration) 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 (*NamespaceConditionApplyConfiguration) 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 NamespaceSpecApplyConfiguration

type NamespaceSpecApplyConfiguration struct {
	// Finalizers is an opaque list of values that must be empty to permanently remove object from storage.
	// More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/
	Finalizers []corev1.FinalizerName `json:"finalizers,omitempty"`
}

NamespaceSpecApplyConfiguration represents a declarative configuration of the NamespaceSpec type for use with apply.

NamespaceSpec describes the attributes on a Namespace.

func NamespaceSpec

func NamespaceSpec() *NamespaceSpecApplyConfiguration

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

func (*NamespaceSpecApplyConfiguration) 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.

type NamespaceStatusApplyConfiguration

type NamespaceStatusApplyConfiguration struct {
	// Phase is the current lifecycle phase of the namespace.
	// More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/
	Phase *corev1.NamespacePhase `json:"phase,omitempty"`
	// Represents the latest available observations of a namespace's current state.
	Conditions []NamespaceConditionApplyConfiguration `json:"conditions,omitempty"`
}

NamespaceStatusApplyConfiguration represents a declarative configuration of the NamespaceStatus type for use with apply.

NamespaceStatus is information about the current status of a Namespace.

func NamespaceStatus

func NamespaceStatus() *NamespaceStatusApplyConfiguration

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

func (*NamespaceStatusApplyConfiguration) 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 (*NamespaceStatusApplyConfiguration) WithPhase

WithPhase sets the Phase 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 Phase field is set to the value of the last call.

type NodeAddressApplyConfiguration

type NodeAddressApplyConfiguration struct {
	// Node address type, one of Hostname, ExternalIP or InternalIP.
	Type *corev1.NodeAddressType `json:"type,omitempty"`
	// The node address.
	Address *string `json:"address,omitempty"`
}

NodeAddressApplyConfiguration represents a declarative configuration of the NodeAddress type for use with apply.

NodeAddress contains information for the node's address.

func NodeAddress

func NodeAddress() *NodeAddressApplyConfiguration

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

func (*NodeAddressApplyConfiguration) WithAddress

WithAddress sets the Address 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 Address field is set to the value of the last call.

func (*NodeAddressApplyConfiguration) 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 NodeAffinityApplyConfiguration

type NodeAffinityApplyConfiguration struct {
	// If the affinity requirements specified by this field are not met at
	// scheduling time, the pod will not be scheduled onto the node.
	// If the affinity requirements specified by this field cease to be met
	// at some point during pod execution (e.g. due to an update), the system
	// may or may not try to eventually evict the pod from its node.
	RequiredDuringSchedulingIgnoredDuringExecution *NodeSelectorApplyConfiguration `json:"requiredDuringSchedulingIgnoredDuringExecution,omitempty"`
	// The scheduler will prefer to schedule pods to nodes that satisfy
	// the affinity expressions specified by this field, but it may choose
	// a node that violates one or more of the expressions. The node that is
	// most preferred is the one with the greatest sum of weights, i.e.
	// for each node that meets all of the scheduling requirements (resource
	// request, requiredDuringScheduling affinity expressions, etc.),
	// compute a sum by iterating through the elements of this field and adding
	// "weight" to the sum if the node matches the corresponding matchExpressions; the
	// node(s) with the highest sum are the most preferred.
	PreferredDuringSchedulingIgnoredDuringExecution []PreferredSchedulingTermApplyConfiguration `json:"preferredDuringSchedulingIgnoredDuringExecution,omitempty"`
}

NodeAffinityApplyConfiguration represents a declarative configuration of the NodeAffinity type for use with apply.

Node affinity is a group of node affinity scheduling rules.

func NodeAffinity

func NodeAffinity() *NodeAffinityApplyConfiguration

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

func (*NodeAffinityApplyConfiguration) WithPreferredDuringSchedulingIgnoredDuringExecution

func (b *NodeAffinityApplyConfiguration) WithPreferredDuringSchedulingIgnoredDuringExecution(values ...*PreferredSchedulingTermApplyConfiguration) *NodeAffinityApplyConfiguration

WithPreferredDuringSchedulingIgnoredDuringExecution adds the given value to the PreferredDuringSchedulingIgnoredDuringExecution 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 PreferredDuringSchedulingIgnoredDuringExecution field.

func (*NodeAffinityApplyConfiguration) WithRequiredDuringSchedulingIgnoredDuringExecution

func (b *NodeAffinityApplyConfiguration) WithRequiredDuringSchedulingIgnoredDuringExecution(value *NodeSelectorApplyConfiguration) *NodeAffinityApplyConfiguration

WithRequiredDuringSchedulingIgnoredDuringExecution sets the RequiredDuringSchedulingIgnoredDuringExecution 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 RequiredDuringSchedulingIgnoredDuringExecution field is set to the value of the last call.

type NodeApplyConfiguration

type NodeApplyConfiguration struct {
	metav1.TypeMetaApplyConfiguration `json:",inline"`
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	// Spec defines the behavior of a node.
	// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	Spec *NodeSpecApplyConfiguration `json:"spec,omitempty"`
	// Most recently observed status of the node.
	// Populated by the system.
	// Read-only.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	Status *NodeStatusApplyConfiguration `json:"status,omitempty"`
}

NodeApplyConfiguration represents a declarative configuration of the Node type for use with apply.

Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd).

func ExtractNode

func ExtractNode(node *corev1.Node, fieldManager string) (*NodeApplyConfiguration, error)

ExtractNode extracts the applied configuration owned by fieldManager from node. If no managedFields are found in node for fieldManager, a NodeApplyConfiguration 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. node must be a unmodified Node API object that was retrieved from the Kubernetes API. ExtractNode 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 ExtractNodeFrom

func ExtractNodeFrom(node *corev1.Node, fieldManager string, subresource string) (*NodeApplyConfiguration, error)

ExtractNodeFrom extracts the applied configuration owned by fieldManager from node for the specified subresource. Pass an empty string for subresource to extract the main resource. Common subresources include "status", "scale", etc. node must be a unmodified Node API object that was retrieved from the Kubernetes API. ExtractNodeFrom 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 ExtractNodeStatus

func ExtractNodeStatus(node *corev1.Node, fieldManager string) (*NodeApplyConfiguration, error)

ExtractNodeStatus extracts the applied configuration owned by fieldManager from node for the status subresource.

func Node

func Node(name string) *NodeApplyConfiguration

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

func (*NodeApplyConfiguration) GetAPIVersion

func (b *NodeApplyConfiguration) GetAPIVersion() *string

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

func (*NodeApplyConfiguration) GetKind

func (b *NodeApplyConfiguration) GetKind() *string

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

func (*NodeApplyConfiguration) GetName

func (b *NodeApplyConfiguration) GetName() *string

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

func (*NodeApplyConfiguration) GetNamespace

func (b *NodeApplyConfiguration) GetNamespace() *string

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

func (NodeApplyConfiguration) IsApplyConfiguration

func (b NodeApplyConfiguration) IsApplyConfiguration()

func (*NodeApplyConfiguration) WithAPIVersion

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

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 (*NodeApplyConfiguration) WithAnnotations

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

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 (*NodeApplyConfiguration) WithCreationTimestamp

func (b *NodeApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *NodeApplyConfiguration

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 (*NodeApplyConfiguration) WithDeletionGracePeriodSeconds

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

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 (*NodeApplyConfiguration) WithDeletionTimestamp

func (b *NodeApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *NodeApplyConfiguration

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 (*NodeApplyConfiguration) WithFinalizers

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

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 (*NodeApplyConfiguration) WithGenerateName

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

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 (*NodeApplyConfiguration) WithGeneration

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

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 (*NodeApplyConfiguration) 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 (*NodeApplyConfiguration) WithLabels

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

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 (*NodeApplyConfiguration) 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 (*NodeApplyConfiguration) WithNamespace

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

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 (*NodeApplyConfiguration) 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 (*NodeApplyConfiguration) WithResourceVersion

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

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 (*NodeApplyConfiguration) 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 (*NodeApplyConfiguration) 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 (*NodeApplyConfiguration) 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 NodeConditionApplyConfiguration

type NodeConditionApplyConfiguration struct {
	// Type of node condition.
	Type *corev1.NodeConditionType `json:"type,omitempty"`
	// Status of the condition, one of True, False, Unknown.
	Status *corev1.ConditionStatus `json:"status,omitempty"`
	// Last time we got an update on a given condition.
	LastHeartbeatTime *metav1.Time `json:"lastHeartbeatTime,omitempty"`
	// Last time the condition transit from one status to another.
	LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
	// (brief) reason for the condition's last transition.
	Reason *string `json:"reason,omitempty"`
	// Human readable message indicating details about last transition.
	Message *string `json:"message,omitempty"`
}

NodeConditionApplyConfiguration represents a declarative configuration of the NodeCondition type for use with apply.

NodeCondition contains condition information for a node.

func NodeCondition

func NodeCondition() *NodeConditionApplyConfiguration

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

func (*NodeConditionApplyConfiguration) WithLastHeartbeatTime

WithLastHeartbeatTime sets the LastHeartbeatTime 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 LastHeartbeatTime field is set to the value of the last call.

func (*NodeConditionApplyConfiguration) 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 (*NodeConditionApplyConfiguration) 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 (*NodeConditionApplyConfiguration) 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 (*NodeConditionApplyConfiguration) 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 (*NodeConditionApplyConfiguration) 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 NodeConfigSourceApplyConfiguration

type NodeConfigSourceApplyConfiguration struct {
	// ConfigMap is a reference to a Node's ConfigMap
	ConfigMap *ConfigMapNodeConfigSourceApplyConfiguration `json:"configMap,omitempty"`
}

NodeConfigSourceApplyConfiguration represents a declarative configuration of the NodeConfigSource type for use with apply.

NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22

func NodeConfigSource

func NodeConfigSource() *NodeConfigSourceApplyConfiguration

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

func (*NodeConfigSourceApplyConfiguration) WithConfigMap

WithConfigMap sets the ConfigMap 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 ConfigMap field is set to the value of the last call.

type NodeConfigStatusApplyConfiguration

type NodeConfigStatusApplyConfiguration struct {
	// Assigned reports the checkpointed config the node will try to use.
	// When Node.Spec.ConfigSource is updated, the node checkpoints the associated
	// config payload to local disk, along with a record indicating intended
	// config. The node refers to this record to choose its config checkpoint, and
	// reports this record in Assigned. Assigned only updates in the status after
	// the record has been checkpointed to disk. When the Kubelet is restarted,
	// it tries to make the Assigned config the Active config by loading and
	// validating the checkpointed payload identified by Assigned.
	Assigned *NodeConfigSourceApplyConfiguration `json:"assigned,omitempty"`
	// Active reports the checkpointed config the node is actively using.
	// Active will represent either the current version of the Assigned config,
	// or the current LastKnownGood config, depending on whether attempting to use the
	// Assigned config results in an error.
	Active *NodeConfigSourceApplyConfiguration `json:"active,omitempty"`
	// LastKnownGood reports the checkpointed config the node will fall back to
	// when it encounters an error attempting to use the Assigned config.
	// The Assigned config becomes the LastKnownGood config when the node determines
	// that the Assigned config is stable and correct.
	// This is currently implemented as a 10-minute soak period starting when the local
	// record of Assigned config is updated. If the Assigned config is Active at the end
	// of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is
	// reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil,
	// because the local default config is always assumed good.
	// You should not make assumptions about the node's method of determining config stability
	// and correctness, as this may change or become configurable in the future.
	LastKnownGood *NodeConfigSourceApplyConfiguration `json:"lastKnownGood,omitempty"`
	// Error describes any problems reconciling the Spec.ConfigSource to the Active config.
	// Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned
	// record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting
	// to load or validate the Assigned config, etc.
	// Errors may occur at different points while syncing config. Earlier errors (e.g. download or
	// checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across
	// Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in
	// a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error
	// by fixing the config assigned in Spec.ConfigSource.
	// You can find additional information for debugging by searching the error message in the Kubelet log.
	// Error is a human-readable description of the error state; machines can check whether or not Error
	// is empty, but should not rely on the stability of the Error text across Kubelet versions.
	Error *string `json:"error,omitempty"`
}

NodeConfigStatusApplyConfiguration represents a declarative configuration of the NodeConfigStatus type for use with apply.

NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource.

func NodeConfigStatus

func NodeConfigStatus() *NodeConfigStatusApplyConfiguration

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

func (*NodeConfigStatusApplyConfiguration) WithActive

WithActive sets the Active 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 Active field is set to the value of the last call.

func (*NodeConfigStatusApplyConfiguration) WithAssigned

WithAssigned sets the Assigned 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 Assigned field is set to the value of the last call.

func (*NodeConfigStatusApplyConfiguration) 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 (*NodeConfigStatusApplyConfiguration) WithLastKnownGood

WithLastKnownGood sets the LastKnownGood 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 LastKnownGood field is set to the value of the last call.

type NodeDaemonEndpointsApplyConfiguration

type NodeDaemonEndpointsApplyConfiguration struct {
	// Endpoint on which Kubelet is listening.
	KubeletEndpoint *DaemonEndpointApplyConfiguration `json:"kubeletEndpoint,omitempty"`
}

NodeDaemonEndpointsApplyConfiguration represents a declarative configuration of the NodeDaemonEndpoints type for use with apply.

NodeDaemonEndpoints lists ports opened by daemons running on the Node.

func NodeDaemonEndpoints

func NodeDaemonEndpoints() *NodeDaemonEndpointsApplyConfiguration

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

func (*NodeDaemonEndpointsApplyConfiguration) WithKubeletEndpoint

WithKubeletEndpoint sets the KubeletEndpoint 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 KubeletEndpoint field is set to the value of the last call.

type NodeFeaturesApplyConfiguration

type NodeFeaturesApplyConfiguration struct {
	// SupplementalGroupsPolicy is set to true if the runtime supports SupplementalGroupsPolicy and ContainerUser.
	SupplementalGroupsPolicy *bool `json:"supplementalGroupsPolicy,omitempty"`
}

NodeFeaturesApplyConfiguration represents a declarative configuration of the NodeFeatures type for use with apply.

NodeFeatures describes the set of features implemented by the CRI implementation. The features contained in the NodeFeatures should depend only on the cri implementation independent of runtime handlers.

func NodeFeatures

func NodeFeatures() *NodeFeaturesApplyConfiguration

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

func (*NodeFeaturesApplyConfiguration) WithSupplementalGroupsPolicy

func (b *NodeFeaturesApplyConfiguration) WithSupplementalGroupsPolicy(value bool) *NodeFeaturesApplyConfiguration

WithSupplementalGroupsPolicy sets the SupplementalGroupsPolicy 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 SupplementalGroupsPolicy field is set to the value of the last call.

type NodeRuntimeHandlerApplyConfiguration

type NodeRuntimeHandlerApplyConfiguration struct {
	// Runtime handler name.
	// Empty for the default runtime handler.
	Name *string `json:"name,omitempty"`
	// Supported features.
	Features *NodeRuntimeHandlerFeaturesApplyConfiguration `json:"features,omitempty"`
}

NodeRuntimeHandlerApplyConfiguration represents a declarative configuration of the NodeRuntimeHandler type for use with apply.

NodeRuntimeHandler is a set of runtime handler information.

func NodeRuntimeHandler

func NodeRuntimeHandler() *NodeRuntimeHandlerApplyConfiguration

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

func (*NodeRuntimeHandlerApplyConfiguration) WithFeatures

WithFeatures sets the Features 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 Features field is set to the value of the last call.

func (*NodeRuntimeHandlerApplyConfiguration) 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.

type NodeRuntimeHandlerFeaturesApplyConfiguration

type NodeRuntimeHandlerFeaturesApplyConfiguration struct {
	// RecursiveReadOnlyMounts is set to true if the runtime handler supports RecursiveReadOnlyMounts.
	RecursiveReadOnlyMounts *bool `json:"recursiveReadOnlyMounts,omitempty"`
	// UserNamespaces is set to true if the runtime handler supports UserNamespaces, including for volumes.
	UserNamespaces *bool `json:"userNamespaces,omitempty"`
}

NodeRuntimeHandlerFeaturesApplyConfiguration represents a declarative configuration of the NodeRuntimeHandlerFeatures type for use with apply.

NodeRuntimeHandlerFeatures is a set of features implemented by the runtime handler.

func NodeRuntimeHandlerFeatures

func NodeRuntimeHandlerFeatures() *NodeRuntimeHandlerFeaturesApplyConfiguration

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

func (*NodeRuntimeHandlerFeaturesApplyConfiguration) WithRecursiveReadOnlyMounts

WithRecursiveReadOnlyMounts sets the RecursiveReadOnlyMounts 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 RecursiveReadOnlyMounts field is set to the value of the last call.

func (*NodeRuntimeHandlerFeaturesApplyConfiguration) WithUserNamespaces

WithUserNamespaces sets the UserNamespaces 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 UserNamespaces field is set to the value of the last call.

type NodeSelectorApplyConfiguration

type NodeSelectorApplyConfiguration struct {
	// Required. A list of node selector terms. The terms are ORed.
	NodeSelectorTerms []NodeSelectorTermApplyConfiguration `json:"nodeSelectorTerms,omitempty"`
}

NodeSelectorApplyConfiguration represents a declarative configuration of the NodeSelector type for use with apply.

A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms.

func NodeSelector

func NodeSelector() *NodeSelectorApplyConfiguration

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

func (*NodeSelectorApplyConfiguration) WithNodeSelectorTerms

WithNodeSelectorTerms adds the given value to the NodeSelectorTerms 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 NodeSelectorTerms field.

type NodeSelectorRequirementApplyConfiguration

type NodeSelectorRequirementApplyConfiguration struct {
	// The label key that the selector applies to.
	Key *string `json:"key,omitempty"`
	// Represents a key's relationship to a set of values.
	// Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
	Operator *corev1.NodeSelectorOperator `json:"operator,omitempty"`
	// An array of string values. If the operator is In or NotIn,
	// the values array must be non-empty. If the operator is Exists or DoesNotExist,
	// the values array must be empty. If the operator is Gt or Lt, the values
	// array must have a single element, which will be interpreted as an integer.
	// This array is replaced during a strategic merge patch.
	Values []string `json:"values,omitempty"`
}

NodeSelectorRequirementApplyConfiguration represents a declarative configuration of the NodeSelectorRequirement type for use with apply.

A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.

func NodeSelectorRequirement

func NodeSelectorRequirement() *NodeSelectorRequirementApplyConfiguration

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

func (*NodeSelectorRequirementApplyConfiguration) WithKey

WithKey sets the Key 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 Key field is set to the value of the last call.

func (*NodeSelectorRequirementApplyConfiguration) WithOperator

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

func (*NodeSelectorRequirementApplyConfiguration) WithValues

WithValues adds the given value to the Values 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 Values field.

type NodeSelectorTermApplyConfiguration

type NodeSelectorTermApplyConfiguration struct {
	// A list of node selector requirements by node's labels.
	MatchExpressions []NodeSelectorRequirementApplyConfiguration `json:"matchExpressions,omitempty"`
	// A list of node selector requirements by node's fields.
	MatchFields []NodeSelectorRequirementApplyConfiguration `json:"matchFields,omitempty"`
}

NodeSelectorTermApplyConfiguration represents a declarative configuration of the NodeSelectorTerm type for use with apply.

A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.

func NodeSelectorTerm

func NodeSelectorTerm() *NodeSelectorTermApplyConfiguration

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

func (*NodeSelectorTermApplyConfiguration) WithMatchExpressions

WithMatchExpressions adds the given value to the MatchExpressions 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 MatchExpressions field.

func (*NodeSelectorTermApplyConfiguration) WithMatchFields

WithMatchFields adds the given value to the MatchFields 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 MatchFields field.

type NodeSpecApplyConfiguration

type NodeSpecApplyConfiguration struct {
	// PodCIDR represents the pod IP range assigned to the node.
	PodCIDR *string `json:"podCIDR,omitempty"`
	// podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this
	// field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for
	// each of IPv4 and IPv6.
	PodCIDRs []string `json:"podCIDRs,omitempty"`
	// ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID>
	ProviderID *string `json:"providerID,omitempty"`
	// Unschedulable controls node schedulability of new pods. By default, node is schedulable.
	// More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration
	Unschedulable *bool `json:"unschedulable,omitempty"`
	// If specified, the node's taints.
	Taints []TaintApplyConfiguration `json:"taints,omitempty"`
	// Deprecated: Previously used to specify the source of the node's configuration for the DynamicKubeletConfig feature. This feature is removed.
	ConfigSource *NodeConfigSourceApplyConfiguration `json:"configSource,omitempty"`
	// Deprecated. Not all kubelets will set this field. Remove field after 1.13.
	// see: https://issues.k8s.io/61966
	DoNotUseExternalID *string `json:"externalID,omitempty"`
}

NodeSpecApplyConfiguration represents a declarative configuration of the NodeSpec type for use with apply.

NodeSpec describes the attributes that a node is created with.

func NodeSpec

func NodeSpec() *NodeSpecApplyConfiguration

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

func (*NodeSpecApplyConfiguration) WithConfigSource

WithConfigSource sets the ConfigSource 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 ConfigSource field is set to the value of the last call.

func (*NodeSpecApplyConfiguration) WithDoNotUseExternalID

func (b *NodeSpecApplyConfiguration) WithDoNotUseExternalID(value string) *NodeSpecApplyConfiguration

WithDoNotUseExternalID sets the DoNotUseExternalID 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 DoNotUseExternalID field is set to the value of the last call.

func (*NodeSpecApplyConfiguration) WithPodCIDR

WithPodCIDR sets the PodCIDR 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 PodCIDR field is set to the value of the last call.

func (*NodeSpecApplyConfiguration) WithPodCIDRs

func (b *NodeSpecApplyConfiguration) WithPodCIDRs(values ...string) *NodeSpecApplyConfiguration

WithPodCIDRs adds the given value to the PodCIDRs 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 PodCIDRs field.

func (*NodeSpecApplyConfiguration) WithProviderID

WithProviderID sets the ProviderID 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 ProviderID field is set to the value of the last call.

func (*NodeSpecApplyConfiguration) WithTaints

WithTaints adds the given value to the Taints 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 Taints field.

func (*NodeSpecApplyConfiguration) WithUnschedulable

func (b *NodeSpecApplyConfiguration) WithUnschedulable(value bool) *NodeSpecApplyConfiguration

WithUnschedulable sets the Unschedulable 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 Unschedulable field is set to the value of the last call.

type NodeStatusApplyConfiguration

type NodeStatusApplyConfiguration struct {
	// Capacity represents the total resources of a node.
	// More info: https://kubernetes.io/docs/reference/node/node-status/#capacity
	Capacity *corev1.ResourceList `json:"capacity,omitempty"`
	// Allocatable represents the resources of a node that are available for scheduling.
	// Defaults to Capacity.
	Allocatable *corev1.ResourceList `json:"allocatable,omitempty"`
	// NodePhase is the recently observed lifecycle phase of the node.
	// More info: https://kubernetes.io/docs/concepts/nodes/node/#phase
	// The field is never populated, and now is deprecated.
	Phase *corev1.NodePhase `json:"phase,omitempty"`
	// Conditions is an array of current observed node conditions.
	// More info: https://kubernetes.io/docs/reference/node/node-status/#condition
	Conditions []NodeConditionApplyConfiguration `json:"conditions,omitempty"`
	// List of addresses reachable to the node.
	// Queried from cloud provider, if available.
	// More info: https://kubernetes.io/docs/reference/node/node-status/#addresses
	// Note: This field is declared as mergeable, but the merge key is not sufficiently
	// unique, which can cause data corruption when it is merged. Callers should instead
	// use a full-replacement patch. See https://pr.k8s.io/79391 for an example.
	// Consumers should assume that addresses can change during the
	// lifetime of a Node. However, there are some exceptions where this may not
	// be possible, such as Pods that inherit a Node's address in its own status or
	// consumers of the downward API (status.hostIP).
	Addresses []NodeAddressApplyConfiguration `json:"addresses,omitempty"`
	// Endpoints of daemons running on the Node.
	DaemonEndpoints *NodeDaemonEndpointsApplyConfiguration `json:"daemonEndpoints,omitempty"`
	// Set of ids/uuids to uniquely identify the node.
	// More info: https://kubernetes.io/docs/reference/node/node-status/#info
	NodeInfo *NodeSystemInfoApplyConfiguration `json:"nodeInfo,omitempty"`
	// List of container images on this node
	Images []ContainerImageApplyConfiguration `json:"images,omitempty"`
	// List of attachable volumes in use (mounted) by the node.
	VolumesInUse []corev1.UniqueVolumeName `json:"volumesInUse,omitempty"`
	// List of volumes that are attached to the node.
	VolumesAttached []AttachedVolumeApplyConfiguration `json:"volumesAttached,omitempty"`
	// Status of the config assigned to the node via the dynamic Kubelet config feature.
	Config *NodeConfigStatusApplyConfiguration `json:"config,omitempty"`
	// The available runtime handlers.
	RuntimeHandlers []NodeRuntimeHandlerApplyConfiguration `json:"runtimeHandlers,omitempty"`
	// Features describes the set of features implemented by the CRI implementation.
	Features *NodeFeaturesApplyConfiguration `json:"features,omitempty"`
	// DeclaredFeatures represents the features related to feature gates that are declared by the node.
	DeclaredFeatures []string `json:"declaredFeatures,omitempty"`
}

NodeStatusApplyConfiguration represents a declarative configuration of the NodeStatus type for use with apply.

NodeStatus is information about the current status of a node.

func NodeStatus

func NodeStatus() *NodeStatusApplyConfiguration

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

func (*NodeStatusApplyConfiguration) WithAddresses

WithAddresses adds the given value to the Addresses 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 Addresses field.

func (*NodeStatusApplyConfiguration) WithAllocatable

WithAllocatable sets the Allocatable 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 Allocatable field is set to the value of the last call.

func (*NodeStatusApplyConfiguration) WithCapacity

WithCapacity sets the Capacity 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 Capacity field is set to the value of the last call.

func (*NodeStatusApplyConfiguration) 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 (*NodeStatusApplyConfiguration) WithConfig

WithConfig sets the Config 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 Config field is set to the value of the last call.

func (*NodeStatusApplyConfiguration) WithDaemonEndpoints

WithDaemonEndpoints sets the DaemonEndpoints 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 DaemonEndpoints field is set to the value of the last call.

func (*NodeStatusApplyConfiguration) WithDeclaredFeatures

func (b *NodeStatusApplyConfiguration) WithDeclaredFeatures(values ...string) *NodeStatusApplyConfiguration

WithDeclaredFeatures adds the given value to the DeclaredFeatures 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 DeclaredFeatures field.

func (*NodeStatusApplyConfiguration) WithFeatures

WithFeatures sets the Features 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 Features field is set to the value of the last call.

func (*NodeStatusApplyConfiguration) WithImages

WithImages adds the given value to the Images 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 Images field.

func (*NodeStatusApplyConfiguration) WithNodeInfo

WithNodeInfo sets the NodeInfo 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 NodeInfo field is set to the value of the last call.

func (*NodeStatusApplyConfiguration) WithPhase

WithPhase sets the Phase 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 Phase field is set to the value of the last call.

func (*NodeStatusApplyConfiguration) WithRuntimeHandlers

WithRuntimeHandlers adds the given value to the RuntimeHandlers 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 RuntimeHandlers field.

func (*NodeStatusApplyConfiguration) WithVolumesAttached

WithVolumesAttached adds the given value to the VolumesAttached 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 VolumesAttached field.

func (*NodeStatusApplyConfiguration) WithVolumesInUse

WithVolumesInUse adds the given value to the VolumesInUse 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 VolumesInUse field.

type NodeSwapStatusApplyConfiguration

type NodeSwapStatusApplyConfiguration struct {
	// Total amount of swap memory in bytes.
	Capacity *int64 `json:"capacity,omitempty"`
}

NodeSwapStatusApplyConfiguration represents a declarative configuration of the NodeSwapStatus type for use with apply.

NodeSwapStatus represents swap memory information.

func NodeSwapStatus

func NodeSwapStatus() *NodeSwapStatusApplyConfiguration

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

func (*NodeSwapStatusApplyConfiguration) WithCapacity

WithCapacity sets the Capacity 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 Capacity field is set to the value of the last call.

type NodeSystemInfoApplyConfiguration

type NodeSystemInfoApplyConfiguration struct {
	// MachineID reported by the node. For unique machine identification
	// in the cluster this field is preferred. Learn more from man(5)
	// machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html
	MachineID *string `json:"machineID,omitempty"`
	// SystemUUID reported by the node. For unique machine identification
	// MachineID is preferred. This field is specific to Red Hat hosts
	// https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid
	SystemUUID *string `json:"systemUUID,omitempty"`
	// Boot ID reported by the node.
	BootID *string `json:"bootID,omitempty"`
	// Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).
	KernelVersion *string `json:"kernelVersion,omitempty"`
	// OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).
	OSImage *string `json:"osImage,omitempty"`
	// ContainerRuntime Version reported by the node through runtime remote API (e.g. containerd://1.4.2).
	ContainerRuntimeVersion *string `json:"containerRuntimeVersion,omitempty"`
	// Kubelet Version reported by the node.
	KubeletVersion *string `json:"kubeletVersion,omitempty"`
	// Deprecated: KubeProxy Version reported by the node.
	KubeProxyVersion *string `json:"kubeProxyVersion,omitempty"`
	// The Operating System reported by the node
	OperatingSystem *string `json:"operatingSystem,omitempty"`
	// The Architecture reported by the node
	Architecture *string `json:"architecture,omitempty"`
	// Swap Info reported by the node.
	Swap *NodeSwapStatusApplyConfiguration `json:"swap,omitempty"`
}

NodeSystemInfoApplyConfiguration represents a declarative configuration of the NodeSystemInfo type for use with apply.

NodeSystemInfo is a set of ids/uuids to uniquely identify the node.

func NodeSystemInfo

func NodeSystemInfo() *NodeSystemInfoApplyConfiguration

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

func (*NodeSystemInfoApplyConfiguration) WithArchitecture

WithArchitecture sets the Architecture 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 Architecture field is set to the value of the last call.

func (*NodeSystemInfoApplyConfiguration) WithBootID

WithBootID sets the BootID 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 BootID field is set to the value of the last call.

func (*NodeSystemInfoApplyConfiguration) WithContainerRuntimeVersion

func (b *NodeSystemInfoApplyConfiguration) WithContainerRuntimeVersion(value string) *NodeSystemInfoApplyConfiguration

WithContainerRuntimeVersion sets the ContainerRuntimeVersion 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 ContainerRuntimeVersion field is set to the value of the last call.

func (*NodeSystemInfoApplyConfiguration) WithKernelVersion

WithKernelVersion sets the KernelVersion 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 KernelVersion field is set to the value of the last call.

func (*NodeSystemInfoApplyConfiguration) WithKubeProxyVersion

WithKubeProxyVersion sets the KubeProxyVersion 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 KubeProxyVersion field is set to the value of the last call.

func (*NodeSystemInfoApplyConfiguration) WithKubeletVersion

WithKubeletVersion sets the KubeletVersion 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 KubeletVersion field is set to the value of the last call.

func (*NodeSystemInfoApplyConfiguration) WithMachineID

WithMachineID sets the MachineID 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 MachineID field is set to the value of the last call.

func (*NodeSystemInfoApplyConfiguration) WithOSImage

WithOSImage sets the OSImage 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 OSImage field is set to the value of the last call.

func (*NodeSystemInfoApplyConfiguration) WithOperatingSystem

WithOperatingSystem sets the OperatingSystem 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 OperatingSystem field is set to the value of the last call.

func (*NodeSystemInfoApplyConfiguration) WithSwap

WithSwap sets the Swap 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 Swap field is set to the value of the last call.

func (*NodeSystemInfoApplyConfiguration) WithSystemUUID

WithSystemUUID sets the SystemUUID 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 SystemUUID field is set to the value of the last call.

type ObjectFieldSelectorApplyConfiguration

type ObjectFieldSelectorApplyConfiguration struct {
	// Version of the schema the FieldPath is written in terms of, defaults to "v1".
	APIVersion *string `json:"apiVersion,omitempty"`
	// Path of the field to select in the specified API version.
	FieldPath *string `json:"fieldPath,omitempty"`
}

ObjectFieldSelectorApplyConfiguration represents a declarative configuration of the ObjectFieldSelector type for use with apply.

ObjectFieldSelector selects an APIVersioned field of an object.

func ObjectFieldSelector

func ObjectFieldSelector() *ObjectFieldSelectorApplyConfiguration

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

func (*ObjectFieldSelectorApplyConfiguration) 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 (*ObjectFieldSelectorApplyConfiguration) WithFieldPath

WithFieldPath sets the FieldPath 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 FieldPath field is set to the value of the last call.

type ObjectReferenceApplyConfiguration

type ObjectReferenceApplyConfiguration struct {
	// Kind of the referent.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	Kind *string `json:"kind,omitempty"`
	// Namespace of the referent.
	// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
	Namespace *string `json:"namespace,omitempty"`
	// Name of the referent.
	// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
	Name *string `json:"name,omitempty"`
	// UID of the referent.
	// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
	UID *types.UID `json:"uid,omitempty"`
	// API version of the referent.
	APIVersion *string `json:"apiVersion,omitempty"`
	// Specific resourceVersion to which this reference is made, if any.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
	ResourceVersion *string `json:"resourceVersion,omitempty"`
	// If referring to a piece of an object instead of an entire object, this string
	// should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
	// For example, if the object reference is to a container within a pod, this would take on a value like:
	// "spec.containers{name}" (where "name" refers to the name of the container that triggered
	// the event) or if no container name is specified "spec.containers[2]" (container with
	// index 2 in this pod). This syntax is chosen only to have some well-defined way of
	// referencing a part of an object.
	// TODO: this design is not final and this field is subject to change in the future.
	FieldPath *string `json:"fieldPath,omitempty"`
}

ObjectReferenceApplyConfiguration represents a declarative configuration of the ObjectReference type for use with apply.

ObjectReference contains enough information to let you inspect or modify the referred object. --- New uses of this type are discouraged because of difficulty describing its usage when embedded in APIs. 1. Ignored fields. It includes many fields which are not generally honored. For instance, ResourceVersion and FieldPath are both very rarely valid in actual usage. 2. Invalid usage help. It is impossible to add specific help for individual usage. In most embedded usages, there are particular restrictions like, "must refer only to types A and B" or "UID not honored" or "name must be restricted". Those cannot be well described when embedded. 3. Inconsistent validation. Because the usages are different, the validation rules are different by usage, which makes it hard for users to predict what will happen. 4. The fields are both imprecise and overly precise. Kind is not a precise mapping to a URL. This can produce ambiguity during interpretation and require a REST mapping. In most cases, the dependency is on the group,resource tuple and the version of the actual struct is irrelevant. 5. We cannot easily change it. Because this type is embedded in many locations, updates to this type will affect numerous schemas. Don't make new APIs embed an underspecified API type they do not control.

Instead of using this type, create a locally provided and used type that is well-focused on your reference. For example, ServiceReferences for admission registration: https://github.com/kubernetes/api/blob/release-1.17/admissionregistration/v1/types.go#L533 .

func ObjectReference

func ObjectReference() *ObjectReferenceApplyConfiguration

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

func (*ObjectReferenceApplyConfiguration) 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 (*ObjectReferenceApplyConfiguration) WithFieldPath

WithFieldPath sets the FieldPath 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 FieldPath field is set to the value of the last call.

func (*ObjectReferenceApplyConfiguration) 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 (*ObjectReferenceApplyConfiguration) 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 (*ObjectReferenceApplyConfiguration) 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 (*ObjectReferenceApplyConfiguration) 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 (*ObjectReferenceApplyConfiguration) 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 PersistentVolumeApplyConfiguration

type PersistentVolumeApplyConfiguration struct {
	metav1.TypeMetaApplyConfiguration `json:",inline"`
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	// spec defines a specification of a persistent volume owned by the cluster.
	// Provisioned by an administrator.
	// More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
	Spec *PersistentVolumeSpecApplyConfiguration `json:"spec,omitempty"`
	// status represents the current information/status for the persistent volume.
	// Populated by the system.
	// Read-only.
	// More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes
	Status *PersistentVolumeStatusApplyConfiguration `json:"status,omitempty"`
}

PersistentVolumeApplyConfiguration represents a declarative configuration of the PersistentVolume type for use with apply.

PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes

func ExtractPersistentVolume

func ExtractPersistentVolume(persistentVolume *corev1.PersistentVolume, fieldManager string) (*PersistentVolumeApplyConfiguration, error)

ExtractPersistentVolume extracts the applied configuration owned by fieldManager from persistentVolume. If no managedFields are found in persistentVolume for fieldManager, a PersistentVolumeApplyConfiguration 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. persistentVolume must be a unmodified PersistentVolume API object that was retrieved from the Kubernetes API. ExtractPersistentVolume 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 ExtractPersistentVolumeFrom

func ExtractPersistentVolumeFrom(persistentVolume *corev1.PersistentVolume, fieldManager string, subresource string) (*PersistentVolumeApplyConfiguration, error)

ExtractPersistentVolumeFrom extracts the applied configuration owned by fieldManager from persistentVolume for the specified subresource. Pass an empty string for subresource to extract the main resource. Common subresources include "status", "scale", etc. persistentVolume must be a unmodified PersistentVolume API object that was retrieved from the Kubernetes API. ExtractPersistentVolumeFrom 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 ExtractPersistentVolumeStatus

func ExtractPersistentVolumeStatus(persistentVolume *corev1.PersistentVolume, fieldManager string) (*PersistentVolumeApplyConfiguration, error)

ExtractPersistentVolumeStatus extracts the applied configuration owned by fieldManager from persistentVolume for the status subresource.

func PersistentVolume

func PersistentVolume(name string) *PersistentVolumeApplyConfiguration

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

func (*PersistentVolumeApplyConfiguration) GetAPIVersion

func (b *PersistentVolumeApplyConfiguration) GetAPIVersion() *string

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

func (*PersistentVolumeApplyConfiguration) GetKind

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

func (*PersistentVolumeApplyConfiguration) GetName

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

func (*PersistentVolumeApplyConfiguration) GetNamespace

func (b *PersistentVolumeApplyConfiguration) GetNamespace() *string

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

func (PersistentVolumeApplyConfiguration) IsApplyConfiguration

func (b PersistentVolumeApplyConfiguration) IsApplyConfiguration()

func (*PersistentVolumeApplyConfiguration) 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 (*PersistentVolumeApplyConfiguration) 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 (*PersistentVolumeApplyConfiguration) 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 (*PersistentVolumeApplyConfiguration) WithDeletionGracePeriodSeconds

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

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 (*PersistentVolumeApplyConfiguration) 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 (*PersistentVolumeApplyConfiguration) 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 (*PersistentVolumeApplyConfiguration) 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 (*PersistentVolumeApplyConfiguration) 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 (*PersistentVolumeApplyConfiguration) 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 (*PersistentVolumeApplyConfiguration) 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 (*PersistentVolumeApplyConfiguration) 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 (*PersistentVolumeApplyConfiguration) 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 (*PersistentVolumeApplyConfiguration) 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 (*PersistentVolumeApplyConfiguration) 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 (*PersistentVolumeApplyConfiguration) 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 (*PersistentVolumeApplyConfiguration) 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 (*PersistentVolumeApplyConfiguration) 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 PersistentVolumeClaimApplyConfiguration

type PersistentVolumeClaimApplyConfiguration struct {
	metav1.TypeMetaApplyConfiguration `json:",inline"`
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	// spec defines the desired characteristics of a volume requested by a pod author.
	// More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
	Spec *PersistentVolumeClaimSpecApplyConfiguration `json:"spec,omitempty"`
	// status represents the current information/status of a persistent volume claim.
	// Read-only.
	// More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
	Status *PersistentVolumeClaimStatusApplyConfiguration `json:"status,omitempty"`
}

PersistentVolumeClaimApplyConfiguration represents a declarative configuration of the PersistentVolumeClaim type for use with apply.

PersistentVolumeClaim is a user's request for and claim to a persistent volume

func ExtractPersistentVolumeClaim

func ExtractPersistentVolumeClaim(persistentVolumeClaim *corev1.PersistentVolumeClaim, fieldManager string) (*PersistentVolumeClaimApplyConfiguration, error)

ExtractPersistentVolumeClaim extracts the applied configuration owned by fieldManager from persistentVolumeClaim. If no managedFields are found in persistentVolumeClaim for fieldManager, a PersistentVolumeClaimApplyConfiguration 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. persistentVolumeClaim must be a unmodified PersistentVolumeClaim API object that was retrieved from the Kubernetes API. ExtractPersistentVolumeClaim 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 ExtractPersistentVolumeClaimFrom

func ExtractPersistentVolumeClaimFrom(persistentVolumeClaim *corev1.PersistentVolumeClaim, fieldManager string, subresource string) (*PersistentVolumeClaimApplyConfiguration, error)

ExtractPersistentVolumeClaimFrom extracts the applied configuration owned by fieldManager from persistentVolumeClaim for the specified subresource. Pass an empty string for subresource to extract the main resource. Common subresources include "status", "scale", etc. persistentVolumeClaim must be a unmodified PersistentVolumeClaim API object that was retrieved from the Kubernetes API. ExtractPersistentVolumeClaimFrom 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 ExtractPersistentVolumeClaimStatus

func ExtractPersistentVolumeClaimStatus(persistentVolumeClaim *corev1.PersistentVolumeClaim, fieldManager string) (*PersistentVolumeClaimApplyConfiguration, error)

ExtractPersistentVolumeClaimStatus extracts the applied configuration owned by fieldManager from persistentVolumeClaim for the status subresource.

func PersistentVolumeClaim

func PersistentVolumeClaim(name, namespace string) *PersistentVolumeClaimApplyConfiguration

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

func (*PersistentVolumeClaimApplyConfiguration) GetAPIVersion

func (b *PersistentVolumeClaimApplyConfiguration) GetAPIVersion() *string

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

func (*PersistentVolumeClaimApplyConfiguration) GetKind

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

func (*PersistentVolumeClaimApplyConfiguration) GetName

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

func (*PersistentVolumeClaimApplyConfiguration) GetNamespace

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

func (PersistentVolumeClaimApplyConfiguration) IsApplyConfiguration

func (b PersistentVolumeClaimApplyConfiguration) IsApplyConfiguration()

func (*PersistentVolumeClaimApplyConfiguration) 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 (*PersistentVolumeClaimApplyConfiguration) 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 (*PersistentVolumeClaimApplyConfiguration) 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 (*PersistentVolumeClaimApplyConfiguration) WithDeletionGracePeriodSeconds

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 (*PersistentVolumeClaimApplyConfiguration) 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 (*PersistentVolumeClaimApplyConfiguration) 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 (*PersistentVolumeClaimApplyConfiguration) 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 (*PersistentVolumeClaimApplyConfiguration) 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 (*PersistentVolumeClaimApplyConfiguration) 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 (*PersistentVolumeClaimApplyConfiguration) 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 (*PersistentVolumeClaimApplyConfiguration) 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 (*PersistentVolumeClaimApplyConfiguration) 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 (*PersistentVolumeClaimApplyConfiguration) 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 (*PersistentVolumeClaimApplyConfiguration) 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 (*PersistentVolumeClaimApplyConfiguration) 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 (*PersistentVolumeClaimApplyConfiguration) 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 (*PersistentVolumeClaimApplyConfiguration) 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 PersistentVolumeClaimConditionApplyConfiguration

type PersistentVolumeClaimConditionApplyConfiguration struct {
	// Type is the type of the condition.
	// More info: https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-claim-v1/#:~:text=set%20to%20%27ResizeStarted%27.-,PersistentVolumeClaimCondition,-contains%20details%20about
	Type *corev1.PersistentVolumeClaimConditionType `json:"type,omitempty"`
	// Status is the status of the condition.
	// Can be True, False, Unknown.
	// More info: https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/persistent-volume-claim-v1/#:~:text=state%20of%20pvc-,conditions.status,-(string)%2C%20required
	Status *corev1.ConditionStatus `json:"status,omitempty"`
	// lastProbeTime is the time we probed the condition.
	LastProbeTime *metav1.Time `json:"lastProbeTime,omitempty"`
	// lastTransitionTime is the time the condition transitioned from one status to another.
	LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
	// reason is a unique, this should be a short, machine understandable string that gives the reason
	// for condition's last transition. If it reports "Resizing" that means the underlying
	// persistent volume is being resized.
	Reason *string `json:"reason,omitempty"`
	// message is the human-readable message indicating details about last transition.
	Message *string `json:"message,omitempty"`
}

PersistentVolumeClaimConditionApplyConfiguration represents a declarative configuration of the PersistentVolumeClaimCondition type for use with apply.

PersistentVolumeClaimCondition contains details about state of pvc

func PersistentVolumeClaimCondition

func PersistentVolumeClaimCondition() *PersistentVolumeClaimConditionApplyConfiguration

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

func (*PersistentVolumeClaimConditionApplyConfiguration) WithLastProbeTime

WithLastProbeTime sets the LastProbeTime 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 LastProbeTime field is set to the value of the last call.

func (*PersistentVolumeClaimConditionApplyConfiguration) 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 (*PersistentVolumeClaimConditionApplyConfiguration) 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 (*PersistentVolumeClaimConditionApplyConfiguration) 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 (*PersistentVolumeClaimConditionApplyConfiguration) 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 (*PersistentVolumeClaimConditionApplyConfiguration) 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 PersistentVolumeClaimSpecApplyConfiguration

type PersistentVolumeClaimSpecApplyConfiguration struct {
	// accessModes contains the desired access modes the volume should have.
	// More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
	AccessModes []corev1.PersistentVolumeAccessMode `json:"accessModes,omitempty"`
	// selector is a label query over volumes to consider for binding.
	Selector *metav1.LabelSelectorApplyConfiguration `json:"selector,omitempty"`
	// resources represents the minimum resources the volume should have.
	// Users are allowed to specify resource requirements
	// that are lower than previous value but must still be higher than capacity recorded in the
	// status field of the claim.
	// More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
	Resources *VolumeResourceRequirementsApplyConfiguration `json:"resources,omitempty"`
	// volumeName is the binding reference to the PersistentVolume backing this claim.
	VolumeName *string `json:"volumeName,omitempty"`
	// storageClassName is the name of the StorageClass required by the claim.
	// More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1
	StorageClassName *string `json:"storageClassName,omitempty"`
	// volumeMode defines what type of volume is required by the claim.
	// Value of Filesystem is implied when not included in claim spec.
	VolumeMode *corev1.PersistentVolumeMode `json:"volumeMode,omitempty"`
	// dataSource field can be used to specify either:
	// * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot)
	// * An existing PVC (PersistentVolumeClaim)
	// If the provisioner or an external controller can support the specified data source,
	// it will create a new volume based on the contents of the specified data source.
	// When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef,
	// and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified.
	// If the namespace is specified, then dataSourceRef will not be copied to dataSource.
	DataSource *TypedLocalObjectReferenceApplyConfiguration `json:"dataSource,omitempty"`
	// dataSourceRef specifies the object from which to populate the volume with data, if a non-empty
	// volume is desired. This may be any object from a non-empty API group (non
	// core object) or a PersistentVolumeClaim object.
	// When this field is specified, volume binding will only succeed if the type of
	// the specified object matches some installed volume populator or dynamic
	// provisioner.
	// This field will replace the functionality of the dataSource field and as such
	// if both fields are non-empty, they must have the same value. For backwards
	// compatibility, when namespace isn't specified in dataSourceRef,
	// both fields (dataSource and dataSourceRef) will be set to the same
	// value automatically if one of them is empty and the other is non-empty.
	// When namespace is specified in dataSourceRef,
	// dataSource isn't set to the same value and must be empty.
	// There are three important differences between dataSource and dataSourceRef:
	// * While dataSource only allows two specific types of objects, dataSourceRef
	// allows any non-core object, as well as PersistentVolumeClaim objects.
	// * While dataSource ignores disallowed values (dropping them), dataSourceRef
	// preserves all values, and generates an error if a disallowed value is
	// specified.
	// * While dataSource only allows local objects, dataSourceRef allows objects
	// in any namespaces.
	// (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled.
	// (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled.
	DataSourceRef *TypedObjectReferenceApplyConfiguration `json:"dataSourceRef,omitempty"`
	// volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim.
	// If specified, the CSI driver will create or update the volume with the attributes defined
	// in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName,
	// it can be changed after the claim is created. An empty string or nil value indicates that no
	// VolumeAttributesClass will be applied to the claim. If the claim enters an Infeasible error state,
	// this field can be reset to its previous value (including nil) to cancel the modification.
	// If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be
	// set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource
	// exists.
	// More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/
	VolumeAttributesClassName *string `json:"volumeAttributesClassName,omitempty"`
}

PersistentVolumeClaimSpecApplyConfiguration represents a declarative configuration of the PersistentVolumeClaimSpec type for use with apply.

PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes

func PersistentVolumeClaimSpec

func PersistentVolumeClaimSpec() *PersistentVolumeClaimSpecApplyConfiguration

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

func (*PersistentVolumeClaimSpecApplyConfiguration) WithAccessModes

WithAccessModes adds the given value to the AccessModes 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 AccessModes field.

func (*PersistentVolumeClaimSpecApplyConfiguration) WithDataSource

WithDataSource sets the DataSource 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 DataSource field is set to the value of the last call.

func (*PersistentVolumeClaimSpecApplyConfiguration) WithDataSourceRef

WithDataSourceRef sets the DataSourceRef 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 DataSourceRef field is set to the value of the last call.

func (*PersistentVolumeClaimSpecApplyConfiguration) WithResources

WithResources sets the Resources 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 Resources field is set to the value of the last call.

func (*PersistentVolumeClaimSpecApplyConfiguration) 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 (*PersistentVolumeClaimSpecApplyConfiguration) WithStorageClassName

WithStorageClassName sets the StorageClassName 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 StorageClassName field is set to the value of the last call.

func (*PersistentVolumeClaimSpecApplyConfiguration) WithVolumeAttributesClassName

WithVolumeAttributesClassName sets the VolumeAttributesClassName 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 VolumeAttributesClassName field is set to the value of the last call.

func (*PersistentVolumeClaimSpecApplyConfiguration) WithVolumeMode

WithVolumeMode sets the VolumeMode 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 VolumeMode field is set to the value of the last call.

func (*PersistentVolumeClaimSpecApplyConfiguration) WithVolumeName

WithVolumeName sets the VolumeName 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 VolumeName field is set to the value of the last call.

type PersistentVolumeClaimStatusApplyConfiguration

type PersistentVolumeClaimStatusApplyConfiguration struct {
	// phase represents the current phase of PersistentVolumeClaim.
	Phase *corev1.PersistentVolumeClaimPhase `json:"phase,omitempty"`
	// accessModes contains the actual access modes the volume backing the PVC has.
	// More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
	AccessModes []corev1.PersistentVolumeAccessMode `json:"accessModes,omitempty"`
	// capacity represents the actual resources of the underlying volume.
	Capacity *corev1.ResourceList `json:"capacity,omitempty"`
	// conditions is the current Condition of persistent volume claim. If underlying persistent volume is being
	// resized then the Condition will be set to 'Resizing'.
	Conditions []PersistentVolumeClaimConditionApplyConfiguration `json:"conditions,omitempty"`
	// allocatedResources tracks the resources allocated to a PVC including its capacity.
	// Key names follow standard Kubernetes label syntax. Valid values are either:
	// * Un-prefixed keys:
	// - storage - the capacity of the volume.
	// * Custom resources must use implementation-defined prefixed names such as "example.com/my-custom-resource"
	// Apart from above values - keys that are unprefixed or have kubernetes.io prefix are considered
	// reserved and hence may not be used.
	//
	// Capacity reported here may be larger than the actual capacity when a volume expansion operation
	// is requested.
	// For storage quota, the larger value from allocatedResources and PVC.spec.resources is used.
	// If allocatedResources is not set, PVC.spec.resources alone is used for quota calculation.
	// If a volume expansion capacity request is lowered, allocatedResources is only
	// lowered if there are no expansion operations in progress and if the actual volume capacity
	// is equal or lower than the requested capacity.
	//
	// A controller that receives PVC update with previously unknown resourceName
	// should ignore the update for the purpose it was designed. For example - a controller that
	// only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid
	// resources associated with PVC.
	AllocatedResources *corev1.ResourceList `json:"allocatedResources,omitempty"`
	// allocatedResourceStatuses stores status of resource being resized for the given PVC.
	// Key names follow standard Kubernetes label syntax. Valid values are either:
	// * Un-prefixed keys:
	// - storage - the capacity of the volume.
	// * Custom resources must use implementation-defined prefixed names such as "example.com/my-custom-resource"
	// Apart from above values - keys that are unprefixed or have kubernetes.io prefix are considered
	// reserved and hence may not be used.
	//
	// ClaimResourceStatus can be in any of following states:
	// - ControllerResizeInProgress:
	// State set when resize controller starts resizing the volume in control-plane.
	// - ControllerResizeFailed:
	// State set when resize has failed in resize controller with a terminal error.
	// - NodeResizePending:
	// State set when resize controller has finished resizing the volume but further resizing of
	// volume is needed on the node.
	// - NodeResizeInProgress:
	// State set when kubelet starts resizing the volume.
	// - NodeResizeFailed:
	// State set when resizing has failed in kubelet with a terminal error. Transient errors don't set
	// NodeResizeFailed.
	// For example: if expanding a PVC for more capacity - this field can be one of the following states:
	// - pvc.status.allocatedResourceStatus['storage'] = "ControllerResizeInProgress"
	// - pvc.status.allocatedResourceStatus['storage'] = "ControllerResizeFailed"
	// - pvc.status.allocatedResourceStatus['storage'] = "NodeResizePending"
	// - pvc.status.allocatedResourceStatus['storage'] = "NodeResizeInProgress"
	// - pvc.status.allocatedResourceStatus['storage'] = "NodeResizeFailed"
	// When this field is not set, it means that no resize operation is in progress for the given PVC.
	//
	// A controller that receives PVC update with previously unknown resourceName or ClaimResourceStatus
	// should ignore the update for the purpose it was designed. For example - a controller that
	// only is responsible for resizing capacity of the volume, should ignore PVC updates that change other valid
	// resources associated with PVC.
	AllocatedResourceStatuses map[corev1.ResourceName]corev1.ClaimResourceStatus `json:"allocatedResourceStatuses,omitempty"`
	// currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using.
	// When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim
	CurrentVolumeAttributesClassName *string `json:"currentVolumeAttributesClassName,omitempty"`
	// ModifyVolumeStatus represents the status object of ControllerModifyVolume operation.
	// When this is unset, there is no ModifyVolume operation being attempted.
	ModifyVolumeStatus *ModifyVolumeStatusApplyConfiguration `json:"modifyVolumeStatus,omitempty"`
}

PersistentVolumeClaimStatusApplyConfiguration represents a declarative configuration of the PersistentVolumeClaimStatus type for use with apply.

PersistentVolumeClaimStatus is the current status of a persistent volume claim.

func PersistentVolumeClaimStatus

func PersistentVolumeClaimStatus() *PersistentVolumeClaimStatusApplyConfiguration

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

func (*PersistentVolumeClaimStatusApplyConfiguration) WithAccessModes

WithAccessModes adds the given value to the AccessModes 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 AccessModes field.

func (*PersistentVolumeClaimStatusApplyConfiguration) WithAllocatedResourceStatuses

WithAllocatedResourceStatuses puts the entries into the AllocatedResourceStatuses 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 AllocatedResourceStatuses field, overwriting an existing map entries in AllocatedResourceStatuses field with the same key.

func (*PersistentVolumeClaimStatusApplyConfiguration) WithAllocatedResources

WithAllocatedResources sets the AllocatedResources 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 AllocatedResources field is set to the value of the last call.

func (*PersistentVolumeClaimStatusApplyConfiguration) WithCapacity

WithCapacity sets the Capacity 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 Capacity field is set to the value of the last call.

func (*PersistentVolumeClaimStatusApplyConfiguration) 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 (*PersistentVolumeClaimStatusApplyConfiguration) WithCurrentVolumeAttributesClassName

WithCurrentVolumeAttributesClassName sets the CurrentVolumeAttributesClassName 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 CurrentVolumeAttributesClassName field is set to the value of the last call.

func (*PersistentVolumeClaimStatusApplyConfiguration) WithModifyVolumeStatus

WithModifyVolumeStatus sets the ModifyVolumeStatus 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 ModifyVolumeStatus field is set to the value of the last call.

func (*PersistentVolumeClaimStatusApplyConfiguration) WithPhase

WithPhase sets the Phase 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 Phase field is set to the value of the last call.

type PersistentVolumeClaimTemplateApplyConfiguration

type PersistentVolumeClaimTemplateApplyConfiguration struct {
	// May contain labels and annotations that will be copied into the PVC
	// when creating it. No other fields are allowed and will be rejected during
	// validation.
	*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	// The specification for the PersistentVolumeClaim. The entire content is
	// copied unchanged into the PVC that gets created from this
	// template. The same fields as in a PersistentVolumeClaim
	// are also valid here.
	Spec *PersistentVolumeClaimSpecApplyConfiguration `json:"spec,omitempty"`
}

PersistentVolumeClaimTemplateApplyConfiguration represents a declarative configuration of the PersistentVolumeClaimTemplate type for use with apply.

PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource.

func PersistentVolumeClaimTemplate

func PersistentVolumeClaimTemplate() *PersistentVolumeClaimTemplateApplyConfiguration

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

func (*PersistentVolumeClaimTemplateApplyConfiguration) GetName

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

func (*PersistentVolumeClaimTemplateApplyConfiguration) GetNamespace

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

func (*PersistentVolumeClaimTemplateApplyConfiguration) 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 (*PersistentVolumeClaimTemplateApplyConfiguration) 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 (*PersistentVolumeClaimTemplateApplyConfiguration) WithDeletionGracePeriodSeconds

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 (*PersistentVolumeClaimTemplateApplyConfiguration) 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 (*PersistentVolumeClaimTemplateApplyConfiguration) 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 (*PersistentVolumeClaimTemplateApplyConfiguration) 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 (*PersistentVolumeClaimTemplateApplyConfiguration) 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 (*PersistentVolumeClaimTemplateApplyConfiguration) 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 (*PersistentVolumeClaimTemplateApplyConfiguration) 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 (*PersistentVolumeClaimTemplateApplyConfiguration) 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 (*PersistentVolumeClaimTemplateApplyConfiguration) 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 (*PersistentVolumeClaimTemplateApplyConfiguration) 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 (*PersistentVolumeClaimTemplateApplyConfiguration) 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 (*PersistentVolumeClaimTemplateApplyConfiguration) 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 PersistentVolumeClaimVolumeSourceApplyConfiguration

type PersistentVolumeClaimVolumeSourceApplyConfiguration struct {
	// claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume.
	// More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
	ClaimName *string `json:"claimName,omitempty"`
	// readOnly Will force the ReadOnly setting in VolumeMounts.
	// Default false.
	ReadOnly *bool `json:"readOnly,omitempty"`
}

PersistentVolumeClaimVolumeSourceApplyConfiguration represents a declarative configuration of the PersistentVolumeClaimVolumeSource type for use with apply.

PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system).

func PersistentVolumeClaimVolumeSource

func PersistentVolumeClaimVolumeSource() *PersistentVolumeClaimVolumeSourceApplyConfiguration

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

func (*PersistentVolumeClaimVolumeSourceApplyConfiguration) WithClaimName

WithClaimName sets the ClaimName 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 ClaimName field is set to the value of the last call.

func (*PersistentVolumeClaimVolumeSourceApplyConfiguration) WithReadOnly

WithReadOnly sets the ReadOnly 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 ReadOnly field is set to the value of the last call.

type PersistentVolumeSourceApplyConfiguration

type PersistentVolumeSourceApplyConfiguration struct {
	// gcePersistentDisk represents a GCE Disk resource that is attached to a
	// kubelet's host machine and then exposed to the pod. Provisioned by an admin.
	// Deprecated: GCEPersistentDisk is deprecated. All operations for the in-tree
	// gcePersistentDisk type are redirected to the pd.csi.storage.gke.io CSI driver.
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
	GCEPersistentDisk *GCEPersistentDiskVolumeSourceApplyConfiguration `json:"gcePersistentDisk,omitempty"`
	// awsElasticBlockStore represents an AWS Disk resource that is attached to a
	// kubelet's host machine and then exposed to the pod.
	// Deprecated: AWSElasticBlockStore is deprecated. All operations for the in-tree
	// awsElasticBlockStore type are redirected to the ebs.csi.aws.com CSI driver.
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
	AWSElasticBlockStore *AWSElasticBlockStoreVolumeSourceApplyConfiguration `json:"awsElasticBlockStore,omitempty"`
	// hostPath represents a directory on the host.
	// Provisioned by a developer or tester.
	// This is useful for single-node development and testing only!
	// On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster.
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
	HostPath *HostPathVolumeSourceApplyConfiguration `json:"hostPath,omitempty"`
	// glusterfs represents a Glusterfs volume that is attached to a host and
	// exposed to the pod. Provisioned by an admin.
	// Deprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported.
	// More info: https://examples.k8s.io/volumes/glusterfs/README.md
	Glusterfs *GlusterfsPersistentVolumeSourceApplyConfiguration `json:"glusterfs,omitempty"`
	// nfs represents an NFS mount on the host. Provisioned by an admin.
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
	NFS *NFSVolumeSourceApplyConfiguration `json:"nfs,omitempty"`
	// rbd represents a Rados Block Device mount on the host that shares a pod's lifetime.
	// Deprecated: RBD is deprecated and the in-tree rbd type is no longer supported.
	// More info: https://examples.k8s.io/volumes/rbd/README.md
	RBD *RBDPersistentVolumeSourceApplyConfiguration `json:"rbd,omitempty"`
	// iscsi represents an ISCSI Disk resource that is attached to a
	// kubelet's host machine and then exposed to the pod. Provisioned by an admin.
	ISCSI *ISCSIPersistentVolumeSourceApplyConfiguration `json:"iscsi,omitempty"`
	// cinder represents a cinder volume attached and mounted on kubelets host machine.
	// Deprecated: Cinder is deprecated. All operations for the in-tree cinder type
	// are redirected to the cinder.csi.openstack.org CSI driver.
	// More info: https://examples.k8s.io/mysql-cinder-pd/README.md
	Cinder *CinderPersistentVolumeSourceApplyConfiguration `json:"cinder,omitempty"`
	// cephFS represents a Ceph FS mount on the host that shares a pod's lifetime.
	// Deprecated: CephFS is deprecated and the in-tree cephfs type is no longer supported.
	CephFS *CephFSPersistentVolumeSourceApplyConfiguration `json:"cephfs,omitempty"`
	// fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
	FC *FCVolumeSourceApplyConfiguration `json:"fc,omitempty"`
	// flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running.
	// Deprecated: Flocker is deprecated and the in-tree flocker type is no longer supported.
	Flocker *FlockerVolumeSourceApplyConfiguration `json:"flocker,omitempty"`
	// flexVolume represents a generic volume resource that is
	// provisioned/attached using an exec based plugin.
	// Deprecated: FlexVolume is deprecated. Consider using a CSIDriver instead.
	FlexVolume *FlexPersistentVolumeSourceApplyConfiguration `json:"flexVolume,omitempty"`
	// azureFile represents an Azure File Service mount on the host and bind mount to the pod.
	// Deprecated: AzureFile is deprecated. All operations for the in-tree azureFile type
	// are redirected to the file.csi.azure.com CSI driver.
	AzureFile *AzureFilePersistentVolumeSourceApplyConfiguration `json:"azureFile,omitempty"`
	// vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine.
	// Deprecated: VsphereVolume is deprecated. All operations for the in-tree vsphereVolume type
	// are redirected to the csi.vsphere.vmware.com CSI driver.
	VsphereVolume *VsphereVirtualDiskVolumeSourceApplyConfiguration `json:"vsphereVolume,omitempty"`
	// quobyte represents a Quobyte mount on the host that shares a pod's lifetime.
	// Deprecated: Quobyte is deprecated and the in-tree quobyte type is no longer supported.
	Quobyte *QuobyteVolumeSourceApplyConfiguration `json:"quobyte,omitempty"`
	// azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
	// Deprecated: AzureDisk is deprecated. All operations for the in-tree azureDisk type
	// are redirected to the disk.csi.azure.com CSI driver.
	AzureDisk *AzureDiskVolumeSourceApplyConfiguration `json:"azureDisk,omitempty"`
	// photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine.
	// Deprecated: PhotonPersistentDisk is deprecated and the in-tree photonPersistentDisk type is no longer supported.
	PhotonPersistentDisk *PhotonPersistentDiskVolumeSourceApplyConfiguration `json:"photonPersistentDisk,omitempty"`
	// portworxVolume represents a portworx volume attached and mounted on kubelets host machine.
	// Deprecated: PortworxVolume is deprecated. All operations for the in-tree portworxVolume type
	// are redirected to the pxd.portworx.com CSI driver when the CSIMigrationPortworx feature-gate
	// is on.
	PortworxVolume *PortworxVolumeSourceApplyConfiguration `json:"portworxVolume,omitempty"`
	// scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
	// Deprecated: ScaleIO is deprecated and the in-tree scaleIO type is no longer supported.
	ScaleIO *ScaleIOPersistentVolumeSourceApplyConfiguration `json:"scaleIO,omitempty"`
	// local represents directly-attached storage with node affinity
	Local *LocalVolumeSourceApplyConfiguration `json:"local,omitempty"`
	// storageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod.
	// Deprecated: StorageOS is deprecated and the in-tree storageos type is no longer supported.
	// More info: https://examples.k8s.io/volumes/storageos/README.md
	StorageOS *StorageOSPersistentVolumeSourceApplyConfiguration `json:"storageos,omitempty"`
	// csi represents storage that is handled by an external CSI driver.
	CSI *CSIPersistentVolumeSourceApplyConfiguration `json:"csi,omitempty"`
}

PersistentVolumeSourceApplyConfiguration represents a declarative configuration of the PersistentVolumeSource type for use with apply.

PersistentVolumeSource is similar to VolumeSource but meant for the administrator who creates PVs. Exactly one of its members must be set.

func PersistentVolumeSource

func PersistentVolumeSource() *PersistentVolumeSourceApplyConfiguration

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

func (*PersistentVolumeSourceApplyConfiguration) WithAWSElasticBlockStore

WithAWSElasticBlockStore sets the AWSElasticBlockStore 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 AWSElasticBlockStore field is set to the value of the last call.

func (*PersistentVolumeSourceApplyConfiguration) WithAzureDisk

WithAzureDisk sets the AzureDisk 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 AzureDisk field is set to the value of the last call.

func (*PersistentVolumeSourceApplyConfiguration) WithAzureFile

WithAzureFile sets the AzureFile 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 AzureFile field is set to the value of the last call.

func (*PersistentVolumeSourceApplyConfiguration) WithCSI

WithCSI sets the CSI 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 CSI field is set to the value of the last call.

func (*PersistentVolumeSourceApplyConfiguration) WithCephFS

WithCephFS sets the CephFS 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 CephFS field is set to the value of the last call.

func (*PersistentVolumeSourceApplyConfiguration) WithCinder

WithCinder sets the Cinder 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 Cinder field is set to the value of the last call.

func (*PersistentVolumeSourceApplyConfiguration) WithFC

WithFC sets the FC 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 FC field is set to the value of the last call.

func (*PersistentVolumeSourceApplyConfiguration) WithFlexVolume

WithFlexVolume sets the FlexVolume 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 FlexVolume field is set to the value of the last call.

func (*PersistentVolumeSourceApplyConfiguration) WithFlocker

WithFlocker sets the Flocker 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 Flocker field is set to the value of the last call.

func (*PersistentVolumeSourceApplyConfiguration) WithGCEPersistentDisk

WithGCEPersistentDisk sets the GCEPersistentDisk 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 GCEPersistentDisk field is set to the value of the last call.

func (*PersistentVolumeSourceApplyConfiguration) WithGlusterfs

WithGlusterfs sets the Glusterfs 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 Glusterfs field is set to the value of the last call.

func (*PersistentVolumeSourceApplyConfiguration) WithHostPath

WithHostPath sets the HostPath 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 HostPath field is set to the value of the last call.

func (*PersistentVolumeSourceApplyConfiguration) WithISCSI

WithISCSI sets the ISCSI 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 ISCSI field is set to the value of the last call.

func (*PersistentVolumeSourceApplyConfiguration) WithLocal

WithLocal sets the Local 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 Local field is set to the value of the last call.

func (*PersistentVolumeSourceApplyConfiguration) WithNFS

WithNFS sets the NFS 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 NFS field is set to the value of the last call.

func (*PersistentVolumeSourceApplyConfiguration) WithPhotonPersistentDisk

WithPhotonPersistentDisk sets the PhotonPersistentDisk 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 PhotonPersistentDisk field is set to the value of the last call.

func (*PersistentVolumeSourceApplyConfiguration) WithPortworxVolume

WithPortworxVolume sets the PortworxVolume 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 PortworxVolume field is set to the value of the last call.

func (*PersistentVolumeSourceApplyConfiguration) WithQuobyte

WithQuobyte sets the Quobyte 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 Quobyte field is set to the value of the last call.

func (*PersistentVolumeSourceApplyConfiguration) WithRBD

WithRBD sets the RBD 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 RBD field is set to the value of the last call.

func (*PersistentVolumeSourceApplyConfiguration) WithScaleIO

WithScaleIO sets the ScaleIO 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 ScaleIO field is set to the value of the last call.

func (*PersistentVolumeSourceApplyConfiguration) WithStorageOS

WithStorageOS sets the StorageOS 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 StorageOS field is set to the value of the last call.

func (*PersistentVolumeSourceApplyConfiguration) WithVsphereVolume

WithVsphereVolume sets the VsphereVolume 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 VsphereVolume field is set to the value of the last call.

type PersistentVolumeSpecApplyConfiguration

type PersistentVolumeSpecApplyConfiguration struct {
	// capacity is the description of the persistent volume's resources and capacity.
	// More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
	Capacity *corev1.ResourceList `json:"capacity,omitempty"`
	// persistentVolumeSource is the actual volume backing the persistent volume.
	PersistentVolumeSourceApplyConfiguration `json:",inline"`
	// accessModes contains all ways the volume can be mounted.
	// More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes
	AccessModes []corev1.PersistentVolumeAccessMode `json:"accessModes,omitempty"`
	// claimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim.
	// Expected to be non-nil when bound.
	// claim.VolumeName is the authoritative bind between PV and PVC.
	// More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding
	ClaimRef *ObjectReferenceApplyConfiguration `json:"claimRef,omitempty"`
	// persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim.
	// Valid options are Retain (default for manually created PersistentVolumes), Delete (default
	// for dynamically provisioned PersistentVolumes), and Recycle (deprecated).
	// Recycle must be supported by the volume plugin underlying this PersistentVolume.
	// More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming
	PersistentVolumeReclaimPolicy *corev1.PersistentVolumeReclaimPolicy `json:"persistentVolumeReclaimPolicy,omitempty"`
	// storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value
	// means that this volume does not belong to any StorageClass.
	StorageClassName *string `json:"storageClassName,omitempty"`
	// mountOptions is the list of mount options, e.g. ["ro", "soft"]. Not validated - mount will
	// simply fail if one is invalid.
	// More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options
	MountOptions []string `json:"mountOptions,omitempty"`
	// volumeMode defines if a volume is intended to be used with a formatted filesystem
	// or to remain in raw block state. Value of Filesystem is implied when not included in spec.
	VolumeMode *corev1.PersistentVolumeMode `json:"volumeMode,omitempty"`
	// nodeAffinity defines constraints that limit what nodes this volume can be accessed from.
	// This field influences the scheduling of pods that use this volume.
	// This field is mutable if MutablePVNodeAffinity feature gate is enabled.
	NodeAffinity *VolumeNodeAffinityApplyConfiguration `json:"nodeAffinity,omitempty"`
	// Name of VolumeAttributesClass to which this persistent volume belongs. Empty value
	// is not allowed. When this field is not set, it indicates that this volume does not belong to any
	// VolumeAttributesClass. This field is mutable and can be changed by the CSI driver
	// after a volume has been updated successfully to a new class.
	// For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound
	// PersistentVolumeClaims during the binding process.
	VolumeAttributesClassName *string `json:"volumeAttributesClassName,omitempty"`
}

PersistentVolumeSpecApplyConfiguration represents a declarative configuration of the PersistentVolumeSpec type for use with apply.

PersistentVolumeSpec is the specification of a persistent volume.

func PersistentVolumeSpec

func PersistentVolumeSpec() *PersistentVolumeSpecApplyConfiguration

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

func (*PersistentVolumeSpecApplyConfiguration) WithAWSElasticBlockStore

WithAWSElasticBlockStore sets the AWSElasticBlockStore 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 AWSElasticBlockStore field is set to the value of the last call.

func (*PersistentVolumeSpecApplyConfiguration) WithAccessModes

WithAccessModes adds the given value to the AccessModes 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 AccessModes field.

func (*PersistentVolumeSpecApplyConfiguration) WithAzureDisk

WithAzureDisk sets the AzureDisk 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 AzureDisk field is set to the value of the last call.

func (*PersistentVolumeSpecApplyConfiguration) WithAzureFile

WithAzureFile sets the AzureFile 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 AzureFile field is set to the value of the last call.

func (*PersistentVolumeSpecApplyConfiguration) WithCSI

WithCSI sets the CSI 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 CSI field is set to the value of the last call.

func (*PersistentVolumeSpecApplyConfiguration) WithCapacity

WithCapacity sets the Capacity 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 Capacity field is set to the value of the last call.

func (*PersistentVolumeSpecApplyConfiguration) WithCephFS

WithCephFS sets the CephFS 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 CephFS field is set to the value of the last call.

func (*PersistentVolumeSpecApplyConfiguration) WithCinder

WithCinder sets the Cinder 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 Cinder field is set to the value of the last call.

func (*PersistentVolumeSpecApplyConfiguration) WithClaimRef

WithClaimRef sets the ClaimRef 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 ClaimRef field is set to the value of the last call.

func (*PersistentVolumeSpecApplyConfiguration) WithFC

WithFC sets the FC 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 FC field is set to the value of the last call.

func (*PersistentVolumeSpecApplyConfiguration) WithFlexVolume

WithFlexVolume sets the FlexVolume 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 FlexVolume field is set to the value of the last call.

func (*PersistentVolumeSpecApplyConfiguration) WithFlocker

WithFlocker sets the Flocker 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 Flocker field is set to the value of the last call.

func (*PersistentVolumeSpecApplyConfiguration) WithGCEPersistentDisk

WithGCEPersistentDisk sets the GCEPersistentDisk 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 GCEPersistentDisk field is set to the value of the last call.

func (*PersistentVolumeSpecApplyConfiguration) WithGlusterfs

WithGlusterfs sets the Glusterfs 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 Glusterfs field is set to the value of the last call.

func (*PersistentVolumeSpecApplyConfiguration) WithHostPath

WithHostPath sets the HostPath 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 HostPath field is set to the value of the last call.

func (*PersistentVolumeSpecApplyConfiguration) WithISCSI

WithISCSI sets the ISCSI 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 ISCSI field is set to the value of the last call.

func (*PersistentVolumeSpecApplyConfiguration) WithLocal

WithLocal sets the Local 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 Local field is set to the value of the last call.

func (*PersistentVolumeSpecApplyConfiguration) WithMountOptions

WithMountOptions adds the given value to the MountOptions 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 MountOptions field.

func (*PersistentVolumeSpecApplyConfiguration) WithNFS

WithNFS sets the NFS 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 NFS field is set to the value of the last call.

func (*PersistentVolumeSpecApplyConfiguration) WithNodeAffinity

WithNodeAffinity sets the NodeAffinity 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 NodeAffinity field is set to the value of the last call.

func (*PersistentVolumeSpecApplyConfiguration) WithPersistentVolumeReclaimPolicy

WithPersistentVolumeReclaimPolicy sets the PersistentVolumeReclaimPolicy 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 PersistentVolumeReclaimPolicy field is set to the value of the last call.

func (*PersistentVolumeSpecApplyConfiguration) WithPhotonPersistentDisk

WithPhotonPersistentDisk sets the PhotonPersistentDisk 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 PhotonPersistentDisk field is set to the value of the last call.

func (*PersistentVolumeSpecApplyConfiguration) WithPortworxVolume

WithPortworxVolume sets the PortworxVolume 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 PortworxVolume field is set to the value of the last call.

func (*PersistentVolumeSpecApplyConfiguration) WithQuobyte

WithQuobyte sets the Quobyte 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 Quobyte field is set to the value of the last call.

func (*PersistentVolumeSpecApplyConfiguration) WithRBD

WithRBD sets the RBD 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 RBD field is set to the value of the last call.

func (*PersistentVolumeSpecApplyConfiguration) WithScaleIO

WithScaleIO sets the ScaleIO 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 ScaleIO field is set to the value of the last call.

func (*PersistentVolumeSpecApplyConfiguration) WithStorageClassName

WithStorageClassName sets the StorageClassName 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 StorageClassName field is set to the value of the last call.

func (*PersistentVolumeSpecApplyConfiguration) WithStorageOS

WithStorageOS sets the StorageOS 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 StorageOS field is set to the value of the last call.

func (*PersistentVolumeSpecApplyConfiguration) WithVolumeAttributesClassName

WithVolumeAttributesClassName sets the VolumeAttributesClassName 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 VolumeAttributesClassName field is set to the value of the last call.

func (*PersistentVolumeSpecApplyConfiguration) WithVolumeMode

WithVolumeMode sets the VolumeMode 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 VolumeMode field is set to the value of the last call.

func (*PersistentVolumeSpecApplyConfiguration) WithVsphereVolume

WithVsphereVolume sets the VsphereVolume 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 VsphereVolume field is set to the value of the last call.

type PersistentVolumeStatusApplyConfiguration

type PersistentVolumeStatusApplyConfiguration struct {
	// phase indicates if a volume is available, bound to a claim, or released by a claim.
	// More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase
	Phase *corev1.PersistentVolumePhase `json:"phase,omitempty"`
	// message is a human-readable message indicating details about why the volume is in this state.
	Message *string `json:"message,omitempty"`
	// reason is a brief CamelCase string that describes any failure and is meant
	// for machine parsing and tidy display in the CLI.
	Reason *string `json:"reason,omitempty"`
	// lastPhaseTransitionTime is the time the phase transitioned from one to another
	// and automatically resets to current time everytime a volume phase transitions.
	LastPhaseTransitionTime *metav1.Time `json:"lastPhaseTransitionTime,omitempty"`
}

PersistentVolumeStatusApplyConfiguration represents a declarative configuration of the PersistentVolumeStatus type for use with apply.

PersistentVolumeStatus is the current status of a persistent volume.

func PersistentVolumeStatus

func PersistentVolumeStatus() *PersistentVolumeStatusApplyConfiguration

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

func (*PersistentVolumeStatusApplyConfiguration) WithLastPhaseTransitionTime

WithLastPhaseTransitionTime sets the LastPhaseTransitionTime 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 LastPhaseTransitionTime field is set to the value of the last call.

func (*PersistentVolumeStatusApplyConfiguration) 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 (*PersistentVolumeStatusApplyConfiguration) WithPhase

WithPhase sets the Phase 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 Phase field is set to the value of the last call.

func (*PersistentVolumeStatusApplyConfiguration) 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.

type PhotonPersistentDiskVolumeSourceApplyConfiguration

type PhotonPersistentDiskVolumeSourceApplyConfiguration struct {
	// pdID is the ID that identifies Photon Controller persistent disk
	PdID *string `json:"pdID,omitempty"`
	// fsType is the filesystem type to mount.
	// Must be a filesystem type supported by the host operating system.
	// Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
	FSType *string `json:"fsType,omitempty"`
}

PhotonPersistentDiskVolumeSourceApplyConfiguration represents a declarative configuration of the PhotonPersistentDiskVolumeSource type for use with apply.

Represents a Photon Controller persistent disk resource.

func PhotonPersistentDiskVolumeSource

func PhotonPersistentDiskVolumeSource() *PhotonPersistentDiskVolumeSourceApplyConfiguration

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

func (*PhotonPersistentDiskVolumeSourceApplyConfiguration) WithFSType

WithFSType sets the FSType 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 FSType field is set to the value of the last call.

func (*PhotonPersistentDiskVolumeSourceApplyConfiguration) WithPdID

WithPdID sets the PdID 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 PdID field is set to the value of the last call.

type PodAffinityApplyConfiguration

type PodAffinityApplyConfiguration struct {
	// If the affinity requirements specified by this field are not met at
	// scheduling time, the pod will not be scheduled onto the node.
	// If the affinity requirements specified by this field cease to be met
	// at some point during pod execution (e.g. due to a pod label update), the
	// system may or may not try to eventually evict the pod from its node.
	// When there are multiple elements, the lists of nodes corresponding to each
	// podAffinityTerm are intersected, i.e. all terms must be satisfied.
	RequiredDuringSchedulingIgnoredDuringExecution []PodAffinityTermApplyConfiguration `json:"requiredDuringSchedulingIgnoredDuringExecution,omitempty"`
	// The scheduler will prefer to schedule pods to nodes that satisfy
	// the affinity expressions specified by this field, but it may choose
	// a node that violates one or more of the expressions. The node that is
	// most preferred is the one with the greatest sum of weights, i.e.
	// for each node that meets all of the scheduling requirements (resource
	// request, requiredDuringScheduling affinity expressions, etc.),
	// compute a sum by iterating through the elements of this field and adding
	// "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
	// node(s) with the highest sum are the most preferred.
	PreferredDuringSchedulingIgnoredDuringExecution []WeightedPodAffinityTermApplyConfiguration `json:"preferredDuringSchedulingIgnoredDuringExecution,omitempty"`
}

PodAffinityApplyConfiguration represents a declarative configuration of the PodAffinity type for use with apply.

Pod affinity is a group of inter pod affinity scheduling rules.

func PodAffinity

func PodAffinity() *PodAffinityApplyConfiguration

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

func (*PodAffinityApplyConfiguration) WithPreferredDuringSchedulingIgnoredDuringExecution

func (b *PodAffinityApplyConfiguration) WithPreferredDuringSchedulingIgnoredDuringExecution(values ...*WeightedPodAffinityTermApplyConfiguration) *PodAffinityApplyConfiguration

WithPreferredDuringSchedulingIgnoredDuringExecution adds the given value to the PreferredDuringSchedulingIgnoredDuringExecution 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 PreferredDuringSchedulingIgnoredDuringExecution field.

func (*PodAffinityApplyConfiguration) WithRequiredDuringSchedulingIgnoredDuringExecution

func (b *PodAffinityApplyConfiguration) WithRequiredDuringSchedulingIgnoredDuringExecution(values ...*PodAffinityTermApplyConfiguration) *PodAffinityApplyConfiguration

WithRequiredDuringSchedulingIgnoredDuringExecution adds the given value to the RequiredDuringSchedulingIgnoredDuringExecution 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 RequiredDuringSchedulingIgnoredDuringExecution field.

type PodAffinityTermApplyConfiguration

type PodAffinityTermApplyConfiguration struct {
	// A label query over a set of resources, in this case pods.
	// If it's null, this PodAffinityTerm matches with no Pods.
	LabelSelector *metav1.LabelSelectorApplyConfiguration `json:"labelSelector,omitempty"`
	// namespaces specifies a static list of namespace names that the term applies to.
	// The term is applied to the union of the namespaces listed in this field
	// and the ones selected by namespaceSelector.
	// null or empty namespaces list and null namespaceSelector means "this pod's namespace".
	Namespaces []string `json:"namespaces,omitempty"`
	// This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
	// the labelSelector in the specified namespaces, where co-located is defined as running on a node
	// whose value of the label with key topologyKey matches that of any node on which any of the
	// selected pods is running.
	// Empty topologyKey is not allowed.
	TopologyKey *string `json:"topologyKey,omitempty"`
	// A label query over the set of namespaces that the term applies to.
	// The term is applied to the union of the namespaces selected by this field
	// and the ones listed in the namespaces field.
	// null selector and null or empty namespaces list means "this pod's namespace".
	// An empty selector ({}) matches all namespaces.
	NamespaceSelector *metav1.LabelSelectorApplyConfiguration `json:"namespaceSelector,omitempty"`
	// MatchLabelKeys is a set of pod label keys to select which pods will
	// be taken into consideration. The keys are used to lookup values from the
	// incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`
	// to select the group of existing pods which pods will be taken into consideration
	// for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
	// pod labels will be ignored. The default value is empty.
	// The same key is forbidden to exist in both matchLabelKeys and labelSelector.
	// Also, matchLabelKeys cannot be set when labelSelector isn't set.
	MatchLabelKeys []string `json:"matchLabelKeys,omitempty"`
	// MismatchLabelKeys is a set of pod label keys to select which pods will
	// be taken into consideration. The keys are used to lookup values from the
	// incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`
	// to select the group of existing pods which pods will be taken into consideration
	// for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
	// pod labels will be ignored. The default value is empty.
	// The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.
	// Also, mismatchLabelKeys cannot be set when labelSelector isn't set.
	MismatchLabelKeys []string `json:"mismatchLabelKeys,omitempty"`
}

PodAffinityTermApplyConfiguration represents a declarative configuration of the PodAffinityTerm type for use with apply.

Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key <topologyKey> matches that of any node on which a pod of the set of pods is running

func PodAffinityTerm

func PodAffinityTerm() *PodAffinityTermApplyConfiguration

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

func (*PodAffinityTermApplyConfiguration) WithLabelSelector

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

func (*PodAffinityTermApplyConfiguration) WithMatchLabelKeys

WithMatchLabelKeys adds the given value to the MatchLabelKeys 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 MatchLabelKeys field.

func (*PodAffinityTermApplyConfiguration) WithMismatchLabelKeys

func (b *PodAffinityTermApplyConfiguration) WithMismatchLabelKeys(values ...string) *PodAffinityTermApplyConfiguration

WithMismatchLabelKeys adds the given value to the MismatchLabelKeys 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 MismatchLabelKeys field.

func (*PodAffinityTermApplyConfiguration) 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 (*PodAffinityTermApplyConfiguration) WithNamespaces

WithNamespaces adds the given value to the Namespaces 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 Namespaces field.

func (*PodAffinityTermApplyConfiguration) WithTopologyKey

WithTopologyKey sets the TopologyKey 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 TopologyKey field is set to the value of the last call.

type PodAntiAffinityApplyConfiguration

type PodAntiAffinityApplyConfiguration struct {
	// If the anti-affinity requirements specified by this field are not met at
	// scheduling time, the pod will not be scheduled onto the node.
	// If the anti-affinity requirements specified by this field cease to be met
	// at some point during pod execution (e.g. due to a pod label update), the
	// system may or may not try to eventually evict the pod from its node.
	// When there are multiple elements, the lists of nodes corresponding to each
	// podAffinityTerm are intersected, i.e. all terms must be satisfied.
	RequiredDuringSchedulingIgnoredDuringExecution []PodAffinityTermApplyConfiguration `json:"requiredDuringSchedulingIgnoredDuringExecution,omitempty"`
	// The scheduler will prefer to schedule pods to nodes that satisfy
	// the anti-affinity expressions specified by this field, but it may choose
	// a node that violates one or more of the expressions. The node that is
	// most preferred is the one with the greatest sum of weights, i.e.
	// for each node that meets all of the scheduling requirements (resource
	// request, requiredDuringScheduling anti-affinity expressions, etc.),
	// compute a sum by iterating through the elements of this field and subtracting
	// "weight" from the sum if the node has pods which matches the corresponding podAffinityTerm; the
	// node(s) with the highest sum are the most preferred.
	PreferredDuringSchedulingIgnoredDuringExecution []WeightedPodAffinityTermApplyConfiguration `json:"preferredDuringSchedulingIgnoredDuringExecution,omitempty"`
}

PodAntiAffinityApplyConfiguration represents a declarative configuration of the PodAntiAffinity type for use with apply.

Pod anti affinity is a group of inter pod anti affinity scheduling rules.

func PodAntiAffinity

func PodAntiAffinity() *PodAntiAffinityApplyConfiguration

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

func (*PodAntiAffinityApplyConfiguration) WithPreferredDuringSchedulingIgnoredDuringExecution

func (b *PodAntiAffinityApplyConfiguration) WithPreferredDuringSchedulingIgnoredDuringExecution(values ...*WeightedPodAffinityTermApplyConfiguration) *PodAntiAffinityApplyConfiguration

WithPreferredDuringSchedulingIgnoredDuringExecution adds the given value to the PreferredDuringSchedulingIgnoredDuringExecution 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 PreferredDuringSchedulingIgnoredDuringExecution field.

func (*PodAntiAffinityApplyConfiguration) WithRequiredDuringSchedulingIgnoredDuringExecution

func (b *PodAntiAffinityApplyConfiguration) WithRequiredDuringSchedulingIgnoredDuringExecution(values ...*PodAffinityTermApplyConfiguration) *PodAntiAffinityApplyConfiguration

WithRequiredDuringSchedulingIgnoredDuringExecution adds the given value to the RequiredDuringSchedulingIgnoredDuringExecution 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 RequiredDuringSchedulingIgnoredDuringExecution field.

type PodApplyConfiguration

type PodApplyConfiguration struct {
	metav1.TypeMetaApplyConfiguration `json:",inline"`
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	// Specification of the desired behavior of the pod.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	Spec *PodSpecApplyConfiguration `json:"spec,omitempty"`
	// Most recently observed status of the pod.
	// This data may not be up to date.
	// Populated by the system.
	// Read-only.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	Status *PodStatusApplyConfiguration `json:"status,omitempty"`
}

PodApplyConfiguration represents a declarative configuration of the Pod type for use with apply.

Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts.

func ExtractPod

func ExtractPod(pod *corev1.Pod, fieldManager string) (*PodApplyConfiguration, error)

ExtractPod extracts the applied configuration owned by fieldManager from pod. If no managedFields are found in pod for fieldManager, a PodApplyConfiguration 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. pod must be a unmodified Pod API object that was retrieved from the Kubernetes API. ExtractPod 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 ExtractPodEphemeralcontainers

func ExtractPodEphemeralcontainers(pod *corev1.Pod, fieldManager string) (*PodApplyConfiguration, error)

ExtractPodEphemeralcontainers extracts the applied configuration owned by fieldManager from pod for the ephemeralcontainers subresource.

func ExtractPodFrom

func ExtractPodFrom(pod *corev1.Pod, fieldManager string, subresource string) (*PodApplyConfiguration, error)

ExtractPodFrom extracts the applied configuration owned by fieldManager from pod for the specified subresource. Pass an empty string for subresource to extract the main resource. Common subresources include "status", "scale", etc. pod must be a unmodified Pod API object that was retrieved from the Kubernetes API. ExtractPodFrom 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 ExtractPodResize

func ExtractPodResize(pod *corev1.Pod, fieldManager string) (*PodApplyConfiguration, error)

ExtractPodResize extracts the applied configuration owned by fieldManager from pod for the resize subresource.

func ExtractPodStatus

func ExtractPodStatus(pod *corev1.Pod, fieldManager string) (*PodApplyConfiguration, error)

ExtractPodStatus extracts the applied configuration owned by fieldManager from pod for the status subresource.

func Pod

func Pod(name, namespace string) *PodApplyConfiguration

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

func (*PodApplyConfiguration) GetAPIVersion

func (b *PodApplyConfiguration) GetAPIVersion() *string

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

func (*PodApplyConfiguration) GetKind

func (b *PodApplyConfiguration) GetKind() *string

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

func (*PodApplyConfiguration) GetName

func (b *PodApplyConfiguration) GetName() *string

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

func (*PodApplyConfiguration) GetNamespace

func (b *PodApplyConfiguration) GetNamespace() *string

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

func (PodApplyConfiguration) IsApplyConfiguration

func (b PodApplyConfiguration) IsApplyConfiguration()

func (*PodApplyConfiguration) WithAPIVersion

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

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 (*PodApplyConfiguration) WithAnnotations

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

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 (*PodApplyConfiguration) WithCreationTimestamp

func (b *PodApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *PodApplyConfiguration

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 (*PodApplyConfiguration) WithDeletionGracePeriodSeconds

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

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 (*PodApplyConfiguration) WithDeletionTimestamp

func (b *PodApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *PodApplyConfiguration

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 (*PodApplyConfiguration) WithFinalizers

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

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 (*PodApplyConfiguration) WithGenerateName

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

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 (*PodApplyConfiguration) WithGeneration

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

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 (*PodApplyConfiguration) 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 (*PodApplyConfiguration) WithLabels

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

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 (*PodApplyConfiguration) 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 (*PodApplyConfiguration) WithNamespace

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

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 (*PodApplyConfiguration) 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 (*PodApplyConfiguration) WithResourceVersion

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

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 (*PodApplyConfiguration) 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 (*PodApplyConfiguration) 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 (*PodApplyConfiguration) 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 PodCertificateProjectionApplyConfiguration

type PodCertificateProjectionApplyConfiguration struct {
	// Kubelet's generated CSRs will be addressed to this signer.
	SignerName *string `json:"signerName,omitempty"`
	// The type of keypair Kubelet will generate for the pod.
	//
	// Valid values are "RSA3072", "RSA4096", "ECDSAP256", "ECDSAP384",
	// "ECDSAP521", and "ED25519".
	KeyType *string `json:"keyType,omitempty"`
	// maxExpirationSeconds is the maximum lifetime permitted for the
	// certificate.
	//
	// Kubelet copies this value verbatim into the PodCertificateRequests it
	// generates for this projection.
	//
	// If omitted, kube-apiserver will set it to 86400(24 hours). kube-apiserver
	// will reject values shorter than 3600 (1 hour).  The maximum allowable
	// value is 7862400 (91 days).
	//
	// The signer implementation is then free to issue a certificate with any
	// lifetime *shorter* than MaxExpirationSeconds, but no shorter than 3600
	// seconds (1 hour).  This constraint is enforced by kube-apiserver.
	// `kubernetes.io` signers will never issue certificates with a lifetime
	// longer than 24 hours.
	MaxExpirationSeconds *int32 `json:"maxExpirationSeconds,omitempty"`
	// Write the credential bundle at this path in the projected volume.
	//
	// The credential bundle is a single file that contains multiple PEM blocks.
	// The first PEM block is a PRIVATE KEY block, containing a PKCS#8 private
	// key.
	//
	// The remaining blocks are CERTIFICATE blocks, containing the issued
	// certificate chain from the signer (leaf and any intermediates).
	//
	// Using credentialBundlePath lets your Pod's application code make a single
	// atomic read that retrieves a consistent key and certificate chain.  If you
	// project them to separate files, your application code will need to
	// additionally check that the leaf certificate was issued to the key.
	CredentialBundlePath *string `json:"credentialBundlePath,omitempty"`
	// Write the key at this path in the projected volume.
	//
	// Most applications should use credentialBundlePath.  When using keyPath
	// and certificateChainPath, your application needs to check that the key
	// and leaf certificate are consistent, because it is possible to read the
	// files mid-rotation.
	KeyPath *string `json:"keyPath,omitempty"`
	// Write the certificate chain at this path in the projected volume.
	//
	// Most applications should use credentialBundlePath.  When using keyPath
	// and certificateChainPath, your application needs to check that the key
	// and leaf certificate are consistent, because it is possible to read the
	// files mid-rotation.
	CertificateChainPath *string `json:"certificateChainPath,omitempty"`
	// userAnnotations allow pod authors to pass additional information to
	// the signer implementation.  Kubernetes does not restrict or validate this
	// metadata in any way.
	//
	// These values are copied verbatim into the `spec.unverifiedUserAnnotations` field of
	// the PodCertificateRequest objects that Kubelet creates.
	//
	// Entries are subject to the same validation as object metadata annotations,
	// with the addition that all keys must be domain-prefixed. No restrictions
	// are placed on values, except an overall size limitation on the entire field.
	//
	// Signers should document the keys and values they support. Signers should
	// deny requests that contain keys they do not recognize.
	UserAnnotations map[string]string `json:"userAnnotations,omitempty"`
}

PodCertificateProjectionApplyConfiguration represents a declarative configuration of the PodCertificateProjection type for use with apply.

PodCertificateProjection provides a private key and X.509 certificate in the pod filesystem.

func PodCertificateProjection

func PodCertificateProjection() *PodCertificateProjectionApplyConfiguration

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

func (*PodCertificateProjectionApplyConfiguration) WithCertificateChainPath

WithCertificateChainPath sets the CertificateChainPath 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 CertificateChainPath field is set to the value of the last call.

func (*PodCertificateProjectionApplyConfiguration) WithCredentialBundlePath

WithCredentialBundlePath sets the CredentialBundlePath 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 CredentialBundlePath field is set to the value of the last call.

func (*PodCertificateProjectionApplyConfiguration) WithKeyPath

WithKeyPath sets the KeyPath 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 KeyPath field is set to the value of the last call.

func (*PodCertificateProjectionApplyConfiguration) WithKeyType

WithKeyType sets the KeyType 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 KeyType field is set to the value of the last call.

func (*PodCertificateProjectionApplyConfiguration) WithMaxExpirationSeconds

WithMaxExpirationSeconds sets the MaxExpirationSeconds 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 MaxExpirationSeconds field is set to the value of the last call.

func (*PodCertificateProjectionApplyConfiguration) WithSignerName

WithSignerName sets the SignerName 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 SignerName field is set to the value of the last call.

func (*PodCertificateProjectionApplyConfiguration) WithUserAnnotations

WithUserAnnotations puts the entries into the UserAnnotations 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 UserAnnotations field, overwriting an existing map entries in UserAnnotations field with the same key.

type PodConditionApplyConfiguration

type PodConditionApplyConfiguration struct {
	// Type is the type of the condition.
	// More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
	Type *corev1.PodConditionType `json:"type,omitempty"`
	// If set, this represents the .metadata.generation that the pod condition was set based upon.
	// The PodObservedGenerationTracking feature gate must be enabled to use this field.
	ObservedGeneration *int64 `json:"observedGeneration,omitempty"`
	// Status is the status of the condition.
	// Can be True, False, Unknown.
	// More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
	Status *corev1.ConditionStatus `json:"status,omitempty"`
	// Last time we probed the condition.
	LastProbeTime *metav1.Time `json:"lastProbeTime,omitempty"`
	// Last time the condition transitioned from one status to another.
	LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`
	// Unique, one-word, CamelCase reason for the condition's last transition.
	Reason *string `json:"reason,omitempty"`
	// Human-readable message indicating details about last transition.
	Message *string `json:"message,omitempty"`
}

PodConditionApplyConfiguration represents a declarative configuration of the PodCondition type for use with apply.

PodCondition contains details for the current condition of this pod.

func PodCondition

func PodCondition() *PodConditionApplyConfiguration

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

func (*PodConditionApplyConfiguration) WithLastProbeTime

WithLastProbeTime sets the LastProbeTime 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 LastProbeTime field is set to the value of the last call.

func (*PodConditionApplyConfiguration) 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 (*PodConditionApplyConfiguration) 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 (*PodConditionApplyConfiguration) WithObservedGeneration

func (b *PodConditionApplyConfiguration) WithObservedGeneration(value int64) *PodConditionApplyConfiguration

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 (*PodConditionApplyConfiguration) 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 (*PodConditionApplyConfiguration) 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 (*PodConditionApplyConfiguration) 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 PodDNSConfigApplyConfiguration

type PodDNSConfigApplyConfiguration struct {
	// A list of DNS name server IP addresses.
	// This will be appended to the base nameservers generated from DNSPolicy.
	// Duplicated nameservers will be removed.
	Nameservers []string `json:"nameservers,omitempty"`
	// A list of DNS search domains for host-name lookup.
	// This will be appended to the base search paths generated from DNSPolicy.
	// Duplicated search paths will be removed.
	Searches []string `json:"searches,omitempty"`
	// A list of DNS resolver options.
	// This will be merged with the base options generated from DNSPolicy.
	// Duplicated entries will be removed. Resolution options given in Options
	// will override those that appear in the base DNSPolicy.
	Options []PodDNSConfigOptionApplyConfiguration `json:"options,omitempty"`
}

PodDNSConfigApplyConfiguration represents a declarative configuration of the PodDNSConfig type for use with apply.

PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy.

func PodDNSConfig

func PodDNSConfig() *PodDNSConfigApplyConfiguration

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

func (*PodDNSConfigApplyConfiguration) WithNameservers

WithNameservers adds the given value to the Nameservers 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 Nameservers field.

func (*PodDNSConfigApplyConfiguration) WithOptions

WithOptions adds the given value to the Options 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 Options field.

func (*PodDNSConfigApplyConfiguration) WithSearches

WithSearches adds the given value to the Searches 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 Searches field.

type PodDNSConfigOptionApplyConfiguration

type PodDNSConfigOptionApplyConfiguration struct {
	// Name is this DNS resolver option's name.
	// Required.
	Name *string `json:"name,omitempty"`
	// Value is this DNS resolver option's value.
	Value *string `json:"value,omitempty"`
}

PodDNSConfigOptionApplyConfiguration represents a declarative configuration of the PodDNSConfigOption type for use with apply.

PodDNSConfigOption defines DNS resolver options of a pod.

func PodDNSConfigOption

func PodDNSConfigOption() *PodDNSConfigOptionApplyConfiguration

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

func (*PodDNSConfigOptionApplyConfiguration) 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 (*PodDNSConfigOptionApplyConfiguration) WithValue

WithValue sets the Value 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 Value field is set to the value of the last call.

type PodExtendedResourceClaimStatusApplyConfiguration

type PodExtendedResourceClaimStatusApplyConfiguration struct {
	// RequestMappings identifies the mapping of <container, extended resource backed by DRA> to  device request
	// in the generated ResourceClaim.
	RequestMappings []ContainerExtendedResourceRequestApplyConfiguration `json:"requestMappings,omitempty"`
	// ResourceClaimName is the name of the ResourceClaim that was
	// generated for the Pod in the namespace of the Pod.
	ResourceClaimName *string `json:"resourceClaimName,omitempty"`
}

PodExtendedResourceClaimStatusApplyConfiguration represents a declarative configuration of the PodExtendedResourceClaimStatus type for use with apply.

PodExtendedResourceClaimStatus is stored in the PodStatus for the extended resource requests backed by DRA. It stores the generated name for the corresponding special ResourceClaim created by the scheduler.

func PodExtendedResourceClaimStatus

func PodExtendedResourceClaimStatus() *PodExtendedResourceClaimStatusApplyConfiguration

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

func (*PodExtendedResourceClaimStatusApplyConfiguration) WithRequestMappings

WithRequestMappings adds the given value to the RequestMappings 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 RequestMappings field.

func (*PodExtendedResourceClaimStatusApplyConfiguration) WithResourceClaimName

WithResourceClaimName sets the ResourceClaimName 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 ResourceClaimName field is set to the value of the last call.

type PodIPApplyConfiguration

type PodIPApplyConfiguration struct {
	// IP is the IP address assigned to the pod
	IP *string `json:"ip,omitempty"`
}

PodIPApplyConfiguration represents a declarative configuration of the PodIP type for use with apply.

PodIP represents a single IP address allocated to the pod.

func PodIP

func PodIP() *PodIPApplyConfiguration

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

func (*PodIPApplyConfiguration) 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.

type PodOSApplyConfiguration

type PodOSApplyConfiguration struct {
	// Name is the name of the operating system. The currently supported values are linux and windows.
	// Additional value may be defined in future and can be one of:
	// https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration
	// Clients should expect to handle additional values and treat unrecognized values in this field as os: null
	Name *corev1.OSName `json:"name,omitempty"`
}

PodOSApplyConfiguration represents a declarative configuration of the PodOS type for use with apply.

PodOS defines the OS parameters of a pod.

func PodOS

func PodOS() *PodOSApplyConfiguration

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

func (*PodOSApplyConfiguration) 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.

type PodReadinessGateApplyConfiguration

type PodReadinessGateApplyConfiguration struct {
	// ConditionType refers to a condition in the pod's condition list with matching type.
	ConditionType *corev1.PodConditionType `json:"conditionType,omitempty"`
}

PodReadinessGateApplyConfiguration represents a declarative configuration of the PodReadinessGate type for use with apply.

PodReadinessGate contains the reference to a pod condition

func PodReadinessGate

func PodReadinessGate() *PodReadinessGateApplyConfiguration

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

func (*PodReadinessGateApplyConfiguration) WithConditionType

WithConditionType sets the ConditionType 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 ConditionType field is set to the value of the last call.

type PodResourceClaimApplyConfiguration

type PodResourceClaimApplyConfiguration struct {
	// Name uniquely identifies this resource claim inside the pod.
	// This must be a DNS_LABEL.
	Name *string `json:"name,omitempty"`
	// ResourceClaimName is the name of a ResourceClaim object in the same
	// namespace as this pod.
	//
	// Exactly one of ResourceClaimName and ResourceClaimTemplateName must
	// be set.
	ResourceClaimName *string `json:"resourceClaimName,omitempty"`
	// ResourceClaimTemplateName is the name of a ResourceClaimTemplate
	// object in the same namespace as this pod.
	//
	// The template will be used to create a new ResourceClaim, which will
	// be bound to this pod. When this pod is deleted, the ResourceClaim
	// will also be deleted. The pod name and resource name, along with a
	// generated component, will be used to form a unique name for the
	// ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses.
	//
	// This field is immutable and no changes will be made to the
	// corresponding ResourceClaim by the control plane after creating the
	// ResourceClaim.
	//
	// Exactly one of ResourceClaimName and ResourceClaimTemplateName must
	// be set.
	ResourceClaimTemplateName *string `json:"resourceClaimTemplateName,omitempty"`
}

PodResourceClaimApplyConfiguration represents a declarative configuration of the PodResourceClaim type for use with apply.

PodResourceClaim references exactly one ResourceClaim, either directly or by naming a ResourceClaimTemplate which is then turned into a ResourceClaim for the pod.

It adds a name to it that uniquely identifies the ResourceClaim inside the Pod. Containers that need access to the ResourceClaim reference it with this name.

func PodResourceClaim

func PodResourceClaim() *PodResourceClaimApplyConfiguration

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

func (*PodResourceClaimApplyConfiguration) 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 (*PodResourceClaimApplyConfiguration) WithResourceClaimName

WithResourceClaimName sets the ResourceClaimName 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 ResourceClaimName field is set to the value of the last call.

func (*PodResourceClaimApplyConfiguration) WithResourceClaimTemplateName

func (b *PodResourceClaimApplyConfiguration) WithResourceClaimTemplateName(value string) *PodResourceClaimApplyConfiguration

WithResourceClaimTemplateName sets the ResourceClaimTemplateName 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 ResourceClaimTemplateName field is set to the value of the last call.

type PodResourceClaimStatusApplyConfiguration

type PodResourceClaimStatusApplyConfiguration struct {
	// Name uniquely identifies this resource claim inside the pod.
	// This must match the name of an entry in pod.spec.resourceClaims,
	// which implies that the string must be a DNS_LABEL.
	Name *string `json:"name,omitempty"`
	// ResourceClaimName is the name of the ResourceClaim that was
	// generated for the Pod in the namespace of the Pod. If this is
	// unset, then generating a ResourceClaim was not necessary. The
	// pod.spec.resourceClaims entry can be ignored in this case.
	ResourceClaimName *string `json:"resourceClaimName,omitempty"`
}

PodResourceClaimStatusApplyConfiguration represents a declarative configuration of the PodResourceClaimStatus type for use with apply.

PodResourceClaimStatus is stored in the PodStatus for each PodResourceClaim which references a ResourceClaimTemplate. It stores the generated name for the corresponding ResourceClaim.

func PodResourceClaimStatus

func PodResourceClaimStatus() *PodResourceClaimStatusApplyConfiguration

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

func (*PodResourceClaimStatusApplyConfiguration) 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 (*PodResourceClaimStatusApplyConfiguration) WithResourceClaimName

WithResourceClaimName sets the ResourceClaimName 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 ResourceClaimName field is set to the value of the last call.

type PodSchedulingGateApplyConfiguration

type PodSchedulingGateApplyConfiguration struct {
	// Name of the scheduling gate.
	// Each scheduling gate must have a unique name field.
	Name *string `json:"name,omitempty"`
}

PodSchedulingGateApplyConfiguration represents a declarative configuration of the PodSchedulingGate type for use with apply.

PodSchedulingGate is associated to a Pod to guard its scheduling.

func PodSchedulingGate

func PodSchedulingGate() *PodSchedulingGateApplyConfiguration

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

func (*PodSchedulingGateApplyConfiguration) 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.

type PodSecurityContextApplyConfiguration

type PodSecurityContextApplyConfiguration struct {
	// The SELinux context to be applied to all containers.
	// If unspecified, the container runtime will allocate a random SELinux context for each
	// container.  May also be set in SecurityContext.  If set in
	// both SecurityContext and PodSecurityContext, the value specified in SecurityContext
	// takes precedence for that container.
	// Note that this field cannot be set when spec.os.name is windows.
	SELinuxOptions *SELinuxOptionsApplyConfiguration `json:"seLinuxOptions,omitempty"`
	// The Windows specific settings applied to all containers.
	// If unspecified, the options within a container's SecurityContext will be used.
	// If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
	// Note that this field cannot be set when spec.os.name is linux.
	WindowsOptions *WindowsSecurityContextOptionsApplyConfiguration `json:"windowsOptions,omitempty"`
	// The UID to run the entrypoint of the container process.
	// Defaults to user specified in image metadata if unspecified.
	// May also be set in SecurityContext.  If set in both SecurityContext and
	// PodSecurityContext, the value specified in SecurityContext takes precedence
	// for that container.
	// Note that this field cannot be set when spec.os.name is windows.
	RunAsUser *int64 `json:"runAsUser,omitempty"`
	// The GID to run the entrypoint of the container process.
	// Uses runtime default if unset.
	// May also be set in SecurityContext.  If set in both SecurityContext and
	// PodSecurityContext, the value specified in SecurityContext takes precedence
	// for that container.
	// Note that this field cannot be set when spec.os.name is windows.
	RunAsGroup *int64 `json:"runAsGroup,omitempty"`
	// Indicates that the container must run as a non-root user.
	// If true, the Kubelet will validate the image at runtime to ensure that it
	// does not run as UID 0 (root) and fail to start the container if it does.
	// If unset or false, no such validation will be performed.
	// May also be set in SecurityContext.  If set in both SecurityContext and
	// PodSecurityContext, the value specified in SecurityContext takes precedence.
	RunAsNonRoot *bool `json:"runAsNonRoot,omitempty"`
	// A list of groups applied to the first process run in each container, in
	// addition to the container's primary GID and fsGroup (if specified).  If
	// the SupplementalGroupsPolicy feature is enabled, the
	// supplementalGroupsPolicy field determines whether these are in addition
	// to or instead of any group memberships defined in the container image.
	// If unspecified, no additional groups are added, though group memberships
	// defined in the container image may still be used, depending on the
	// supplementalGroupsPolicy field.
	// Note that this field cannot be set when spec.os.name is windows.
	SupplementalGroups []int64 `json:"supplementalGroups,omitempty"`
	// Defines how supplemental groups of the first container processes are calculated.
	// Valid values are "Merge" and "Strict". If not specified, "Merge" is used.
	// (Alpha) Using the field requires the SupplementalGroupsPolicy feature gate to be enabled
	// and the container runtime must implement support for this feature.
	// Note that this field cannot be set when spec.os.name is windows.
	// TODO: update the default value to "Merge" when spec.os.name is not windows in v1.34
	SupplementalGroupsPolicy *corev1.SupplementalGroupsPolicy `json:"supplementalGroupsPolicy,omitempty"`
	// A special supplemental group that applies to all containers in a pod.
	// Some volume types allow the Kubelet to change the ownership of that volume
	// to be owned by the pod:
	//
	// 1. The owning GID will be the FSGroup
	// 2. The setgid bit is set (new files created in the volume will be owned by FSGroup)
	// 3. The permission bits are OR'd with rw-rw----
	//
	// If unset, the Kubelet will not modify the ownership and permissions of any volume.
	// Note that this field cannot be set when spec.os.name is windows.
	FSGroup *int64 `json:"fsGroup,omitempty"`
	// Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported
	// sysctls (by the container runtime) might fail to launch.
	// Note that this field cannot be set when spec.os.name is windows.
	Sysctls []SysctlApplyConfiguration `json:"sysctls,omitempty"`
	// fsGroupChangePolicy defines behavior of changing ownership and permission of the volume
	// before being exposed inside Pod. This field will only apply to
	// volume types which support fsGroup based ownership(and permissions).
	// It will have no effect on ephemeral volume types such as: secret, configmaps
	// and emptydir.
	// Valid values are "OnRootMismatch" and "Always". If not specified, "Always" is used.
	// Note that this field cannot be set when spec.os.name is windows.
	FSGroupChangePolicy *corev1.PodFSGroupChangePolicy `json:"fsGroupChangePolicy,omitempty"`
	// The seccomp options to use by the containers in this pod.
	// Note that this field cannot be set when spec.os.name is windows.
	SeccompProfile *SeccompProfileApplyConfiguration `json:"seccompProfile,omitempty"`
	// appArmorProfile is the AppArmor options to use by the containers in this pod.
	// Note that this field cannot be set when spec.os.name is windows.
	AppArmorProfile *AppArmorProfileApplyConfiguration `json:"appArmorProfile,omitempty"`
	// seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod.
	// It has no effect on nodes that do not support SELinux or to volumes does not support SELinux.
	// Valid values are "MountOption" and "Recursive".
	//
	// "Recursive" means relabeling of all files on all Pod volumes by the container runtime.
	// This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node.
	//
	// "MountOption" mounts all eligible Pod volumes with `-o context` mount option.
	// This requires all Pods that share the same volume to use the same SELinux label.
	// It is not possible to share the same volume among privileged and unprivileged Pods.
	// Eligible volumes are in-tree FibreChannel and iSCSI volumes, and all CSI volumes
	// whose CSI driver announces SELinux support by setting spec.seLinuxMount: true in their
	// CSIDriver instance. Other volumes are always re-labelled recursively.
	// "MountOption" value is allowed only when SELinuxMount feature gate is enabled.
	//
	// If not specified and SELinuxMount feature gate is enabled, "MountOption" is used.
	// If not specified and SELinuxMount feature gate is disabled, "MountOption" is used for ReadWriteOncePod volumes
	// and "Recursive" for all other volumes.
	//
	// This field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers.
	//
	// All Pods that use the same volume should use the same seLinuxChangePolicy, otherwise some pods can get stuck in ContainerCreating state.
	// Note that this field cannot be set when spec.os.name is windows.
	SELinuxChangePolicy *corev1.PodSELinuxChangePolicy `json:"seLinuxChangePolicy,omitempty"`
}

PodSecurityContextApplyConfiguration represents a declarative configuration of the PodSecurityContext type for use with apply.

PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext.

func PodSecurityContext

func PodSecurityContext() *PodSecurityContextApplyConfiguration

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

func (*PodSecurityContextApplyConfiguration) WithAppArmorProfile

WithAppArmorProfile sets the AppArmorProfile 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 AppArmorProfile field is set to the value of the last call.

func (*PodSecurityContextApplyConfiguration) WithFSGroup

WithFSGroup sets the FSGroup 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 FSGroup field is set to the value of the last call.

func (*PodSecurityContextApplyConfiguration) WithFSGroupChangePolicy

WithFSGroupChangePolicy sets the FSGroupChangePolicy 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 FSGroupChangePolicy field is set to the value of the last call.

func (*PodSecurityContextApplyConfiguration) WithRunAsGroup

WithRunAsGroup sets the RunAsGroup 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 RunAsGroup field is set to the value of the last call.

func (*PodSecurityContextApplyConfiguration) WithRunAsNonRoot

WithRunAsNonRoot sets the RunAsNonRoot 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 RunAsNonRoot field is set to the value of the last call.

func (*PodSecurityContextApplyConfiguration) WithRunAsUser

WithRunAsUser sets the RunAsUser 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 RunAsUser field is set to the value of the last call.

func (*PodSecurityContextApplyConfiguration) WithSELinuxChangePolicy

WithSELinuxChangePolicy sets the SELinuxChangePolicy 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 SELinuxChangePolicy field is set to the value of the last call.

func (*PodSecurityContextApplyConfiguration) WithSELinuxOptions

WithSELinuxOptions sets the SELinuxOptions 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 SELinuxOptions field is set to the value of the last call.

func (*PodSecurityContextApplyConfiguration) WithSeccompProfile

WithSeccompProfile sets the SeccompProfile 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 SeccompProfile field is set to the value of the last call.

func (*PodSecurityContextApplyConfiguration) WithSupplementalGroups

WithSupplementalGroups adds the given value to the SupplementalGroups 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 SupplementalGroups field.

func (*PodSecurityContextApplyConfiguration) WithSupplementalGroupsPolicy

WithSupplementalGroupsPolicy sets the SupplementalGroupsPolicy 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 SupplementalGroupsPolicy field is set to the value of the last call.

func (*PodSecurityContextApplyConfiguration) WithSysctls

WithSysctls adds the given value to the Sysctls 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 Sysctls field.

func (*PodSecurityContextApplyConfiguration) WithWindowsOptions

WithWindowsOptions sets the WindowsOptions 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 WindowsOptions field is set to the value of the last call.

type PodSpecApplyConfiguration

type PodSpecApplyConfiguration struct {
	// List of volumes that can be mounted by containers belonging to the pod.
	// More info: https://kubernetes.io/docs/concepts/storage/volumes
	Volumes []VolumeApplyConfiguration `json:"volumes,omitempty"`
	// List of initialization containers belonging to the pod.
	// Init containers are executed in order prior to containers being started. If any
	// init container fails, the pod is considered to have failed and is handled according
	// to its restartPolicy. The name for an init container or normal container must be
	// unique among all containers.
	// Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.
	// The resourceRequirements of an init container are taken into account during scheduling
	// by finding the highest request/limit for each resource type, and then using the max of
	// that value or the sum of the normal containers. Limits are applied to init containers
	// in a similar fashion.
	// Init containers cannot currently be added or removed.
	// Cannot be updated.
	// More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
	InitContainers []ContainerApplyConfiguration `json:"initContainers,omitempty"`
	// List of containers belonging to the pod.
	// Containers cannot currently be added or removed.
	// There must be at least one container in a Pod.
	// Cannot be updated.
	Containers []ContainerApplyConfiguration `json:"containers,omitempty"`
	// List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing
	// pod to perform user-initiated actions such as debugging. This list cannot be specified when
	// creating a pod, and it cannot be modified by updating the pod spec. In order to add an
	// ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.
	EphemeralContainers []EphemeralContainerApplyConfiguration `json:"ephemeralContainers,omitempty"`
	// Restart policy for all containers within the pod.
	// One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted.
	// Default to Always.
	// More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy
	RestartPolicy *corev1.RestartPolicy `json:"restartPolicy,omitempty"`
	// Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request.
	// Value must be non-negative integer. The value zero indicates stop immediately via
	// the kill signal (no opportunity to shut down).
	// If this value is nil, the default grace period will be used instead.
	// The grace period is the duration in seconds after the processes running in the pod are sent
	// a termination signal and the time when the processes are forcibly halted with a kill signal.
	// Set this value longer than the expected cleanup time for your process.
	// Defaults to 30 seconds.
	TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty"`
	// Optional duration in seconds the pod may be active on the node relative to
	// StartTime before the system will actively try to mark it failed and kill associated containers.
	// Value must be a positive integer.
	ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty"`
	// Set DNS policy for the pod.
	// Defaults to "ClusterFirst".
	// Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'.
	// DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy.
	// To have DNS options set along with hostNetwork, you have to specify DNS policy
	// explicitly to 'ClusterFirstWithHostNet'.
	DNSPolicy *corev1.DNSPolicy `json:"dnsPolicy,omitempty"`
	// NodeSelector is a selector which must be true for the pod to fit on a node.
	// Selector which must match a node's labels for the pod to be scheduled on that node.
	// More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
	NodeSelector map[string]string `json:"nodeSelector,omitempty"`
	// ServiceAccountName is the name of the ServiceAccount to use to run this pod.
	// More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
	ServiceAccountName *string `json:"serviceAccountName,omitempty"`
	// DeprecatedServiceAccount is a deprecated alias for ServiceAccountName.
	// Deprecated: Use serviceAccountName instead.
	DeprecatedServiceAccount *string `json:"serviceAccount,omitempty"`
	// AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.
	AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty"`
	// NodeName indicates in which node this pod is scheduled.
	// If empty, this pod is a candidate for scheduling by the scheduler defined in schedulerName.
	// Once this field is set, the kubelet for this node becomes responsible for the lifecycle of this pod.
	// This field should not be used to express a desire for the pod to be scheduled on a specific node.
	// https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodename
	NodeName *string `json:"nodeName,omitempty"`
	// Host networking requested for this pod. Use the host's network namespace.
	// When using HostNetwork you should specify ports so the scheduler is aware.
	// When `hostNetwork` is true, specified `hostPort` fields in port definitions must match `containerPort`,
	// and unspecified `hostPort` fields in port definitions are defaulted to match `containerPort`.
	// Default to false.
	HostNetwork *bool `json:"hostNetwork,omitempty"`
	// Use the host's pid namespace.
	// Optional: Default to false.
	HostPID *bool `json:"hostPID,omitempty"`
	// Use the host's ipc namespace.
	// Optional: Default to false.
	HostIPC *bool `json:"hostIPC,omitempty"`
	// Share a single process namespace between all of the containers in a pod.
	// When this is set containers will be able to view and signal processes from other containers
	// in the same pod, and the first process in each container will not be assigned PID 1.
	// HostPID and ShareProcessNamespace cannot both be set.
	// Optional: Default to false.
	ShareProcessNamespace *bool `json:"shareProcessNamespace,omitempty"`
	// SecurityContext holds pod-level security attributes and common container settings.
	// Optional: Defaults to empty.  See type description for default values of each field.
	SecurityContext *PodSecurityContextApplyConfiguration `json:"securityContext,omitempty"`
	// ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec.
	// If specified, these secrets will be passed to individual puller implementations for them to use.
	// More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod
	ImagePullSecrets []LocalObjectReferenceApplyConfiguration `json:"imagePullSecrets,omitempty"`
	// Specifies the hostname of the Pod
	// If not specified, the pod's hostname will be set to a system-defined value.
	Hostname *string `json:"hostname,omitempty"`
	// If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>".
	// If not specified, the pod will not have a domainname at all.
	Subdomain *string `json:"subdomain,omitempty"`
	// If specified, the pod's scheduling constraints
	Affinity *AffinityApplyConfiguration `json:"affinity,omitempty"`
	// If specified, the pod will be dispatched by specified scheduler.
	// If not specified, the pod will be dispatched by default scheduler.
	SchedulerName *string `json:"schedulerName,omitempty"`
	// If specified, the pod's tolerations.
	Tolerations []TolerationApplyConfiguration `json:"tolerations,omitempty"`
	// HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts
	// file if specified.
	HostAliases []HostAliasApplyConfiguration `json:"hostAliases,omitempty"`
	// If specified, indicates the pod's priority. "system-node-critical" and
	// "system-cluster-critical" are two special keywords which indicate the
	// highest priorities with the former being the highest priority. Any other
	// name must be defined by creating a PriorityClass object with that name.
	// If not specified, the pod priority will be default or zero if there is no
	// default.
	PriorityClassName *string `json:"priorityClassName,omitempty"`
	// The priority value. Various system components use this field to find the
	// priority of the pod. When Priority Admission Controller is enabled, it
	// prevents users from setting this field. The admission controller populates
	// this field from PriorityClassName.
	// The higher the value, the higher the priority.
	Priority *int32 `json:"priority,omitempty"`
	// Specifies the DNS parameters of a pod.
	// Parameters specified here will be merged to the generated DNS
	// configuration based on DNSPolicy.
	DNSConfig *PodDNSConfigApplyConfiguration `json:"dnsConfig,omitempty"`
	// If specified, all readiness gates will be evaluated for pod readiness.
	// A pod is ready when all its containers are ready AND
	// all conditions specified in the readiness gates have status equal to "True"
	// More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates
	ReadinessGates []PodReadinessGateApplyConfiguration `json:"readinessGates,omitempty"`
	// RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used
	// to run this pod.  If no RuntimeClass resource matches the named class, the pod will not be run.
	// If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an
	// empty definition that uses the default runtime handler.
	// More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class
	RuntimeClassName *string `json:"runtimeClassName,omitempty"`
	// EnableServiceLinks indicates whether information about services should be injected into pod's
	// environment variables, matching the syntax of Docker links.
	// Optional: Defaults to true.
	EnableServiceLinks *bool `json:"enableServiceLinks,omitempty"`
	// PreemptionPolicy is the Policy for preempting pods with lower priority.
	// One of Never, PreemptLowerPriority.
	// Defaults to PreemptLowerPriority if unset.
	PreemptionPolicy *corev1.PreemptionPolicy `json:"preemptionPolicy,omitempty"`
	// Overhead represents the resource overhead associated with running a pod for a given RuntimeClass.
	// This field will be autopopulated at admission time by the RuntimeClass admission controller. If
	// the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests.
	// The RuntimeClass admission controller will reject Pod create requests which have the overhead already
	// set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value
	// defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero.
	// More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md
	Overhead *corev1.ResourceList `json:"overhead,omitempty"`
	// TopologySpreadConstraints describes how a group of pods ought to spread across topology
	// domains. Scheduler will schedule pods in a way which abides by the constraints.
	// All topologySpreadConstraints are ANDed.
	TopologySpreadConstraints []TopologySpreadConstraintApplyConfiguration `json:"topologySpreadConstraints,omitempty"`
	// If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default).
	// In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname).
	// In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters to FQDN.
	// If a pod does not have FQDN, this has no effect.
	// Default to false.
	SetHostnameAsFQDN *bool `json:"setHostnameAsFQDN,omitempty"`
	// Specifies the OS of the containers in the pod.
	// Some pod and container fields are restricted if this is set.
	//
	// If the OS field is set to linux, the following fields must be unset:
	// -securityContext.windowsOptions
	//
	// If the OS field is set to windows, following fields must be unset:
	// - spec.hostPID
	// - spec.hostIPC
	// - spec.hostUsers
	// - spec.resources
	// - spec.securityContext.appArmorProfile
	// - spec.securityContext.seLinuxOptions
	// - spec.securityContext.seccompProfile
	// - spec.securityContext.fsGroup
	// - spec.securityContext.fsGroupChangePolicy
	// - spec.securityContext.sysctls
	// - spec.shareProcessNamespace
	// - spec.securityContext.runAsUser
	// - spec.securityContext.runAsGroup
	// - spec.securityContext.supplementalGroups
	// - spec.securityContext.supplementalGroupsPolicy
	// - spec.containers[*].securityContext.appArmorProfile
	// - spec.containers[*].securityContext.seLinuxOptions
	// - spec.containers[*].securityContext.seccompProfile
	// - spec.containers[*].securityContext.capabilities
	// - spec.containers[*].securityContext.readOnlyRootFilesystem
	// - spec.containers[*].securityContext.privileged
	// - spec.containers[*].securityContext.allowPrivilegeEscalation
	// - spec.containers[*].securityContext.procMount
	// - spec.containers[*].securityContext.runAsUser
	// - spec.containers[*].securityContext.runAsGroup
	OS *PodOSApplyConfiguration `json:"os,omitempty"`
	// Use the host's user namespace.
	// Optional: Default to true.
	// If set to true or not present, the pod will be run in the host user namespace, useful
	// for when the pod needs a feature only available to the host user namespace, such as
	// loading a kernel module with CAP_SYS_MODULE.
	// When set to false, a new userns is created for the pod. Setting false is useful for
	// mitigating container breakout vulnerabilities even allowing users to run their
	// containers as root without actually having root privileges on the host.
	// This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.
	HostUsers *bool `json:"hostUsers,omitempty"`
	// SchedulingGates is an opaque list of values that if specified will block scheduling the pod.
	// If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the
	// scheduler will not attempt to schedule the pod.
	//
	// SchedulingGates can only be set at pod creation time, and be removed only afterwards.
	SchedulingGates []PodSchedulingGateApplyConfiguration `json:"schedulingGates,omitempty"`
	// ResourceClaims defines which ResourceClaims must be allocated
	// and reserved before the Pod is allowed to start. The resources
	// will be made available to those containers which consume them
	// by name.
	//
	// This is a stable field but requires that the
	// DynamicResourceAllocation feature gate is enabled.
	//
	// This field is immutable.
	ResourceClaims []PodResourceClaimApplyConfiguration `json:"resourceClaims,omitempty"`
	// Resources is the total amount of CPU and Memory resources required by all
	// containers in the pod. It supports specifying Requests and Limits for
	// "cpu", "memory" and "hugepages-" resource names only. ResourceClaims are not supported.
	//
	// This field enables fine-grained control over resource allocation for the
	// entire pod, allowing resource sharing among containers in a pod.
	// TODO: For beta graduation, expand this comment with a detailed explanation.
	//
	// This is an alpha field and requires enabling the PodLevelResources feature
	// gate.
	Resources *ResourceRequirementsApplyConfiguration `json:"resources,omitempty"`
	// HostnameOverride specifies an explicit override for the pod's hostname as perceived by the pod.
	// This field only specifies the pod's hostname and does not affect its DNS records.
	// When this field is set to a non-empty string:
	// - It takes precedence over the values set in `hostname` and `subdomain`.
	// - The Pod's hostname will be set to this value.
	// - `setHostnameAsFQDN` must be nil or set to false.
	// - `hostNetwork` must be set to false.
	//
	// This field must be a valid DNS subdomain as defined in RFC 1123 and contain at most 64 characters.
	// Requires the HostnameOverride feature gate to be enabled.
	HostnameOverride *string `json:"hostnameOverride,omitempty"`
	// WorkloadRef provides a reference to the Workload object that this Pod belongs to.
	// This field is used by the scheduler to identify the PodGroup and apply the
	// correct group scheduling policies. The Workload object referenced
	// by this field may not exist at the time the Pod is created.
	// This field is immutable, but a Workload object with the same name
	// may be recreated with different policies. Doing this during pod scheduling
	// may result in the placement not conforming to the expected policies.
	WorkloadRef *WorkloadReferenceApplyConfiguration `json:"workloadRef,omitempty"`
}

PodSpecApplyConfiguration represents a declarative configuration of the PodSpec type for use with apply.

PodSpec is a description of a pod.

func PodSpec

func PodSpec() *PodSpecApplyConfiguration

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

func (*PodSpecApplyConfiguration) WithActiveDeadlineSeconds

func (b *PodSpecApplyConfiguration) WithActiveDeadlineSeconds(value int64) *PodSpecApplyConfiguration

WithActiveDeadlineSeconds sets the ActiveDeadlineSeconds 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 ActiveDeadlineSeconds field is set to the value of the last call.

func (*PodSpecApplyConfiguration) WithAffinity

WithAffinity sets the Affinity 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 Affinity field is set to the value of the last call.

func (*PodSpecApplyConfiguration) WithAutomountServiceAccountToken

func (b *PodSpecApplyConfiguration) WithAutomountServiceAccountToken(value bool) *PodSpecApplyConfiguration

WithAutomountServiceAccountToken sets the AutomountServiceAccountToken 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 AutomountServiceAccountToken field is set to the value of the last call.

func (*PodSpecApplyConfiguration) WithContainers

WithContainers adds the given value to the Containers 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 Containers field.

func (*PodSpecApplyConfiguration) WithDNSConfig

WithDNSConfig sets the DNSConfig 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 DNSConfig field is set to the value of the last call.

func (*PodSpecApplyConfiguration) WithDNSPolicy

WithDNSPolicy sets the DNSPolicy 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 DNSPolicy field is set to the value of the last call.

func (*PodSpecApplyConfiguration) WithDeprecatedServiceAccount

func (b *PodSpecApplyConfiguration) WithDeprecatedServiceAccount(value string) *PodSpecApplyConfiguration

WithDeprecatedServiceAccount sets the DeprecatedServiceAccount 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 DeprecatedServiceAccount field is set to the value of the last call.

func (b *PodSpecApplyConfiguration) WithEnableServiceLinks(value bool) *PodSpecApplyConfiguration

WithEnableServiceLinks sets the EnableServiceLinks 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 EnableServiceLinks field is set to the value of the last call.

func (*PodSpecApplyConfiguration) WithEphemeralContainers

WithEphemeralContainers adds the given value to the EphemeralContainers 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 EphemeralContainers field.

func (*PodSpecApplyConfiguration) WithHostAliases

WithHostAliases adds the given value to the HostAliases 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 HostAliases field.

func (*PodSpecApplyConfiguration) WithHostIPC

WithHostIPC sets the HostIPC 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 HostIPC field is set to the value of the last call.

func (*PodSpecApplyConfiguration) WithHostNetwork

func (b *PodSpecApplyConfiguration) WithHostNetwork(value bool) *PodSpecApplyConfiguration

WithHostNetwork sets the HostNetwork 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 HostNetwork field is set to the value of the last call.

func (*PodSpecApplyConfiguration) WithHostPID

WithHostPID sets the HostPID 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 HostPID field is set to the value of the last call.

func (*PodSpecApplyConfiguration) WithHostUsers

func (b *PodSpecApplyConfiguration) WithHostUsers(value bool) *PodSpecApplyConfiguration

WithHostUsers sets the HostUsers 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 HostUsers field is set to the value of the last call.

func (*PodSpecApplyConfiguration) 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 (*PodSpecApplyConfiguration) WithHostnameOverride

func (b *PodSpecApplyConfiguration) WithHostnameOverride(value string) *PodSpecApplyConfiguration

WithHostnameOverride sets the HostnameOverride 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 HostnameOverride field is set to the value of the last call.

func (*PodSpecApplyConfiguration) WithImagePullSecrets

WithImagePullSecrets adds the given value to the ImagePullSecrets 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 ImagePullSecrets field.

func (*PodSpecApplyConfiguration) WithInitContainers

WithInitContainers adds the given value to the InitContainers 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 InitContainers field.

func (*PodSpecApplyConfiguration) WithNodeName

WithNodeName sets the NodeName 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 NodeName field is set to the value of the last call.

func (*PodSpecApplyConfiguration) WithNodeSelector

func (b *PodSpecApplyConfiguration) WithNodeSelector(entries map[string]string) *PodSpecApplyConfiguration

WithNodeSelector puts the entries into the NodeSelector 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 NodeSelector field, overwriting an existing map entries in NodeSelector field with the same key.

func (*PodSpecApplyConfiguration) WithOS

WithOS sets the OS 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 OS field is set to the value of the last call.

func (*PodSpecApplyConfiguration) WithOverhead

WithOverhead sets the Overhead 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 Overhead field is set to the value of the last call.

func (*PodSpecApplyConfiguration) WithPreemptionPolicy

WithPreemptionPolicy sets the PreemptionPolicy 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 PreemptionPolicy field is set to the value of the last call.

func (*PodSpecApplyConfiguration) WithPriority

WithPriority sets the Priority 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 Priority field is set to the value of the last call.

func (*PodSpecApplyConfiguration) WithPriorityClassName

func (b *PodSpecApplyConfiguration) WithPriorityClassName(value string) *PodSpecApplyConfiguration

WithPriorityClassName sets the PriorityClassName 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 PriorityClassName field is set to the value of the last call.

func (*PodSpecApplyConfiguration) WithReadinessGates

WithReadinessGates adds the given value to the ReadinessGates 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 ReadinessGates field.

func (*PodSpecApplyConfiguration) WithResourceClaims

WithResourceClaims adds the given value to the ResourceClaims 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 ResourceClaims field.

func (*PodSpecApplyConfiguration) WithResources

WithResources sets the Resources 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 Resources field is set to the value of the last call.

func (*PodSpecApplyConfiguration) WithRestartPolicy

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

func (*PodSpecApplyConfiguration) WithRuntimeClassName

func (b *PodSpecApplyConfiguration) WithRuntimeClassName(value string) *PodSpecApplyConfiguration

WithRuntimeClassName sets the RuntimeClassName 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 RuntimeClassName field is set to the value of the last call.

func (*PodSpecApplyConfiguration) WithSchedulerName

func (b *PodSpecApplyConfiguration) WithSchedulerName(value string) *PodSpecApplyConfiguration

WithSchedulerName sets the SchedulerName 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 SchedulerName field is set to the value of the last call.

func (*PodSpecApplyConfiguration) WithSchedulingGates

WithSchedulingGates adds the given value to the SchedulingGates 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 SchedulingGates field.

func (*PodSpecApplyConfiguration) WithSecurityContext

WithSecurityContext sets the SecurityContext 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 SecurityContext field is set to the value of the last call.

func (*PodSpecApplyConfiguration) WithServiceAccountName

func (b *PodSpecApplyConfiguration) WithServiceAccountName(value string) *PodSpecApplyConfiguration

WithServiceAccountName sets the ServiceAccountName 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 ServiceAccountName field is set to the value of the last call.

func (*PodSpecApplyConfiguration) WithSetHostnameAsFQDN

func (b *PodSpecApplyConfiguration) WithSetHostnameAsFQDN(value bool) *PodSpecApplyConfiguration

WithSetHostnameAsFQDN sets the SetHostnameAsFQDN 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 SetHostnameAsFQDN field is set to the value of the last call.

func (*PodSpecApplyConfiguration) WithShareProcessNamespace

func (b *PodSpecApplyConfiguration) WithShareProcessNamespace(value bool) *PodSpecApplyConfiguration

WithShareProcessNamespace sets the ShareProcessNamespace 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 ShareProcessNamespace field is set to the value of the last call.

func (*PodSpecApplyConfiguration) WithSubdomain

WithSubdomain sets the Subdomain 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 Subdomain field is set to the value of the last call.

func (*PodSpecApplyConfiguration) WithTerminationGracePeriodSeconds

func (b *PodSpecApplyConfiguration) WithTerminationGracePeriodSeconds(value int64) *PodSpecApplyConfiguration

WithTerminationGracePeriodSeconds sets the TerminationGracePeriodSeconds 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 TerminationGracePeriodSeconds field is set to the value of the last call.

func (*PodSpecApplyConfiguration) WithTolerations

WithTolerations adds the given value to the Tolerations 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 Tolerations field.

func (*PodSpecApplyConfiguration) WithTopologySpreadConstraints

WithTopologySpreadConstraints adds the given value to the TopologySpreadConstraints 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 TopologySpreadConstraints field.

func (*PodSpecApplyConfiguration) WithVolumes

WithVolumes adds the given value to the Volumes 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 Volumes field.

func (*PodSpecApplyConfiguration) WithWorkloadRef

WithWorkloadRef sets the WorkloadRef 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 WorkloadRef field is set to the value of the last call.

type PodStatusApplyConfiguration

type PodStatusApplyConfiguration struct {
	// If set, this represents the .metadata.generation that the pod status was set based upon.
	// The PodObservedGenerationTracking feature gate must be enabled to use this field.
	ObservedGeneration *int64 `json:"observedGeneration,omitempty"`
	// The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle.
	// The conditions array, the reason and message fields, and the individual container status
	// arrays contain more detail about the pod's status.
	// There are five possible phase values:
	//
	// Pending: The pod has been accepted by the Kubernetes system, but one or more of the
	// container images has not been created. This includes time before being scheduled as
	// well as time spent downloading images over the network, which could take a while.
	// Running: The pod has been bound to a node, and all of the containers have been created.
	// At least one container is still running, or is in the process of starting or restarting.
	// Succeeded: All containers in the pod have terminated in success, and will not be restarted.
	// Failed: All containers in the pod have terminated, and at least one container has
	// terminated in failure. The container either exited with non-zero status or was terminated
	// by the system.
	// Unknown: For some reason the state of the pod could not be obtained, typically due to an
	// error in communicating with the host of the pod.
	//
	// More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase
	Phase *corev1.PodPhase `json:"phase,omitempty"`
	// Current service state of pod.
	// More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
	Conditions []PodConditionApplyConfiguration `json:"conditions,omitempty"`
	// A human readable message indicating details about why the pod is in this condition.
	Message *string `json:"message,omitempty"`
	// A brief CamelCase message indicating details about why the pod is in this state.
	// e.g. 'Evicted'
	Reason *string `json:"reason,omitempty"`
	// nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be
	// scheduled right away as preemption victims receive their graceful termination periods.
	// This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide
	// to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to
	// give the resources on this node to a higher priority pod that is created after preemption.
	// As a result, this field may be different than PodSpec.nodeName when the pod is
	// scheduled.
	NominatedNodeName *string `json:"nominatedNodeName,omitempty"`
	// hostIP holds the IP address of the host to which the pod is assigned. Empty if the pod has not started yet.
	// A pod can be assigned to a node that has a problem in kubelet which in turns mean that HostIP will
	// not be updated even if there is a node is assigned to pod
	HostIP *string `json:"hostIP,omitempty"`
	// hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must
	// match the hostIP field. This list is empty if the pod has not started yet.
	// A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will
	// not be updated even if there is a node is assigned to this pod.
	HostIPs []HostIPApplyConfiguration `json:"hostIPs,omitempty"`
	// podIP address allocated to the pod. Routable at least within the cluster.
	// Empty if not yet allocated.
	PodIP *string `json:"podIP,omitempty"`
	// podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must
	// match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list
	// is empty if no IPs have been allocated yet.
	PodIPs []PodIPApplyConfiguration `json:"podIPs,omitempty"`
	// RFC 3339 date and time at which the object was acknowledged by the Kubelet.
	// This is before the Kubelet pulled the container image(s) for the pod.
	StartTime *metav1.Time `json:"startTime,omitempty"`
	// Statuses of init containers in this pod. The most recent successful non-restartable
	// init container will have ready = true, the most recently started container will have
	// startTime set.
	// Each init container in the pod should have at most one status in this list,
	// and all statuses should be for containers in the pod.
	// However this is not enforced.
	// If a status for a non-existent container is present in the list, or the list has duplicate names,
	// the behavior of various Kubernetes components is not defined and those statuses might be
	// ignored.
	// More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-and-container-status
	InitContainerStatuses []ContainerStatusApplyConfiguration `json:"initContainerStatuses,omitempty"`
	// Statuses of containers in this pod.
	// Each container in the pod should have at most one status in this list,
	// and all statuses should be for containers in the pod.
	// However this is not enforced.
	// If a status for a non-existent container is present in the list, or the list has duplicate names,
	// the behavior of various Kubernetes components is not defined and those statuses might be
	// ignored.
	// More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
	ContainerStatuses []ContainerStatusApplyConfiguration `json:"containerStatuses,omitempty"`
	// The Quality of Service (QOS) classification assigned to the pod based on resource requirements
	// See PodQOSClass type for available QOS classes
	// More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#quality-of-service-classes
	QOSClass *corev1.PodQOSClass `json:"qosClass,omitempty"`
	// Statuses for any ephemeral containers that have run in this pod.
	// Each ephemeral container in the pod should have at most one status in this list,
	// and all statuses should be for containers in the pod.
	// However this is not enforced.
	// If a status for a non-existent container is present in the list, or the list has duplicate names,
	// the behavior of various Kubernetes components is not defined and those statuses might be
	// ignored.
	// More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
	EphemeralContainerStatuses []ContainerStatusApplyConfiguration `json:"ephemeralContainerStatuses,omitempty"`
	// Status of resources resize desired for pod's containers.
	// It is empty if no resources resize is pending.
	// Any changes to container resources will automatically set this to "Proposed"
	// Deprecated: Resize status is moved to two pod conditions PodResizePending and PodResizeInProgress.
	// PodResizePending will track states where the spec has been resized, but the Kubelet has not yet allocated the resources.
	// PodResizeInProgress will track in-progress resizes, and should be present whenever allocated resources != acknowledged resources.
	Resize *corev1.PodResizeStatus `json:"resize,omitempty"`
	// Status of resource claims.
	ResourceClaimStatuses []PodResourceClaimStatusApplyConfiguration `json:"resourceClaimStatuses,omitempty"`
	// Status of extended resource claim backed by DRA.
	ExtendedResourceClaimStatus *PodExtendedResourceClaimStatusApplyConfiguration `json:"extendedResourceClaimStatus,omitempty"`
	// AllocatedResources is the total requests allocated for this pod by the node.
	// If pod-level requests are not set, this will be the total requests aggregated
	// across containers in the pod.
	AllocatedResources *corev1.ResourceList `json:"allocatedResources,omitempty"`
	// Resources represents the compute resource requests and limits that have been
	// applied at the pod level if pod-level requests or limits are set in
	// PodSpec.Resources
	Resources *ResourceRequirementsApplyConfiguration `json:"resources,omitempty"`
}

PodStatusApplyConfiguration represents a declarative configuration of the PodStatus type for use with apply.

PodStatus represents information about the status of a pod. Status may trail the actual state of a system, especially if the node that hosts the pod cannot contact the control plane.

func PodStatus

func PodStatus() *PodStatusApplyConfiguration

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

func (*PodStatusApplyConfiguration) WithAllocatedResources

WithAllocatedResources sets the AllocatedResources 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 AllocatedResources field is set to the value of the last call.

func (*PodStatusApplyConfiguration) 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 (*PodStatusApplyConfiguration) WithContainerStatuses

WithContainerStatuses adds the given value to the ContainerStatuses 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 ContainerStatuses field.

func (*PodStatusApplyConfiguration) WithEphemeralContainerStatuses

func (b *PodStatusApplyConfiguration) WithEphemeralContainerStatuses(values ...*ContainerStatusApplyConfiguration) *PodStatusApplyConfiguration

WithEphemeralContainerStatuses adds the given value to the EphemeralContainerStatuses 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 EphemeralContainerStatuses field.

func (*PodStatusApplyConfiguration) WithExtendedResourceClaimStatus

WithExtendedResourceClaimStatus sets the ExtendedResourceClaimStatus 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 ExtendedResourceClaimStatus field is set to the value of the last call.

func (*PodStatusApplyConfiguration) WithHostIP

WithHostIP sets the HostIP 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 HostIP field is set to the value of the last call.

func (*PodStatusApplyConfiguration) WithHostIPs

WithHostIPs adds the given value to the HostIPs 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 HostIPs field.

func (*PodStatusApplyConfiguration) WithInitContainerStatuses

WithInitContainerStatuses adds the given value to the InitContainerStatuses 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 InitContainerStatuses field.

func (*PodStatusApplyConfiguration) 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 (*PodStatusApplyConfiguration) WithNominatedNodeName

func (b *PodStatusApplyConfiguration) WithNominatedNodeName(value string) *PodStatusApplyConfiguration

WithNominatedNodeName sets the NominatedNodeName 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 NominatedNodeName field is set to the value of the last call.

func (*PodStatusApplyConfiguration) WithObservedGeneration

func (b *PodStatusApplyConfiguration) WithObservedGeneration(value int64) *PodStatusApplyConfiguration

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 (*PodStatusApplyConfiguration) WithPhase

WithPhase sets the Phase 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 Phase field is set to the value of the last call.

func (*PodStatusApplyConfiguration) WithPodIP

WithPodIP sets the PodIP 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 PodIP field is set to the value of the last call.

func (*PodStatusApplyConfiguration) WithPodIPs

WithPodIPs adds the given value to the PodIPs 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 PodIPs field.

func (*PodStatusApplyConfiguration) WithQOSClass

WithQOSClass sets the QOSClass 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 QOSClass field is set to the value of the last call.

func (*PodStatusApplyConfiguration) 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 (*PodStatusApplyConfiguration) WithResize

WithResize sets the Resize 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 Resize field is set to the value of the last call.

func (*PodStatusApplyConfiguration) WithResourceClaimStatuses

WithResourceClaimStatuses adds the given value to the ResourceClaimStatuses 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 ResourceClaimStatuses field.

func (*PodStatusApplyConfiguration) WithResources

WithResources sets the Resources 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 Resources field is set to the value of the last call.

func (*PodStatusApplyConfiguration) WithStartTime

WithStartTime sets the StartTime 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 StartTime field is set to the value of the last call.

type PodTemplateApplyConfiguration

type PodTemplateApplyConfiguration struct {
	metav1.TypeMetaApplyConfiguration `json:",inline"`
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	// Template defines the pods that will be created from this pod template.
	// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	Template *PodTemplateSpecApplyConfiguration `json:"template,omitempty"`
}

PodTemplateApplyConfiguration represents a declarative configuration of the PodTemplate type for use with apply.

PodTemplate describes a template for creating copies of a predefined pod.

func ExtractPodTemplate

func ExtractPodTemplate(podTemplate *corev1.PodTemplate, fieldManager string) (*PodTemplateApplyConfiguration, error)

ExtractPodTemplate extracts the applied configuration owned by fieldManager from podTemplate. If no managedFields are found in podTemplate for fieldManager, a PodTemplateApplyConfiguration 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. podTemplate must be a unmodified PodTemplate API object that was retrieved from the Kubernetes API. ExtractPodTemplate 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 ExtractPodTemplateFrom

func ExtractPodTemplateFrom(podTemplate *corev1.PodTemplate, fieldManager string, subresource string) (*PodTemplateApplyConfiguration, error)

ExtractPodTemplateFrom extracts the applied configuration owned by fieldManager from podTemplate for the specified subresource. Pass an empty string for subresource to extract the main resource. Common subresources include "status", "scale", etc. podTemplate must be a unmodified PodTemplate API object that was retrieved from the Kubernetes API. ExtractPodTemplateFrom 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 PodTemplate

func PodTemplate(name, namespace string) *PodTemplateApplyConfiguration

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

func (*PodTemplateApplyConfiguration) GetAPIVersion

func (b *PodTemplateApplyConfiguration) GetAPIVersion() *string

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

func (*PodTemplateApplyConfiguration) GetKind

func (b *PodTemplateApplyConfiguration) GetKind() *string

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

func (*PodTemplateApplyConfiguration) GetName

func (b *PodTemplateApplyConfiguration) GetName() *string

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

func (*PodTemplateApplyConfiguration) GetNamespace

func (b *PodTemplateApplyConfiguration) GetNamespace() *string

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

func (PodTemplateApplyConfiguration) IsApplyConfiguration

func (b PodTemplateApplyConfiguration) IsApplyConfiguration()

func (*PodTemplateApplyConfiguration) 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 (*PodTemplateApplyConfiguration) 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 (*PodTemplateApplyConfiguration) 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 (*PodTemplateApplyConfiguration) WithDeletionGracePeriodSeconds

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

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 (*PodTemplateApplyConfiguration) 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 (*PodTemplateApplyConfiguration) 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 (*PodTemplateApplyConfiguration) 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 (*PodTemplateApplyConfiguration) 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 (*PodTemplateApplyConfiguration) 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 (*PodTemplateApplyConfiguration) 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 (*PodTemplateApplyConfiguration) 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 (*PodTemplateApplyConfiguration) 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 (*PodTemplateApplyConfiguration) 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 (*PodTemplateApplyConfiguration) 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 (*PodTemplateApplyConfiguration) 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 (*PodTemplateApplyConfiguration) 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 PodTemplateSpecApplyConfiguration

type PodTemplateSpecApplyConfiguration struct {
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	// Specification of the desired behavior of the pod.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	Spec *PodSpecApplyConfiguration `json:"spec,omitempty"`
}

PodTemplateSpecApplyConfiguration represents a declarative configuration of the PodTemplateSpec type for use with apply.

PodTemplateSpec describes the data a pod should have when created from a template

func PodTemplateSpec

func PodTemplateSpec() *PodTemplateSpecApplyConfiguration

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

func (*PodTemplateSpecApplyConfiguration) GetName

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

func (*PodTemplateSpecApplyConfiguration) GetNamespace

func (b *PodTemplateSpecApplyConfiguration) GetNamespace() *string

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

func (*PodTemplateSpecApplyConfiguration) 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 (*PodTemplateSpecApplyConfiguration) 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 (*PodTemplateSpecApplyConfiguration) WithDeletionGracePeriodSeconds

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

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 (*PodTemplateSpecApplyConfiguration) 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 (*PodTemplateSpecApplyConfiguration) 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 (*PodTemplateSpecApplyConfiguration) 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 (*PodTemplateSpecApplyConfiguration) 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 (*PodTemplateSpecApplyConfiguration) 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 (*PodTemplateSpecApplyConfiguration) 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 (*PodTemplateSpecApplyConfiguration) 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 (*PodTemplateSpecApplyConfiguration) 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 (*PodTemplateSpecApplyConfiguration) 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 (*PodTemplateSpecApplyConfiguration) 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 (*PodTemplateSpecApplyConfiguration) 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 PortStatusApplyConfiguration

type PortStatusApplyConfiguration struct {
	// Port is the port number of the service port of which status is recorded here
	Port *int32 `json:"port,omitempty"`
	// Protocol is the protocol of the service port of which status is recorded here
	// The supported values are: "TCP", "UDP", "SCTP"
	Protocol *corev1.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"`
}

PortStatusApplyConfiguration represents a declarative configuration of the PortStatus type for use with apply.

PortStatus represents the error condition of a service port

func PortStatus

func PortStatus() *PortStatusApplyConfiguration

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

func (*PortStatusApplyConfiguration) 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 (*PortStatusApplyConfiguration) 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 (*PortStatusApplyConfiguration) 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 PortworxVolumeSourceApplyConfiguration

type PortworxVolumeSourceApplyConfiguration struct {
	// volumeID uniquely identifies a Portworx volume
	VolumeID *string `json:"volumeID,omitempty"`
	// fSType represents the filesystem type to mount
	// Must be a filesystem type supported by the host operating system.
	// Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified.
	FSType *string `json:"fsType,omitempty"`
	// readOnly defaults to false (read/write). ReadOnly here will force
	// the ReadOnly setting in VolumeMounts.
	ReadOnly *bool `json:"readOnly,omitempty"`
}

PortworxVolumeSourceApplyConfiguration represents a declarative configuration of the PortworxVolumeSource type for use with apply.

PortworxVolumeSource represents a Portworx volume resource.

func PortworxVolumeSource

func PortworxVolumeSource() *PortworxVolumeSourceApplyConfiguration

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

func (*PortworxVolumeSourceApplyConfiguration) WithFSType

WithFSType sets the FSType 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 FSType field is set to the value of the last call.

func (*PortworxVolumeSourceApplyConfiguration) WithReadOnly

WithReadOnly sets the ReadOnly 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 ReadOnly field is set to the value of the last call.

func (*PortworxVolumeSourceApplyConfiguration) WithVolumeID

WithVolumeID sets the VolumeID 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 VolumeID field is set to the value of the last call.

type PreferredSchedulingTermApplyConfiguration

type PreferredSchedulingTermApplyConfiguration struct {
	// Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.
	Weight *int32 `json:"weight,omitempty"`
	// A node selector term, associated with the corresponding weight.
	Preference *NodeSelectorTermApplyConfiguration `json:"preference,omitempty"`
}

PreferredSchedulingTermApplyConfiguration represents a declarative configuration of the PreferredSchedulingTerm type for use with apply.

An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).

func PreferredSchedulingTerm

func PreferredSchedulingTerm() *PreferredSchedulingTermApplyConfiguration

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

func (*PreferredSchedulingTermApplyConfiguration) WithPreference

WithPreference sets the Preference 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 Preference field is set to the value of the last call.

func (*PreferredSchedulingTermApplyConfiguration) WithWeight

WithWeight sets the Weight 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 Weight field is set to the value of the last call.

type ProbeApplyConfiguration

type ProbeApplyConfiguration struct {
	// The action taken to determine the health of a container
	ProbeHandlerApplyConfiguration `json:",inline"`
	// Number of seconds after the container has started before liveness probes are initiated.
	// More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
	InitialDelaySeconds *int32 `json:"initialDelaySeconds,omitempty"`
	// Number of seconds after which the probe times out.
	// Defaults to 1 second. Minimum value is 1.
	// More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
	TimeoutSeconds *int32 `json:"timeoutSeconds,omitempty"`
	// How often (in seconds) to perform the probe.
	// Default to 10 seconds. Minimum value is 1.
	PeriodSeconds *int32 `json:"periodSeconds,omitempty"`
	// Minimum consecutive successes for the probe to be considered successful after having failed.
	// Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.
	SuccessThreshold *int32 `json:"successThreshold,omitempty"`
	// Minimum consecutive failures for the probe to be considered failed after having succeeded.
	// Defaults to 3. Minimum value is 1.
	FailureThreshold *int32 `json:"failureThreshold,omitempty"`
	// Optional duration in seconds the pod needs to terminate gracefully upon probe failure.
	// The grace period is the duration in seconds after the processes running in the pod are sent
	// a termination signal and the time when the processes are forcibly halted with a kill signal.
	// Set this value longer than the expected cleanup time for your process.
	// If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this
	// value overrides the value provided by the pod spec.
	// Value must be non-negative integer. The value zero indicates stop immediately via
	// the kill signal (no opportunity to shut down).
	// This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.
	// Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.
	TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty"`
}

ProbeApplyConfiguration represents a declarative configuration of the Probe type for use with apply.

Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.

func Probe

func Probe() *ProbeApplyConfiguration

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

func (*ProbeApplyConfiguration) WithExec

WithExec sets the Exec 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 Exec field is set to the value of the last call.

func (*ProbeApplyConfiguration) WithFailureThreshold

func (b *ProbeApplyConfiguration) WithFailureThreshold(value int32) *ProbeApplyConfiguration

WithFailureThreshold sets the FailureThreshold 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 FailureThreshold field is set to the value of the last call.

func (*ProbeApplyConfiguration) WithGRPC

WithGRPC sets the GRPC 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 GRPC field is set to the value of the last call.

func (*ProbeApplyConfiguration) WithHTTPGet

WithHTTPGet sets the HTTPGet 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 HTTPGet field is set to the value of the last call.

func (*ProbeApplyConfiguration) WithInitialDelaySeconds

func (b *ProbeApplyConfiguration) WithInitialDelaySeconds(value int32) *ProbeApplyConfiguration

WithInitialDelaySeconds sets the InitialDelaySeconds 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 InitialDelaySeconds field is set to the value of the last call.

func (*ProbeApplyConfiguration) WithPeriodSeconds

func (b *ProbeApplyConfiguration) WithPeriodSeconds(value int32) *ProbeApplyConfiguration

WithPeriodSeconds sets the PeriodSeconds 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 PeriodSeconds field is set to the value of the last call.

func (*ProbeApplyConfiguration) WithSuccessThreshold

func (b *ProbeApplyConfiguration) WithSuccessThreshold(value int32) *ProbeApplyConfiguration

WithSuccessThreshold sets the SuccessThreshold 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 SuccessThreshold field is set to the value of the last call.

func (*ProbeApplyConfiguration) WithTCPSocket

WithTCPSocket sets the TCPSocket 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 TCPSocket field is set to the value of the last call.

func (*ProbeApplyConfiguration) WithTerminationGracePeriodSeconds

func (b *ProbeApplyConfiguration) WithTerminationGracePeriodSeconds(value int64) *ProbeApplyConfiguration

WithTerminationGracePeriodSeconds sets the TerminationGracePeriodSeconds 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 TerminationGracePeriodSeconds field is set to the value of the last call.

func (*ProbeApplyConfiguration) WithTimeoutSeconds

func (b *ProbeApplyConfiguration) WithTimeoutSeconds(value int32) *ProbeApplyConfiguration

WithTimeoutSeconds sets the TimeoutSeconds 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 TimeoutSeconds field is set to the value of the last call.

type ProbeHandlerApplyConfiguration

type ProbeHandlerApplyConfiguration struct {
	// Exec specifies a command to execute in the container.
	Exec *ExecActionApplyConfiguration `json:"exec,omitempty"`
	// HTTPGet specifies an HTTP GET request to perform.
	HTTPGet *HTTPGetActionApplyConfiguration `json:"httpGet,omitempty"`
	// TCPSocket specifies a connection to a TCP port.
	TCPSocket *TCPSocketActionApplyConfiguration `json:"tcpSocket,omitempty"`
	// GRPC specifies a GRPC HealthCheckRequest.
	GRPC *GRPCActionApplyConfiguration `json:"grpc,omitempty"`
}

ProbeHandlerApplyConfiguration represents a declarative configuration of the ProbeHandler type for use with apply.

ProbeHandler defines a specific action that should be taken in a probe. One and only one of the fields must be specified.

func ProbeHandler

func ProbeHandler() *ProbeHandlerApplyConfiguration

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

func (*ProbeHandlerApplyConfiguration) WithExec

WithExec sets the Exec 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 Exec field is set to the value of the last call.

func (*ProbeHandlerApplyConfiguration) WithGRPC

WithGRPC sets the GRPC 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 GRPC field is set to the value of the last call.

func (*ProbeHandlerApplyConfiguration) WithHTTPGet

WithHTTPGet sets the HTTPGet 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 HTTPGet field is set to the value of the last call.

func (*ProbeHandlerApplyConfiguration) WithTCPSocket

WithTCPSocket sets the TCPSocket 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 TCPSocket field is set to the value of the last call.

type ProjectedVolumeSourceApplyConfiguration

type ProjectedVolumeSourceApplyConfiguration struct {
	// sources is the list of volume projections. Each entry in this list
	// handles one source.
	Sources []VolumeProjectionApplyConfiguration `json:"sources,omitempty"`
	// defaultMode are the mode bits used to set permissions on created files by default.
	// Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
	// YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
	// Directories within the path are not affected by this setting.
	// This might be in conflict with other options that affect the file
	// mode, like fsGroup, and the result can be other mode bits set.
	DefaultMode *int32 `json:"defaultMode,omitempty"`
}

ProjectedVolumeSourceApplyConfiguration represents a declarative configuration of the ProjectedVolumeSource type for use with apply.

Represents a projected volume source

func ProjectedVolumeSource

func ProjectedVolumeSource() *ProjectedVolumeSourceApplyConfiguration

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

func (*ProjectedVolumeSourceApplyConfiguration) WithDefaultMode

WithDefaultMode sets the DefaultMode 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 DefaultMode field is set to the value of the last call.

func (*ProjectedVolumeSourceApplyConfiguration) WithSources

WithSources adds the given value to the Sources 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 Sources field.

type QuobyteVolumeSourceApplyConfiguration

type QuobyteVolumeSourceApplyConfiguration struct {
	// registry represents a single or multiple Quobyte Registry services
	// specified as a string as host:port pair (multiple entries are separated with commas)
	// which acts as the central registry for volumes
	Registry *string `json:"registry,omitempty"`
	// volume is a string that references an already created Quobyte volume by name.
	Volume *string `json:"volume,omitempty"`
	// readOnly here will force the Quobyte volume to be mounted with read-only permissions.
	// Defaults to false.
	ReadOnly *bool `json:"readOnly,omitempty"`
	// user to map volume access to
	// Defaults to serivceaccount user
	User *string `json:"user,omitempty"`
	// group to map volume access to
	// Default is no group
	Group *string `json:"group,omitempty"`
	// tenant owning the given Quobyte volume in the Backend
	// Used with dynamically provisioned Quobyte volumes, value is set by the plugin
	Tenant *string `json:"tenant,omitempty"`
}

QuobyteVolumeSourceApplyConfiguration represents a declarative configuration of the QuobyteVolumeSource type for use with apply.

Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling.

func QuobyteVolumeSource

func QuobyteVolumeSource() *QuobyteVolumeSourceApplyConfiguration

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

func (*QuobyteVolumeSourceApplyConfiguration) WithGroup

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

func (*QuobyteVolumeSourceApplyConfiguration) WithReadOnly

WithReadOnly sets the ReadOnly 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 ReadOnly field is set to the value of the last call.

func (*QuobyteVolumeSourceApplyConfiguration) WithRegistry

WithRegistry sets the Registry 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 Registry field is set to the value of the last call.

func (*QuobyteVolumeSourceApplyConfiguration) WithTenant

WithTenant sets the Tenant 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 Tenant field is set to the value of the last call.

func (*QuobyteVolumeSourceApplyConfiguration) WithUser

WithUser sets the User 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 User field is set to the value of the last call.

func (*QuobyteVolumeSourceApplyConfiguration) WithVolume

WithVolume sets the Volume 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 Volume field is set to the value of the last call.

type RBDPersistentVolumeSourceApplyConfiguration

type RBDPersistentVolumeSourceApplyConfiguration struct {
	// monitors is a collection of Ceph monitors.
	// More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
	CephMonitors []string `json:"monitors,omitempty"`
	// image is the rados image name.
	// More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
	RBDImage *string `json:"image,omitempty"`
	// fsType is the filesystem type of the volume that you want to mount.
	// Tip: Ensure that the filesystem type is supported by the host operating system.
	// Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd
	// TODO: how do we prevent errors in the filesystem from compromising the machine
	FSType *string `json:"fsType,omitempty"`
	// pool is the rados pool name.
	// Default is rbd.
	// More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
	RBDPool *string `json:"pool,omitempty"`
	// user is the rados user name.
	// Default is admin.
	// More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
	RadosUser *string `json:"user,omitempty"`
	// keyring is the path to key ring for RBDUser.
	// Default is /etc/ceph/keyring.
	// More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
	Keyring *string `json:"keyring,omitempty"`
	// secretRef is name of the authentication secret for RBDUser. If provided
	// overrides keyring.
	// Default is nil.
	// More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
	SecretRef *SecretReferenceApplyConfiguration `json:"secretRef,omitempty"`
	// readOnly here will force the ReadOnly setting in VolumeMounts.
	// Defaults to false.
	// More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
	ReadOnly *bool `json:"readOnly,omitempty"`
}

RBDPersistentVolumeSourceApplyConfiguration represents a declarative configuration of the RBDPersistentVolumeSource type for use with apply.

Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.

func RBDPersistentVolumeSource

func RBDPersistentVolumeSource() *RBDPersistentVolumeSourceApplyConfiguration

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

func (*RBDPersistentVolumeSourceApplyConfiguration) WithCephMonitors

WithCephMonitors adds the given value to the CephMonitors 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 CephMonitors field.

func (*RBDPersistentVolumeSourceApplyConfiguration) WithFSType

WithFSType sets the FSType 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 FSType field is set to the value of the last call.

func (*RBDPersistentVolumeSourceApplyConfiguration) WithKeyring

WithKeyring sets the Keyring 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 Keyring field is set to the value of the last call.

func (*RBDPersistentVolumeSourceApplyConfiguration) WithRBDImage

WithRBDImage sets the RBDImage 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 RBDImage field is set to the value of the last call.

func (*RBDPersistentVolumeSourceApplyConfiguration) WithRBDPool

WithRBDPool sets the RBDPool 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 RBDPool field is set to the value of the last call.

func (*RBDPersistentVolumeSourceApplyConfiguration) WithRadosUser

WithRadosUser sets the RadosUser 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 RadosUser field is set to the value of the last call.

func (*RBDPersistentVolumeSourceApplyConfiguration) WithReadOnly

WithReadOnly sets the ReadOnly 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 ReadOnly field is set to the value of the last call.

func (*RBDPersistentVolumeSourceApplyConfiguration) WithSecretRef

WithSecretRef sets the SecretRef 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 SecretRef field is set to the value of the last call.

type RBDVolumeSourceApplyConfiguration

type RBDVolumeSourceApplyConfiguration struct {
	// monitors is a collection of Ceph monitors.
	// More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
	CephMonitors []string `json:"monitors,omitempty"`
	// image is the rados image name.
	// More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
	RBDImage *string `json:"image,omitempty"`
	// fsType is the filesystem type of the volume that you want to mount.
	// Tip: Ensure that the filesystem type is supported by the host operating system.
	// Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd
	// TODO: how do we prevent errors in the filesystem from compromising the machine
	FSType *string `json:"fsType,omitempty"`
	// pool is the rados pool name.
	// Default is rbd.
	// More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
	RBDPool *string `json:"pool,omitempty"`
	// user is the rados user name.
	// Default is admin.
	// More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
	RadosUser *string `json:"user,omitempty"`
	// keyring is the path to key ring for RBDUser.
	// Default is /etc/ceph/keyring.
	// More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
	Keyring *string `json:"keyring,omitempty"`
	// secretRef is name of the authentication secret for RBDUser. If provided
	// overrides keyring.
	// Default is nil.
	// More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
	SecretRef *LocalObjectReferenceApplyConfiguration `json:"secretRef,omitempty"`
	// readOnly here will force the ReadOnly setting in VolumeMounts.
	// Defaults to false.
	// More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
	ReadOnly *bool `json:"readOnly,omitempty"`
}

RBDVolumeSourceApplyConfiguration represents a declarative configuration of the RBDVolumeSource type for use with apply.

Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.

func RBDVolumeSource

func RBDVolumeSource() *RBDVolumeSourceApplyConfiguration

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

func (*RBDVolumeSourceApplyConfiguration) WithCephMonitors

WithCephMonitors adds the given value to the CephMonitors 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 CephMonitors field.

func (*RBDVolumeSourceApplyConfiguration) WithFSType

WithFSType sets the FSType 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 FSType field is set to the value of the last call.

func (*RBDVolumeSourceApplyConfiguration) WithKeyring

WithKeyring sets the Keyring 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 Keyring field is set to the value of the last call.

func (*RBDVolumeSourceApplyConfiguration) WithRBDImage

WithRBDImage sets the RBDImage 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 RBDImage field is set to the value of the last call.

func (*RBDVolumeSourceApplyConfiguration) WithRBDPool

WithRBDPool sets the RBDPool 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 RBDPool field is set to the value of the last call.

func (*RBDVolumeSourceApplyConfiguration) WithRadosUser

WithRadosUser sets the RadosUser 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 RadosUser field is set to the value of the last call.

func (*RBDVolumeSourceApplyConfiguration) WithReadOnly

WithReadOnly sets the ReadOnly 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 ReadOnly field is set to the value of the last call.

func (*RBDVolumeSourceApplyConfiguration) WithSecretRef

WithSecretRef sets the SecretRef 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 SecretRef field is set to the value of the last call.

type ReplicationControllerApplyConfiguration

type ReplicationControllerApplyConfiguration struct {
	metav1.TypeMetaApplyConfiguration `json:",inline"`
	// If the Labels of a ReplicationController are empty, they are defaulted to
	// be the same as the Pod(s) that the replication controller manages.
	// Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	// Spec defines the specification of the desired behavior of the replication controller.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	Spec *ReplicationControllerSpecApplyConfiguration `json:"spec,omitempty"`
	// Status is the most recently observed status of the replication controller.
	// 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 *ReplicationControllerStatusApplyConfiguration `json:"status,omitempty"`
}

ReplicationControllerApplyConfiguration represents a declarative configuration of the ReplicationController type for use with apply.

ReplicationController represents the configuration of a replication controller.

func ExtractReplicationController

func ExtractReplicationController(replicationController *corev1.ReplicationController, fieldManager string) (*ReplicationControllerApplyConfiguration, error)

ExtractReplicationController extracts the applied configuration owned by fieldManager from replicationController. If no managedFields are found in replicationController for fieldManager, a ReplicationControllerApplyConfiguration 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. replicationController must be a unmodified ReplicationController API object that was retrieved from the Kubernetes API. ExtractReplicationController 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 ExtractReplicationControllerFrom

func ExtractReplicationControllerFrom(replicationController *corev1.ReplicationController, fieldManager string, subresource string) (*ReplicationControllerApplyConfiguration, error)

ExtractReplicationControllerFrom extracts the applied configuration owned by fieldManager from replicationController for the specified subresource. Pass an empty string for subresource to extract the main resource. Common subresources include "status", "scale", etc. replicationController must be a unmodified ReplicationController API object that was retrieved from the Kubernetes API. ExtractReplicationControllerFrom 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 ExtractReplicationControllerScale

func ExtractReplicationControllerScale(replicationController *corev1.ReplicationController, fieldManager string) (*ReplicationControllerApplyConfiguration, error)

ExtractReplicationControllerScale extracts the applied configuration owned by fieldManager from replicationController for the scale subresource.

func ExtractReplicationControllerStatus

func ExtractReplicationControllerStatus(replicationController *corev1.ReplicationController, fieldManager string) (*ReplicationControllerApplyConfiguration, error)

ExtractReplicationControllerStatus extracts the applied configuration owned by fieldManager from replicationController for the status subresource.

func ReplicationController

func ReplicationController(name, namespace string) *ReplicationControllerApplyConfiguration

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

func (*ReplicationControllerApplyConfiguration) GetAPIVersion

func (b *ReplicationControllerApplyConfiguration) GetAPIVersion() *string

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

func (*ReplicationControllerApplyConfiguration) GetKind

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

func (*ReplicationControllerApplyConfiguration) GetName

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

func (*ReplicationControllerApplyConfiguration) GetNamespace

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

func (ReplicationControllerApplyConfiguration) IsApplyConfiguration

func (b ReplicationControllerApplyConfiguration) IsApplyConfiguration()

func (*ReplicationControllerApplyConfiguration) 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 (*ReplicationControllerApplyConfiguration) 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 (*ReplicationControllerApplyConfiguration) 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 (*ReplicationControllerApplyConfiguration) WithDeletionGracePeriodSeconds

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 (*ReplicationControllerApplyConfiguration) 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 (*ReplicationControllerApplyConfiguration) 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 (*ReplicationControllerApplyConfiguration) 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 (*ReplicationControllerApplyConfiguration) 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 (*ReplicationControllerApplyConfiguration) 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 (*ReplicationControllerApplyConfiguration) 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 (*ReplicationControllerApplyConfiguration) 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 (*ReplicationControllerApplyConfiguration) 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 (*ReplicationControllerApplyConfiguration) 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 (*ReplicationControllerApplyConfiguration) 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 (*ReplicationControllerApplyConfiguration) 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 (*ReplicationControllerApplyConfiguration) 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 (*ReplicationControllerApplyConfiguration) 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 ReplicationControllerConditionApplyConfiguration

type ReplicationControllerConditionApplyConfiguration struct {
	// Type of replication controller condition.
	Type *corev1.ReplicationControllerConditionType `json:"type,omitempty"`
	// Status of the condition, one of True, False, Unknown.
	Status *corev1.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"`
}

ReplicationControllerConditionApplyConfiguration represents a declarative configuration of the ReplicationControllerCondition type for use with apply.

ReplicationControllerCondition describes the state of a replication controller at a certain point.

func ReplicationControllerCondition

func ReplicationControllerCondition() *ReplicationControllerConditionApplyConfiguration

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

func (*ReplicationControllerConditionApplyConfiguration) 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 (*ReplicationControllerConditionApplyConfiguration) 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 (*ReplicationControllerConditionApplyConfiguration) 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 (*ReplicationControllerConditionApplyConfiguration) 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 (*ReplicationControllerConditionApplyConfiguration) 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 ReplicationControllerSpecApplyConfiguration

type ReplicationControllerSpecApplyConfiguration struct {
	// Replicas is the number of desired replicas.
	// This is a pointer to distinguish between explicit zero and unspecified.
	// Defaults to 1.
	// More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller
	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 Replicas count.
	// If 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 replication
	// controller, if empty defaulted to labels on Pod template.
	// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
	Selector map[string]string `json:"selector,omitempty"`
	// Template is the object that describes the pod that will be created if
	// insufficient replicas are detected. This takes precedence over a TemplateRef.
	// The only allowed template.spec.restartPolicy value is "Always".
	// More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
	Template *PodTemplateSpecApplyConfiguration `json:"template,omitempty"`
}

ReplicationControllerSpecApplyConfiguration represents a declarative configuration of the ReplicationControllerSpec type for use with apply.

ReplicationControllerSpec is the specification of a replication controller.

func ReplicationControllerSpec

func ReplicationControllerSpec() *ReplicationControllerSpecApplyConfiguration

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

func (*ReplicationControllerSpecApplyConfiguration) 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 (*ReplicationControllerSpecApplyConfiguration) 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 (*ReplicationControllerSpecApplyConfiguration) WithSelector

WithSelector puts the entries into the Selector 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 Selector field, overwriting an existing map entries in Selector field with the same key.

func (*ReplicationControllerSpecApplyConfiguration) 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 ReplicationControllerStatusApplyConfiguration

type ReplicationControllerStatusApplyConfiguration struct {
	// Replicas is the most recently observed number of replicas.
	// More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller
	Replicas *int32 `json:"replicas,omitempty"`
	// The number of pods that have labels matching the labels of the pod template of the replication controller.
	FullyLabeledReplicas *int32 `json:"fullyLabeledReplicas,omitempty"`
	// The number of ready replicas for this replication controller.
	ReadyReplicas *int32 `json:"readyReplicas,omitempty"`
	// The number of available replicas (ready for at least minReadySeconds) for this replication controller.
	AvailableReplicas *int32 `json:"availableReplicas,omitempty"`
	// ObservedGeneration reflects the generation of the most recently observed replication controller.
	ObservedGeneration *int64 `json:"observedGeneration,omitempty"`
	// Represents the latest available observations of a replication controller's current state.
	Conditions []ReplicationControllerConditionApplyConfiguration `json:"conditions,omitempty"`
}

ReplicationControllerStatusApplyConfiguration represents a declarative configuration of the ReplicationControllerStatus type for use with apply.

ReplicationControllerStatus represents the current status of a replication controller.

func ReplicationControllerStatus

func ReplicationControllerStatus() *ReplicationControllerStatusApplyConfiguration

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

func (*ReplicationControllerStatusApplyConfiguration) 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 (*ReplicationControllerStatusApplyConfiguration) 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 (*ReplicationControllerStatusApplyConfiguration) 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 (*ReplicationControllerStatusApplyConfiguration) 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 (*ReplicationControllerStatusApplyConfiguration) 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 (*ReplicationControllerStatusApplyConfiguration) 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.

type ResourceClaimApplyConfiguration

type ResourceClaimApplyConfiguration struct {
	// Name must match the name of one entry in pod.spec.resourceClaims of
	// the Pod where this field is used. It makes that resource available
	// inside a container.
	Name *string `json:"name,omitempty"`
	// Request is the name chosen for a request in the referenced claim.
	// If empty, everything from the claim is made available, otherwise
	// only the result of this request.
	Request *string `json:"request,omitempty"`
}

ResourceClaimApplyConfiguration represents a declarative configuration of the ResourceClaim type for use with apply.

ResourceClaim references one entry in PodSpec.ResourceClaims.

func ResourceClaim

func ResourceClaim() *ResourceClaimApplyConfiguration

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

func (*ResourceClaimApplyConfiguration) 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 (*ResourceClaimApplyConfiguration) WithRequest

WithRequest sets the Request 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 Request field is set to the value of the last call.

type ResourceFieldSelectorApplyConfiguration

type ResourceFieldSelectorApplyConfiguration struct {
	// Container name: required for volumes, optional for env vars
	ContainerName *string `json:"containerName,omitempty"`
	// Required: resource to select
	Resource *string `json:"resource,omitempty"`
	// Specifies the output format of the exposed resources, defaults to "1"
	Divisor *resource.Quantity `json:"divisor,omitempty"`
}

ResourceFieldSelectorApplyConfiguration represents a declarative configuration of the ResourceFieldSelector type for use with apply.

ResourceFieldSelector represents container resources (cpu, memory) and their output format

func ResourceFieldSelector

func ResourceFieldSelector() *ResourceFieldSelectorApplyConfiguration

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

func (*ResourceFieldSelectorApplyConfiguration) WithContainerName

WithContainerName sets the ContainerName 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 ContainerName field is set to the value of the last call.

func (*ResourceFieldSelectorApplyConfiguration) WithDivisor

WithDivisor sets the Divisor 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 Divisor field is set to the value of the last call.

func (*ResourceFieldSelectorApplyConfiguration) 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.

type ResourceHealthApplyConfiguration

type ResourceHealthApplyConfiguration struct {
	// ResourceID is the unique identifier of the resource. See the ResourceID type for more information.
	ResourceID *corev1.ResourceID `json:"resourceID,omitempty"`
	// Health of the resource.
	// can be one of:
	// - Healthy: operates as normal
	// - Unhealthy: reported unhealthy. We consider this a temporary health issue
	// since we do not have a mechanism today to distinguish
	// temporary and permanent issues.
	// - Unknown: The status cannot be determined.
	// For example, Device Plugin got unregistered and hasn't been re-registered since.
	//
	// In future we may want to introduce the PermanentlyUnhealthy Status.
	Health *corev1.ResourceHealthStatus `json:"health,omitempty"`
}

ResourceHealthApplyConfiguration represents a declarative configuration of the ResourceHealth type for use with apply.

ResourceHealth represents the health of a resource. It has the latest device health information. This is a part of KEP https://kep.k8s.io/4680.

func ResourceHealth

func ResourceHealth() *ResourceHealthApplyConfiguration

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

func (*ResourceHealthApplyConfiguration) WithHealth

WithHealth sets the Health 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 Health field is set to the value of the last call.

func (*ResourceHealthApplyConfiguration) WithResourceID

WithResourceID sets the ResourceID 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 ResourceID field is set to the value of the last call.

type ResourceQuotaApplyConfiguration

type ResourceQuotaApplyConfiguration struct {
	metav1.TypeMetaApplyConfiguration `json:",inline"`
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	// Spec defines the desired quota.
	// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	Spec *ResourceQuotaSpecApplyConfiguration `json:"spec,omitempty"`
	// Status defines the actual enforced quota and its current usage.
	// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	Status *ResourceQuotaStatusApplyConfiguration `json:"status,omitempty"`
}

ResourceQuotaApplyConfiguration represents a declarative configuration of the ResourceQuota type for use with apply.

ResourceQuota sets aggregate quota restrictions enforced per namespace

func ExtractResourceQuota

func ExtractResourceQuota(resourceQuota *corev1.ResourceQuota, fieldManager string) (*ResourceQuotaApplyConfiguration, error)

ExtractResourceQuota extracts the applied configuration owned by fieldManager from resourceQuota. If no managedFields are found in resourceQuota for fieldManager, a ResourceQuotaApplyConfiguration 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. resourceQuota must be a unmodified ResourceQuota API object that was retrieved from the Kubernetes API. ExtractResourceQuota 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 ExtractResourceQuotaFrom

func ExtractResourceQuotaFrom(resourceQuota *corev1.ResourceQuota, fieldManager string, subresource string) (*ResourceQuotaApplyConfiguration, error)

ExtractResourceQuotaFrom extracts the applied configuration owned by fieldManager from resourceQuota for the specified subresource. Pass an empty string for subresource to extract the main resource. Common subresources include "status", "scale", etc. resourceQuota must be a unmodified ResourceQuota API object that was retrieved from the Kubernetes API. ExtractResourceQuotaFrom 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 ExtractResourceQuotaStatus

func ExtractResourceQuotaStatus(resourceQuota *corev1.ResourceQuota, fieldManager string) (*ResourceQuotaApplyConfiguration, error)

ExtractResourceQuotaStatus extracts the applied configuration owned by fieldManager from resourceQuota for the status subresource.

func ResourceQuota

func ResourceQuota(name, namespace string) *ResourceQuotaApplyConfiguration

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

func (*ResourceQuotaApplyConfiguration) GetAPIVersion

func (b *ResourceQuotaApplyConfiguration) GetAPIVersion() *string

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

func (*ResourceQuotaApplyConfiguration) GetKind

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

func (*ResourceQuotaApplyConfiguration) GetName

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

func (*ResourceQuotaApplyConfiguration) GetNamespace

func (b *ResourceQuotaApplyConfiguration) GetNamespace() *string

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

func (ResourceQuotaApplyConfiguration) IsApplyConfiguration

func (b ResourceQuotaApplyConfiguration) IsApplyConfiguration()

func (*ResourceQuotaApplyConfiguration) 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 (*ResourceQuotaApplyConfiguration) 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 (*ResourceQuotaApplyConfiguration) 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 (*ResourceQuotaApplyConfiguration) WithDeletionGracePeriodSeconds

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

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 (*ResourceQuotaApplyConfiguration) 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 (*ResourceQuotaApplyConfiguration) 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 (*ResourceQuotaApplyConfiguration) 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 (*ResourceQuotaApplyConfiguration) 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 (*ResourceQuotaApplyConfiguration) 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 (*ResourceQuotaApplyConfiguration) 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 (*ResourceQuotaApplyConfiguration) 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 (*ResourceQuotaApplyConfiguration) 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 (*ResourceQuotaApplyConfiguration) 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 (*ResourceQuotaApplyConfiguration) 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 (*ResourceQuotaApplyConfiguration) 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 (*ResourceQuotaApplyConfiguration) 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 (*ResourceQuotaApplyConfiguration) 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 ResourceQuotaSpecApplyConfiguration

type ResourceQuotaSpecApplyConfiguration struct {
	// hard is the set of desired hard limits for each named resource.
	// More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
	Hard *corev1.ResourceList `json:"hard,omitempty"`
	// A collection of filters that must match each object tracked by a quota.
	// If not specified, the quota matches all objects.
	Scopes []corev1.ResourceQuotaScope `json:"scopes,omitempty"`
	// scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota
	// but expressed using ScopeSelectorOperator in combination with possible values.
	// For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched.
	ScopeSelector *ScopeSelectorApplyConfiguration `json:"scopeSelector,omitempty"`
}

ResourceQuotaSpecApplyConfiguration represents a declarative configuration of the ResourceQuotaSpec type for use with apply.

ResourceQuotaSpec defines the desired hard limits to enforce for Quota.

func ResourceQuotaSpec

func ResourceQuotaSpec() *ResourceQuotaSpecApplyConfiguration

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

func (*ResourceQuotaSpecApplyConfiguration) WithHard

WithHard sets the Hard 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 Hard field is set to the value of the last call.

func (*ResourceQuotaSpecApplyConfiguration) WithScopeSelector

WithScopeSelector sets the ScopeSelector 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 ScopeSelector field is set to the value of the last call.

func (*ResourceQuotaSpecApplyConfiguration) WithScopes

WithScopes adds the given value to the Scopes 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 Scopes field.

type ResourceQuotaStatusApplyConfiguration

type ResourceQuotaStatusApplyConfiguration struct {
	// Hard is the set of enforced hard limits for each named resource.
	// More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/
	Hard *corev1.ResourceList `json:"hard,omitempty"`
	// Used is the current observed total usage of the resource in the namespace.
	Used *corev1.ResourceList `json:"used,omitempty"`
}

ResourceQuotaStatusApplyConfiguration represents a declarative configuration of the ResourceQuotaStatus type for use with apply.

ResourceQuotaStatus defines the enforced hard limits and observed use.

func ResourceQuotaStatus

func ResourceQuotaStatus() *ResourceQuotaStatusApplyConfiguration

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

func (*ResourceQuotaStatusApplyConfiguration) WithHard

WithHard sets the Hard 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 Hard field is set to the value of the last call.

func (*ResourceQuotaStatusApplyConfiguration) WithUsed

WithUsed sets the Used 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 Used field is set to the value of the last call.

type ResourceRequirementsApplyConfiguration

type ResourceRequirementsApplyConfiguration struct {
	// Limits describes the maximum amount of compute resources allowed.
	// More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
	Limits *corev1.ResourceList `json:"limits,omitempty"`
	// Requests describes the minimum amount of compute resources required.
	// If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
	// otherwise to an implementation-defined value. Requests cannot exceed Limits.
	// More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
	Requests *corev1.ResourceList `json:"requests,omitempty"`
	// Claims lists the names of resources, defined in spec.resourceClaims,
	// that are used by this container.
	//
	// This field depends on the
	// DynamicResourceAllocation feature gate.
	//
	// This field is immutable. It can only be set for containers.
	Claims []ResourceClaimApplyConfiguration `json:"claims,omitempty"`
}

ResourceRequirementsApplyConfiguration represents a declarative configuration of the ResourceRequirements type for use with apply.

ResourceRequirements describes the compute resource requirements.

func ResourceRequirements

func ResourceRequirements() *ResourceRequirementsApplyConfiguration

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

func (*ResourceRequirementsApplyConfiguration) WithClaims

WithClaims adds the given value to the Claims 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 Claims field.

func (*ResourceRequirementsApplyConfiguration) WithLimits

WithLimits sets the Limits 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 Limits field is set to the value of the last call.

func (*ResourceRequirementsApplyConfiguration) WithRequests

WithRequests sets the Requests 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 Requests field is set to the value of the last call.

type ResourceStatusApplyConfiguration

type ResourceStatusApplyConfiguration struct {
	// Name of the resource. Must be unique within the pod and in case of non-DRA resource, match one of the resources from the pod spec.
	// For DRA resources, the value must be "claim:<claim_name>/<request>".
	// When this status is reported about a container, the "claim_name" and "request" must match one of the claims of this container.
	Name *corev1.ResourceName `json:"name,omitempty"`
	// List of unique resources health. Each element in the list contains an unique resource ID and its health.
	// At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node.
	// If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share.
	// See ResourceID type definition for a specific format it has in various use cases.
	Resources []ResourceHealthApplyConfiguration `json:"resources,omitempty"`
}

ResourceStatusApplyConfiguration represents a declarative configuration of the ResourceStatus type for use with apply.

ResourceStatus represents the status of a single resource allocated to a Pod.

func ResourceStatus

func ResourceStatus() *ResourceStatusApplyConfiguration

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

func (*ResourceStatusApplyConfiguration) 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 (*ResourceStatusApplyConfiguration) WithResources

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

type SELinuxOptionsApplyConfiguration

type SELinuxOptionsApplyConfiguration struct {
	// User is a SELinux user label that applies to the container.
	User *string `json:"user,omitempty"`
	// Role is a SELinux role label that applies to the container.
	Role *string `json:"role,omitempty"`
	// Type is a SELinux type label that applies to the container.
	Type *string `json:"type,omitempty"`
	// Level is SELinux level label that applies to the container.
	Level *string `json:"level,omitempty"`
}

SELinuxOptionsApplyConfiguration represents a declarative configuration of the SELinuxOptions type for use with apply.

SELinuxOptions are the labels to be applied to the container

func SELinuxOptions

func SELinuxOptions() *SELinuxOptionsApplyConfiguration

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

func (*SELinuxOptionsApplyConfiguration) WithLevel

WithLevel sets the Level 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 Level field is set to the value of the last call.

func (*SELinuxOptionsApplyConfiguration) WithRole

WithRole sets the Role 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 Role field is set to the value of the last call.

func (*SELinuxOptionsApplyConfiguration) 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.

func (*SELinuxOptionsApplyConfiguration) WithUser

WithUser sets the User 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 User field is set to the value of the last call.

type ScaleIOPersistentVolumeSourceApplyConfiguration

type ScaleIOPersistentVolumeSourceApplyConfiguration struct {
	// gateway is the host address of the ScaleIO API Gateway.
	Gateway *string `json:"gateway,omitempty"`
	// system is the name of the storage system as configured in ScaleIO.
	System *string `json:"system,omitempty"`
	// secretRef references to the secret for ScaleIO user and other
	// sensitive information. If this is not provided, Login operation will fail.
	SecretRef *SecretReferenceApplyConfiguration `json:"secretRef,omitempty"`
	// sslEnabled is the flag to enable/disable SSL communication with Gateway, default false
	SSLEnabled *bool `json:"sslEnabled,omitempty"`
	// protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.
	ProtectionDomain *string `json:"protectionDomain,omitempty"`
	// storagePool is the ScaleIO Storage Pool associated with the protection domain.
	StoragePool *string `json:"storagePool,omitempty"`
	// storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned.
	// Default is ThinProvisioned.
	StorageMode *string `json:"storageMode,omitempty"`
	// volumeName is the name of a volume already created in the ScaleIO system
	// that is associated with this volume source.
	VolumeName *string `json:"volumeName,omitempty"`
	// fsType is the filesystem type to mount.
	// Must be a filesystem type supported by the host operating system.
	// Ex. "ext4", "xfs", "ntfs".
	// Default is "xfs"
	FSType *string `json:"fsType,omitempty"`
	// readOnly defaults to false (read/write). ReadOnly here will force
	// the ReadOnly setting in VolumeMounts.
	ReadOnly *bool `json:"readOnly,omitempty"`
}

ScaleIOPersistentVolumeSourceApplyConfiguration represents a declarative configuration of the ScaleIOPersistentVolumeSource type for use with apply.

ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume

func ScaleIOPersistentVolumeSource

func ScaleIOPersistentVolumeSource() *ScaleIOPersistentVolumeSourceApplyConfiguration

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

func (*ScaleIOPersistentVolumeSourceApplyConfiguration) WithFSType

WithFSType sets the FSType 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 FSType field is set to the value of the last call.

func (*ScaleIOPersistentVolumeSourceApplyConfiguration) WithGateway

WithGateway sets the Gateway 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 Gateway field is set to the value of the last call.

func (*ScaleIOPersistentVolumeSourceApplyConfiguration) WithProtectionDomain

WithProtectionDomain sets the ProtectionDomain 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 ProtectionDomain field is set to the value of the last call.

func (*ScaleIOPersistentVolumeSourceApplyConfiguration) WithReadOnly

WithReadOnly sets the ReadOnly 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 ReadOnly field is set to the value of the last call.

func (*ScaleIOPersistentVolumeSourceApplyConfiguration) WithSSLEnabled

WithSSLEnabled sets the SSLEnabled 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 SSLEnabled field is set to the value of the last call.

func (*ScaleIOPersistentVolumeSourceApplyConfiguration) WithSecretRef

WithSecretRef sets the SecretRef 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 SecretRef field is set to the value of the last call.

func (*ScaleIOPersistentVolumeSourceApplyConfiguration) WithStorageMode

WithStorageMode sets the StorageMode 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 StorageMode field is set to the value of the last call.

func (*ScaleIOPersistentVolumeSourceApplyConfiguration) WithStoragePool

WithStoragePool sets the StoragePool 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 StoragePool field is set to the value of the last call.

func (*ScaleIOPersistentVolumeSourceApplyConfiguration) WithSystem

WithSystem sets the System 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 System field is set to the value of the last call.

func (*ScaleIOPersistentVolumeSourceApplyConfiguration) WithVolumeName

WithVolumeName sets the VolumeName 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 VolumeName field is set to the value of the last call.

type ScaleIOVolumeSourceApplyConfiguration

type ScaleIOVolumeSourceApplyConfiguration struct {
	// gateway is the host address of the ScaleIO API Gateway.
	Gateway *string `json:"gateway,omitempty"`
	// system is the name of the storage system as configured in ScaleIO.
	System *string `json:"system,omitempty"`
	// secretRef references to the secret for ScaleIO user and other
	// sensitive information. If this is not provided, Login operation will fail.
	SecretRef *LocalObjectReferenceApplyConfiguration `json:"secretRef,omitempty"`
	// sslEnabled Flag enable/disable SSL communication with Gateway, default false
	SSLEnabled *bool `json:"sslEnabled,omitempty"`
	// protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.
	ProtectionDomain *string `json:"protectionDomain,omitempty"`
	// storagePool is the ScaleIO Storage Pool associated with the protection domain.
	StoragePool *string `json:"storagePool,omitempty"`
	// storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned.
	// Default is ThinProvisioned.
	StorageMode *string `json:"storageMode,omitempty"`
	// volumeName is the name of a volume already created in the ScaleIO system
	// that is associated with this volume source.
	VolumeName *string `json:"volumeName,omitempty"`
	// fsType is the filesystem type to mount.
	// Must be a filesystem type supported by the host operating system.
	// Ex. "ext4", "xfs", "ntfs".
	// Default is "xfs".
	FSType *string `json:"fsType,omitempty"`
	// readOnly Defaults to false (read/write). ReadOnly here will force
	// the ReadOnly setting in VolumeMounts.
	ReadOnly *bool `json:"readOnly,omitempty"`
}

ScaleIOVolumeSourceApplyConfiguration represents a declarative configuration of the ScaleIOVolumeSource type for use with apply.

ScaleIOVolumeSource represents a persistent ScaleIO volume

func ScaleIOVolumeSource

func ScaleIOVolumeSource() *ScaleIOVolumeSourceApplyConfiguration

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

func (*ScaleIOVolumeSourceApplyConfiguration) WithFSType

WithFSType sets the FSType 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 FSType field is set to the value of the last call.

func (*ScaleIOVolumeSourceApplyConfiguration) WithGateway

WithGateway sets the Gateway 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 Gateway field is set to the value of the last call.

func (*ScaleIOVolumeSourceApplyConfiguration) WithProtectionDomain

WithProtectionDomain sets the ProtectionDomain 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 ProtectionDomain field is set to the value of the last call.

func (*ScaleIOVolumeSourceApplyConfiguration) WithReadOnly

WithReadOnly sets the ReadOnly 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 ReadOnly field is set to the value of the last call.

func (*ScaleIOVolumeSourceApplyConfiguration) WithSSLEnabled

WithSSLEnabled sets the SSLEnabled 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 SSLEnabled field is set to the value of the last call.

func (*ScaleIOVolumeSourceApplyConfiguration) WithSecretRef

WithSecretRef sets the SecretRef 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 SecretRef field is set to the value of the last call.

func (*ScaleIOVolumeSourceApplyConfiguration) WithStorageMode

WithStorageMode sets the StorageMode 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 StorageMode field is set to the value of the last call.

func (*ScaleIOVolumeSourceApplyConfiguration) WithStoragePool

WithStoragePool sets the StoragePool 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 StoragePool field is set to the value of the last call.

func (*ScaleIOVolumeSourceApplyConfiguration) WithSystem

WithSystem sets the System 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 System field is set to the value of the last call.

func (*ScaleIOVolumeSourceApplyConfiguration) WithVolumeName

WithVolumeName sets the VolumeName 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 VolumeName field is set to the value of the last call.

type ScopeSelectorApplyConfiguration

type ScopeSelectorApplyConfiguration struct {
	// A list of scope selector requirements by scope of the resources.
	MatchExpressions []ScopedResourceSelectorRequirementApplyConfiguration `json:"matchExpressions,omitempty"`
}

ScopeSelectorApplyConfiguration represents a declarative configuration of the ScopeSelector type for use with apply.

A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements.

func ScopeSelector

func ScopeSelector() *ScopeSelectorApplyConfiguration

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

func (*ScopeSelectorApplyConfiguration) WithMatchExpressions

WithMatchExpressions adds the given value to the MatchExpressions 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 MatchExpressions field.

type ScopedResourceSelectorRequirementApplyConfiguration

type ScopedResourceSelectorRequirementApplyConfiguration struct {
	// The name of the scope that the selector applies to.
	ScopeName *corev1.ResourceQuotaScope `json:"scopeName,omitempty"`
	// Represents a scope's relationship to a set of values.
	// Valid operators are In, NotIn, Exists, DoesNotExist.
	Operator *corev1.ScopeSelectorOperator `json:"operator,omitempty"`
	// An array of string values. If the operator is In or NotIn,
	// the values array must be non-empty. If the operator is Exists or DoesNotExist,
	// the values array must be empty.
	// This array is replaced during a strategic merge patch.
	Values []string `json:"values,omitempty"`
}

ScopedResourceSelectorRequirementApplyConfiguration represents a declarative configuration of the ScopedResourceSelectorRequirement type for use with apply.

A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator that relates the scope name and values.

func ScopedResourceSelectorRequirement

func ScopedResourceSelectorRequirement() *ScopedResourceSelectorRequirementApplyConfiguration

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

func (*ScopedResourceSelectorRequirementApplyConfiguration) WithOperator

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

func (*ScopedResourceSelectorRequirementApplyConfiguration) WithScopeName

WithScopeName sets the ScopeName 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 ScopeName field is set to the value of the last call.

func (*ScopedResourceSelectorRequirementApplyConfiguration) WithValues

WithValues adds the given value to the Values 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 Values field.

type SeccompProfileApplyConfiguration

type SeccompProfileApplyConfiguration struct {
	// type indicates which kind of seccomp profile will be applied.
	// Valid options are:
	//
	// Localhost - a profile defined in a file on the node should be used.
	// RuntimeDefault - the container runtime default profile should be used.
	// Unconfined - no profile should be applied.
	Type *corev1.SeccompProfileType `json:"type,omitempty"`
	// localhostProfile indicates a profile defined in a file on the node should be used.
	// The profile must be preconfigured on the node to work.
	// Must be a descending path, relative to the kubelet's configured seccomp profile location.
	// Must be set if type is "Localhost". Must NOT be set for any other type.
	LocalhostProfile *string `json:"localhostProfile,omitempty"`
}

SeccompProfileApplyConfiguration represents a declarative configuration of the SeccompProfile type for use with apply.

SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.

func SeccompProfile

func SeccompProfile() *SeccompProfileApplyConfiguration

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

func (*SeccompProfileApplyConfiguration) WithLocalhostProfile

WithLocalhostProfile sets the LocalhostProfile 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 LocalhostProfile field is set to the value of the last call.

func (*SeccompProfileApplyConfiguration) 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 SecretApplyConfiguration

type SecretApplyConfiguration struct {
	metav1.TypeMetaApplyConfiguration `json:",inline"`
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	// Immutable, if set to true, ensures that data stored in the Secret cannot
	// be updated (only object metadata can be modified).
	// If not set to true, the field can be modified at any time.
	// Defaulted to nil.
	Immutable *bool `json:"immutable,omitempty"`
	// Data contains the secret data. Each key must consist of alphanumeric
	// characters, '-', '_' or '.'. The serialized form of the secret data is a
	// base64 encoded string, representing the arbitrary (possibly non-string)
	// data value here. Described in https://tools.ietf.org/html/rfc4648#section-4
	Data map[string][]byte `json:"data,omitempty"`
	// stringData allows specifying non-binary secret data in string form.
	// It is provided as a write-only input field for convenience.
	// All keys and values are merged into the data field on write, overwriting any existing values.
	// The stringData field is never output when reading from the API.
	StringData map[string]string `json:"stringData,omitempty"`
	// Used to facilitate programmatic handling of secret data.
	// More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types
	Type *corev1.SecretType `json:"type,omitempty"`
}

SecretApplyConfiguration represents a declarative configuration of the Secret type for use with apply.

Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes.

func ExtractSecret

func ExtractSecret(secret *corev1.Secret, fieldManager string) (*SecretApplyConfiguration, error)

ExtractSecret extracts the applied configuration owned by fieldManager from secret. If no managedFields are found in secret for fieldManager, a SecretApplyConfiguration 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. secret must be a unmodified Secret API object that was retrieved from the Kubernetes API. ExtractSecret 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 ExtractSecretFrom

func ExtractSecretFrom(secret *corev1.Secret, fieldManager string, subresource string) (*SecretApplyConfiguration, error)

ExtractSecretFrom extracts the applied configuration owned by fieldManager from secret for the specified subresource. Pass an empty string for subresource to extract the main resource. Common subresources include "status", "scale", etc. secret must be a unmodified Secret API object that was retrieved from the Kubernetes API. ExtractSecretFrom 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 Secret

func Secret(name, namespace string) *SecretApplyConfiguration

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

func (*SecretApplyConfiguration) GetAPIVersion

func (b *SecretApplyConfiguration) GetAPIVersion() *string

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

func (*SecretApplyConfiguration) GetKind

func (b *SecretApplyConfiguration) GetKind() *string

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

func (*SecretApplyConfiguration) GetName

func (b *SecretApplyConfiguration) GetName() *string

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

func (*SecretApplyConfiguration) GetNamespace

func (b *SecretApplyConfiguration) GetNamespace() *string

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

func (SecretApplyConfiguration) IsApplyConfiguration

func (b SecretApplyConfiguration) IsApplyConfiguration()

func (*SecretApplyConfiguration) WithAPIVersion

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

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 (*SecretApplyConfiguration) WithAnnotations

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

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 (*SecretApplyConfiguration) WithCreationTimestamp

func (b *SecretApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *SecretApplyConfiguration

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 (*SecretApplyConfiguration) WithData

func (b *SecretApplyConfiguration) WithData(entries map[string][]byte) *SecretApplyConfiguration

WithData puts the entries into the Data 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 Data field, overwriting an existing map entries in Data field with the same key.

func (*SecretApplyConfiguration) WithDeletionGracePeriodSeconds

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

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 (*SecretApplyConfiguration) WithDeletionTimestamp

func (b *SecretApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *SecretApplyConfiguration

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 (*SecretApplyConfiguration) WithFinalizers

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

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 (*SecretApplyConfiguration) WithGenerateName

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

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 (*SecretApplyConfiguration) WithGeneration

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

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 (*SecretApplyConfiguration) WithImmutable

func (b *SecretApplyConfiguration) WithImmutable(value bool) *SecretApplyConfiguration

WithImmutable sets the Immutable 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 Immutable field is set to the value of the last call.

func (*SecretApplyConfiguration) 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 (*SecretApplyConfiguration) WithLabels

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

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 (*SecretApplyConfiguration) 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 (*SecretApplyConfiguration) WithNamespace

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

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 (*SecretApplyConfiguration) 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 (*SecretApplyConfiguration) WithResourceVersion

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

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 (*SecretApplyConfiguration) WithStringData

func (b *SecretApplyConfiguration) WithStringData(entries map[string]string) *SecretApplyConfiguration

WithStringData puts the entries into the StringData 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 StringData field, overwriting an existing map entries in StringData field with the same key.

func (*SecretApplyConfiguration) 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.

func (*SecretApplyConfiguration) 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 SecretEnvSourceApplyConfiguration

type SecretEnvSourceApplyConfiguration struct {
	// The Secret to select from.
	LocalObjectReferenceApplyConfiguration `json:",inline"`
	// Specify whether the Secret must be defined
	Optional *bool `json:"optional,omitempty"`
}

SecretEnvSourceApplyConfiguration represents a declarative configuration of the SecretEnvSource type for use with apply.

SecretEnvSource selects a Secret to populate the environment variables with.

The contents of the target Secret's Data field will represent the key-value pairs as environment variables.

func SecretEnvSource

func SecretEnvSource() *SecretEnvSourceApplyConfiguration

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

func (*SecretEnvSourceApplyConfiguration) 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 (*SecretEnvSourceApplyConfiguration) WithOptional

WithOptional sets the Optional 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 Optional field is set to the value of the last call.

type SecretKeySelectorApplyConfiguration

type SecretKeySelectorApplyConfiguration struct {
	// The name of the secret in the pod's namespace to select from.
	LocalObjectReferenceApplyConfiguration `json:",inline"`
	// The key of the secret to select from.  Must be a valid secret key.
	Key *string `json:"key,omitempty"`
	// Specify whether the Secret or its key must be defined
	Optional *bool `json:"optional,omitempty"`
}

SecretKeySelectorApplyConfiguration represents a declarative configuration of the SecretKeySelector type for use with apply.

SecretKeySelector selects a key of a Secret.

func SecretKeySelector

func SecretKeySelector() *SecretKeySelectorApplyConfiguration

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

func (*SecretKeySelectorApplyConfiguration) WithKey

WithKey sets the Key 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 Key field is set to the value of the last call.

func (*SecretKeySelectorApplyConfiguration) 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 (*SecretKeySelectorApplyConfiguration) WithOptional

WithOptional sets the Optional 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 Optional field is set to the value of the last call.

type SecretProjectionApplyConfiguration

type SecretProjectionApplyConfiguration struct {
	LocalObjectReferenceApplyConfiguration `json:",inline"`
	// items if unspecified, each key-value pair in the Data field of the referenced
	// Secret will be projected into the volume as a file whose name is the
	// key and content is the value. If specified, the listed keys will be
	// projected into the specified paths, and unlisted keys will not be
	// present. If a key is specified which is not present in the Secret,
	// the volume setup will error unless it is marked optional. Paths must be
	// relative and may not contain the '..' path or start with '..'.
	Items []KeyToPathApplyConfiguration `json:"items,omitempty"`
	// optional field specify whether the Secret or its key must be defined
	Optional *bool `json:"optional,omitempty"`
}

SecretProjectionApplyConfiguration represents a declarative configuration of the SecretProjection type for use with apply.

Adapts a secret into a projected volume.

The contents of the target Secret's Data field will be presented in a projected volume as files using the keys in the Data field as the file names. Note that this is identical to a secret volume source without the default mode.

func SecretProjection

func SecretProjection() *SecretProjectionApplyConfiguration

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

func (*SecretProjectionApplyConfiguration) WithItems

WithItems adds the given value to the Items 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 Items field.

func (*SecretProjectionApplyConfiguration) 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 (*SecretProjectionApplyConfiguration) WithOptional

WithOptional sets the Optional 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 Optional field is set to the value of the last call.

type SecretReferenceApplyConfiguration

type SecretReferenceApplyConfiguration struct {
	// name is unique within a namespace to reference a secret resource.
	Name *string `json:"name,omitempty"`
	// namespace defines the space within which the secret name must be unique.
	Namespace *string `json:"namespace,omitempty"`
}

SecretReferenceApplyConfiguration represents a declarative configuration of the SecretReference type for use with apply.

SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace

func SecretReference

func SecretReference() *SecretReferenceApplyConfiguration

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

func (*SecretReferenceApplyConfiguration) 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 (*SecretReferenceApplyConfiguration) 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.

type SecretVolumeSourceApplyConfiguration

type SecretVolumeSourceApplyConfiguration struct {
	// secretName is the name of the secret in the pod's namespace to use.
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
	SecretName *string `json:"secretName,omitempty"`
	// items If unspecified, each key-value pair in the Data field of the referenced
	// Secret will be projected into the volume as a file whose name is the
	// key and content is the value. If specified, the listed keys will be
	// projected into the specified paths, and unlisted keys will not be
	// present. If a key is specified which is not present in the Secret,
	// the volume setup will error unless it is marked optional. Paths must be
	// relative and may not contain the '..' path or start with '..'.
	Items []KeyToPathApplyConfiguration `json:"items,omitempty"`
	// defaultMode is Optional: mode bits used to set permissions on created files by default.
	// Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
	// YAML accepts both octal and decimal values, JSON requires decimal values
	// for mode bits. Defaults to 0644.
	// Directories within the path are not affected by this setting.
	// This might be in conflict with other options that affect the file
	// mode, like fsGroup, and the result can be other mode bits set.
	DefaultMode *int32 `json:"defaultMode,omitempty"`
	// optional field specify whether the Secret or its keys must be defined
	Optional *bool `json:"optional,omitempty"`
}

SecretVolumeSourceApplyConfiguration represents a declarative configuration of the SecretVolumeSource type for use with apply.

Adapts a Secret into a volume.

The contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling.

func SecretVolumeSource

func SecretVolumeSource() *SecretVolumeSourceApplyConfiguration

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

func (*SecretVolumeSourceApplyConfiguration) WithDefaultMode

WithDefaultMode sets the DefaultMode 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 DefaultMode field is set to the value of the last call.

func (*SecretVolumeSourceApplyConfiguration) WithItems

WithItems adds the given value to the Items 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 Items field.

func (*SecretVolumeSourceApplyConfiguration) WithOptional

WithOptional sets the Optional 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 Optional field is set to the value of the last call.

func (*SecretVolumeSourceApplyConfiguration) 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 SecurityContextApplyConfiguration

type SecurityContextApplyConfiguration struct {
	// The capabilities to add/drop when running containers.
	// Defaults to the default set of capabilities granted by the container runtime.
	// Note that this field cannot be set when spec.os.name is windows.
	Capabilities *CapabilitiesApplyConfiguration `json:"capabilities,omitempty"`
	// Run container in privileged mode.
	// Processes in privileged containers are essentially equivalent to root on the host.
	// Defaults to false.
	// Note that this field cannot be set when spec.os.name is windows.
	Privileged *bool `json:"privileged,omitempty"`
	// The SELinux context to be applied to the container.
	// If unspecified, the container runtime will allocate a random SELinux context for each
	// container.  May also be set in PodSecurityContext.  If set in both SecurityContext and
	// PodSecurityContext, the value specified in SecurityContext takes precedence.
	// Note that this field cannot be set when spec.os.name is windows.
	SELinuxOptions *SELinuxOptionsApplyConfiguration `json:"seLinuxOptions,omitempty"`
	// The Windows specific settings applied to all containers.
	// If unspecified, the options from the PodSecurityContext will be used.
	// If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
	// Note that this field cannot be set when spec.os.name is linux.
	WindowsOptions *WindowsSecurityContextOptionsApplyConfiguration `json:"windowsOptions,omitempty"`
	// The UID to run the entrypoint of the container process.
	// Defaults to user specified in image metadata if unspecified.
	// May also be set in PodSecurityContext.  If set in both SecurityContext and
	// PodSecurityContext, the value specified in SecurityContext takes precedence.
	// Note that this field cannot be set when spec.os.name is windows.
	RunAsUser *int64 `json:"runAsUser,omitempty"`
	// The GID to run the entrypoint of the container process.
	// Uses runtime default if unset.
	// May also be set in PodSecurityContext.  If set in both SecurityContext and
	// PodSecurityContext, the value specified in SecurityContext takes precedence.
	// Note that this field cannot be set when spec.os.name is windows.
	RunAsGroup *int64 `json:"runAsGroup,omitempty"`
	// Indicates that the container must run as a non-root user.
	// If true, the Kubelet will validate the image at runtime to ensure that it
	// does not run as UID 0 (root) and fail to start the container if it does.
	// If unset or false, no such validation will be performed.
	// May also be set in PodSecurityContext.  If set in both SecurityContext and
	// PodSecurityContext, the value specified in SecurityContext takes precedence.
	RunAsNonRoot *bool `json:"runAsNonRoot,omitempty"`
	// Whether this container has a read-only root filesystem.
	// Default is false.
	// Note that this field cannot be set when spec.os.name is windows.
	ReadOnlyRootFilesystem *bool `json:"readOnlyRootFilesystem,omitempty"`
	// AllowPrivilegeEscalation controls whether a process can gain more
	// privileges than its parent process. This bool directly controls if
	// the no_new_privs flag will be set on the container process.
	// AllowPrivilegeEscalation is true always when the container is:
	// 1) run as Privileged
	// 2) has CAP_SYS_ADMIN
	// Note that this field cannot be set when spec.os.name is windows.
	AllowPrivilegeEscalation *bool `json:"allowPrivilegeEscalation,omitempty"`
	// procMount denotes the type of proc mount to use for the containers.
	// The default value is Default which uses the container runtime defaults for
	// readonly paths and masked paths.
	// This requires the ProcMountType feature flag to be enabled.
	// Note that this field cannot be set when spec.os.name is windows.
	ProcMount *corev1.ProcMountType `json:"procMount,omitempty"`
	// The seccomp options to use by this container. If seccomp options are
	// provided at both the pod & container level, the container options
	// override the pod options.
	// Note that this field cannot be set when spec.os.name is windows.
	SeccompProfile *SeccompProfileApplyConfiguration `json:"seccompProfile,omitempty"`
	// appArmorProfile is the AppArmor options to use by this container. If set, this profile
	// overrides the pod's appArmorProfile.
	// Note that this field cannot be set when spec.os.name is windows.
	AppArmorProfile *AppArmorProfileApplyConfiguration `json:"appArmorProfile,omitempty"`
}

SecurityContextApplyConfiguration represents a declarative configuration of the SecurityContext type for use with apply.

SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence.

func SecurityContext

func SecurityContext() *SecurityContextApplyConfiguration

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

func (*SecurityContextApplyConfiguration) WithAllowPrivilegeEscalation

func (b *SecurityContextApplyConfiguration) WithAllowPrivilegeEscalation(value bool) *SecurityContextApplyConfiguration

WithAllowPrivilegeEscalation sets the AllowPrivilegeEscalation 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 AllowPrivilegeEscalation field is set to the value of the last call.

func (*SecurityContextApplyConfiguration) WithAppArmorProfile

WithAppArmorProfile sets the AppArmorProfile 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 AppArmorProfile field is set to the value of the last call.

func (*SecurityContextApplyConfiguration) WithCapabilities

WithCapabilities sets the Capabilities 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 Capabilities field is set to the value of the last call.

func (*SecurityContextApplyConfiguration) WithPrivileged

WithPrivileged sets the Privileged 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 Privileged field is set to the value of the last call.

func (*SecurityContextApplyConfiguration) WithProcMount

WithProcMount sets the ProcMount 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 ProcMount field is set to the value of the last call.

func (*SecurityContextApplyConfiguration) WithReadOnlyRootFilesystem

func (b *SecurityContextApplyConfiguration) WithReadOnlyRootFilesystem(value bool) *SecurityContextApplyConfiguration

WithReadOnlyRootFilesystem sets the ReadOnlyRootFilesystem 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 ReadOnlyRootFilesystem field is set to the value of the last call.

func (*SecurityContextApplyConfiguration) WithRunAsGroup

WithRunAsGroup sets the RunAsGroup 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 RunAsGroup field is set to the value of the last call.

func (*SecurityContextApplyConfiguration) WithRunAsNonRoot

WithRunAsNonRoot sets the RunAsNonRoot 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 RunAsNonRoot field is set to the value of the last call.

func (*SecurityContextApplyConfiguration) WithRunAsUser

WithRunAsUser sets the RunAsUser 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 RunAsUser field is set to the value of the last call.

func (*SecurityContextApplyConfiguration) WithSELinuxOptions

WithSELinuxOptions sets the SELinuxOptions 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 SELinuxOptions field is set to the value of the last call.

func (*SecurityContextApplyConfiguration) WithSeccompProfile

WithSeccompProfile sets the SeccompProfile 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 SeccompProfile field is set to the value of the last call.

func (*SecurityContextApplyConfiguration) WithWindowsOptions

WithWindowsOptions sets the WindowsOptions 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 WindowsOptions field is set to the value of the last call.

type ServiceAccountApplyConfiguration

type ServiceAccountApplyConfiguration struct {
	metav1.TypeMetaApplyConfiguration `json:",inline"`
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	// Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use.
	// Pods are only limited to this list if this service account has a "kubernetes.io/enforce-mountable-secrets" annotation set to "true".
	// The "kubernetes.io/enforce-mountable-secrets" annotation is deprecated since v1.32.
	// Prefer separate namespaces to isolate access to mounted secrets.
	// This field should not be used to find auto-generated service account token secrets for use outside of pods.
	// Instead, tokens can be requested directly using the TokenRequest API, or service account token secrets can be manually created.
	// More info: https://kubernetes.io/docs/concepts/configuration/secret
	Secrets []ObjectReferenceApplyConfiguration `json:"secrets,omitempty"`
	// ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images
	// in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets
	// can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet.
	// More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
	ImagePullSecrets []LocalObjectReferenceApplyConfiguration `json:"imagePullSecrets,omitempty"`
	// AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted.
	// Can be overridden at the pod level.
	AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty"`
}

ServiceAccountApplyConfiguration represents a declarative configuration of the ServiceAccount type for use with apply.

ServiceAccount binds together: * a name, understood by users, and perhaps by peripheral systems, for an identity * a principal that can be authenticated and authorized * a set of secrets

func ExtractServiceAccount

func ExtractServiceAccount(serviceAccount *corev1.ServiceAccount, fieldManager string) (*ServiceAccountApplyConfiguration, error)

ExtractServiceAccount extracts the applied configuration owned by fieldManager from serviceAccount. If no managedFields are found in serviceAccount for fieldManager, a ServiceAccountApplyConfiguration 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. serviceAccount must be a unmodified ServiceAccount API object that was retrieved from the Kubernetes API. ExtractServiceAccount 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 ExtractServiceAccountFrom

func ExtractServiceAccountFrom(serviceAccount *corev1.ServiceAccount, fieldManager string, subresource string) (*ServiceAccountApplyConfiguration, error)

ExtractServiceAccountFrom extracts the applied configuration owned by fieldManager from serviceAccount for the specified subresource. Pass an empty string for subresource to extract the main resource. Common subresources include "status", "scale", etc. serviceAccount must be a unmodified ServiceAccount API object that was retrieved from the Kubernetes API. ExtractServiceAccountFrom 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 ExtractServiceAccountToken

func ExtractServiceAccountToken(serviceAccount *corev1.ServiceAccount, fieldManager string) (*ServiceAccountApplyConfiguration, error)

ExtractServiceAccountToken extracts the applied configuration owned by fieldManager from serviceAccount for the token subresource.

func ServiceAccount

func ServiceAccount(name, namespace string) *ServiceAccountApplyConfiguration

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

func (*ServiceAccountApplyConfiguration) GetAPIVersion

func (b *ServiceAccountApplyConfiguration) GetAPIVersion() *string

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

func (*ServiceAccountApplyConfiguration) GetKind

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

func (*ServiceAccountApplyConfiguration) GetName

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

func (*ServiceAccountApplyConfiguration) GetNamespace

func (b *ServiceAccountApplyConfiguration) GetNamespace() *string

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

func (ServiceAccountApplyConfiguration) IsApplyConfiguration

func (b ServiceAccountApplyConfiguration) IsApplyConfiguration()

func (*ServiceAccountApplyConfiguration) 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 (*ServiceAccountApplyConfiguration) 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 (*ServiceAccountApplyConfiguration) WithAutomountServiceAccountToken

func (b *ServiceAccountApplyConfiguration) WithAutomountServiceAccountToken(value bool) *ServiceAccountApplyConfiguration

WithAutomountServiceAccountToken sets the AutomountServiceAccountToken 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 AutomountServiceAccountToken field is set to the value of the last call.

func (*ServiceAccountApplyConfiguration) 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 (*ServiceAccountApplyConfiguration) WithDeletionGracePeriodSeconds

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

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 (*ServiceAccountApplyConfiguration) 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 (*ServiceAccountApplyConfiguration) 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 (*ServiceAccountApplyConfiguration) 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 (*ServiceAccountApplyConfiguration) 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 (*ServiceAccountApplyConfiguration) WithImagePullSecrets

WithImagePullSecrets adds the given value to the ImagePullSecrets 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 ImagePullSecrets field.

func (*ServiceAccountApplyConfiguration) 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 (*ServiceAccountApplyConfiguration) 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 (*ServiceAccountApplyConfiguration) 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 (*ServiceAccountApplyConfiguration) 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 (*ServiceAccountApplyConfiguration) 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 (*ServiceAccountApplyConfiguration) 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 (*ServiceAccountApplyConfiguration) WithSecrets

WithSecrets adds the given value to the Secrets 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 Secrets field.

func (*ServiceAccountApplyConfiguration) 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 ServiceAccountTokenProjectionApplyConfiguration

type ServiceAccountTokenProjectionApplyConfiguration struct {
	// audience is the intended audience of the token. A recipient of a token
	// must identify itself with an identifier specified in the audience of the
	// token, and otherwise should reject the token. The audience defaults to the
	// identifier of the apiserver.
	Audience *string `json:"audience,omitempty"`
	// expirationSeconds is the requested duration of validity of the service
	// account token. As the token approaches expiration, the kubelet volume
	// plugin will proactively rotate the service account token. The kubelet will
	// start trying to rotate the token if the token is older than 80 percent of
	// its time to live or if the token is older than 24 hours.Defaults to 1 hour
	// and must be at least 10 minutes.
	ExpirationSeconds *int64 `json:"expirationSeconds,omitempty"`
	// path is the path relative to the mount point of the file to project the
	// token into.
	Path *string `json:"path,omitempty"`
}

ServiceAccountTokenProjectionApplyConfiguration represents a declarative configuration of the ServiceAccountTokenProjection type for use with apply.

ServiceAccountTokenProjection represents a projected service account token volume. This projection can be used to insert a service account token into the pods runtime filesystem for use against APIs (Kubernetes API Server or otherwise).

func ServiceAccountTokenProjection

func ServiceAccountTokenProjection() *ServiceAccountTokenProjectionApplyConfiguration

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

func (*ServiceAccountTokenProjectionApplyConfiguration) WithAudience

WithAudience sets the Audience 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 Audience field is set to the value of the last call.

func (*ServiceAccountTokenProjectionApplyConfiguration) WithExpirationSeconds

WithExpirationSeconds sets the ExpirationSeconds 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 ExpirationSeconds field is set to the value of the last call.

func (*ServiceAccountTokenProjectionApplyConfiguration) 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.

type ServiceApplyConfiguration

type ServiceApplyConfiguration struct {
	metav1.TypeMetaApplyConfiguration `json:",inline"`
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	*metav1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	// Spec defines the behavior of a service.
	// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	Spec *ServiceSpecApplyConfiguration `json:"spec,omitempty"`
	// Most recently observed status of the service.
	// Populated by the system.
	// Read-only.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
	Status *ServiceStatusApplyConfiguration `json:"status,omitempty"`
}

ServiceApplyConfiguration represents a declarative configuration of the Service type for use with apply.

Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy.

func ExtractService

func ExtractService(service *corev1.Service, fieldManager string) (*ServiceApplyConfiguration, error)

ExtractService extracts the applied configuration owned by fieldManager from service. If no managedFields are found in service for fieldManager, a ServiceApplyConfiguration 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. service must be a unmodified Service API object that was retrieved from the Kubernetes API. ExtractService 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 ExtractServiceFrom

func ExtractServiceFrom(service *corev1.Service, fieldManager string, subresource string) (*ServiceApplyConfiguration, error)

ExtractServiceFrom extracts the applied configuration owned by fieldManager from service for the specified subresource. Pass an empty string for subresource to extract the main resource. Common subresources include "status", "scale", etc. service must be a unmodified Service API object that was retrieved from the Kubernetes API. ExtractServiceFrom 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 ExtractServiceStatus

func ExtractServiceStatus(service *corev1.Service, fieldManager string) (*ServiceApplyConfiguration, error)

ExtractServiceStatus extracts the applied configuration owned by fieldManager from service for the status subresource.

func Service

func Service(name, namespace string) *ServiceApplyConfiguration

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

func (*ServiceApplyConfiguration) GetAPIVersion

func (b *ServiceApplyConfiguration) GetAPIVersion() *string

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

func (*ServiceApplyConfiguration) GetKind

func (b *ServiceApplyConfiguration) GetKind() *string

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

func (*ServiceApplyConfiguration) GetName

func (b *ServiceApplyConfiguration) GetName() *string

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

func (*ServiceApplyConfiguration) GetNamespace

func (b *ServiceApplyConfiguration) GetNamespace() *string

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

func (ServiceApplyConfiguration) IsApplyConfiguration

func (b ServiceApplyConfiguration) IsApplyConfiguration()

func (*ServiceApplyConfiguration) 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 (*ServiceApplyConfiguration) WithAnnotations

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

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 (*ServiceApplyConfiguration) WithCreationTimestamp

func (b *ServiceApplyConfiguration) WithCreationTimestamp(value apismetav1.Time) *ServiceApplyConfiguration

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 (*ServiceApplyConfiguration) WithDeletionGracePeriodSeconds

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

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 (*ServiceApplyConfiguration) WithDeletionTimestamp

func (b *ServiceApplyConfiguration) WithDeletionTimestamp(value apismetav1.Time) *ServiceApplyConfiguration

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 (*ServiceApplyConfiguration) WithFinalizers

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

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 (*ServiceApplyConfiguration) WithGenerateName

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

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 (*ServiceApplyConfiguration) WithGeneration

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

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 (*ServiceApplyConfiguration) 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 (*ServiceApplyConfiguration) 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 (*ServiceApplyConfiguration) 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 (*ServiceApplyConfiguration) 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 (*ServiceApplyConfiguration) 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 (*ServiceApplyConfiguration) WithResourceVersion

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

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 (*ServiceApplyConfiguration) 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 (*ServiceApplyConfiguration) 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 (*ServiceApplyConfiguration) 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 ServicePortApplyConfiguration

type ServicePortApplyConfiguration struct {
	// The name of this port within the service. This must be a DNS_LABEL.
	// All ports within a ServiceSpec must have unique names. When considering
	// the endpoints for a Service, this must match the 'name' field in the
	// EndpointPort.
	// Optional if only one ServicePort is defined on this service.
	Name *string `json:"name,omitempty"`
	// The IP protocol for this port. Supports "TCP", "UDP", and "SCTP".
	// Default is TCP.
	Protocol *corev1.Protocol `json:"protocol,omitempty"`
	// The application protocol for this port.
	// This is used as a hint for implementations to offer richer behavior for protocols that they understand.
	// This field follows standard Kubernetes label syntax.
	// Valid values are either:
	//
	// * Un-prefixed protocol names - reserved for IANA standard service names (as per
	// RFC-6335 and https://www.iana.org/assignments/service-names).
	//
	// * Kubernetes-defined prefixed names:
	// * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-
	// * 'kubernetes.io/ws'  - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455
	// * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455
	//
	// * Other protocols should use implementation-defined prefixed names such as
	// mycompany.com/my-custom-protocol.
	AppProtocol *string `json:"appProtocol,omitempty"`
	// The port that will be exposed by this service.
	Port *int32 `json:"port,omitempty"`
	// Number or name of the port to access on the pods targeted by the service.
	// Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
	// If this is a string, it will be looked up as a named port in the
	// target Pod's container ports. If this is not specified, the value
	// of the 'port' field is used (an identity map).
	// This field is ignored for services with clusterIP=None, and should be
	// omitted or set equal to the 'port' field.
	// More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service
	TargetPort *intstr.IntOrString `json:"targetPort,omitempty"`
	// The port on each node on which this service is exposed when type is
	// NodePort or LoadBalancer.  Usually assigned by the system. If a value is
	// specified, in-range, and not in use it will be used, otherwise the
	// operation will fail.  If not specified, a port will be allocated if this
	// Service requires one.  If this field is specified when creating a
	// Service which does not need it, creation will fail. This field will be
	// wiped when updating a Service to no longer need it (e.g. changing type
	// from NodePort to ClusterIP).
	// More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
	NodePort *int32 `json:"nodePort,omitempty"`
}

ServicePortApplyConfiguration represents a declarative configuration of the ServicePort type for use with apply.

ServicePort contains information on service's port.

func ServicePort

func ServicePort() *ServicePortApplyConfiguration

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

func (*ServicePortApplyConfiguration) WithAppProtocol

WithAppProtocol sets the AppProtocol 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 AppProtocol field is set to the value of the last call.

func (*ServicePortApplyConfiguration) 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 (*ServicePortApplyConfiguration) WithNodePort

WithNodePort sets the NodePort 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 NodePort field is set to the value of the last call.

func (*ServicePortApplyConfiguration) 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 (*ServicePortApplyConfiguration) 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.

func (*ServicePortApplyConfiguration) WithTargetPort

WithTargetPort sets the TargetPort 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 TargetPort field is set to the value of the last call.

type ServiceSpecApplyConfiguration

type ServiceSpecApplyConfiguration struct {
	// The list of ports that are exposed by this service.
	// More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
	Ports []ServicePortApplyConfiguration `json:"ports,omitempty"`
	// Route service traffic to pods with label keys and values matching this
	// selector. If empty or not present, the service is assumed to have an
	// external process managing its endpoints, which Kubernetes will not
	// modify. Only applies to types ClusterIP, NodePort, and LoadBalancer.
	// Ignored if type is ExternalName.
	// More info: https://kubernetes.io/docs/concepts/services-networking/service/
	Selector map[string]string `json:"selector,omitempty"`
	// clusterIP is the IP address of the service and is usually assigned
	// randomly. If an address is specified manually, is in-range (as per
	// system configuration), and is not in use, it will be allocated to the
	// service; otherwise creation of the service will fail. This field may not
	// be changed through updates unless the type field is also being changed
	// to ExternalName (which requires this field to be blank) or the type
	// field is being changed from ExternalName (in which case this field may
	// optionally be specified, as describe above).  Valid values are "None",
	// empty string (""), or a valid IP address. Setting this to "None" makes a
	// "headless service" (no virtual IP), which is useful when direct endpoint
	// connections are preferred and proxying is not required.  Only applies to
	// types ClusterIP, NodePort, and LoadBalancer. If this field is specified
	// when creating a Service of type ExternalName, creation will fail. This
	// field will be wiped when updating a Service to type ExternalName.
	// More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
	ClusterIP *string `json:"clusterIP,omitempty"`
	// ClusterIPs is a list of IP addresses assigned to this service, and are
	// usually assigned randomly.  If an address is specified manually, is
	// in-range (as per system configuration), and is not in use, it will be
	// allocated to the service; otherwise creation of the service will fail.
	// This field may not be changed through updates unless the type field is
	// also being changed to ExternalName (which requires this field to be
	// empty) or the type field is being changed from ExternalName (in which
	// case this field may optionally be specified, as describe above).  Valid
	// values are "None", empty string (""), or a valid IP address.  Setting
	// this to "None" makes a "headless service" (no virtual IP), which is
	// useful when direct endpoint connections are preferred and proxying is
	// not required.  Only applies to types ClusterIP, NodePort, and
	// LoadBalancer. If this field is specified when creating a Service of type
	// ExternalName, creation will fail. This field will be wiped when updating
	// a Service to type ExternalName.  If this field is not specified, it will
	// be initialized from the clusterIP field.  If this field is specified,
	// clients must ensure that clusterIPs[0] and clusterIP have the same
	// value.
	//
	// This field may hold a maximum of two entries (dual-stack IPs, in either order).
	// These IPs must correspond to the values of the ipFamilies field. Both
	// clusterIPs and ipFamilies are governed by the ipFamilyPolicy field.
	// More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
	ClusterIPs []string `json:"clusterIPs,omitempty"`
	// type determines how the Service is exposed. Defaults to ClusterIP. Valid
	// options are ExternalName, ClusterIP, NodePort, and LoadBalancer.
	// "ClusterIP" allocates a cluster-internal IP address for load-balancing
	// to endpoints. Endpoints are determined by the selector or if that is not
	// specified, by manual construction of an Endpoints object or
	// EndpointSlice objects. If clusterIP is "None", no virtual IP is
	// allocated and the endpoints are published as a set of endpoints rather
	// than a virtual IP.
	// "NodePort" builds on ClusterIP and allocates a port on every node which
	// routes to the same endpoints as the clusterIP.
	// "LoadBalancer" builds on NodePort and creates an external load-balancer
	// (if supported in the current cloud) which routes to the same endpoints
	// as the clusterIP.
	// "ExternalName" aliases this service to the specified externalName.
	// Several other fields do not apply to ExternalName services.
	// More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
	Type *corev1.ServiceType `json:"type,omitempty"`
	// externalIPs is a list of IP addresses for which nodes in the cluster
	// will also accept traffic for this service.  These IPs are not managed by
	// Kubernetes.  The user is responsible for ensuring that traffic arrives
	// at a node with this IP.  A common example is external load-balancers
	// that are not part of the Kubernetes system.
	ExternalIPs []string `json:"externalIPs,omitempty"`
	// Supports "ClientIP" and "None". Used to maintain session affinity.
	// Enable client IP based session affinity.
	// Must be ClientIP or None.
	// Defaults to None.
	// More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
	SessionAffinity *corev1.ServiceAffinity `json:"sessionAffinity,omitempty"`
	// Only applies to Service Type: LoadBalancer.
	// This feature depends on whether the underlying cloud-provider supports specifying
	// the loadBalancerIP when a load balancer is created.
	// This field will be ignored if the cloud-provider does not support the feature.
	// Deprecated: This field was under-specified and its meaning varies across implementations.
	// Using it is non-portable and it may not support dual-stack.
	// Users are encouraged to use implementation-specific annotations when available.
	LoadBalancerIP *string `json:"loadBalancerIP,omitempty"`
	// If specified and supported by the platform, this will restrict traffic through the cloud-provider
	// load-balancer will be restricted to the specified client IPs. This field will be ignored if the
	// cloud-provider does not support the feature."
	// More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/
	LoadBalancerSourceRanges []string `json:"loadBalancerSourceRanges,omitempty"`
	// externalName is the external reference that discovery mechanisms will
	// return as an alias for this service (e.g. a DNS CNAME record). No
	// proxying will be involved.  Must be a lowercase RFC-1123 hostname
	// (https://tools.ietf.org/html/rfc1123) and requires `type` to be "ExternalName".
	ExternalName *string `json:"externalName,omitempty"`
	// externalTrafficPolicy describes how nodes distribute service traffic they
	// receive on one of the Service's "externally-facing" addresses (NodePorts,
	// ExternalIPs, and LoadBalancer IPs). If set to "Local", the proxy will configure
	// the service in a way that assumes that external load balancers will take care
	// of balancing the service traffic between nodes, and so each node will deliver
	// traffic only to the node-local endpoints of the service, without masquerading
	// the client source IP. (Traffic mistakenly sent to a node with no endpoints will
	// be dropped.) The default value, "Cluster", uses the standard behavior of
	// routing to all endpoints evenly (possibly modified by topology and other
	// features). Note that traffic sent to an External IP or LoadBalancer IP from
	// within the cluster will always get "Cluster" semantics, but clients sending to
	// a NodePort from within the cluster may need to take traffic policy into account
	// when picking a node.
	ExternalTrafficPolicy *corev1.ServiceExternalTrafficPolicy `json:"externalTrafficPolicy,omitempty"`
	// healthCheckNodePort specifies the healthcheck nodePort for the service.
	// This only applies when type is set to LoadBalancer and
	// externalTrafficPolicy is set to Local. If a value is specified, is
	// in-range, and is not in use, it will be used.  If not specified, a value
	// will be automatically allocated.  External systems (e.g. load-balancers)
	// can use this port to determine if a given node holds endpoints for this
	// service or not.  If this field is specified when creating a Service
	// which does not need it, creation will fail. This field will be wiped
	// when updating a Service to no longer need it (e.g. changing type).
	// This field cannot be updated once set.
	HealthCheckNodePort *int32 `json:"healthCheckNodePort,omitempty"`
	// publishNotReadyAddresses indicates that any agent which deals with endpoints for this
	// Service should disregard any indications of ready/not-ready.
	// The primary use case for setting this field is for a StatefulSet's Headless Service to
	// propagate SRV DNS records for its Pods for the purpose of peer discovery.
	// The Kubernetes controllers that generate Endpoints and EndpointSlice resources for
	// Services interpret this to mean that all endpoints are considered "ready" even if the
	// Pods themselves are not. Agents which consume only Kubernetes generated endpoints
	// through the Endpoints or EndpointSlice resources can safely assume this behavior.
	PublishNotReadyAddresses *bool `json:"publishNotReadyAddresses,omitempty"`
	// sessionAffinityConfig contains the configurations of session affinity.
	SessionAffinityConfig *SessionAffinityConfigApplyConfiguration `json:"sessionAffinityConfig,omitempty"`
	// IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this
	// service. This field is usually assigned automatically based on cluster
	// configuration and the ipFamilyPolicy field. If this field is specified
	// manually, the requested family is available in the cluster,
	// and ipFamilyPolicy allows it, it will be used; otherwise creation of
	// the service will fail. This field is conditionally mutable: it allows
	// for adding or removing a secondary IP family, but it does not allow
	// changing the primary IP family of the Service. Valid values are "IPv4"
	// and "IPv6".  This field only applies to Services of types ClusterIP,
	// NodePort, and LoadBalancer, and does apply to "headless" services.
	// This field will be wiped when updating a Service to type ExternalName.
	//
	// This field may hold a maximum of two entries (dual-stack families, in
	// either order).  These families must correspond to the values of the
	// clusterIPs field, if specified. Both clusterIPs and ipFamilies are
	// governed by the ipFamilyPolicy field.
	IPFamilies []corev1.IPFamily `json:"ipFamilies,omitempty"`
	// IPFamilyPolicy represents the dual-stack-ness requested or required by
	// this Service. If there is no value provided, then this field will be set
	// to SingleStack. Services can be "SingleStack" (a single IP family),
	// "PreferDualStack" (two IP families on dual-stack configured clusters or
	// a single IP family on single-stack clusters), or "RequireDualStack"
	// (two IP families on dual-stack configured clusters, otherwise fail). The
	// ipFamilies and clusterIPs fields depend on the value of this field. This
	// field will be wiped when updating a service to type ExternalName.
	IPFamilyPolicy *corev1.IPFamilyPolicy `json:"ipFamilyPolicy,omitempty"`
	// allocateLoadBalancerNodePorts defines if NodePorts will be automatically
	// allocated for services with type LoadBalancer.  Default is "true". It
	// may be set to "false" if the cluster load-balancer does not rely on
	// NodePorts.  If the caller requests specific NodePorts (by specifying a
	// value), those requests will be respected, regardless of this field.
	// This field may only be set for services with type LoadBalancer and will
	// be cleared if the type is changed to any other type.
	AllocateLoadBalancerNodePorts *bool `json:"allocateLoadBalancerNodePorts,omitempty"`
	// loadBalancerClass is the class of the load balancer implementation this Service belongs to.
	// If specified, the value of this field must be a label-style identifier, with an optional prefix,
	// e.g. "internal-vip" or "example.com/internal-vip". Unprefixed names are reserved for end-users.
	// This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load
	// balancer implementation is used, today this is typically done through the cloud provider integration,
	// but should apply for any default implementation. If set, it is assumed that a load balancer
	// implementation is watching for Services with a matching class. Any default load balancer
	// implementation (e.g. cloud providers) should ignore Services that set this field.
	// This field can only be set when creating or updating a Service to type 'LoadBalancer'.
	// Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type.
	LoadBalancerClass *string `json:"loadBalancerClass,omitempty"`
	// InternalTrafficPolicy describes how nodes distribute service traffic they
	// receive on the ClusterIP. If set to "Local", the proxy will assume that pods
	// only want to talk to endpoints of the service on the same node as the pod,
	// dropping the traffic if there are no local endpoints. The default value,
	// "Cluster", uses the standard behavior of routing to all endpoints evenly
	// (possibly modified by topology and other features).
	InternalTrafficPolicy *corev1.ServiceInternalTrafficPolicy `json:"internalTrafficPolicy,omitempty"`
	// TrafficDistribution offers a way to express preferences for how traffic
	// is distributed to Service endpoints. Implementations can use this field
	// as a hint, but are not required to guarantee strict adherence. If the
	// field is not set, the implementation will apply its default routing
	// strategy. If set to "PreferClose", implementations should prioritize
	// endpoints that are in the same zone.
	TrafficDistribution *string `json:"trafficDistribution,omitempty"`
}

ServiceSpecApplyConfiguration represents a declarative configuration of the ServiceSpec type for use with apply.

ServiceSpec describes the attributes that a user creates on a service.

func ServiceSpec

func ServiceSpec() *ServiceSpecApplyConfiguration

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

func (*ServiceSpecApplyConfiguration) WithAllocateLoadBalancerNodePorts

func (b *ServiceSpecApplyConfiguration) WithAllocateLoadBalancerNodePorts(value bool) *ServiceSpecApplyConfiguration

WithAllocateLoadBalancerNodePorts sets the AllocateLoadBalancerNodePorts 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 AllocateLoadBalancerNodePorts field is set to the value of the last call.

func (*ServiceSpecApplyConfiguration) WithClusterIP

WithClusterIP sets the ClusterIP 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 ClusterIP field is set to the value of the last call.

func (*ServiceSpecApplyConfiguration) WithClusterIPs

WithClusterIPs adds the given value to the ClusterIPs 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 ClusterIPs field.

func (*ServiceSpecApplyConfiguration) WithExternalIPs

WithExternalIPs adds the given value to the ExternalIPs 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 ExternalIPs field.

func (*ServiceSpecApplyConfiguration) WithExternalName

WithExternalName sets the ExternalName 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 ExternalName field is set to the value of the last call.

func (*ServiceSpecApplyConfiguration) WithExternalTrafficPolicy

WithExternalTrafficPolicy sets the ExternalTrafficPolicy 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 ExternalTrafficPolicy field is set to the value of the last call.

func (*ServiceSpecApplyConfiguration) WithHealthCheckNodePort

func (b *ServiceSpecApplyConfiguration) WithHealthCheckNodePort(value int32) *ServiceSpecApplyConfiguration

WithHealthCheckNodePort sets the HealthCheckNodePort 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 HealthCheckNodePort field is set to the value of the last call.

func (*ServiceSpecApplyConfiguration) WithIPFamilies

WithIPFamilies adds the given value to the IPFamilies 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 IPFamilies field.

func (*ServiceSpecApplyConfiguration) WithIPFamilyPolicy

WithIPFamilyPolicy sets the IPFamilyPolicy 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 IPFamilyPolicy field is set to the value of the last call.

func (*ServiceSpecApplyConfiguration) WithInternalTrafficPolicy

WithInternalTrafficPolicy sets the InternalTrafficPolicy 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 InternalTrafficPolicy field is set to the value of the last call.

func (*ServiceSpecApplyConfiguration) WithLoadBalancerClass

func (b *ServiceSpecApplyConfiguration) WithLoadBalancerClass(value string) *ServiceSpecApplyConfiguration

WithLoadBalancerClass sets the LoadBalancerClass 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 LoadBalancerClass field is set to the value of the last call.

func (*ServiceSpecApplyConfiguration) WithLoadBalancerIP

WithLoadBalancerIP sets the LoadBalancerIP 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 LoadBalancerIP field is set to the value of the last call.

func (*ServiceSpecApplyConfiguration) WithLoadBalancerSourceRanges

func (b *ServiceSpecApplyConfiguration) WithLoadBalancerSourceRanges(values ...string) *ServiceSpecApplyConfiguration

WithLoadBalancerSourceRanges adds the given value to the LoadBalancerSourceRanges 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 LoadBalancerSourceRanges field.

func (*ServiceSpecApplyConfiguration) 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 (*ServiceSpecApplyConfiguration) WithPublishNotReadyAddresses

func (b *ServiceSpecApplyConfiguration) WithPublishNotReadyAddresses(value bool) *ServiceSpecApplyConfiguration

WithPublishNotReadyAddresses sets the PublishNotReadyAddresses 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 PublishNotReadyAddresses field is set to the value of the last call.

func (*ServiceSpecApplyConfiguration) WithSelector

WithSelector puts the entries into the Selector 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 Selector field, overwriting an existing map entries in Selector field with the same key.

func (*ServiceSpecApplyConfiguration) WithSessionAffinity

WithSessionAffinity sets the SessionAffinity 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 SessionAffinity field is set to the value of the last call.

func (*ServiceSpecApplyConfiguration) WithSessionAffinityConfig

WithSessionAffinityConfig sets the SessionAffinityConfig 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 SessionAffinityConfig field is set to the value of the last call.

func (*ServiceSpecApplyConfiguration) WithTrafficDistribution

func (b *ServiceSpecApplyConfiguration) WithTrafficDistribution(value string) *ServiceSpecApplyConfiguration

WithTrafficDistribution sets the TrafficDistribution 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 TrafficDistribution field is set to the value of the last call.

func (*ServiceSpecApplyConfiguration) 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 ServiceStatusApplyConfiguration

type ServiceStatusApplyConfiguration struct {
	// LoadBalancer contains the current status of the load-balancer,
	// if one is present.
	LoadBalancer *LoadBalancerStatusApplyConfiguration `json:"loadBalancer,omitempty"`
	// Current service state
	Conditions []metav1.ConditionApplyConfiguration `json:"conditions,omitempty"`
}

ServiceStatusApplyConfiguration represents a declarative configuration of the ServiceStatus type for use with apply.

ServiceStatus represents the current status of a service.

func ServiceStatus

func ServiceStatus() *ServiceStatusApplyConfiguration

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

func (*ServiceStatusApplyConfiguration) 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 (*ServiceStatusApplyConfiguration) 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 SessionAffinityConfigApplyConfiguration

type SessionAffinityConfigApplyConfiguration struct {
	// clientIP contains the configurations of Client IP based session affinity.
	ClientIP *ClientIPConfigApplyConfiguration `json:"clientIP,omitempty"`
}

SessionAffinityConfigApplyConfiguration represents a declarative configuration of the SessionAffinityConfig type for use with apply.

SessionAffinityConfig represents the configurations of session affinity.

func SessionAffinityConfig

func SessionAffinityConfig() *SessionAffinityConfigApplyConfiguration

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

func (*SessionAffinityConfigApplyConfiguration) WithClientIP

WithClientIP sets the ClientIP 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 ClientIP field is set to the value of the last call.

type SleepActionApplyConfiguration

type SleepActionApplyConfiguration struct {
	// Seconds is the number of seconds to sleep.
	Seconds *int64 `json:"seconds,omitempty"`
}

SleepActionApplyConfiguration represents a declarative configuration of the SleepAction type for use with apply.

SleepAction describes a "sleep" action.

func SleepAction

func SleepAction() *SleepActionApplyConfiguration

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

func (*SleepActionApplyConfiguration) WithSeconds

WithSeconds sets the Seconds 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 Seconds field is set to the value of the last call.

type StorageOSPersistentVolumeSourceApplyConfiguration

type StorageOSPersistentVolumeSourceApplyConfiguration struct {
	// volumeName is the human-readable name of the StorageOS volume.  Volume
	// names are only unique within a namespace.
	VolumeName *string `json:"volumeName,omitempty"`
	// volumeNamespace specifies the scope of the volume within StorageOS.  If no
	// namespace is specified then the Pod's namespace will be used.  This allows the
	// Kubernetes name scoping to be mirrored within StorageOS for tighter integration.
	// Set VolumeName to any name to override the default behaviour.
	// Set to "default" if you are not using namespaces within StorageOS.
	// Namespaces that do not pre-exist within StorageOS will be created.
	VolumeNamespace *string `json:"volumeNamespace,omitempty"`
	// fsType is the filesystem type to mount.
	// Must be a filesystem type supported by the host operating system.
	// Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
	FSType *string `json:"fsType,omitempty"`
	// readOnly defaults to false (read/write). ReadOnly here will force
	// the ReadOnly setting in VolumeMounts.
	ReadOnly *bool `json:"readOnly,omitempty"`
	// secretRef specifies the secret to use for obtaining the StorageOS API
	// credentials.  If not specified, default values will be attempted.
	SecretRef *ObjectReferenceApplyConfiguration `json:"secretRef,omitempty"`
}

StorageOSPersistentVolumeSourceApplyConfiguration represents a declarative configuration of the StorageOSPersistentVolumeSource type for use with apply.

Represents a StorageOS persistent volume resource.

func StorageOSPersistentVolumeSource

func StorageOSPersistentVolumeSource() *StorageOSPersistentVolumeSourceApplyConfiguration

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

func (*StorageOSPersistentVolumeSourceApplyConfiguration) WithFSType

WithFSType sets the FSType 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 FSType field is set to the value of the last call.

func (*StorageOSPersistentVolumeSourceApplyConfiguration) WithReadOnly

WithReadOnly sets the ReadOnly 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 ReadOnly field is set to the value of the last call.

func (*StorageOSPersistentVolumeSourceApplyConfiguration) WithSecretRef

WithSecretRef sets the SecretRef 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 SecretRef field is set to the value of the last call.

func (*StorageOSPersistentVolumeSourceApplyConfiguration) WithVolumeName

WithVolumeName sets the VolumeName 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 VolumeName field is set to the value of the last call.

func (*StorageOSPersistentVolumeSourceApplyConfiguration) WithVolumeNamespace

WithVolumeNamespace sets the VolumeNamespace 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 VolumeNamespace field is set to the value of the last call.

type StorageOSVolumeSourceApplyConfiguration

type StorageOSVolumeSourceApplyConfiguration struct {
	// volumeName is the human-readable name of the StorageOS volume.  Volume
	// names are only unique within a namespace.
	VolumeName *string `json:"volumeName,omitempty"`
	// volumeNamespace specifies the scope of the volume within StorageOS.  If no
	// namespace is specified then the Pod's namespace will be used.  This allows the
	// Kubernetes name scoping to be mirrored within StorageOS for tighter integration.
	// Set VolumeName to any name to override the default behaviour.
	// Set to "default" if you are not using namespaces within StorageOS.
	// Namespaces that do not pre-exist within StorageOS will be created.
	VolumeNamespace *string `json:"volumeNamespace,omitempty"`
	// fsType is the filesystem type to mount.
	// Must be a filesystem type supported by the host operating system.
	// Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
	FSType *string `json:"fsType,omitempty"`
	// readOnly defaults to false (read/write). ReadOnly here will force
	// the ReadOnly setting in VolumeMounts.
	ReadOnly *bool `json:"readOnly,omitempty"`
	// secretRef specifies the secret to use for obtaining the StorageOS API
	// credentials.  If not specified, default values will be attempted.
	SecretRef *LocalObjectReferenceApplyConfiguration `json:"secretRef,omitempty"`
}

StorageOSVolumeSourceApplyConfiguration represents a declarative configuration of the StorageOSVolumeSource type for use with apply.

Represents a StorageOS persistent volume resource.

func StorageOSVolumeSource

func StorageOSVolumeSource() *StorageOSVolumeSourceApplyConfiguration

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

func (*StorageOSVolumeSourceApplyConfiguration) WithFSType

WithFSType sets the FSType 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 FSType field is set to the value of the last call.

func (*StorageOSVolumeSourceApplyConfiguration) WithReadOnly

WithReadOnly sets the ReadOnly 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 ReadOnly field is set to the value of the last call.

func (*StorageOSVolumeSourceApplyConfiguration) WithSecretRef

WithSecretRef sets the SecretRef 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 SecretRef field is set to the value of the last call.

func (*StorageOSVolumeSourceApplyConfiguration) WithVolumeName

WithVolumeName sets the VolumeName 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 VolumeName field is set to the value of the last call.

func (*StorageOSVolumeSourceApplyConfiguration) WithVolumeNamespace

WithVolumeNamespace sets the VolumeNamespace 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 VolumeNamespace field is set to the value of the last call.

type SysctlApplyConfiguration

type SysctlApplyConfiguration struct {
	// Name of a property to set
	Name *string `json:"name,omitempty"`
	// Value of a property to set
	Value *string `json:"value,omitempty"`
}

SysctlApplyConfiguration represents a declarative configuration of the Sysctl type for use with apply.

Sysctl defines a kernel parameter to be set

func Sysctl

func Sysctl() *SysctlApplyConfiguration

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

func (*SysctlApplyConfiguration) 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 (*SysctlApplyConfiguration) WithValue

WithValue sets the Value 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 Value field is set to the value of the last call.

type TCPSocketActionApplyConfiguration

type TCPSocketActionApplyConfiguration struct {
	// Number or name of the port to access on the container.
	// Number must be in the range 1 to 65535.
	// Name must be an IANA_SVC_NAME.
	Port *intstr.IntOrString `json:"port,omitempty"`
	// Optional: Host name to connect to, defaults to the pod IP.
	Host *string `json:"host,omitempty"`
}

TCPSocketActionApplyConfiguration represents a declarative configuration of the TCPSocketAction type for use with apply.

TCPSocketAction describes an action based on opening a socket

func TCPSocketAction

func TCPSocketAction() *TCPSocketActionApplyConfiguration

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

func (*TCPSocketActionApplyConfiguration) 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.

func (*TCPSocketActionApplyConfiguration) 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.

type TaintApplyConfiguration

type TaintApplyConfiguration struct {
	// Required. The taint key to be applied to a node.
	Key *string `json:"key,omitempty"`
	// The taint value corresponding to the taint key.
	Value *string `json:"value,omitempty"`
	// Required. The effect of the taint on pods
	// that do not tolerate the taint.
	// Valid effects are NoSchedule, PreferNoSchedule and NoExecute.
	Effect *corev1.TaintEffect `json:"effect,omitempty"`
	// TimeAdded represents the time at which the taint was added.
	TimeAdded *metav1.Time `json:"timeAdded,omitempty"`
}

TaintApplyConfiguration represents a declarative configuration of the Taint type for use with apply.

The node this Taint is attached to has the "effect" on any pod that does not tolerate the Taint.

func Taint

func Taint() *TaintApplyConfiguration

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

func (*TaintApplyConfiguration) WithEffect

WithEffect sets the Effect 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 Effect field is set to the value of the last call.

func (*TaintApplyConfiguration) WithKey

WithKey sets the Key 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 Key field is set to the value of the last call.

func (*TaintApplyConfiguration) WithTimeAdded

WithTimeAdded sets the TimeAdded 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 TimeAdded field is set to the value of the last call.

func (*TaintApplyConfiguration) WithValue

WithValue sets the Value 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 Value field is set to the value of the last call.

type TolerationApplyConfiguration

type TolerationApplyConfiguration struct {
	// Key is the taint key that the toleration applies to. Empty means match all taint keys.
	// If the key is empty, operator must be Exists; this combination means to match all values and all keys.
	Key *string `json:"key,omitempty"`
	// Operator represents a key's relationship to the value.
	// Valid operators are Exists, Equal, Lt, and Gt. Defaults to Equal.
	// Exists is equivalent to wildcard for value, so that a pod can
	// tolerate all taints of a particular category.
	// Lt and Gt perform numeric comparisons (requires feature gate TaintTolerationComparisonOperators).
	Operator *corev1.TolerationOperator `json:"operator,omitempty"`
	// Value is the taint value the toleration matches to.
	// If the operator is Exists, the value should be empty, otherwise just a regular string.
	Value *string `json:"value,omitempty"`
	// Effect indicates the taint effect to match. Empty means match all taint effects.
	// When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.
	Effect *corev1.TaintEffect `json:"effect,omitempty"`
	// TolerationSeconds represents the period of time the toleration (which must be
	// of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,
	// it is not set, which means tolerate the taint forever (do not evict). Zero and
	// negative values will be treated as 0 (evict immediately) by the system.
	TolerationSeconds *int64 `json:"tolerationSeconds,omitempty"`
}

TolerationApplyConfiguration represents a declarative configuration of the Toleration type for use with apply.

The pod this Toleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>.

func Toleration

func Toleration() *TolerationApplyConfiguration

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

func (*TolerationApplyConfiguration) WithEffect

WithEffect sets the Effect 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 Effect field is set to the value of the last call.

func (*TolerationApplyConfiguration) WithKey

WithKey sets the Key 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 Key field is set to the value of the last call.

func (*TolerationApplyConfiguration) WithOperator

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

func (*TolerationApplyConfiguration) WithTolerationSeconds

func (b *TolerationApplyConfiguration) WithTolerationSeconds(value int64) *TolerationApplyConfiguration

WithTolerationSeconds sets the TolerationSeconds 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 TolerationSeconds field is set to the value of the last call.

func (*TolerationApplyConfiguration) WithValue

WithValue sets the Value 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 Value field is set to the value of the last call.

type TopologySelectorLabelRequirementApplyConfiguration

type TopologySelectorLabelRequirementApplyConfiguration struct {
	// The label key that the selector applies to.
	Key *string `json:"key,omitempty"`
	// An array of string values. One value must match the label to be selected.
	// Each entry in Values is ORed.
	Values []string `json:"values,omitempty"`
}

TopologySelectorLabelRequirementApplyConfiguration represents a declarative configuration of the TopologySelectorLabelRequirement type for use with apply.

A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future.

func TopologySelectorLabelRequirement

func TopologySelectorLabelRequirement() *TopologySelectorLabelRequirementApplyConfiguration

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

func (*TopologySelectorLabelRequirementApplyConfiguration) WithKey

WithKey sets the Key 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 Key field is set to the value of the last call.

func (*TopologySelectorLabelRequirementApplyConfiguration) WithValues

WithValues adds the given value to the Values 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 Values field.

type TopologySelectorTermApplyConfiguration

type TopologySelectorTermApplyConfiguration struct {
	// A list of topology selector requirements by labels.
	MatchLabelExpressions []TopologySelectorLabelRequirementApplyConfiguration `json:"matchLabelExpressions,omitempty"`
}

TopologySelectorTermApplyConfiguration represents a declarative configuration of the TopologySelectorTerm type for use with apply.

A topology selector term represents the result of label queries. A null or empty topology selector term matches no objects. The requirements of them are ANDed. It provides a subset of functionality as NodeSelectorTerm. This is an alpha feature and may change in the future.

func TopologySelectorTerm

func TopologySelectorTerm() *TopologySelectorTermApplyConfiguration

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

func (*TopologySelectorTermApplyConfiguration) WithMatchLabelExpressions

WithMatchLabelExpressions adds the given value to the MatchLabelExpressions 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 MatchLabelExpressions field.

type TopologySpreadConstraintApplyConfiguration

type TopologySpreadConstraintApplyConfiguration struct {
	// MaxSkew describes the degree to which pods may be unevenly distributed.
	// When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference
	// between the number of matching pods in the target topology and the global minimum.
	// The global minimum is the minimum number of matching pods in an eligible domain
	// or zero if the number of eligible domains is less than MinDomains.
	// For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same
	// labelSelector spread as 2/2/1:
	// In this case, the global minimum is 1.
	// | zone1 | zone2 | zone3 |
	// |  P P  |  P P  |   P   |
	// - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2;
	// scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2)
	// violate MaxSkew(1).
	// - if MaxSkew is 2, incoming pod can be scheduled onto any zone.
	// When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence
	// to topologies that satisfy it.
	// It's a required field. Default value is 1 and 0 is not allowed.
	MaxSkew *int32 `json:"maxSkew,omitempty"`
	// TopologyKey is the key of node labels. Nodes that have a label with this key
	// and identical values are considered to be in the same topology.
	// We consider each <key, value> as a "bucket", and try to put balanced number
	// of pods into each bucket.
	// We define a domain as a particular instance of a topology.
	// Also, we define an eligible domain as a domain whose nodes meet the requirements of
	// nodeAffinityPolicy and nodeTaintsPolicy.
	// e.g. If TopologyKey is "kubernetes.io/hostname", each Node is a domain of that topology.
	// And, if TopologyKey is "topology.kubernetes.io/zone", each zone is a domain of that topology.
	// It's a required field.
	TopologyKey *string `json:"topologyKey,omitempty"`
	// WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy
	// the spread constraint.
	// - DoNotSchedule (default) tells the scheduler not to schedule it.
	// - ScheduleAnyway tells the scheduler to schedule the pod in any location,
	// but giving higher precedence to topologies that would help reduce the
	// skew.
	// A constraint is considered "Unsatisfiable" for an incoming pod
	// if and only if every possible node assignment for that pod would violate
	// "MaxSkew" on some topology.
	// For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same
	// labelSelector spread as 3/1/1:
	// | zone1 | zone2 | zone3 |
	// | P P P |   P   |   P   |
	// If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled
	// to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies
	// MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler
	// won't make it *more* imbalanced.
	// It's a required field.
	WhenUnsatisfiable *corev1.UnsatisfiableConstraintAction `json:"whenUnsatisfiable,omitempty"`
	// LabelSelector is used to find matching pods.
	// Pods that match this label selector are counted to determine the number of pods
	// in their corresponding topology domain.
	LabelSelector *metav1.LabelSelectorApplyConfiguration `json:"labelSelector,omitempty"`
	// MinDomains indicates a minimum number of eligible domains.
	// When the number of eligible domains with matching topology keys is less than minDomains,
	// Pod Topology Spread treats "global minimum" as 0, and then the calculation of Skew is performed.
	// And when the number of eligible domains with matching topology keys equals or greater than minDomains,
	// this value has no effect on scheduling.
	// As a result, when the number of eligible domains is less than minDomains,
	// scheduler won't schedule more than maxSkew Pods to those domains.
	// If value is nil, the constraint behaves as if MinDomains is equal to 1.
	// Valid values are integers greater than 0.
	// When value is not nil, WhenUnsatisfiable must be DoNotSchedule.
	//
	// For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same
	// labelSelector spread as 2/2/2:
	// | zone1 | zone2 | zone3 |
	// |  P P  |  P P  |  P P  |
	// The number of domains is less than 5(MinDomains), so "global minimum" is treated as 0.
	// In this situation, new pod with the same labelSelector cannot be scheduled,
	// because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones,
	// it will violate MaxSkew.
	MinDomains *int32 `json:"minDomains,omitempty"`
	// NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector
	// when calculating pod topology spread skew. Options are:
	// - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations.
	// - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations.
	//
	// If this value is nil, the behavior is equivalent to the Honor policy.
	NodeAffinityPolicy *corev1.NodeInclusionPolicy `json:"nodeAffinityPolicy,omitempty"`
	// NodeTaintsPolicy indicates how we will treat node taints when calculating
	// pod topology spread skew. Options are:
	// - Honor: nodes without taints, along with tainted nodes for which the incoming pod
	// has a toleration, are included.
	// - Ignore: node taints are ignored. All nodes are included.
	//
	// If this value is nil, the behavior is equivalent to the Ignore policy.
	NodeTaintsPolicy *corev1.NodeInclusionPolicy `json:"nodeTaintsPolicy,omitempty"`
	// MatchLabelKeys is a set of pod label keys to select the pods over which
	// spreading will be calculated. The keys are used to lookup values from the
	// incoming pod labels, those key-value labels are ANDed with labelSelector
	// to select the group of existing pods over which spreading will be calculated
	// for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector.
	// MatchLabelKeys cannot be set when LabelSelector isn't set.
	// Keys that don't exist in the incoming pod labels will
	// be ignored. A null or empty list means only match against labelSelector.
	//
	// This is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default).
	MatchLabelKeys []string `json:"matchLabelKeys,omitempty"`
}

TopologySpreadConstraintApplyConfiguration represents a declarative configuration of the TopologySpreadConstraint type for use with apply.

TopologySpreadConstraint specifies how to spread matching pods among the given topology.

func TopologySpreadConstraint

func TopologySpreadConstraint() *TopologySpreadConstraintApplyConfiguration

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

func (*TopologySpreadConstraintApplyConfiguration) WithLabelSelector

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

func (*TopologySpreadConstraintApplyConfiguration) WithMatchLabelKeys

WithMatchLabelKeys adds the given value to the MatchLabelKeys 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 MatchLabelKeys field.

func (*TopologySpreadConstraintApplyConfiguration) WithMaxSkew

WithMaxSkew sets the MaxSkew 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 MaxSkew field is set to the value of the last call.

func (*TopologySpreadConstraintApplyConfiguration) WithMinDomains

WithMinDomains sets the MinDomains 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 MinDomains field is set to the value of the last call.

func (*TopologySpreadConstraintApplyConfiguration) WithNodeAffinityPolicy

WithNodeAffinityPolicy sets the NodeAffinityPolicy 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 NodeAffinityPolicy field is set to the value of the last call.

func (*TopologySpreadConstraintApplyConfiguration) WithNodeTaintsPolicy

WithNodeTaintsPolicy sets the NodeTaintsPolicy 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 NodeTaintsPolicy field is set to the value of the last call.

func (*TopologySpreadConstraintApplyConfiguration) WithTopologyKey

WithTopologyKey sets the TopologyKey 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 TopologyKey field is set to the value of the last call.

func (*TopologySpreadConstraintApplyConfiguration) WithWhenUnsatisfiable

WithWhenUnsatisfiable sets the WhenUnsatisfiable 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 WhenUnsatisfiable field is set to the value of the last call.

type TypedLocalObjectReferenceApplyConfiguration

type TypedLocalObjectReferenceApplyConfiguration struct {
	// APIGroup is the group for the resource being referenced.
	// If APIGroup is not specified, the specified Kind must be in the core API group.
	// For any other third-party types, APIGroup is required.
	APIGroup *string `json:"apiGroup,omitempty"`
	// Kind is the type of resource being referenced
	Kind *string `json:"kind,omitempty"`
	// Name is the name of resource being referenced
	Name *string `json:"name,omitempty"`
}

TypedLocalObjectReferenceApplyConfiguration represents a declarative configuration of the TypedLocalObjectReference type for use with apply.

TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace. --- New uses of this type are discouraged because of difficulty describing its usage when embedded in APIs. 1. Invalid usage help. It is impossible to add specific help for individual usage. In most embedded usages, there are particular restrictions like, "must refer only to types A and B" or "UID not honored" or "name must be restricted". Those cannot be well described when embedded. 2. Inconsistent validation. Because the usages are different, the validation rules are different by usage, which makes it hard for users to predict what will happen. 3. The fields are both imprecise and overly precise. Kind is not a precise mapping to a URL. This can produce ambiguity during interpretation and require a REST mapping. In most cases, the dependency is on the group,resource tuple and the version of the actual struct is irrelevant. 4. We cannot easily change it. Because this type is embedded in many locations, updates to this type will affect numerous schemas. Don't make new APIs embed an underspecified API type they do not control.

Instead of using this type, create a locally provided and used type that is well-focused on your reference. For example, ServiceReferences for admission registration: https://github.com/kubernetes/api/blob/release-1.17/admissionregistration/v1/types.go#L533 .

func TypedLocalObjectReference

func TypedLocalObjectReference() *TypedLocalObjectReferenceApplyConfiguration

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

func (*TypedLocalObjectReferenceApplyConfiguration) WithAPIGroup

WithAPIGroup sets the APIGroup 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 APIGroup field is set to the value of the last call.

func (*TypedLocalObjectReferenceApplyConfiguration) 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 (*TypedLocalObjectReferenceApplyConfiguration) 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.

type TypedObjectReferenceApplyConfiguration

type TypedObjectReferenceApplyConfiguration struct {
	// APIGroup is the group for the resource being referenced.
	// If APIGroup is not specified, the specified Kind must be in the core API group.
	// For any other third-party types, APIGroup is required.
	APIGroup *string `json:"apiGroup,omitempty"`
	// Kind is the type of resource being referenced
	Kind *string `json:"kind,omitempty"`
	// Name is the name of resource being referenced
	Name *string `json:"name,omitempty"`
	// Namespace is the namespace of resource being referenced
	// Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details.
	// (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.
	Namespace *string `json:"namespace,omitempty"`
}

TypedObjectReferenceApplyConfiguration represents a declarative configuration of the TypedObjectReference type for use with apply.

TypedObjectReference contains enough information to let you locate the typed referenced object

func TypedObjectReference

func TypedObjectReference() *TypedObjectReferenceApplyConfiguration

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

func (*TypedObjectReferenceApplyConfiguration) WithAPIGroup

WithAPIGroup sets the APIGroup 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 APIGroup field is set to the value of the last call.

func (*TypedObjectReferenceApplyConfiguration) 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 (*TypedObjectReferenceApplyConfiguration) 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 (*TypedObjectReferenceApplyConfiguration) 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.

type VolumeApplyConfiguration

type VolumeApplyConfiguration struct {
	// name of the volume.
	// Must be a DNS_LABEL and unique within the pod.
	// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
	Name *string `json:"name,omitempty"`
	// volumeSource represents the location and type of the mounted volume.
	// If not specified, the Volume is implied to be an EmptyDir.
	// This implied behavior is deprecated and will be removed in a future version.
	VolumeSourceApplyConfiguration `json:",inline"`
}

VolumeApplyConfiguration represents a declarative configuration of the Volume type for use with apply.

Volume represents a named volume in a pod that may be accessed by any container in the pod.

func Volume

func Volume() *VolumeApplyConfiguration

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

func (*VolumeApplyConfiguration) WithAWSElasticBlockStore

WithAWSElasticBlockStore sets the AWSElasticBlockStore 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 AWSElasticBlockStore field is set to the value of the last call.

func (*VolumeApplyConfiguration) WithAzureDisk

WithAzureDisk sets the AzureDisk 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 AzureDisk field is set to the value of the last call.

func (*VolumeApplyConfiguration) WithAzureFile

WithAzureFile sets the AzureFile 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 AzureFile field is set to the value of the last call.

func (*VolumeApplyConfiguration) WithCSI

WithCSI sets the CSI 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 CSI field is set to the value of the last call.

func (*VolumeApplyConfiguration) WithCephFS

WithCephFS sets the CephFS 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 CephFS field is set to the value of the last call.

func (*VolumeApplyConfiguration) WithCinder

WithCinder sets the Cinder 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 Cinder field is set to the value of the last call.

func (*VolumeApplyConfiguration) WithConfigMap

WithConfigMap sets the ConfigMap 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 ConfigMap field is set to the value of the last call.

func (*VolumeApplyConfiguration) WithDownwardAPI

WithDownwardAPI sets the DownwardAPI 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 DownwardAPI field is set to the value of the last call.

func (*VolumeApplyConfiguration) WithEmptyDir

WithEmptyDir sets the EmptyDir 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 EmptyDir field is set to the value of the last call.

func (*VolumeApplyConfiguration) WithEphemeral

WithEphemeral sets the Ephemeral 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 Ephemeral field is set to the value of the last call.

func (*VolumeApplyConfiguration) WithFC

WithFC sets the FC 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 FC field is set to the value of the last call.

func (*VolumeApplyConfiguration) WithFlexVolume

WithFlexVolume sets the FlexVolume 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 FlexVolume field is set to the value of the last call.

func (*VolumeApplyConfiguration) WithFlocker

WithFlocker sets the Flocker 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 Flocker field is set to the value of the last call.

func (*VolumeApplyConfiguration) WithGCEPersistentDisk

WithGCEPersistentDisk sets the GCEPersistentDisk 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 GCEPersistentDisk field is set to the value of the last call.

func (*VolumeApplyConfiguration) WithGitRepo

WithGitRepo sets the GitRepo 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 GitRepo field is set to the value of the last call.

func (*VolumeApplyConfiguration) WithGlusterfs

WithGlusterfs sets the Glusterfs 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 Glusterfs field is set to the value of the last call.

func (*VolumeApplyConfiguration) WithHostPath

WithHostPath sets the HostPath 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 HostPath field is set to the value of the last call.

func (*VolumeApplyConfiguration) WithISCSI

WithISCSI sets the ISCSI 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 ISCSI field is set to the value of the last call.

func (*VolumeApplyConfiguration) WithImage

WithImage sets the Image 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 Image field is set to the value of the last call.

func (*VolumeApplyConfiguration) WithNFS

WithNFS sets the NFS 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 NFS field is set to the value of the last call.

func (*VolumeApplyConfiguration) 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 (*VolumeApplyConfiguration) WithPersistentVolumeClaim

WithPersistentVolumeClaim sets the PersistentVolumeClaim 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 PersistentVolumeClaim field is set to the value of the last call.

func (*VolumeApplyConfiguration) WithPhotonPersistentDisk

WithPhotonPersistentDisk sets the PhotonPersistentDisk 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 PhotonPersistentDisk field is set to the value of the last call.

func (*VolumeApplyConfiguration) WithPortworxVolume

WithPortworxVolume sets the PortworxVolume 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 PortworxVolume field is set to the value of the last call.

func (*VolumeApplyConfiguration) WithProjected

WithProjected sets the Projected 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 Projected field is set to the value of the last call.

func (*VolumeApplyConfiguration) WithQuobyte

WithQuobyte sets the Quobyte 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 Quobyte field is set to the value of the last call.

func (*VolumeApplyConfiguration) WithRBD

WithRBD sets the RBD 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 RBD field is set to the value of the last call.

func (*VolumeApplyConfiguration) WithScaleIO

WithScaleIO sets the ScaleIO 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 ScaleIO field is set to the value of the last call.

func (*VolumeApplyConfiguration) WithSecret

WithSecret sets the Secret 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 Secret field is set to the value of the last call.

func (*VolumeApplyConfiguration) WithStorageOS

WithStorageOS sets the StorageOS 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 StorageOS field is set to the value of the last call.

func (*VolumeApplyConfiguration) WithVsphereVolume

WithVsphereVolume sets the VsphereVolume 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 VsphereVolume field is set to the value of the last call.

type VolumeDeviceApplyConfiguration

type VolumeDeviceApplyConfiguration struct {
	// name must match the name of a persistentVolumeClaim in the pod
	Name *string `json:"name,omitempty"`
	// devicePath is the path inside of the container that the device will be mapped to.
	DevicePath *string `json:"devicePath,omitempty"`
}

VolumeDeviceApplyConfiguration represents a declarative configuration of the VolumeDevice type for use with apply.

volumeDevice describes a mapping of a raw block device within a container.

func VolumeDevice

func VolumeDevice() *VolumeDeviceApplyConfiguration

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

func (*VolumeDeviceApplyConfiguration) WithDevicePath

WithDevicePath sets the DevicePath 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 DevicePath field is set to the value of the last call.

func (*VolumeDeviceApplyConfiguration) 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.

type VolumeMountApplyConfiguration

type VolumeMountApplyConfiguration struct {
	// This must match the Name of a Volume.
	Name *string `json:"name,omitempty"`
	// Mounted read-only if true, read-write otherwise (false or unspecified).
	// Defaults to false.
	ReadOnly *bool `json:"readOnly,omitempty"`
	// RecursiveReadOnly specifies whether read-only mounts should be handled
	// recursively.
	//
	// If ReadOnly is false, this field has no meaning and must be unspecified.
	//
	// If ReadOnly is true, and this field is set to Disabled, the mount is not made
	// recursively read-only.  If this field is set to IfPossible, the mount is made
	// recursively read-only, if it is supported by the container runtime.  If this
	// field is set to Enabled, the mount is made recursively read-only if it is
	// supported by the container runtime, otherwise the pod will not be started and
	// an error will be generated to indicate the reason.
	//
	// If this field is set to IfPossible or Enabled, MountPropagation must be set to
	// None (or be unspecified, which defaults to None).
	//
	// If this field is not specified, it is treated as an equivalent of Disabled.
	RecursiveReadOnly *corev1.RecursiveReadOnlyMode `json:"recursiveReadOnly,omitempty"`
	// Path within the container at which the volume should be mounted.  Must
	// not contain ':'.
	MountPath *string `json:"mountPath,omitempty"`
	// Path within the volume from which the container's volume should be mounted.
	// Defaults to "" (volume's root).
	SubPath *string `json:"subPath,omitempty"`
	// mountPropagation determines how mounts are propagated from the host
	// to container and the other way around.
	// When not set, MountPropagationNone is used.
	// This field is beta in 1.10.
	// When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified
	// (which defaults to None).
	MountPropagation *corev1.MountPropagationMode `json:"mountPropagation,omitempty"`
	// Expanded path within the volume from which the container's volume should be mounted.
	// Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.
	// Defaults to "" (volume's root).
	// SubPathExpr and SubPath are mutually exclusive.
	SubPathExpr *string `json:"subPathExpr,omitempty"`
}

VolumeMountApplyConfiguration represents a declarative configuration of the VolumeMount type for use with apply.

VolumeMount describes a mounting of a Volume within a container.

func VolumeMount

func VolumeMount() *VolumeMountApplyConfiguration

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

func (*VolumeMountApplyConfiguration) WithMountPath

WithMountPath sets the MountPath 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 MountPath field is set to the value of the last call.

func (*VolumeMountApplyConfiguration) WithMountPropagation

WithMountPropagation sets the MountPropagation 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 MountPropagation field is set to the value of the last call.

func (*VolumeMountApplyConfiguration) 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 (*VolumeMountApplyConfiguration) WithReadOnly

WithReadOnly sets the ReadOnly 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 ReadOnly field is set to the value of the last call.

func (*VolumeMountApplyConfiguration) WithRecursiveReadOnly

WithRecursiveReadOnly sets the RecursiveReadOnly 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 RecursiveReadOnly field is set to the value of the last call.

func (*VolumeMountApplyConfiguration) WithSubPath

WithSubPath sets the SubPath 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 SubPath field is set to the value of the last call.

func (*VolumeMountApplyConfiguration) WithSubPathExpr

WithSubPathExpr sets the SubPathExpr 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 SubPathExpr field is set to the value of the last call.

type VolumeMountStatusApplyConfiguration

type VolumeMountStatusApplyConfiguration struct {
	// Name corresponds to the name of the original VolumeMount.
	Name *string `json:"name,omitempty"`
	// MountPath corresponds to the original VolumeMount.
	MountPath *string `json:"mountPath,omitempty"`
	// ReadOnly corresponds to the original VolumeMount.
	ReadOnly *bool `json:"readOnly,omitempty"`
	// RecursiveReadOnly must be set to Disabled, Enabled, or unspecified (for non-readonly mounts).
	// An IfPossible value in the original VolumeMount must be translated to Disabled or Enabled,
	// depending on the mount result.
	RecursiveReadOnly *corev1.RecursiveReadOnlyMode `json:"recursiveReadOnly,omitempty"`
}

VolumeMountStatusApplyConfiguration represents a declarative configuration of the VolumeMountStatus type for use with apply.

VolumeMountStatus shows status of volume mounts.

func VolumeMountStatus

func VolumeMountStatus() *VolumeMountStatusApplyConfiguration

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

func (*VolumeMountStatusApplyConfiguration) WithMountPath

WithMountPath sets the MountPath 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 MountPath field is set to the value of the last call.

func (*VolumeMountStatusApplyConfiguration) 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 (*VolumeMountStatusApplyConfiguration) WithReadOnly

WithReadOnly sets the ReadOnly 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 ReadOnly field is set to the value of the last call.

func (*VolumeMountStatusApplyConfiguration) WithRecursiveReadOnly

WithRecursiveReadOnly sets the RecursiveReadOnly 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 RecursiveReadOnly field is set to the value of the last call.

type VolumeNodeAffinityApplyConfiguration

type VolumeNodeAffinityApplyConfiguration struct {
	// required specifies hard node constraints that must be met.
	Required *NodeSelectorApplyConfiguration `json:"required,omitempty"`
}

VolumeNodeAffinityApplyConfiguration represents a declarative configuration of the VolumeNodeAffinity type for use with apply.

VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from.

func VolumeNodeAffinity

func VolumeNodeAffinity() *VolumeNodeAffinityApplyConfiguration

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

func (*VolumeNodeAffinityApplyConfiguration) WithRequired

WithRequired sets the Required 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 Required field is set to the value of the last call.

type VolumeProjectionApplyConfiguration

type VolumeProjectionApplyConfiguration struct {
	// secret information about the secret data to project
	Secret *SecretProjectionApplyConfiguration `json:"secret,omitempty"`
	// downwardAPI information about the downwardAPI data to project
	DownwardAPI *DownwardAPIProjectionApplyConfiguration `json:"downwardAPI,omitempty"`
	// configMap information about the configMap data to project
	ConfigMap *ConfigMapProjectionApplyConfiguration `json:"configMap,omitempty"`
	// serviceAccountToken is information about the serviceAccountToken data to project
	ServiceAccountToken *ServiceAccountTokenProjectionApplyConfiguration `json:"serviceAccountToken,omitempty"`
	// ClusterTrustBundle allows a pod to access the `.spec.trustBundle` field
	// of ClusterTrustBundle objects in an auto-updating file.
	//
	// Alpha, gated by the ClusterTrustBundleProjection feature gate.
	//
	// ClusterTrustBundle objects can either be selected by name, or by the
	// combination of signer name and a label selector.
	//
	// Kubelet performs aggressive normalization of the PEM contents written
	// into the pod filesystem.  Esoteric PEM features such as inter-block
	// comments and block headers are stripped.  Certificates are deduplicated.
	// The ordering of certificates within the file is arbitrary, and Kubelet
	// may change the order over time.
	ClusterTrustBundle *ClusterTrustBundleProjectionApplyConfiguration `json:"clusterTrustBundle,omitempty"`
	// Projects an auto-rotating credential bundle (private key and certificate
	// chain) that the pod can use either as a TLS client or server.
	//
	// Kubelet generates a private key and uses it to send a
	// PodCertificateRequest to the named signer.  Once the signer approves the
	// request and issues a certificate chain, Kubelet writes the key and
	// certificate chain to the pod filesystem.  The pod does not start until
	// certificates have been issued for each podCertificate projected volume
	// source in its spec.
	//
	// Kubelet will begin trying to rotate the certificate at the time indicated
	// by the signer using the PodCertificateRequest.Status.BeginRefreshAt
	// timestamp.
	//
	// Kubelet can write a single file, indicated by the credentialBundlePath
	// field, or separate files, indicated by the keyPath and
	// certificateChainPath fields.
	//
	// The credential bundle is a single file in PEM format.  The first PEM
	// entry is the private key (in PKCS#8 format), and the remaining PEM
	// entries are the certificate chain issued by the signer (typically,
	// signers will return their certificate chain in leaf-to-root order).
	//
	// Prefer using the credential bundle format, since your application code
	// can read it atomically.  If you use keyPath and certificateChainPath,
	// your application must make two separate file reads. If these coincide
	// with a certificate rotation, it is possible that the private key and leaf
	// certificate you read may not correspond to each other.  Your application
	// will need to check for this condition, and re-read until they are
	// consistent.
	//
	// The named signer controls chooses the format of the certificate it
	// issues; consult the signer implementation's documentation to learn how to
	// use the certificates it issues.
	PodCertificate *PodCertificateProjectionApplyConfiguration `json:"podCertificate,omitempty"`
}

VolumeProjectionApplyConfiguration represents a declarative configuration of the VolumeProjection type for use with apply.

Projection that may be projected along with other supported volume types. Exactly one of these fields must be set.

func VolumeProjection

func VolumeProjection() *VolumeProjectionApplyConfiguration

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

func (*VolumeProjectionApplyConfiguration) WithClusterTrustBundle

WithClusterTrustBundle sets the ClusterTrustBundle 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 ClusterTrustBundle field is set to the value of the last call.

func (*VolumeProjectionApplyConfiguration) WithConfigMap

WithConfigMap sets the ConfigMap 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 ConfigMap field is set to the value of the last call.

func (*VolumeProjectionApplyConfiguration) WithDownwardAPI

WithDownwardAPI sets the DownwardAPI 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 DownwardAPI field is set to the value of the last call.

func (*VolumeProjectionApplyConfiguration) WithPodCertificate

WithPodCertificate sets the PodCertificate 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 PodCertificate field is set to the value of the last call.

func (*VolumeProjectionApplyConfiguration) WithSecret

WithSecret sets the Secret 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 Secret field is set to the value of the last call.

func (*VolumeProjectionApplyConfiguration) WithServiceAccountToken

WithServiceAccountToken sets the ServiceAccountToken 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 ServiceAccountToken field is set to the value of the last call.

type VolumeResourceRequirementsApplyConfiguration

type VolumeResourceRequirementsApplyConfiguration struct {
	// Limits describes the maximum amount of compute resources allowed.
	// More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
	Limits *corev1.ResourceList `json:"limits,omitempty"`
	// Requests describes the minimum amount of compute resources required.
	// If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
	// otherwise to an implementation-defined value. Requests cannot exceed Limits.
	// More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
	Requests *corev1.ResourceList `json:"requests,omitempty"`
}

VolumeResourceRequirementsApplyConfiguration represents a declarative configuration of the VolumeResourceRequirements type for use with apply.

VolumeResourceRequirements describes the storage resource requirements for a volume.

func VolumeResourceRequirements

func VolumeResourceRequirements() *VolumeResourceRequirementsApplyConfiguration

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

func (*VolumeResourceRequirementsApplyConfiguration) WithLimits

WithLimits sets the Limits 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 Limits field is set to the value of the last call.

func (*VolumeResourceRequirementsApplyConfiguration) WithRequests

WithRequests sets the Requests 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 Requests field is set to the value of the last call.

type VolumeSourceApplyConfiguration

type VolumeSourceApplyConfiguration struct {
	// hostPath represents a pre-existing file or directory on the host
	// machine that is directly exposed to the container. This is generally
	// used for system agents or other privileged things that are allowed
	// to see the host machine. Most containers will NOT need this.
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
	// ---
	// TODO(jonesdl) We need to restrict who can use host directory mounts and who can/can not
	// mount host directories as read/write.
	HostPath *HostPathVolumeSourceApplyConfiguration `json:"hostPath,omitempty"`
	// emptyDir represents a temporary directory that shares a pod's lifetime.
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir
	EmptyDir *EmptyDirVolumeSourceApplyConfiguration `json:"emptyDir,omitempty"`
	// gcePersistentDisk represents a GCE Disk resource that is attached to a
	// kubelet's host machine and then exposed to the pod.
	// Deprecated: GCEPersistentDisk is deprecated. All operations for the in-tree
	// gcePersistentDisk type are redirected to the pd.csi.storage.gke.io CSI driver.
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
	GCEPersistentDisk *GCEPersistentDiskVolumeSourceApplyConfiguration `json:"gcePersistentDisk,omitempty"`
	// awsElasticBlockStore represents an AWS Disk resource that is attached to a
	// kubelet's host machine and then exposed to the pod.
	// Deprecated: AWSElasticBlockStore is deprecated. All operations for the in-tree
	// awsElasticBlockStore type are redirected to the ebs.csi.aws.com CSI driver.
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
	AWSElasticBlockStore *AWSElasticBlockStoreVolumeSourceApplyConfiguration `json:"awsElasticBlockStore,omitempty"`
	// gitRepo represents a git repository at a particular revision.
	// Deprecated: GitRepo is deprecated. To provision a container with a git repo, mount an
	// EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir
	// into the Pod's container.
	GitRepo *GitRepoVolumeSourceApplyConfiguration `json:"gitRepo,omitempty"`
	// secret represents a secret that should populate this volume.
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
	Secret *SecretVolumeSourceApplyConfiguration `json:"secret,omitempty"`
	// nfs represents an NFS mount on the host that shares a pod's lifetime
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
	NFS *NFSVolumeSourceApplyConfiguration `json:"nfs,omitempty"`
	// iscsi represents an ISCSI Disk resource that is attached to a
	// kubelet's host machine and then exposed to the pod.
	// More info: https://kubernetes.io/docs/concepts/storage/volumes/#iscsi
	ISCSI *ISCSIVolumeSourceApplyConfiguration `json:"iscsi,omitempty"`
	// glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime.
	// Deprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported.
	Glusterfs *GlusterfsVolumeSourceApplyConfiguration `json:"glusterfs,omitempty"`
	// persistentVolumeClaimVolumeSource represents a reference to a
	// PersistentVolumeClaim in the same namespace.
	// More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
	PersistentVolumeClaim *PersistentVolumeClaimVolumeSourceApplyConfiguration `json:"persistentVolumeClaim,omitempty"`
	// rbd represents a Rados Block Device mount on the host that shares a pod's lifetime.
	// Deprecated: RBD is deprecated and the in-tree rbd type is no longer supported.
	RBD *RBDVolumeSourceApplyConfiguration `json:"rbd,omitempty"`
	// flexVolume represents a generic volume resource that is
	// provisioned/attached using an exec based plugin.
	// Deprecated: FlexVolume is deprecated. Consider using a CSIDriver instead.
	FlexVolume *FlexVolumeSourceApplyConfiguration `json:"flexVolume,omitempty"`
	// cinder represents a cinder volume attached and mounted on kubelets host machine.
	// Deprecated: Cinder is deprecated. All operations for the in-tree cinder type
	// are redirected to the cinder.csi.openstack.org CSI driver.
	// More info: https://examples.k8s.io/mysql-cinder-pd/README.md
	Cinder *CinderVolumeSourceApplyConfiguration `json:"cinder,omitempty"`
	// cephFS represents a Ceph FS mount on the host that shares a pod's lifetime.
	// Deprecated: CephFS is deprecated and the in-tree cephfs type is no longer supported.
	CephFS *CephFSVolumeSourceApplyConfiguration `json:"cephfs,omitempty"`
	// flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running.
	// Deprecated: Flocker is deprecated and the in-tree flocker type is no longer supported.
	Flocker *FlockerVolumeSourceApplyConfiguration `json:"flocker,omitempty"`
	// downwardAPI represents downward API about the pod that should populate this volume
	DownwardAPI *DownwardAPIVolumeSourceApplyConfiguration `json:"downwardAPI,omitempty"`
	// fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
	FC *FCVolumeSourceApplyConfiguration `json:"fc,omitempty"`
	// azureFile represents an Azure File Service mount on the host and bind mount to the pod.
	// Deprecated: AzureFile is deprecated. All operations for the in-tree azureFile type
	// are redirected to the file.csi.azure.com CSI driver.
	AzureFile *AzureFileVolumeSourceApplyConfiguration `json:"azureFile,omitempty"`
	// configMap represents a configMap that should populate this volume
	ConfigMap *ConfigMapVolumeSourceApplyConfiguration `json:"configMap,omitempty"`
	// vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine.
	// Deprecated: VsphereVolume is deprecated. All operations for the in-tree vsphereVolume type
	// are redirected to the csi.vsphere.vmware.com CSI driver.
	VsphereVolume *VsphereVirtualDiskVolumeSourceApplyConfiguration `json:"vsphereVolume,omitempty"`
	// quobyte represents a Quobyte mount on the host that shares a pod's lifetime.
	// Deprecated: Quobyte is deprecated and the in-tree quobyte type is no longer supported.
	Quobyte *QuobyteVolumeSourceApplyConfiguration `json:"quobyte,omitempty"`
	// azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
	// Deprecated: AzureDisk is deprecated. All operations for the in-tree azureDisk type
	// are redirected to the disk.csi.azure.com CSI driver.
	AzureDisk *AzureDiskVolumeSourceApplyConfiguration `json:"azureDisk,omitempty"`
	// photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine.
	// Deprecated: PhotonPersistentDisk is deprecated and the in-tree photonPersistentDisk type is no longer supported.
	PhotonPersistentDisk *PhotonPersistentDiskVolumeSourceApplyConfiguration `json:"photonPersistentDisk,omitempty"`
	// projected items for all in one resources secrets, configmaps, and downward API
	Projected *ProjectedVolumeSourceApplyConfiguration `json:"projected,omitempty"`
	// portworxVolume represents a portworx volume attached and mounted on kubelets host machine.
	// Deprecated: PortworxVolume is deprecated. All operations for the in-tree portworxVolume type
	// are redirected to the pxd.portworx.com CSI driver when the CSIMigrationPortworx feature-gate
	// is on.
	PortworxVolume *PortworxVolumeSourceApplyConfiguration `json:"portworxVolume,omitempty"`
	// scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
	// Deprecated: ScaleIO is deprecated and the in-tree scaleIO type is no longer supported.
	ScaleIO *ScaleIOVolumeSourceApplyConfiguration `json:"scaleIO,omitempty"`
	// storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.
	// Deprecated: StorageOS is deprecated and the in-tree storageos type is no longer supported.
	StorageOS *StorageOSVolumeSourceApplyConfiguration `json:"storageos,omitempty"`
	// csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers.
	CSI *CSIVolumeSourceApplyConfiguration `json:"csi,omitempty"`
	// ephemeral represents a volume that is handled by a cluster storage driver.
	// The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts,
	// and deleted when the pod is removed.
	//
	// Use this if:
	// a) the volume is only needed while the pod runs,
	// b) features of normal volumes like restoring from snapshot or capacity
	// tracking are needed,
	// c) the storage driver is specified through a storage class, and
	// d) the storage driver supports dynamic volume provisioning through
	// a PersistentVolumeClaim (see EphemeralVolumeSource for more
	// information on the connection between this volume type
	// and PersistentVolumeClaim).
	//
	// Use PersistentVolumeClaim or one of the vendor-specific
	// APIs for volumes that persist for longer than the lifecycle
	// of an individual pod.
	//
	// Use CSI for light-weight local ephemeral volumes if the CSI driver is meant to
	// be used that way - see the documentation of the driver for
	// more information.
	//
	// A pod can use both types of ephemeral volumes and
	// persistent volumes at the same time.
	Ephemeral *EphemeralVolumeSourceApplyConfiguration `json:"ephemeral,omitempty"`
	// image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine.
	// The volume is resolved at pod startup depending on which PullPolicy value is provided:
	//
	// - Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails.
	// - Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present.
	// - IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails.
	//
	// The volume gets re-resolved if the pod gets deleted and recreated, which means that new remote content will become available on pod recreation.
	// A failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message.
	// The types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field.
	// The OCI object gets mounted in a single directory (spec.containers[*].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images.
	// The volume will be mounted read-only (ro) and non-executable files (noexec).
	// Sub path mounts for containers are not supported (spec.containers[*].volumeMounts.subpath) before 1.33.
	// The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type.
	Image *ImageVolumeSourceApplyConfiguration `json:"image,omitempty"`
}

VolumeSourceApplyConfiguration represents a declarative configuration of the VolumeSource type for use with apply.

Represents the source of a volume to mount. Only one of its members may be specified.

func VolumeSource

func VolumeSource() *VolumeSourceApplyConfiguration

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

func (*VolumeSourceApplyConfiguration) WithAWSElasticBlockStore

WithAWSElasticBlockStore sets the AWSElasticBlockStore 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 AWSElasticBlockStore field is set to the value of the last call.

func (*VolumeSourceApplyConfiguration) WithAzureDisk

WithAzureDisk sets the AzureDisk 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 AzureDisk field is set to the value of the last call.

func (*VolumeSourceApplyConfiguration) WithAzureFile

WithAzureFile sets the AzureFile 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 AzureFile field is set to the value of the last call.

func (*VolumeSourceApplyConfiguration) WithCSI

WithCSI sets the CSI 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 CSI field is set to the value of the last call.

func (*VolumeSourceApplyConfiguration) WithCephFS

WithCephFS sets the CephFS 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 CephFS field is set to the value of the last call.

func (*VolumeSourceApplyConfiguration) WithCinder

WithCinder sets the Cinder 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 Cinder field is set to the value of the last call.

func (*VolumeSourceApplyConfiguration) WithConfigMap

WithConfigMap sets the ConfigMap 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 ConfigMap field is set to the value of the last call.

func (*VolumeSourceApplyConfiguration) WithDownwardAPI

WithDownwardAPI sets the DownwardAPI 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 DownwardAPI field is set to the value of the last call.

func (*VolumeSourceApplyConfiguration) WithEmptyDir

WithEmptyDir sets the EmptyDir 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 EmptyDir field is set to the value of the last call.

func (*VolumeSourceApplyConfiguration) WithEphemeral

WithEphemeral sets the Ephemeral 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 Ephemeral field is set to the value of the last call.

func (*VolumeSourceApplyConfiguration) WithFC

WithFC sets the FC 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 FC field is set to the value of the last call.

func (*VolumeSourceApplyConfiguration) WithFlexVolume

WithFlexVolume sets the FlexVolume 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 FlexVolume field is set to the value of the last call.

func (*VolumeSourceApplyConfiguration) WithFlocker

WithFlocker sets the Flocker 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 Flocker field is set to the value of the last call.

func (*VolumeSourceApplyConfiguration) WithGCEPersistentDisk

WithGCEPersistentDisk sets the GCEPersistentDisk 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 GCEPersistentDisk field is set to the value of the last call.

func (*VolumeSourceApplyConfiguration) WithGitRepo

WithGitRepo sets the GitRepo 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 GitRepo field is set to the value of the last call.

func (*VolumeSourceApplyConfiguration) WithGlusterfs

WithGlusterfs sets the Glusterfs 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 Glusterfs field is set to the value of the last call.

func (*VolumeSourceApplyConfiguration) WithHostPath

WithHostPath sets the HostPath 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 HostPath field is set to the value of the last call.

func (*VolumeSourceApplyConfiguration) WithISCSI

WithISCSI sets the ISCSI 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 ISCSI field is set to the value of the last call.

func (*VolumeSourceApplyConfiguration) WithImage

WithImage sets the Image 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 Image field is set to the value of the last call.

func (*VolumeSourceApplyConfiguration) WithNFS

WithNFS sets the NFS 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 NFS field is set to the value of the last call.

func (*VolumeSourceApplyConfiguration) WithPersistentVolumeClaim

WithPersistentVolumeClaim sets the PersistentVolumeClaim 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 PersistentVolumeClaim field is set to the value of the last call.

func (*VolumeSourceApplyConfiguration) WithPhotonPersistentDisk

WithPhotonPersistentDisk sets the PhotonPersistentDisk 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 PhotonPersistentDisk field is set to the value of the last call.

func (*VolumeSourceApplyConfiguration) WithPortworxVolume

WithPortworxVolume sets the PortworxVolume 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 PortworxVolume field is set to the value of the last call.

func (*VolumeSourceApplyConfiguration) WithProjected

WithProjected sets the Projected 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 Projected field is set to the value of the last call.

func (*VolumeSourceApplyConfiguration) WithQuobyte

WithQuobyte sets the Quobyte 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 Quobyte field is set to the value of the last call.

func (*VolumeSourceApplyConfiguration) WithRBD

WithRBD sets the RBD 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 RBD field is set to the value of the last call.

func (*VolumeSourceApplyConfiguration) WithScaleIO

WithScaleIO sets the ScaleIO 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 ScaleIO field is set to the value of the last call.

func (*VolumeSourceApplyConfiguration) WithSecret

WithSecret sets the Secret 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 Secret field is set to the value of the last call.

func (*VolumeSourceApplyConfiguration) WithStorageOS

WithStorageOS sets the StorageOS 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 StorageOS field is set to the value of the last call.

func (*VolumeSourceApplyConfiguration) WithVsphereVolume

WithVsphereVolume sets the VsphereVolume 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 VsphereVolume field is set to the value of the last call.

type VsphereVirtualDiskVolumeSourceApplyConfiguration

type VsphereVirtualDiskVolumeSourceApplyConfiguration struct {
	// volumePath is the path that identifies vSphere volume vmdk
	VolumePath *string `json:"volumePath,omitempty"`
	// fsType is filesystem type to mount.
	// Must be a filesystem type supported by the host operating system.
	// Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
	FSType *string `json:"fsType,omitempty"`
	// storagePolicyName is the storage Policy Based Management (SPBM) profile name.
	StoragePolicyName *string `json:"storagePolicyName,omitempty"`
	// storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.
	StoragePolicyID *string `json:"storagePolicyID,omitempty"`
}

VsphereVirtualDiskVolumeSourceApplyConfiguration represents a declarative configuration of the VsphereVirtualDiskVolumeSource type for use with apply.

Represents a vSphere volume resource.

func VsphereVirtualDiskVolumeSource

func VsphereVirtualDiskVolumeSource() *VsphereVirtualDiskVolumeSourceApplyConfiguration

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

func (*VsphereVirtualDiskVolumeSourceApplyConfiguration) WithFSType

WithFSType sets the FSType 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 FSType field is set to the value of the last call.

func (*VsphereVirtualDiskVolumeSourceApplyConfiguration) WithStoragePolicyID

WithStoragePolicyID sets the StoragePolicyID 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 StoragePolicyID field is set to the value of the last call.

func (*VsphereVirtualDiskVolumeSourceApplyConfiguration) WithStoragePolicyName

WithStoragePolicyName sets the StoragePolicyName 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 StoragePolicyName field is set to the value of the last call.

func (*VsphereVirtualDiskVolumeSourceApplyConfiguration) WithVolumePath

WithVolumePath sets the VolumePath 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 VolumePath field is set to the value of the last call.

type WeightedPodAffinityTermApplyConfiguration

type WeightedPodAffinityTermApplyConfiguration struct {
	// weight associated with matching the corresponding podAffinityTerm,
	// in the range 1-100.
	Weight *int32 `json:"weight,omitempty"`
	// Required. A pod affinity term, associated with the corresponding weight.
	PodAffinityTerm *PodAffinityTermApplyConfiguration `json:"podAffinityTerm,omitempty"`
}

WeightedPodAffinityTermApplyConfiguration represents a declarative configuration of the WeightedPodAffinityTerm type for use with apply.

The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)

func WeightedPodAffinityTerm

func WeightedPodAffinityTerm() *WeightedPodAffinityTermApplyConfiguration

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

func (*WeightedPodAffinityTermApplyConfiguration) WithPodAffinityTerm

WithPodAffinityTerm sets the PodAffinityTerm 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 PodAffinityTerm field is set to the value of the last call.

func (*WeightedPodAffinityTermApplyConfiguration) WithWeight

WithWeight sets the Weight 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 Weight field is set to the value of the last call.

type WindowsSecurityContextOptionsApplyConfiguration

type WindowsSecurityContextOptionsApplyConfiguration struct {
	// GMSACredentialSpecName is the name of the GMSA credential spec to use.
	GMSACredentialSpecName *string `json:"gmsaCredentialSpecName,omitempty"`
	// GMSACredentialSpec is where the GMSA admission webhook
	// (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
	// GMSA credential spec named by the GMSACredentialSpecName field.
	GMSACredentialSpec *string `json:"gmsaCredentialSpec,omitempty"`
	// The UserName in Windows to run the entrypoint of the container process.
	// Defaults to the user specified in image metadata if unspecified.
	// May also be set in PodSecurityContext. If set in both SecurityContext and
	// PodSecurityContext, the value specified in SecurityContext takes precedence.
	RunAsUserName *string `json:"runAsUserName,omitempty"`
	// HostProcess determines if a container should be run as a 'Host Process' container.
	// All of a Pod's containers must have the same effective HostProcess value
	// (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).
	// In addition, if HostProcess is true then HostNetwork must also be set to true.
	HostProcess *bool `json:"hostProcess,omitempty"`
}

WindowsSecurityContextOptionsApplyConfiguration represents a declarative configuration of the WindowsSecurityContextOptions type for use with apply.

WindowsSecurityContextOptions contain Windows-specific options and credentials.

func WindowsSecurityContextOptions

func WindowsSecurityContextOptions() *WindowsSecurityContextOptionsApplyConfiguration

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

func (*WindowsSecurityContextOptionsApplyConfiguration) WithGMSACredentialSpec

WithGMSACredentialSpec sets the GMSACredentialSpec 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 GMSACredentialSpec field is set to the value of the last call.

func (*WindowsSecurityContextOptionsApplyConfiguration) WithGMSACredentialSpecName

WithGMSACredentialSpecName sets the GMSACredentialSpecName 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 GMSACredentialSpecName field is set to the value of the last call.

func (*WindowsSecurityContextOptionsApplyConfiguration) WithHostProcess

WithHostProcess sets the HostProcess 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 HostProcess field is set to the value of the last call.

func (*WindowsSecurityContextOptionsApplyConfiguration) WithRunAsUserName

WithRunAsUserName sets the RunAsUserName 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 RunAsUserName field is set to the value of the last call.

type WorkloadReferenceApplyConfiguration

type WorkloadReferenceApplyConfiguration struct {
	// Name defines the name of the Workload object this Pod belongs to.
	// Workload must be in the same namespace as the Pod.
	// If it doesn't match any existing Workload, the Pod will remain unschedulable
	// until a Workload object is created and observed by the kube-scheduler.
	// It must be a DNS subdomain.
	Name *string `json:"name,omitempty"`
	// PodGroup is the name of the PodGroup within the Workload that this Pod
	// belongs to. If it doesn't match any existing PodGroup within the Workload,
	// the Pod will remain unschedulable until the Workload object is recreated
	// and observed by the kube-scheduler. It must be a DNS label.
	PodGroup *string `json:"podGroup,omitempty"`
	// PodGroupReplicaKey specifies the replica key of the PodGroup to which this
	// Pod belongs. It is used to distinguish pods belonging to different replicas
	// of the same pod group. The pod group policy is applied separately to each replica.
	// When set, it must be a DNS label.
	PodGroupReplicaKey *string `json:"podGroupReplicaKey,omitempty"`
}

WorkloadReferenceApplyConfiguration represents a declarative configuration of the WorkloadReference type for use with apply.

WorkloadReference identifies the Workload object and PodGroup membership that a Pod belongs to. The scheduler uses this information to apply workload-aware scheduling semantics.

func WorkloadReference

func WorkloadReference() *WorkloadReferenceApplyConfiguration

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

func (*WorkloadReferenceApplyConfiguration) 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 (*WorkloadReferenceApplyConfiguration) WithPodGroup

WithPodGroup sets the PodGroup 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 PodGroup field is set to the value of the last call.

func (*WorkloadReferenceApplyConfiguration) WithPodGroupReplicaKey

WithPodGroupReplicaKey sets the PodGroupReplicaKey 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 PodGroupReplicaKey field is set to the value of the last call.

Source Files

affinity.go apparmorprofile.go attachedvolume.go awselasticblockstorevolumesource.go azurediskvolumesource.go azurefilepersistentvolumesource.go azurefilevolumesource.go capabilities.go cephfspersistentvolumesource.go cephfsvolumesource.go cinderpersistentvolumesource.go cindervolumesource.go clientipconfig.go clustertrustbundleprojection.go componentcondition.go componentstatus.go configmap.go configmapenvsource.go configmapkeyselector.go configmapnodeconfigsource.go configmapprojection.go configmapvolumesource.go container.go containerextendedresourcerequest.go containerimage.go containerport.go containerresizepolicy.go containerrestartrule.go containerrestartruleonexitcodes.go containerstate.go containerstaterunning.go containerstateterminated.go containerstatewaiting.go containerstatus.go containeruser.go csipersistentvolumesource.go csivolumesource.go daemonendpoint.go downwardapiprojection.go downwardapivolumefile.go downwardapivolumesource.go emptydirvolumesource.go endpointaddress.go endpointport.go endpoints.go endpointsubset.go envfromsource.go envvar.go envvarsource.go ephemeralcontainer.go ephemeralcontainercommon.go ephemeralvolumesource.go event.go eventseries.go eventsource.go execaction.go fcvolumesource.go filekeyselector.go flexpersistentvolumesource.go flexvolumesource.go flockervolumesource.go gcepersistentdiskvolumesource.go gitrepovolumesource.go glusterfspersistentvolumesource.go glusterfsvolumesource.go grpcaction.go hostalias.go hostip.go hostpathvolumesource.go httpgetaction.go httpheader.go imagevolumesource.go iscsipersistentvolumesource.go iscsivolumesource.go keytopath.go lifecycle.go lifecyclehandler.go limitrange.go limitrangeitem.go limitrangespec.go linuxcontaineruser.go loadbalanceringress.go loadbalancerstatus.go localobjectreference.go localvolumesource.go modifyvolumestatus.go namespace.go namespacecondition.go namespacespec.go namespacestatus.go nfsvolumesource.go node.go nodeaddress.go nodeaffinity.go nodecondition.go nodeconfigsource.go nodeconfigstatus.go nodedaemonendpoints.go nodefeatures.go noderuntimehandler.go noderuntimehandlerfeatures.go nodeselector.go nodeselectorrequirement.go nodeselectorterm.go nodespec.go nodestatus.go nodeswapstatus.go nodesysteminfo.go objectfieldselector.go objectreference.go persistentvolume.go persistentvolumeclaim.go persistentvolumeclaimcondition.go persistentvolumeclaimspec.go persistentvolumeclaimstatus.go persistentvolumeclaimtemplate.go persistentvolumeclaimvolumesource.go persistentvolumesource.go persistentvolumespec.go persistentvolumestatus.go photonpersistentdiskvolumesource.go pod.go podaffinity.go podaffinityterm.go podantiaffinity.go podcertificateprojection.go podcondition.go poddnsconfig.go poddnsconfigoption.go podextendedresourceclaimstatus.go podip.go podos.go podreadinessgate.go podresourceclaim.go podresourceclaimstatus.go podschedulinggate.go podsecuritycontext.go podspec.go podstatus.go podtemplate.go podtemplatespec.go portstatus.go portworxvolumesource.go preferredschedulingterm.go probe.go probehandler.go projectedvolumesource.go quobytevolumesource.go rbdpersistentvolumesource.go rbdvolumesource.go replicationcontroller.go replicationcontrollercondition.go replicationcontrollerspec.go replicationcontrollerstatus.go resourceclaim.go resourcefieldselector.go resourcehealth.go resourcequota.go resourcequotaspec.go resourcequotastatus.go resourcerequirements.go resourcestatus.go scaleiopersistentvolumesource.go scaleiovolumesource.go scopedresourceselectorrequirement.go scopeselector.go seccompprofile.go secret.go secretenvsource.go secretkeyselector.go secretprojection.go secretreference.go secretvolumesource.go securitycontext.go selinuxoptions.go service.go serviceaccount.go serviceaccounttokenprojection.go serviceport.go servicespec.go servicestatus.go sessionaffinityconfig.go sleepaction.go storageospersistentvolumesource.go storageosvolumesource.go sysctl.go taint.go tcpsocketaction.go toleration.go topologyselectorlabelrequirement.go topologyselectorterm.go topologyspreadconstraint.go typedlocalobjectreference.go typedobjectreference.go volume.go volumedevice.go volumemount.go volumemountstatus.go volumenodeaffinity.go volumeprojection.go volumeresourcerequirements.go volumesource.go vspherevirtualdiskvolumesource.go weightedpodaffinityterm.go windowssecuritycontextoptions.go workloadreference.go

Version
v0.36.0-alpha.0
Published
Dec 3, 2025
Platform
linux/amd64
Imports
8 packages
Last checked
12 minutes ago

Tools for package owners.