runtime

package
v0.1.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrOwnershipConflict = errors.New("runtime object is not owned by the control plane")

Functions

This section is empty.

Types

type Client

type Client interface {
	EnsureWorkspace(context.Context, string) error
	ApplyVolume(context.Context, string, string, VolumeIntent) error
	ObserveVolume(context.Context, string, string) (VolumeObservation, error)
	ApplyDeployment(context.Context, string, string, domain.Intent) error
	ObserveDeployment(context.Context, string, string) (Observation, error)
	DeleteDeployment(context.Context, string, string) error
	GarbageCollectConfiguration(context.Context, string, string) error
}

type ExternalConfig

type ExternalConfig struct {
	Kubeconfig         string
	Context            string
	Server             string
	ExpectedClusterUID string
}

type KubernetesClient

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

func NewInClusterClient

func NewInClusterClient(fieldManager string, timeout time.Duration, expectedClusterUID string) (*KubernetesClient, error)

func NewKubernetesClient

func NewKubernetesClient(external ExternalConfig, fieldManager string, timeout time.Duration) (*KubernetesClient, error)

func (*KubernetesClient) ApplyDeployment

func (k *KubernetesClient) ApplyDeployment(ctx context.Context, namespace, name string, intent domain.Intent) error

func (*KubernetesClient) ApplyVolume

func (k *KubernetesClient) ApplyVolume(ctx context.Context, namespace, name string, intent VolumeIntent) error

func (*KubernetesClient) DeleteDeployment

func (k *KubernetesClient) DeleteDeployment(ctx context.Context, namespace, name string) error

func (*KubernetesClient) EnsureWorkspace

func (k *KubernetesClient) EnsureWorkspace(ctx context.Context, namespace string) error

func (*KubernetesClient) GarbageCollectConfiguration

func (k *KubernetesClient) GarbageCollectConfiguration(ctx context.Context, namespace, owner string) error

func (*KubernetesClient) ObserveDeployment

func (k *KubernetesClient) ObserveDeployment(ctx context.Context, namespace, name string) (Observation, error)

func (*KubernetesClient) ObserveVolume

func (k *KubernetesClient) ObserveVolume(ctx context.Context, namespace, name string) (VolumeObservation, error)

func (*KubernetesClient) Preflight

func (k *KubernetesClient) Preflight(ctx context.Context) error

type Observation

type Observation struct {
	Exists             bool
	State              string
	Message            string
	Generation         int64
	ObservedGeneration int64
	ObservedRelease    string
}

type VolumeIntent

type VolumeIntent struct {
	RuntimeBinding  string
	SizeGiB         int64
	RetentionPolicy string
	DesiredState    string
}

type VolumeObservation

type VolumeObservation struct {
	Exists          bool
	State           string
	Message         string
	ObservedSizeGiB int64
}

Jump to

Keyboard shortcuts

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