serverutil

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCatalogServerToManager

func AddCatalogServerToManager(mgr ctrl.Manager, cfg CatalogServerConfig) error

AddCatalogServerToManager adds the catalog HTTP server to the manager and registers a readiness check that passes once the server has started serving. Because NeedLeaderElection returns false, Start() is called on every pod immediately, so all replicas bind the catalog port and become ready. Non-leader pods serve requests but return 404 (empty local cache); callers are expected to retry.

Types

type CatalogServerConfig

type CatalogServerConfig struct {
	ExternalAddr string
	CatalogAddr  string
	CertFile     string
	KeyFile      string
	LocalStorage storage.Instance
	// TLSOpts are optional functions applied to the TLS configuration when serving over HTTPS.
	// Use these to configure cipher suites, minimum TLS version, curve preferences, and
	// certificate retrieval (e.g. via a certwatcher).
	TLSOpts []func(*tls.Config)
}

Jump to

Keyboard shortcuts

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