Skip to content

Commit 074f3ea

Browse files
committed
feat: implement cluster operation status controller
Introduce ClusterMachineExtendedConfig resource as input to replace ClusterMachineConfig for ClusterMachineConfigStatus controller Create ClusterStatusController which outputs ClusterMachineExtendedConfig by unifying ClusterMachineConfig and MachineConfigGenOptions.InstallImage Signed-off-by: Oguz Kilcan <[email protected]>
1 parent 7ae7ea7 commit 074f3ea

File tree

20 files changed

+1311
-472
lines changed

20 files changed

+1311
-472
lines changed

client/api/omni/specs/omni.pb.go

Lines changed: 493 additions & 395 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/api/omni/specs/omni.proto

Lines changed: 26 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,24 +1059,25 @@ message MachineClassSpec {
10591059
Provision auto_provision = 2;
10601060
}
10611061

1062+
// InstallImage contains the information needed to build the install image URL of a machine to be used by the Talos installer.
1063+
message InstallImage {
1064+
// TalosVersion is the Talos version to use for the install image.
1065+
string talos_version = 1;
1066+
// SchematicId is the schematic id to use for the install image.
1067+
string schematic_id = 2;
1068+
// SchematicInitialized is true if the schematic is initialized.
1069+
bool schematic_initialized = 3;
1070+
// SchematicInvalid is true if the schematic is invalid.
1071+
bool schematic_invalid = 4;
1072+
reserved 5;
1073+
// Platform is the machine platform to use for the install image.
1074+
string platform = 6;
1075+
// SecurityState is used to decide the secure boot enablement in the install image.
1076+
SecurityState security_state = 7;
1077+
}
1078+
10621079
// MachineConfigGenOptionsSpec describes machine related config generation inputs.
10631080
message MachineConfigGenOptionsSpec {
1064-
message InstallImage {
1065-
// TalosVersion is the Talos version to use for the install image.
1066-
string talos_version = 1;
1067-
// SchematicId is the schematic id to use for the install image.
1068-
string schematic_id = 2;
1069-
// SchematicInitialized is true if the schematic is initialized.
1070-
bool schematic_initialized = 3;
1071-
// SchematicInvalid is true if the schematic is invalid.
1072-
bool schematic_invalid = 4;
1073-
reserved 5;
1074-
// Platform is the machine platform to use for the install image.
1075-
string platform = 6;
1076-
// SecurityState is used to decide the secure boot enablement in the install image.
1077-
SecurityState security_state = 7;
1078-
}
1079-
10801081
string install_disk = 1;
10811082

10821083
// InstallImage contains the information needed to build the install image URL of a machine to be used by the Talos installer.
@@ -1368,3 +1369,12 @@ message InfraProviderCombinedStatusSpec {
13681369
message MachineConfigDiffSpec {
13691370
string diff = 1;
13701371
}
1372+
1373+
message ClusterMachineExtendedConfigSpec {
1374+
ClusterMachineConfigSpec config_spec = 1;
1375+
InstallImage install_image = 2;
1376+
}
1377+
1378+
message ClusterOperationStatusSpec {
1379+
// TODO
1380+
}

0 commit comments

Comments
 (0)