mirror of
https://github.com/siderolabs/talos.git
synced 2025-10-09 14:41:31 +02:00
Overview: deprecate existing Talos resource API, and introduce new COSI API. Consequences: * COSI API can only go via one-2-one proxy (`client.WithNode`) * client-side API access is way easier with `state.State` wrappers * lots of small changes on the client side to use new APIs Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
27 lines
678 B
Protocol Buffer
27 lines
678 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package resource.config;
|
|
|
|
option go_package = "github.com/talos-systems/talos/pkg/machinery/api/resource/config";
|
|
|
|
// MessageConfigSpec is the spec for the config.MachineConfig resource.
|
|
message MachineConfigSpec {
|
|
// Contains YAML marshalled machine configuration.
|
|
//
|
|
// Byte representation is preserved as the machine configuration was submitted to the node.
|
|
bytes yaml_marshalled = 1;
|
|
}
|
|
|
|
// MachineType matches machine.Type constants.
|
|
enum MachineType {
|
|
UNKNOWN = 0;
|
|
INIT = 1;
|
|
CONTROL_PLANE = 2;
|
|
WORKER = 3;
|
|
}
|
|
|
|
// MachineTypeSpec is the spec for the config.MachineType resource.
|
|
message MachineTypeSpec {
|
|
MachineType machine_type = 1;
|
|
}
|