talos/internal/pkg/meta/constants.go
Andrey Smirnov 1df841bb54
refactor: change the interface of META
Use a global instance, handle loading/saving META in global context.

Deprecate legacy syslinux ADV, provide an easier interface for
consumers.

Expose META as resources.

Fix the bootloader revert process (it was completely broken for quite a
while :sad:).

This is a first step which mostly does preparation work, real changes
will come in the next PRs:

* add APIs to write to META
* consume META keys for platform network config for `metal`
* custom key for URL `${code}`

Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
2023-03-15 15:43:16 +04:00

17 lines
565 B
Go

// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
package meta
const (
// Upgrade is the upgrade tag.
Upgrade = iota + 6
// StagedUpgradeImageRef stores image reference for staged upgrade.
StagedUpgradeImageRef
// StagedUpgradeInstallOptions stores JSON-serialized install.Options.
StagedUpgradeInstallOptions
// StateEncryptionConfig stores JSON-serialized v1alpha1.Encryption.
StateEncryptionConfig
)