discovery

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package discovery resolves the live pods of an AgentDeploy through the headless Service that the AgentDeploy reconciler maintains.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Discover

func Discover(ctx context.Context, r Resolver, as, ad, namespace string) ([]string, error)

Discover returns the list of pod DNS names to scrape for the given AgentDeploy, identified by its AgentSet and its short (Spec.Name) agent name.

Types

type Resolver

type Resolver interface {
	LookupHost(ctx context.Context, host string) ([]string, error)
}

Resolver is a small interface that net.DefaultResolver satisfies; tests inject a stub.

Jump to

Keyboard shortcuts

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