registry

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: Apache-2.0 Imports: 13 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

Overview

registry/load.go

registry/types.go

registry/validate.go

Index

Constants

View Source
const SchemaVersion = 1

SchemaVersion is the only registry schema version this build understands.

Variables

This section is empty.

Functions

func Validate

func Validate(a AddOn) []error

Validate checks one AddOn against the schema_version 1 rules and returns every violation (empty slice means valid).

Types

type AddOn

type AddOn struct {
	SchemaVersion  int      `json:"schema_version" yaml:"schema_version"` // 1
	ID             string   `json:"id" yaml:"id"`
	DisplayName    string   `json:"display_name" yaml:"display_name"`
	Matchers       Matchers `json:"matchers" yaml:"matchers"`
	Support        Support  `json:"support" yaml:"support"`
	Compat         []Compat `json:"compat,omitempty" yaml:"compat,omitempty"`
	Recommendation string   `json:"recommendation,omitempty" yaml:"recommendation,omitempty"`

	// EndoflifeProduct, when set, is the endoflife.date product slug for
	// this add-on (https://endoflife.date/api/<slug>.json). Entries that
	// carry it have support.status / support.eol_date kept in sync by
	// tools/eol-sync; hand-curated entries leave it empty.
	EndoflifeProduct string `json:"endoflife_product,omitempty" yaml:"endoflife_product,omitempty"`
}

AddOn is one entry in the add-on EOL/compatibility registry (schema_version 1).

func Load

func Load() ([]AddOn, error)

Load parses and validates every embedded registry entry. Entries are returned sorted by ID; any parse/validation error or duplicate ID fails the whole load.

type Compat

type Compat struct {
	Range     string   `json:"range" yaml:"range"`     // semver constraint, e.g. ">=4.0.0"
	K8sMin    string   `json:"k8s_min" yaml:"k8s_min"` // "1.21"
	K8sMax    string   `json:"k8s_max" yaml:"k8s_max"` // "1.36" (inclusive)
	Citations []string `json:"citations" yaml:"citations"`
}

Compat maps a chart/app version range to a supported K8s range.

type Matchers

type Matchers struct {
	Images []string `json:"images,omitempty" yaml:"images,omitempty"` // repo prefix match, tag = version
	Charts []string `json:"charts,omitempty" yaml:"charts,omitempty"` // exact chart name
}

type Support

type Support struct {
	Status    string   `json:"status" yaml:"status"`                         // "supported" | "eol" | "unknown"
	EOLDate   string   `json:"eol_date,omitempty" yaml:"eol_date,omitempty"` // RFC3339 date "2026-03-24"
	Citations []string `json:"citations" yaml:"citations"`                   // ≥1 required when status != unknown
}

Jump to

Keyboard shortcuts

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