Documentation
¶
Overview ¶
Package clusterspec describes Podplane cluster runtime requirements shared by infrastructure renderers, such as Nstance certificates configuration.
Index ¶
Constants ¶
const KubernetesAPISecurePort = 6443
KubernetesAPISecurePort is the kube-apiserver port inside Podplane VMs.
Variables ¶
This section is empty.
Functions ¶
func CertificateFiles ¶
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
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.