Documentation ¶
Index ¶
- type ClusterResourceQuotaApplyConfiguration
- func ClusterResourceQuota(name string) *ClusterResourceQuotaApplyConfiguration
- func ExtractClusterResourceQuota(clusterResourceQuota *apiquotav1.ClusterResourceQuota, fieldManager string) (*ClusterResourceQuotaApplyConfiguration, error)
- func ExtractClusterResourceQuotaStatus(clusterResourceQuota *apiquotav1.ClusterResourceQuota, fieldManager string) (*ClusterResourceQuotaApplyConfiguration, error)
- func (b *ClusterResourceQuotaApplyConfiguration) WithAPIVersion(value string) *ClusterResourceQuotaApplyConfiguration
- func (b *ClusterResourceQuotaApplyConfiguration) WithAnnotations(entries map[string]string) *ClusterResourceQuotaApplyConfiguration
- func (b *ClusterResourceQuotaApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ClusterResourceQuotaApplyConfiguration
- func (b *ClusterResourceQuotaApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ClusterResourceQuotaApplyConfiguration
- func (b *ClusterResourceQuotaApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ClusterResourceQuotaApplyConfiguration
- func (b *ClusterResourceQuotaApplyConfiguration) WithFinalizers(values ...string) *ClusterResourceQuotaApplyConfiguration
- func (b *ClusterResourceQuotaApplyConfiguration) WithGenerateName(value string) *ClusterResourceQuotaApplyConfiguration
- func (b *ClusterResourceQuotaApplyConfiguration) WithGeneration(value int64) *ClusterResourceQuotaApplyConfiguration
- func (b *ClusterResourceQuotaApplyConfiguration) WithKind(value string) *ClusterResourceQuotaApplyConfiguration
- func (b *ClusterResourceQuotaApplyConfiguration) WithLabels(entries map[string]string) *ClusterResourceQuotaApplyConfiguration
- func (b *ClusterResourceQuotaApplyConfiguration) WithName(value string) *ClusterResourceQuotaApplyConfiguration
- func (b *ClusterResourceQuotaApplyConfiguration) WithNamespace(value string) *ClusterResourceQuotaApplyConfiguration
- func (b *ClusterResourceQuotaApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ClusterResourceQuotaApplyConfiguration
- func (b *ClusterResourceQuotaApplyConfiguration) WithResourceVersion(value string) *ClusterResourceQuotaApplyConfiguration
- func (b *ClusterResourceQuotaApplyConfiguration) WithSpec(value *ClusterResourceQuotaSpecApplyConfiguration) *ClusterResourceQuotaApplyConfiguration
- func (b *ClusterResourceQuotaApplyConfiguration) WithStatus(value *ClusterResourceQuotaStatusApplyConfiguration) *ClusterResourceQuotaApplyConfiguration
- func (b *ClusterResourceQuotaApplyConfiguration) WithUID(value types.UID) *ClusterResourceQuotaApplyConfiguration
- type ClusterResourceQuotaSelectorApplyConfiguration
- func (b *ClusterResourceQuotaSelectorApplyConfiguration) WithAnnotationSelector(entries map[string]string) *ClusterResourceQuotaSelectorApplyConfiguration
- func (b *ClusterResourceQuotaSelectorApplyConfiguration) WithLabelSelector(value v1.LabelSelector) *ClusterResourceQuotaSelectorApplyConfiguration
- type ClusterResourceQuotaSpecApplyConfiguration
- func (b *ClusterResourceQuotaSpecApplyConfiguration) WithQuota(value corev1.ResourceQuotaSpec) *ClusterResourceQuotaSpecApplyConfiguration
- func (b *ClusterResourceQuotaSpecApplyConfiguration) WithSelector(value *ClusterResourceQuotaSelectorApplyConfiguration) *ClusterResourceQuotaSpecApplyConfiguration
- type ClusterResourceQuotaStatusApplyConfiguration
- func (b *ClusterResourceQuotaStatusApplyConfiguration) WithNamespaces(value quotav1.ResourceQuotasStatusByNamespace) *ClusterResourceQuotaStatusApplyConfiguration
- func (b *ClusterResourceQuotaStatusApplyConfiguration) WithTotal(value v1.ResourceQuotaStatus) *ClusterResourceQuotaStatusApplyConfiguration
- type ResourceQuotaStatusByNamespaceApplyConfiguration
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 ¶
func (b *ClusterResourceQuotaApplyConfiguration) WithAPIVersion(value string) *ClusterResourceQuotaApplyConfiguration
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 ¶
func (b *ClusterResourceQuotaApplyConfiguration) WithAnnotations(entries map[string]string) *ClusterResourceQuotaApplyConfiguration
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 ¶
func (b *ClusterResourceQuotaApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ClusterResourceQuotaApplyConfiguration
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 ¶
func (b *ClusterResourceQuotaApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ClusterResourceQuotaApplyConfiguration
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 ¶
func (b *ClusterResourceQuotaApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ClusterResourceQuotaApplyConfiguration
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 ¶
func (b *ClusterResourceQuotaApplyConfiguration) WithFinalizers(values ...string) *ClusterResourceQuotaApplyConfiguration
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 ¶
func (b *ClusterResourceQuotaApplyConfiguration) WithGenerateName(value string) *ClusterResourceQuotaApplyConfiguration
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 ¶
func (b *ClusterResourceQuotaApplyConfiguration) WithGeneration(value int64) *ClusterResourceQuotaApplyConfiguration
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 ¶
func (b *ClusterResourceQuotaApplyConfiguration) WithKind(value string) *ClusterResourceQuotaApplyConfiguration
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 ¶
func (b *ClusterResourceQuotaApplyConfiguration) WithLabels(entries map[string]string) *ClusterResourceQuotaApplyConfiguration
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 ¶
func (b *ClusterResourceQuotaApplyConfiguration) WithName(value string) *ClusterResourceQuotaApplyConfiguration
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 ¶
func (b *ClusterResourceQuotaApplyConfiguration) WithNamespace(value string) *ClusterResourceQuotaApplyConfiguration
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 ¶
func (b *ClusterResourceQuotaApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ClusterResourceQuotaApplyConfiguration
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 ¶
func (b *ClusterResourceQuotaApplyConfiguration) WithResourceVersion(value string) *ClusterResourceQuotaApplyConfiguration
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 ¶
func (b *ClusterResourceQuotaApplyConfiguration) WithSpec(value *ClusterResourceQuotaSpecApplyConfiguration) *ClusterResourceQuotaApplyConfiguration
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 ¶
func (b *ClusterResourceQuotaApplyConfiguration) WithStatus(value *ClusterResourceQuotaStatusApplyConfiguration) *ClusterResourceQuotaApplyConfiguration
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 ¶
func (b *ClusterResourceQuotaApplyConfiguration) WithUID(value types.UID) *ClusterResourceQuotaApplyConfiguration
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 ¶
func (b *ClusterResourceQuotaSelectorApplyConfiguration) WithAnnotationSelector(entries map[string]string) *ClusterResourceQuotaSelectorApplyConfiguration
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 ¶
func (b *ClusterResourceQuotaSelectorApplyConfiguration) WithLabelSelector(value v1.LabelSelector) *ClusterResourceQuotaSelectorApplyConfiguration
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 ¶
func (b *ClusterResourceQuotaSpecApplyConfiguration) WithQuota(value corev1.ResourceQuotaSpec) *ClusterResourceQuotaSpecApplyConfiguration
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 ¶
func (b *ClusterResourceQuotaSpecApplyConfiguration) WithSelector(value *ClusterResourceQuotaSelectorApplyConfiguration) *ClusterResourceQuotaSpecApplyConfiguration
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 ¶
func (b *ClusterResourceQuotaStatusApplyConfiguration) WithNamespaces(value quotav1.ResourceQuotasStatusByNamespace) *ClusterResourceQuotaStatusApplyConfiguration
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 ¶
func (b *ClusterResourceQuotaStatusApplyConfiguration) WithTotal(value v1.ResourceQuotaStatus) *ClusterResourceQuotaStatusApplyConfiguration
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 ¶
func (b *ResourceQuotaStatusByNamespaceApplyConfiguration) WithNamespace(value string) *ResourceQuotaStatusByNamespaceApplyConfiguration
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 ¶
func (b *ResourceQuotaStatusByNamespaceApplyConfiguration) WithStatus(value v1.ResourceQuotaStatus) *ResourceQuotaStatusByNamespaceApplyConfiguration
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.