kubernetes

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package kubernetes implements RuntimeAdapter using the Kubernetes API. Requires the platform Pod to have a ServiceAccount with the RBAC permissions documented in PLUGIN_RUNTIME.md.

This is a structural stub. To enable it:

  1. Add k8s.io/client-go and k8s.io/api to go.mod.
  2. Uncomment the import block and implement the methods below.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runtime

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

Runtime implements runtime.RuntimeAdapter for Kubernetes.

func New

func New(namespace string) (*Runtime, error)

New creates a KubernetesRuntime. namespace is the k8s namespace plugins are deployed into (default: "kleff").

func (*Runtime) Deploy

func (r *Runtime) Deploy(_ context.Context, spec runtime.ContainerSpec) error

func (*Runtime) Endpoint

func (r *Runtime) Endpoint(_ context.Context, id string, port int) (string, error)

Endpoint returns the ClusterIP Service DNS name for a plugin. Pattern: {id}.{namespace}.svc.cluster.local:{port}

func (*Runtime) Logs

func (r *Runtime) Logs(_ context.Context, _ string, _ int) ([]string, error)

func (*Runtime) Remove

func (r *Runtime) Remove(_ context.Context, id string) error

func (*Runtime) Start

func (r *Runtime) Start(_ context.Context, id string) error

func (*Runtime) Status

func (*Runtime) Stop

func (r *Runtime) Stop(_ context.Context, id string) error

Jump to

Keyboard shortcuts

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