omni/internal/backend/grpc/export_test.go
Artem Chernyshev 7486bb8d20
feat: support generating installation media with overlays for Talos 1.7+
Fixes: https://github.com/siderolabs/omni/issues/143

This is crucial if we want to support SBCs in Omni.

Automatically detect which overlay we need to install when any SBC type
is selected on the backend.
Move some of filename generation to the backend, as it's now Talos
version dependent.

Signed-off-by: Artem Chernyshev <artem.chernyshev@talos-systems.com>
2024-04-15 22:43:19 +03:00

29 lines
688 B
Go

// Copyright (c) 2024 Sidero Labs, Inc.
//
// Use of this software is governed by the Business Source License
// included in the LICENSE file.
package grpc
import (
"github.com/cosi-project/runtime/pkg/state"
"go.uber.org/zap"
"github.com/siderolabs/omni/internal/backend/imagefactory"
)
type ManagementServer = managementServer
//nolint:revive
func NewManagementServer(st state.State, imageFactoryClient *imagefactory.Client, logger *zap.Logger) *ManagementServer {
return &ManagementServer{
omniState: st,
imageFactoryClient: imageFactoryClient,
logger: logger,
}
}
func GenerateDest(apiurl string) (string, error) {
return generateDest(apiurl)
}