Documentation ¶
Index ¶
- Constants
- Variables
- type PodEnrichmentReconciler
- type PodHandler
- func (p *PodHandler) GetNodeAddress(ctx context.Context) (string, error)
- func (p *PodHandler) GetNodeName() string
- func (p *PodHandler) Reconcile(ctx context.Context) (ctrl.Result, error)
- func (p *PodHandler) Scheduled() bool
- func (p *PodHandler) UpdateNodeAddrToPodMeta(ctx context.Context, nodeAddress string) error
Constants ¶
View Source
const ( PodEnrichmentLabelName = "enrichment.zncdata.dev/enable" PodEnrichmentLabelValue = "true" )
Variables ¶
View Source
var ( OrderedAddressTypes = []corev1.NodeAddressType{ corev1.NodeHostName, corev1.NodeExternalDNS, corev1.NodeInternalDNS, corev1.NodeExternalIP, corev1.NodeInternalIP, } )
Functions ¶
This section is empty.
Types ¶
type PodEnrichmentReconciler ¶
func (*PodEnrichmentReconciler) SetupWithManager ¶
func (r *PodEnrichmentReconciler) SetupWithManager(mgr ctrl.Manager) error
type PodHandler ¶
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) Scheduled ¶
func (p *PodHandler) Scheduled() bool
func (*PodHandler) UpdateNodeAddrToPodMeta ¶
func (p *PodHandler) UpdateNodeAddrToPodMeta(ctx context.Context, nodeAddress string) error
Click to show internal directories.
Click to hide internal directories.