art: Rebranding (#130)

See: https://github.com/c3os-io/c3os/issues/88
This commit is contained in:
Ettore Di Giacinto
2022-09-17 18:43:51 +02:00
committed by Itxaka
parent 4be833ccfe
commit b2071db5db
4 changed files with 8 additions and 8 deletions

View File

@@ -5,7 +5,7 @@ import (
"os" "os"
"path/filepath" "path/filepath"
. "github.com/c3os-io/c3os/sdk/bundles" . "github.com/kairos-io/kairos/sdk/bundles"
. "github.com/onsi/ginkgo/v2" . "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
) )

View File

@@ -7,8 +7,8 @@ import (
"path/filepath" "path/filepath"
"strings" "strings"
"github.com/c3os-io/c3os/pkg/utils"
"github.com/hashicorp/go-multierror" "github.com/hashicorp/go-multierror"
"github.com/kairos-io/kairos/pkg/utils"
) )
type BundleConfig struct { type BundleConfig struct {
@@ -71,9 +71,9 @@ func (bc *BundleConfig) extractRepo() (string, string, error) {
func defaultConfig() *BundleConfig { func defaultConfig() *BundleConfig {
return &BundleConfig{ return &BundleConfig{
DBPath: "/usr/local/.c3os/db", DBPath: "/usr/local/.kairos/db",
RootPath: "/", 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( out, err := utils.SH(
fmt.Sprintf( 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.DBPath,
config.RootPath, config.RootPath,
repo, repo,

View File

@@ -48,7 +48,7 @@ type Cluster struct {
// Role informs the sdk what kind of installation to manage on this device. // Role informs the sdk what kind of installation to manage on this device.
Role Role `yaml:"role,omitempty" json:"role,omitempty"` 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"` Options string `yaml:"config,omitempty" json:"config,omitempty"`
} }

View File

@@ -5,13 +5,13 @@ import (
"fmt" "fmt"
"os" "os"
"github.com/c3os-io/c3os/sdk/bus" "github.com/kairos-io/kairos/sdk/bus"
"github.com/mudler/go-pluggable" "github.com/mudler/go-pluggable"
yip "github.com/mudler/yip/pkg/schema" yip "github.com/mudler/yip/pkg/schema"
"gopkg.in/yaml.v2" "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 // ClusterProvider returns a yip configuration that configures a Kubernetes engine. The yip config may use any elemental
// stages after initramfs. // stages after initramfs.