clusterspec

package
v0.9.1 Latest Latest
Warning

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

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

Documentation

Overview

Package clusterspec describes Podplane cluster runtime requirements shared by infrastructure renderers, such as Nstance certificates configuration.

Index

Constants

View Source
const KubernetesAPISecurePort = 6443

KubernetesAPISecurePort is the kube-apiserver port inside Podplane VMs.

Variables

This section is empty.

Functions

func CertificateFiles

func CertificateFiles(kind string) []string

CertificateFiles returns the certificate template names required by kind.

Types

type Certificate

type Certificate struct {
	Name         string
	Kind         string
	CN           string
	Organization []string
	DNS          []string
	IP           []string
	URI          []string
	TTL          int
}

Certificate describes one Nstance-issued certificate required by a Podplane VM.

func Certificates

func Certificates(netsyClusterIDTemplate, apiHostname string, apiServiceIPs []string) []Certificate

Certificates returns the certificate templates required by Podplane VMs.

type MutableEnv added in v0.7.0

type MutableEnv map[string]string

MutableEnv contains the variables delivered to vmconfig through mutable.env.

func (MutableEnv) ApplyDefaults added in v0.7.0

func (e MutableEnv) ApplyDefaults(clusterID string)

ApplyDefaults populates mutable environment defaults and values derived from clusterID.

func (MutableEnv) Render added in v0.7.0

func (e MutableEnv) Render() (string, error)

Render validates and renders the mutable.env file delivered to vmconfig.

func (MutableEnv) SetObjectStorageEndpoint added in v0.7.0

func (e MutableEnv) SetObjectStorageEndpoint(endpoint string)

SetObjectStorageEndpoint sets all component object storage endpoints to the same value. Use direct field assignment when components use different stores.

func (MutableEnv) SetObjectStorageRegion added in v0.7.0

func (e MutableEnv) SetObjectStorageRegion(region string)

SetObjectStorageRegion sets all component object storage regions to the same value. Use direct field assignment when components use different stores.

func (MutableEnv) Validate added in v0.7.0

func (e MutableEnv) Validate() error

Validate checks values delivered through mutable.env.

Jump to

Keyboard shortcuts

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