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)
}
Click to show internal directories.
Click to hide internal directories.