mirror of
https://github.com/kairos-io/kairos-sdk.git
synced 2025-09-08 10:39:10 +00:00
committed by
Itxaka
parent
4be833ccfe
commit
b2071db5db
@@ -5,7 +5,7 @@ import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
. "github.com/c3os-io/c3os/sdk/bundles"
|
||||
. "github.com/kairos-io/kairos/sdk/bundles"
|
||||
. "github.com/onsi/ginkgo/v2"
|
||||
. "github.com/onsi/gomega"
|
||||
)
|
||||
|
@@ -7,8 +7,8 @@ import (
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"github.com/c3os-io/c3os/pkg/utils"
|
||||
"github.com/hashicorp/go-multierror"
|
||||
"github.com/kairos-io/kairos/pkg/utils"
|
||||
)
|
||||
|
||||
type BundleConfig struct {
|
||||
@@ -71,9 +71,9 @@ func (bc *BundleConfig) extractRepo() (string, string, error) {
|
||||
|
||||
func defaultConfig() *BundleConfig {
|
||||
return &BundleConfig{
|
||||
DBPath: "/usr/local/.c3os/db",
|
||||
DBPath: "/usr/local/.kairos/db",
|
||||
RootPath: "/",
|
||||
Repository: "docker://quay.io/c3os/packages",
|
||||
Repository: "docker://quay.io/kairos/packages",
|
||||
}
|
||||
}
|
||||
|
||||
@@ -201,7 +201,7 @@ func (l *LuetInstaller) Install(config *BundleConfig) error {
|
||||
}
|
||||
out, err := utils.SH(
|
||||
fmt.Sprintf(
|
||||
`LUET_CONFIG_FROM_HOST=false luet repo add --system-dbpath %s --system-target %s c3os-system -y --description "Automatically generated c3os-system" --url "%s" --type "%s"`,
|
||||
`LUET_CONFIG_FROM_HOST=false luet repo add --system-dbpath %s --system-target %s kairos-system -y --description "Automatically generated kairos-system" --url "%s" --type "%s"`,
|
||||
config.DBPath,
|
||||
config.RootPath,
|
||||
repo,
|
||||
|
@@ -48,7 +48,7 @@ type Cluster struct {
|
||||
// Role informs the sdk what kind of installation to manage on this device.
|
||||
Role Role `yaml:"role,omitempty" json:"role,omitempty"`
|
||||
|
||||
// Options are arbitrary values the sdk may be interested in. These values are not validated by C3OS and are simply forwarded to the sdk.
|
||||
// Options are arbitrary values the sdk may be interested in. These values are not validated by Kairos and are simply forwarded to the sdk.
|
||||
Options string `yaml:"config,omitempty" json:"config,omitempty"`
|
||||
}
|
||||
|
||||
|
@@ -5,13 +5,13 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/c3os-io/c3os/sdk/bus"
|
||||
"github.com/kairos-io/kairos/sdk/bus"
|
||||
"github.com/mudler/go-pluggable"
|
||||
yip "github.com/mudler/yip/pkg/schema"
|
||||
"gopkg.in/yaml.v2"
|
||||
)
|
||||
|
||||
const clusterProviderCloudConfigFile = "/usr/local/cloud-config/cluster.c3os.yaml"
|
||||
const clusterProviderCloudConfigFile = "/usr/local/cloud-config/cluster.kairos.yaml"
|
||||
|
||||
// ClusterProvider returns a yip configuration that configures a Kubernetes engine. The yip config may use any elemental
|
||||
// stages after initramfs.
|
||||
|
Reference in New Issue
Block a user