clusterid

package
v2.10.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

package clusterid defines the structure of the Constellation cluster ID file. Logic in this package should be kept minimal.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClusterName added in v2.10.0

func GetClusterName(cfg *config.Config, idFile File) string

GetClusterName returns the name of the cluster.

Types

type File

type File struct {
	// ClusterID is the unique identifier of the cluster.
	ClusterID string `json:"clusterID,omitempty"`
	// OwnerID is the unique identifier of the owner of the cluster.
	OwnerID string `json:"ownerID,omitempty"`
	// UID is the unique identifier of the cluster, used for infrastructure management.
	UID string `json:"uid,omitempty"`
	// CloudProvider is the cloud provider of the cluster.
	CloudProvider cloudprovider.Provider `json:"cloudprovider,omitempty"`
	// IP is the IP address the cluster can be reached at (often the load balancer).
	IP string `json:"ip,omitempty"`
	// APIServerCertSANs are subject alternative names (SAN) that are added to
	// the TLS certificate of each apiserver instance.
	APIServerCertSANs []string `json:"apiServerCertSANs,omitempty"`
	// InitSecret is the secret the first Bootstrapper uses to verify the user.
	InitSecret []byte `json:"initsecret,omitempty"`
	// AttestationURL is the URL of the attestation service.
	// It is only set if the cluster is created on Azure.
	AttestationURL string `json:"attestationURL,omitempty"`
	// MeasurementSalt is the salt generated during cluster init.
	MeasurementSalt []byte `json:"measurementSalt,omitempty"`
}

File contains state information about a cluster. This information is accessible after the creation and can be used by further operations such as initialization and upgrades.

func (*File) Merge added in v2.10.0

func (f *File) Merge(other File) *File

Merge merges the other file into the current file and returns the result. If a field is set in both files, the value of the other file is used. This does in-place changes on the current file.

Jump to

Keyboard shortcuts

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