podgroup

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(client client.Client, nodePoolKey string, queueLabelKey string) *Handler

func (*Handler) ApplyToCluster

func (h *Handler) ApplyToCluster(ctx context.Context, pgMetadata Metadata) error

type Metadata

type Metadata struct {
	Annotations       map[string]string
	Labels            map[string]string
	PriorityClassName string
	Preemptibility    v2alpha2.Preemptibility
	Queue             string
	Namespace         string
	Name              string
	MinAvailable      int32
	Owner             metav1.OwnerReference
	SubGroups         []*SubGroupMetadata

	PreferredTopologyLevel string
	RequiredTopologyLevel  string
	Topology               string
}

func (*Metadata) FindSubGroupForPod added in v0.13.0

func (m *Metadata) FindSubGroupForPod(podNamespace, podName string) *SubGroupMetadata

type SubGroupMetadata added in v0.7.13

type SubGroupMetadata struct {
	Name                string
	MinAvailable        int32
	Parent              *string
	PodsReferences      []string
	TopologyConstraints *TopologyConstraintMetadata
}

type TopologyConstraintMetadata added in v0.13.0

type TopologyConstraintMetadata struct {
	PreferredTopologyLevel string
	RequiredTopologyLevel  string
	Topology               string
}

Jump to

Keyboard shortcuts

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