k8sutil

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertPVAccessModesToStrings

func ConvertPVAccessModesToStrings(modes []v2.PersistentVolumeAccessMode) []string

func ConvertResourceListToStringMap

func ConvertResourceListToStringMap(list v2.ResourceList) map[string]int64

func ConvertResourceStatusesToStringMap

func ConvertResourceStatusesToStringMap(statuses map[v2.ResourceName]v2.ClaimResourceStatus) map[string]string

func Paginate added in v0.1.9

func Paginate(ctx context.Context, pageFn func(opts v1.ListOptions) (nextContinue string, err error)) error

Paginate abstracts the common Kubernetes List pagination loop using the Continue token. The callback receives the current ListOptions. It should perform the List call, process the items, and return the next continue token (list.Continue). If the next continue token is empty, iteration stops.

Types

This section is empty.

Jump to

Keyboard shortcuts

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