secretbinding

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler records which secret bindings on each MCPServer cannot be resolved, so API handlers can report missing configuration without reading Secrets.

func New

func New(storageClient, secretClient kclient.Client, obotNamespace, allowedLabel string) *Handler

New returns a Handler. Both clients should be cached: the Secret handler lists every MCPServer through storageClient for each Secret event, and secretClient serves every binding lookup, so uncached clients would send that traffic to the API servers.

func (*Handler) SyncMCPServerStatus

func (h *Handler) SyncMCPServerStatus(req router.Request, _ router.Response) error

SyncMCPServerStatus updates an MCPServer's unresolved secret bindings when it changes.

func (*Handler) SyncMCPServersForSecret

func (h *Handler) SyncMCPServersForSecret(req router.Request, _ router.Response) error

SyncMCPServersForSecret updates the unresolved secret bindings of every MCPServer bound to a Secret in the obot namespace when that Secret changes or is deleted.

Jump to

Keyboard shortcuts

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