Documentation
¶
Overview ¶
Package kubernetes exposes the target-oriented entry point for the narrow Kubernetes Deployment integration.
Index ¶
Constants ¶
const ( // MaxPageSize bounds one Kubernetes Deployment request. MaxPageSize = legacy.MaxPageSize // MaxContinueTokenBytes bounds the opaque Kubernetes pagination token. MaxContinueTokenBytes = legacy.MaxContinueTokenBytes )
Variables ¶
var ( // ErrInvalidConfiguration reports an unscoped Kubernetes adapter. ErrInvalidConfiguration = legacy.ErrInvalidConfiguration // ErrInvalidWorkload reports a malformed Kubernetes Deployment name. ErrInvalidWorkload = legacy.ErrInvalidWorkload // ErrInvalidPage reports an unbounded Deployment list request. ErrInvalidPage = legacy.ErrInvalidPage // ErrInvalidResponse reports malformed or cross-namespace Kubernetes state. ErrInvalidResponse = legacy.ErrInvalidResponse // ErrInvalidTenantDocument is a stable Kubernetes mapping error. ErrInvalidTenantDocument = legacy.ErrInvalidTenantDocument // ErrInvalidDispatcher reports a missing tenant-to-cluster resolver. ErrInvalidDispatcher = legacy.ErrInvalidDispatcher // ErrUnsupportedCommand reports a non-scaling command at this boundary. ErrUnsupportedCommand = legacy.ErrUnsupportedCommand // ErrInvalidResolver reports an empty or malformed tenant mapping. ErrInvalidResolver = legacy.ErrInvalidResolver // ErrTenantNotConfigured reports a tenant without Kubernetes visibility. ErrTenantNotConfigured = legacy.ErrTenantNotConfigured )
Functions ¶
This section is empty.
Types ¶
type DeploymentClient ¶
type DeploymentClient = legacy.DeploymentClient
DeploymentClient is the deliberately restricted part of a namespace-scoped Kubernetes Deployment client used by the control plane.
type DeploymentFactory ¶
type DeploymentFactory = legacy.DeploymentFactory
DeploymentFactory returns the restricted Deployment client for one namespace.
type ScaleDispatcher ¶
type ScaleDispatcher = legacy.ScaleDispatcher
ScaleDispatcher sends validated scaling commands to a tenant-scoped Kubernetes adapter.
func NewScaleDispatcher ¶
func NewScaleDispatcher(resolver TenantResolver) (*ScaleDispatcher, error)
NewScaleDispatcher creates a scale-only Kubernetes command dispatcher.
type ScaleResult ¶
type ScaleResult = legacy.ScaleResult
ScaleResult is the Kubernetes acknowledgement of an authorized replica update.
type StaticTenantResolver ¶
type StaticTenantResolver = legacy.StaticTenantResolver
StaticTenantResolver stores an immutable tenant-to-namespace mapping.
func LoadTenantResolver ¶
func LoadTenantResolver( reader io.Reader, maxBytes int64, factory DeploymentFactory, ) (*StaticTenantResolver, error)
LoadTenantResolver builds immutable namespace-scoped adapters from one strict, bounded tenant document.
func NewStaticTenantResolver ¶
func NewStaticTenantResolver(configured map[string]TenantAdapter) (*StaticTenantResolver, error)
NewStaticTenantResolver copies a fixed tenant adapter mapping.
type TenantAdapter ¶
type TenantAdapter = legacy.TenantAdapter
TenantAdapter is the complete bounded Kubernetes surface for one tenant.
type TenantResolver ¶
type TenantResolver = legacy.TenantResolver
TenantResolver maps a tenant to its namespace-scoped Kubernetes adapter.