poddecoration

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildInfo

func BuildInfo(revisionMap map[string]*appsv1alpha1.PodDecoration) (info string)

func PatchListOfDecorations

func PatchListOfDecorations(pod *corev1.Pod, podDecorations map[string]*appsv1alpha1.PodDecoration) (err error)

func PatchPodDecoration

func PatchPodDecoration(pod *corev1.Pod, template *appsv1alpha1.PodDecorationPodTemplate) (err error)

Types

type Getter

type Getter interface {
	GetOnPod(ctx context.Context, pod *corev1.Pod) (map[string]*appsv1alpha1.PodDecoration, error)
	GetEffective(ctx context.Context, pod *corev1.Pod) (map[string]*appsv1alpha1.PodDecoration, error)
	GetByRevisions(ctx context.Context, revisions ...string) (map[string]*appsv1alpha1.PodDecoration, error)
}

func NewPodDecorationGetter

func NewPodDecorationGetter(c client.Client, namespace string) (Getter, error)

type PodDecorations

type PodDecorations []*appsv1alpha1.PodDecoration

func (PodDecorations) Len

func (br PodDecorations) Len() int

func (PodDecorations) Less

func (br PodDecorations) Less(i, j int) bool

func (PodDecorations) Swap

func (br PodDecorations) Swap(i, j int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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