podippool

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TableName = "podippools"
)

Variables

View Source
var (
	NameIndex = statedb.Index[LocalPodIPPool, string]{
		Name: "name",
		FromObject: func(obj LocalPodIPPool) index.KeySet {
			return index.NewKeySet([]byte(obj.Name))
		},
		FromKey:    index.String,
		FromString: index.FromString,
		Unique:     true,
	}

	ByName = NameIndex.Query

	// TableCell provides the PodIPPool StateDB table and its k8s reflector.
	TableCell = cell.Module(
		"ipam-podippool-table",
		"PodIPPool StateDB Table",
		cell.Provide(NewTableAndReflector),
	)
)

Functions

func NewTable

func NewTable(db *statedb.DB) (statedb.RWTable[LocalPodIPPool], error)

func NewTableAndReflector

func NewTableAndReflector(jg job.Group, db *statedb.DB, cs client.Clientset) (statedb.Table[LocalPodIPPool], error)

NewTableAndReflector returns the read-only Table[LocalPodIPPool] and registers the k8s reflector. These are combined to ensure any dependency on Table[LocalPodIPPool] will start after the reflector, ensuring that Start hooks can wait for the table to initialize.

Types

type LocalPodIPPool

type LocalPodIPPool struct {
	*api_v2alpha1.CiliumPodIPPool

	// UpdatedAt is the time when [LocalPodIPPool] was last updated, e.g. it
	// shows when the pool change was received from the api-server.
	UpdatedAt time.Time `json:"updatedAt" yaml:"updatedAt"`
}

LocalPodIPPool is an internal model of pod IP pools on the cluster

func (LocalPodIPPool) TableHeader

func (p LocalPodIPPool) TableHeader() []string

func (LocalPodIPPool) TableRow

func (p LocalPodIPPool) TableRow() []string

Jump to

Keyboard shortcuts

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