mirror of
https://github.com/siderolabs/talos.git
synced 2025-11-04 18:31:49 +01:00
Fixes #7430 Introduce a set of resources which look similar to other API implementations: CA, certs, cert SANs, etc. Introduce a controller which manages the service based on resource state. Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
15 lines
490 B
Go
15 lines
490 B
Go
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
package maintenance
|
|
|
|
import "github.com/siderolabs/talos/internal/app/machined/pkg/runtime"
|
|
|
|
var runtimeController runtime.Controller
|
|
|
|
// InjectController is used to pass the controller into the maintenance service.
|
|
func InjectController(c runtime.Controller) {
|
|
runtimeController = c
|
|
}
|