kubernetesbinding

package
v0.1.0-alpha.3 Latest Latest
Warning

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

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

Documentation

Overview

Package kubernetesbinding defines the bounded contract used to verify the exact Kubernetes resources selected by an installation operator.

Index

Constants

View Source
const (
	MaxTargets     = 32
	ObservationTTL = 90 * time.Second
)

Variables

This section is empty.

Functions

func NormalizeStrings

func NormalizeStrings(values []string) []string

func ValidateObservation

func ValidateObservation(target Target, observation Observation, now time.Time) error

func ValidateTarget

func ValidateTarget(target Target) error

Types

type Health

type Health string
const (
	HealthUnknown     Health = "Unknown"
	HealthHealthy     Health = "Healthy"
	HealthDegraded    Health = "Degraded"
	HealthUnavailable Health = "Unavailable"
)

func EffectiveHealth

func EffectiveHealth(now time.Time, observation Observation) Health

type Kind

type Kind string
const (
	KindStorage         Kind = "Storage"
	KindPublicationHTTP Kind = "PublicationHTTP"
)

type Observation

type Observation struct {
	ID          string
	Kind        Kind
	Version     int64
	Health      Health
	ReasonCode  string
	SampledAt   time.Time
	Storage     *StorageObservation
	Publication *PublicationObservation
}

type PublicationObservation

type PublicationObservation struct {
	GatewayNamespace     string
	GatewayName          string
	SectionName          string
	GatewayClassName     string
	GatewayClassAccepted bool
	GatewayProgrammed    bool
	ListenerReady        bool
	SupportedRouteKinds  []string
}

type PublicationTarget

type PublicationTarget struct {
	GatewayNamespace string
	GatewayName      string
	SectionName      string
}

type StorageObservation

type StorageObservation struct {
	StorageClassName  string
	Provisioner       string
	AccessModes       []string
	AllowExpansion    bool
	VolumeBindingMode string
}

type StorageTarget

type StorageTarget struct {
	StorageClassName string
}

type Target

type Target struct {
	ID          string
	Kind        Kind
	Version     int64
	Storage     *StorageTarget
	Publication *PublicationTarget
}

Jump to

Keyboard shortcuts

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