talos/api/resource/config/config.proto
Eddie Zaneski 5ba1df4695
chore: add java package to protos
This option must be defined at the proto level in order to have an
import path that is reasonably usable

Signed-off-by: Eddie Zaneski <eddiezane@gmail.com>
Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
2024-08-26 15:23:21 +04:00

28 lines
730 B
Protocol Buffer

syntax = "proto3";
package resource.config;
option go_package = "github.com/siderolabs/talos/pkg/machinery/api/resource/config";
option java_package = "dev.talos.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;
}