manager

package
v2.3.3 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: Apache-2.0 Imports: 12 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ID

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

ID is a unique identifier for the Kong Ingress Controller instance. It can be an arbitrary string that is unique across all instances.

func NewID

func NewID(s string) (ID, error)

NewID creates a new manager ID from a string (e.g. a Kubernetes object UID).

func NewRandomID

func NewRandomID() ID

NewRandomID generates a new random manager ID.

func (ID) String

func (id ID) String() string

String returns the string representation (usable for various APIs) of the manager ID.

type Manager

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

Manager is an object representing an instance of the Kong Ingress Controller.

func NewManager

func NewManager(ctx context.Context, id ID, logger logr.Logger, cfg managercfg.Config) (*Manager, error)

NewManager creates a new instance of the Kong Ingress Controller. It does not start the controller.

func (*Manager) Config

func (m *Manager) Config() managercfg.Config

Config returns the configuration of the manager.

func (*Manager) DiagnosticsHandler

func (m *Manager) DiagnosticsHandler() http.Handler

DiagnosticsHandler returns the diagnostics handler of the manager if available. Otherwise, it returns nil.

func (*Manager) GetClientsManager

func (m *Manager) GetClientsManager() *clients.AdminAPIClientsManager

GetClientsManager returns the clients manager associated with the instance.

func (*Manager) GetKubeconfig

func (m *Manager) GetKubeconfig() *rest.Config

GetKubeconfig returns the Kubernetes REST config object associated with the instance.

func (*Manager) ID

func (m *Manager) ID() ID

ID returns the unique identifier of the manager.

func (*Manager) IsReady

func (m *Manager) IsReady() error

IsReady checks if the controller manager is ready to manage resources. It's only valid to call this method after the controller manager has been started with method Run(ctx).

func (*Manager) KongValidator

func (m *Manager) KongValidator() admission.KongHTTPValidator

KongValidator returns the Kong HTTP validator of the manager.

func (*Manager) Run

func (m *Manager) Run(ctx context.Context) error

Run starts the Kong Ingress Controller. It blocks until the context is cancelled. It should be called only once per Manager instance.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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