Documentation
¶
Overview ¶
Package workloads provides the Kubernetes implementation of discovery.Discoverer.
Index ¶
Constants ¶
const ( WorkloadTypeMCPServer = discovery.WorkloadTypeMCPServer WorkloadTypeMCPRemoteProxy = discovery.WorkloadTypeMCPRemoteProxy WorkloadTypeMCPServerEntry = discovery.WorkloadTypeMCPServerEntry )
Workload types, aliased from discovery.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Discoverer ¶
type Discoverer = discovery.Discoverer
Discoverer is an alias of discovery.Discoverer.
func NewK8SDiscoverer ¶
func NewK8SDiscoverer(namespace ...string) (Discoverer, error)
NewK8SDiscoverer creates a new Kubernetes workload discoverer that directly uses the Kubernetes client to discover MCPServer CRDs. If namespace is empty, it will detect the namespace using k8s.GetCurrentNamespace().
func NewK8SDiscovererWithClient ¶
func NewK8SDiscovererWithClient(k8sClient client.Client, namespace string) Discoverer
NewK8SDiscovererWithClient creates a new Kubernetes workload discoverer with a provided client. This is useful for testing with fake clients.
type TypedWorkload ¶ added in v0.6.12
type TypedWorkload = discovery.TypedWorkload
TypedWorkload is an alias of discovery.TypedWorkload.
type WorkloadType ¶ added in v0.6.12
type WorkloadType = discovery.WorkloadType
WorkloadType is an alias of discovery.WorkloadType.