v1alpha1

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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

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          *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

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.

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

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 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

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

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

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

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.

Jump to

Keyboard shortcuts

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