v1alpha1

package
v0.26.1 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

+k8s:deepcopy-gen=package,register +groupName=topology.kcp.io +k8s:openapi-gen=true

Index

Constants

View Source
const (
	// PartitionSetValid reflects the validity of the PartitionSet spec.
	PartitionSetValid conditionsv1alpha1.ConditionType = "PartitionSetValid"
	// PartitionsReady indicates whether matching partitions could be created.
	PartitionsReady conditionsv1alpha1.ConditionType = "PartitionsReady"

	// PartitionSetInvalidSelectorReason indicates that the specified selector could not be
	// marshalled into a valid one.
	PartitionSetInvalidSelectorReason = "InvalidSelector"
	// ErrorGeneratingPartitionsReason indicates that the partitions could not be generated.
	ErrorGeneratingPartitionsReason = "ErrorGeneratingPartitions"
)

These are valid conditions of PartitionSet.

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: topology.GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects.

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind.

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource.

Types

type Partition

type Partition struct {
	metav1.TypeMeta `json:",inline"`

	metav1.ObjectMeta `json:"metadata,omitempty"`

	// spec holds the desired state.
	Spec PartitionSpec `json:"spec,omitempty"`
}

Partition defines the selection of a set of shards along multiple dimensions. Partitions can get automatically generated through a partitioner or manually crafted.

func (*Partition) DeepCopy

func (in *Partition) DeepCopy() *Partition

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Partition.

func (*Partition) DeepCopyInto

func (in *Partition) DeepCopyInto(out *Partition)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Partition) DeepCopyObject

func (in *Partition) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type PartitionList

type PartitionList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []Partition `json:"items"`
}

PartitionList is a list of Partition resources.

func (*PartitionList) DeepCopy

func (in *PartitionList) DeepCopy() *PartitionList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PartitionList.

func (*PartitionList) DeepCopyInto

func (in *PartitionList) DeepCopyInto(out *PartitionList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PartitionList) DeepCopyObject

func (in *PartitionList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type PartitionSet

type PartitionSet struct {
	metav1.TypeMeta `json:",inline"`

	metav1.ObjectMeta `json:"metadata,omitempty"`

	// spec holds the desired state.
	Spec PartitionSetSpec `json:"spec,omitempty"`

	// status holds information about the current status
	Status PartitionSetStatus `json:"status,omitempty"`
}

PartitionSet defines a target domain and dimensions to divide a set of shards into 1 or more partitions.

func (*PartitionSet) DeepCopy

func (in *PartitionSet) DeepCopy() *PartitionSet

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PartitionSet.

func (*PartitionSet) DeepCopyInto

func (in *PartitionSet) DeepCopyInto(out *PartitionSet)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PartitionSet) DeepCopyObject

func (in *PartitionSet) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*PartitionSet) GetConditions

func (in *PartitionSet) GetConditions() conditionsv1alpha1.Conditions

func (*PartitionSet) SetConditions

func (in *PartitionSet) SetConditions(conditions conditionsv1alpha1.Conditions)

type PartitionSetList

type PartitionSetList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []PartitionSet `json:"items"`
}

PartitionSetList is a list of PartitionSet resources.

func (*PartitionSetList) DeepCopy

func (in *PartitionSetList) DeepCopy() *PartitionSetList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PartitionSetList.

func (*PartitionSetList) DeepCopyInto

func (in *PartitionSetList) DeepCopyInto(out *PartitionSetList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PartitionSetList) DeepCopyObject

func (in *PartitionSetList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type PartitionSetSpec

type PartitionSetSpec struct {

	// dimensions (optional) are used to group shards into partitions
	Dimensions []string `json:"dimensions,omitempty"`

	// shardSelector (optional) specifies filtering for shard targets.
	ShardSelector *metav1.LabelSelector `json:"shardSelector,omitempty"`
}

PartitionSetSpec records dimensions and a target domain for the partitioning.

func (*PartitionSetSpec) DeepCopy

func (in *PartitionSetSpec) DeepCopy() *PartitionSetSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PartitionSetSpec.

func (*PartitionSetSpec) DeepCopyInto

func (in *PartitionSetSpec) DeepCopyInto(out *PartitionSetSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PartitionSetStatus

type PartitionSetStatus struct {
	// count is the total number of partitions.
	Count uint16 `json:"count,omitempty"`

	// conditions is a list of conditions that apply to the APIExportEndpointSlice.
	Conditions conditionsv1alpha1.Conditions `json:"conditions,omitempty"`
}

PartitionSetStatus records the status of the PartitionSet.

func (*PartitionSetStatus) DeepCopy

func (in *PartitionSetStatus) DeepCopy() *PartitionSetStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PartitionSetStatus.

func (*PartitionSetStatus) DeepCopyInto

func (in *PartitionSetStatus) DeepCopyInto(out *PartitionSetStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PartitionSpec

type PartitionSpec struct {

	// selector (optional) is a label selector that filters shard targets.
	Selector *metav1.LabelSelector `json:"selector,omitempty"`
}

PartitionSpec records the values defining the partition along multiple dimensions.

func (*PartitionSpec) DeepCopy

func (in *PartitionSpec) DeepCopy() *PartitionSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PartitionSpec.

func (*PartitionSpec) DeepCopyInto

func (in *PartitionSpec) DeepCopyInto(out *PartitionSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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