v1

package
v0.0.0-...-6c851f4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterResourceQuotaApplyConfiguration

type ClusterResourceQuotaApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration    `json:",inline"`
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	Spec                             *ClusterResourceQuotaSpecApplyConfiguration   `json:"spec,omitempty"`
	Status                           *ClusterResourceQuotaStatusApplyConfiguration `json:"status,omitempty"`
}

ClusterResourceQuotaApplyConfiguration represents an declarative configuration of the ClusterResourceQuota type for use with apply.

func ClusterResourceQuota

func ClusterResourceQuota(name string) *ClusterResourceQuotaApplyConfiguration

ClusterResourceQuota constructs an declarative configuration of the ClusterResourceQuota type for use with apply.

func ExtractClusterResourceQuota

func ExtractClusterResourceQuota(clusterResourceQuota *apiquotav1.ClusterResourceQuota, fieldManager string) (*ClusterResourceQuotaApplyConfiguration, error)

ExtractClusterResourceQuota extracts the applied configuration owned by fieldManager from clusterResourceQuota. If no managedFields are found in clusterResourceQuota for fieldManager, a ClusterResourceQuotaApplyConfiguration 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. clusterResourceQuota must be a unmodified ClusterResourceQuota API object that was retrieved from the Kubernetes API. ExtractClusterResourceQuota 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. Experimental!

func ExtractClusterResourceQuotaStatus

func ExtractClusterResourceQuotaStatus(clusterResourceQuota *apiquotav1.ClusterResourceQuota, fieldManager string) (*ClusterResourceQuotaApplyConfiguration, error)

ExtractClusterResourceQuotaStatus is the same as ExtractClusterResourceQuota except that it extracts the status subresource applied configuration. Experimental!

func (*ClusterResourceQuotaApplyConfiguration) 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 (*ClusterResourceQuotaApplyConfiguration) 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 (*ClusterResourceQuotaApplyConfiguration) 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 (*ClusterResourceQuotaApplyConfiguration) 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 (*ClusterResourceQuotaApplyConfiguration) 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 (*ClusterResourceQuotaApplyConfiguration) 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 (*ClusterResourceQuotaApplyConfiguration) 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 (*ClusterResourceQuotaApplyConfiguration) 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 (*ClusterResourceQuotaApplyConfiguration) 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 (*ClusterResourceQuotaApplyConfiguration) 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 (*ClusterResourceQuotaApplyConfiguration) 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 (*ClusterResourceQuotaApplyConfiguration) 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 (*ClusterResourceQuotaApplyConfiguration) 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 (*ClusterResourceQuotaApplyConfiguration) 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 (*ClusterResourceQuotaApplyConfiguration) 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 (*ClusterResourceQuotaApplyConfiguration) 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 (*ClusterResourceQuotaApplyConfiguration) 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 ClusterResourceQuotaSelectorApplyConfiguration

type ClusterResourceQuotaSelectorApplyConfiguration struct {
	LabelSelector      *v1.LabelSelector `json:"labels,omitempty"`
	AnnotationSelector map[string]string `json:"annotations,omitempty"`
}

ClusterResourceQuotaSelectorApplyConfiguration represents an declarative configuration of the ClusterResourceQuotaSelector type for use with apply.

func ClusterResourceQuotaSelector

func ClusterResourceQuotaSelector() *ClusterResourceQuotaSelectorApplyConfiguration

ClusterResourceQuotaSelectorApplyConfiguration constructs an declarative configuration of the ClusterResourceQuotaSelector type for use with apply.

func (*ClusterResourceQuotaSelectorApplyConfiguration) WithAnnotationSelector

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

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

type ClusterResourceQuotaSpecApplyConfiguration

type ClusterResourceQuotaSpecApplyConfiguration struct {
	Selector *ClusterResourceQuotaSelectorApplyConfiguration `json:"selector,omitempty"`
	Quota    *corev1.ResourceQuotaSpec                       `json:"quota,omitempty"`
}

ClusterResourceQuotaSpecApplyConfiguration represents an declarative configuration of the ClusterResourceQuotaSpec type for use with apply.

func ClusterResourceQuotaSpec

func ClusterResourceQuotaSpec() *ClusterResourceQuotaSpecApplyConfiguration

ClusterResourceQuotaSpecApplyConfiguration constructs an declarative configuration of the ClusterResourceQuotaSpec type for use with apply.

func (*ClusterResourceQuotaSpecApplyConfiguration) WithQuota

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

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

type ClusterResourceQuotaStatusApplyConfiguration

type ClusterResourceQuotaStatusApplyConfiguration struct {
	Total      *v1.ResourceQuotaStatus                  `json:"total,omitempty"`
	Namespaces *quotav1.ResourceQuotasStatusByNamespace `json:"namespaces,omitempty"`
}

ClusterResourceQuotaStatusApplyConfiguration represents an declarative configuration of the ClusterResourceQuotaStatus type for use with apply.

func ClusterResourceQuotaStatus

func ClusterResourceQuotaStatus() *ClusterResourceQuotaStatusApplyConfiguration

ClusterResourceQuotaStatusApplyConfiguration constructs an declarative configuration of the ClusterResourceQuotaStatus type for use with apply.

func (*ClusterResourceQuotaStatusApplyConfiguration) WithNamespaces

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

func (*ClusterResourceQuotaStatusApplyConfiguration) WithTotal

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

type ResourceQuotaStatusByNamespaceApplyConfiguration

type ResourceQuotaStatusByNamespaceApplyConfiguration struct {
	Namespace *string                 `json:"namespace,omitempty"`
	Status    *v1.ResourceQuotaStatus `json:"status,omitempty"`
}

ResourceQuotaStatusByNamespaceApplyConfiguration represents an declarative configuration of the ResourceQuotaStatusByNamespace type for use with apply.

func ResourceQuotaStatusByNamespace

func ResourceQuotaStatusByNamespace() *ResourceQuotaStatusByNamespaceApplyConfiguration

ResourceQuotaStatusByNamespaceApplyConfiguration constructs an declarative configuration of the ResourceQuotaStatusByNamespace type for use with apply.

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL