pod_enrichment

package
v0.0.0-...-3c45efa 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: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PodEnrichmentLabelName  = "enrichment.zncdata.dev/enable"
	PodEnrichmentLabelValue = "true"
)

Variables

Functions

This section is empty.

Types

type PodEnrichmentReconciler

type PodEnrichmentReconciler struct {
	client.Client
	Schema *runtime.Scheme
}

func (*PodEnrichmentReconciler) Reconcile

func (r *PodEnrichmentReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*PodEnrichmentReconciler) SetupWithManager

func (r *PodEnrichmentReconciler) SetupWithManager(mgr ctrl.Manager) error

type PodHandler

type PodHandler struct {
	Client client.Client
	Pod    *corev1.Pod
}

func NewPodHandler

func NewPodHandler(client client.Client, pod *corev1.Pod) *PodHandler

func (*PodHandler) GetNodeAddress

func (p *PodHandler) GetNodeAddress(ctx context.Context) (string, error)

func (*PodHandler) GetNodeName

func (p *PodHandler) GetNodeName() string

func (*PodHandler) Reconcile

func (p *PodHandler) Reconcile(ctx context.Context) (ctrl.Result, error)

func (*PodHandler) Scheduled

func (p *PodHandler) Scheduled() bool

func (*PodHandler) UpdateNodeAddrToPodMeta

func (p *PodHandler) UpdateNodeAddrToPodMeta(ctx context.Context, nodeAddress string) error

Jump to

Keyboard shortcuts

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