Documentation ¶
Index ¶
- type ResourceQuotaApplyConfiguration
- func ExtractResourceQuota(resourceQuota *corev1alpha1.ResourceQuota, fieldManager string) (*ResourceQuotaApplyConfiguration, error)
- func ExtractResourceQuotaStatus(resourceQuota *corev1alpha1.ResourceQuota, fieldManager string) (*ResourceQuotaApplyConfiguration, error)
- func ResourceQuota(name, namespace string) *ResourceQuotaApplyConfiguration
- func (b *ResourceQuotaApplyConfiguration) WithAPIVersion(value string) *ResourceQuotaApplyConfiguration
- func (b *ResourceQuotaApplyConfiguration) WithAnnotations(entries map[string]string) *ResourceQuotaApplyConfiguration
- func (b *ResourceQuotaApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ResourceQuotaApplyConfiguration
- func (b *ResourceQuotaApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *ResourceQuotaApplyConfiguration
- func (b *ResourceQuotaApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ResourceQuotaApplyConfiguration
- func (b *ResourceQuotaApplyConfiguration) WithFinalizers(values ...string) *ResourceQuotaApplyConfiguration
- func (b *ResourceQuotaApplyConfiguration) WithGenerateName(value string) *ResourceQuotaApplyConfiguration
- func (b *ResourceQuotaApplyConfiguration) WithGeneration(value int64) *ResourceQuotaApplyConfiguration
- func (b *ResourceQuotaApplyConfiguration) WithKind(value string) *ResourceQuotaApplyConfiguration
- func (b *ResourceQuotaApplyConfiguration) WithLabels(entries map[string]string) *ResourceQuotaApplyConfiguration
- func (b *ResourceQuotaApplyConfiguration) WithName(value string) *ResourceQuotaApplyConfiguration
- func (b *ResourceQuotaApplyConfiguration) WithNamespace(value string) *ResourceQuotaApplyConfiguration
- func (b *ResourceQuotaApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ResourceQuotaApplyConfiguration
- func (b *ResourceQuotaApplyConfiguration) WithResourceVersion(value string) *ResourceQuotaApplyConfiguration
- func (b *ResourceQuotaApplyConfiguration) WithSpec(value *ResourceQuotaSpecApplyConfiguration) *ResourceQuotaApplyConfiguration
- func (b *ResourceQuotaApplyConfiguration) WithStatus(value *ResourceQuotaStatusApplyConfiguration) *ResourceQuotaApplyConfiguration
- func (b *ResourceQuotaApplyConfiguration) WithUID(value types.UID) *ResourceQuotaApplyConfiguration
- type ResourceQuotaSpecApplyConfiguration
- type ResourceQuotaStatusApplyConfiguration
- type ResourceScopeSelectorApplyConfiguration
- type ResourceScopeSelectorRequirementApplyConfiguration
- func (b *ResourceScopeSelectorRequirementApplyConfiguration) WithOperator(value v1alpha1.ResourceScopeSelectorOperator) *ResourceScopeSelectorRequirementApplyConfiguration
- func (b *ResourceScopeSelectorRequirementApplyConfiguration) WithScopeName(value v1alpha1.ResourceScope) *ResourceScopeSelectorRequirementApplyConfiguration
- func (b *ResourceScopeSelectorRequirementApplyConfiguration) WithValues(values ...string) *ResourceScopeSelectorRequirementApplyConfiguration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResourceQuotaApplyConfiguration ¶
type ResourceQuotaApplyConfiguration struct { v1.TypeMetaApplyConfiguration `json:",inline"` *v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"` Spec *ResourceQuotaSpecApplyConfiguration `json:"spec,omitempty"` Status *ResourceQuotaStatusApplyConfiguration `json:"status,omitempty"` }
ResourceQuotaApplyConfiguration represents an declarative configuration of the ResourceQuota type for use with apply.
func ExtractResourceQuota ¶
func ExtractResourceQuota(resourceQuota *corev1alpha1.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. Experimental!
func ExtractResourceQuotaStatus ¶
func ExtractResourceQuotaStatus(resourceQuota *corev1alpha1.ResourceQuota, fieldManager string) (*ResourceQuotaApplyConfiguration, error)
ExtractResourceQuotaStatus is the same as ExtractResourceQuota except that it extracts the status subresource applied configuration. Experimental!
func ResourceQuota ¶
func ResourceQuota(name, namespace string) *ResourceQuotaApplyConfiguration
ResourceQuota constructs an declarative configuration of the ResourceQuota type for use with apply.
func (*ResourceQuotaApplyConfiguration) WithAPIVersion ¶
func (b *ResourceQuotaApplyConfiguration) WithAPIVersion(value string) *ResourceQuotaApplyConfiguration
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 ¶
func (b *ResourceQuotaApplyConfiguration) WithAnnotations(entries map[string]string) *ResourceQuotaApplyConfiguration
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 ¶
func (b *ResourceQuotaApplyConfiguration) WithCreationTimestamp(value metav1.Time) *ResourceQuotaApplyConfiguration
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 ¶
func (b *ResourceQuotaApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *ResourceQuotaApplyConfiguration
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 ¶
func (b *ResourceQuotaApplyConfiguration) WithFinalizers(values ...string) *ResourceQuotaApplyConfiguration
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 ¶
func (b *ResourceQuotaApplyConfiguration) WithGenerateName(value string) *ResourceQuotaApplyConfiguration
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 ¶
func (b *ResourceQuotaApplyConfiguration) WithGeneration(value int64) *ResourceQuotaApplyConfiguration
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 ¶
func (b *ResourceQuotaApplyConfiguration) WithKind(value string) *ResourceQuotaApplyConfiguration
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 ¶
func (b *ResourceQuotaApplyConfiguration) WithLabels(entries map[string]string) *ResourceQuotaApplyConfiguration
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 ¶
func (b *ResourceQuotaApplyConfiguration) WithName(value string) *ResourceQuotaApplyConfiguration
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 ¶
func (b *ResourceQuotaApplyConfiguration) WithNamespace(value string) *ResourceQuotaApplyConfiguration
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 ¶
func (b *ResourceQuotaApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *ResourceQuotaApplyConfiguration
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 ¶
func (b *ResourceQuotaApplyConfiguration) WithResourceVersion(value string) *ResourceQuotaApplyConfiguration
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 ¶
func (b *ResourceQuotaApplyConfiguration) WithSpec(value *ResourceQuotaSpecApplyConfiguration) *ResourceQuotaApplyConfiguration
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 ¶
func (b *ResourceQuotaApplyConfiguration) WithStatus(value *ResourceQuotaStatusApplyConfiguration) *ResourceQuotaApplyConfiguration
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 ¶
func (b *ResourceQuotaApplyConfiguration) WithUID(value types.UID) *ResourceQuotaApplyConfiguration
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 *v1alpha1.ResourceList `json:"hard,omitempty"` ScopeSelector *ResourceScopeSelectorApplyConfiguration `json:"scopeSelector,omitempty"` }
ResourceQuotaSpecApplyConfiguration represents an declarative configuration of the ResourceQuotaSpec type for use with apply.
func ResourceQuotaSpec ¶
func ResourceQuotaSpec() *ResourceQuotaSpecApplyConfiguration
ResourceQuotaSpecApplyConfiguration constructs an declarative configuration of the ResourceQuotaSpec type for use with apply.
func (*ResourceQuotaSpecApplyConfiguration) WithHard ¶
func (b *ResourceQuotaSpecApplyConfiguration) WithHard(value v1alpha1.ResourceList) *ResourceQuotaSpecApplyConfiguration
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 ¶
func (b *ResourceQuotaSpecApplyConfiguration) WithScopeSelector(value *ResourceScopeSelectorApplyConfiguration) *ResourceQuotaSpecApplyConfiguration
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.
type ResourceQuotaStatusApplyConfiguration ¶
type ResourceQuotaStatusApplyConfiguration struct { Hard *v1alpha1.ResourceList `json:"hard,omitempty"` Used *v1alpha1.ResourceList `json:"used,omitempty"` }
ResourceQuotaStatusApplyConfiguration represents an declarative configuration of the ResourceQuotaStatus type for use with apply.
func ResourceQuotaStatus ¶
func ResourceQuotaStatus() *ResourceQuotaStatusApplyConfiguration
ResourceQuotaStatusApplyConfiguration constructs an declarative configuration of the ResourceQuotaStatus type for use with apply.
func (*ResourceQuotaStatusApplyConfiguration) WithHard ¶
func (b *ResourceQuotaStatusApplyConfiguration) WithHard(value v1alpha1.ResourceList) *ResourceQuotaStatusApplyConfiguration
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 ¶
func (b *ResourceQuotaStatusApplyConfiguration) WithUsed(value v1alpha1.ResourceList) *ResourceQuotaStatusApplyConfiguration
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 ResourceScopeSelectorApplyConfiguration ¶
type ResourceScopeSelectorApplyConfiguration struct {
MatchExpressions []ResourceScopeSelectorRequirementApplyConfiguration `json:"matchExpressions,omitempty"`
}
ResourceScopeSelectorApplyConfiguration represents an declarative configuration of the ResourceScopeSelector type for use with apply.
func ResourceScopeSelector ¶
func ResourceScopeSelector() *ResourceScopeSelectorApplyConfiguration
ResourceScopeSelectorApplyConfiguration constructs an declarative configuration of the ResourceScopeSelector type for use with apply.
func (*ResourceScopeSelectorApplyConfiguration) WithMatchExpressions ¶
func (b *ResourceScopeSelectorApplyConfiguration) WithMatchExpressions(values ...*ResourceScopeSelectorRequirementApplyConfiguration) *ResourceScopeSelectorApplyConfiguration
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 ResourceScopeSelectorRequirementApplyConfiguration ¶
type ResourceScopeSelectorRequirementApplyConfiguration struct { ScopeName *v1alpha1.ResourceScope `json:"scopeName,omitempty"` Operator *v1alpha1.ResourceScopeSelectorOperator `json:"operator,omitempty"` Values []string `json:"values,omitempty"` }
ResourceScopeSelectorRequirementApplyConfiguration represents an declarative configuration of the ResourceScopeSelectorRequirement type for use with apply.
func ResourceScopeSelectorRequirement ¶
func ResourceScopeSelectorRequirement() *ResourceScopeSelectorRequirementApplyConfiguration
ResourceScopeSelectorRequirementApplyConfiguration constructs an declarative configuration of the ResourceScopeSelectorRequirement type for use with apply.
func (*ResourceScopeSelectorRequirementApplyConfiguration) WithOperator ¶
func (b *ResourceScopeSelectorRequirementApplyConfiguration) WithOperator(value v1alpha1.ResourceScopeSelectorOperator) *ResourceScopeSelectorRequirementApplyConfiguration
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 (*ResourceScopeSelectorRequirementApplyConfiguration) WithScopeName ¶
func (b *ResourceScopeSelectorRequirementApplyConfiguration) WithScopeName(value v1alpha1.ResourceScope) *ResourceScopeSelectorRequirementApplyConfiguration
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 (*ResourceScopeSelectorRequirementApplyConfiguration) WithValues ¶
func (b *ResourceScopeSelectorRequirementApplyConfiguration) WithValues(values ...string) *ResourceScopeSelectorRequirementApplyConfiguration
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.