mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-09-20 01:42:20 +00:00
Belongs to previous commit :P
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
This commit is contained in:
@@ -2,13 +2,14 @@ package config
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/kairos-io/kairos-sdk/state"
|
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"runtime"
|
"runtime"
|
||||||
"strings"
|
"strings"
|
||||||
"unicode"
|
"unicode"
|
||||||
|
|
||||||
|
"github.com/kairos-io/kairos-sdk/state"
|
||||||
|
|
||||||
"github.com/joho/godotenv"
|
"github.com/joho/godotenv"
|
||||||
version "github.com/kairos-io/kairos-agent/v2/internal/common"
|
version "github.com/kairos-io/kairos-agent/v2/internal/common"
|
||||||
"github.com/kairos-io/kairos-agent/v2/pkg/cloudinit"
|
"github.com/kairos-io/kairos-agent/v2/pkg/cloudinit"
|
||||||
@@ -50,6 +51,10 @@ type Install struct {
|
|||||||
Active v1.Image `yaml:"system,omitempty" mapstructure:"system"`
|
Active v1.Image `yaml:"system,omitempty" mapstructure:"system"`
|
||||||
Recovery v1.Image `yaml:"recovery-system,omitempty" mapstructure:"recovery-system"`
|
Recovery v1.Image `yaml:"recovery-system,omitempty" mapstructure:"recovery-system"`
|
||||||
Passive v1.Image `yaml:"passive,omitempty" mapstructure:"recovery-system"`
|
Passive v1.Image `yaml:"passive,omitempty" mapstructure:"recovery-system"`
|
||||||
|
GrubDefEntry string `yaml:"grub-entry-name,omitempty" mapstructure:"grub-entry-name"`
|
||||||
|
ExtraPartitions v1.PartitionList `yaml:"extra-partitions,omitempty" mapstructure:"extra-partitions"`
|
||||||
|
ExtraDirsRootfs []string `yaml:"extra-dirs-rootfs,omitempty" mapstructure:"extra-dirs-rootfs"`
|
||||||
|
Force bool `yaml:"force,omitempty" mapstructure:"force"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewConfig(opts ...GenericOptions) *Config {
|
func NewConfig(opts ...GenericOptions) *Config {
|
||||||
|
Reference in New Issue
Block a user