Documentation ¶
Overview ¶
Package meta keeps Talos meta partition utils.
Package meta keeps Talos meta partition utils.
Index ¶
Constants ¶
const LabelsMeta = 12
LabelsMeta is github.com/siderolabs/talos/internal/pkg/meta.UserReserved1. Omni stores initial machine labels under that key. tsgen:LabelsMeta
const MetalNetworkPlatformConfig = 10
MetalNetworkPlatformConfig is github.com/siderolabs/talos/internal/pkg/meta.MetalNetworkPlatformConfig. tsgen:MetalNetworkPlatformConfig
const StateEncryptionConfig = 9
StateEncryptionConfig is github.com/siderolabs/talos/internal/pkg/meta.StateEncryptionConfig.
const UserReserved2 = 13
UserReserved2 is github.com/siderolabs/talos/internal/pkg/meta.UserReserved2.
const UserReserved3 = 14
UserReserved3 is github.com/siderolabs/talos/internal/pkg/meta.UserReserved3.
Variables ¶
This section is empty.
Functions ¶
func CanSetMetaKey ¶
CanSetMetaKey checks if the meta key can be set using Omni/Image Factory. To avoid messing up things which are internal to Talos.
Types ¶
type ImageLabels ¶
type ImageLabels struct { Labels map[string]string `yaml:"machineLabels"` LegacyLabels map[string]string `yaml:"machineInitialLabels,omitempty"` }
ImageLabels describes structure that is stored in the Talos metadata and keeps machine labels that are initially assigned to the machine when it connects to Omni.
func ParseLabels ¶
func ParseLabels(data []byte) (*ImageLabels, error)
ParseLabels reads label from the encoded metadata value.
func (ImageLabels) Encode ¶
func (l ImageLabels) Encode() ([]byte, error)
Encode converts labels to the serialized value to be stored in the meta partition.