mirror of
https://github.com/siderolabs/omni.git
synced 2025-08-08 18:47:01 +02:00
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>
29 lines
688 B
Go
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)
|
|
}
|