From d5fb13e766c4be1bf72c234877e895e42a861200 Mon Sep 17 00:00:00 2001 From: Utku Ozdemir Date: Sat, 19 Oct 2024 00:16:30 +0200 Subject: [PATCH] feat: bare metal stuff Bare metal related stuff. Signed-off-by: Utku Ozdemir --- client/api/common/omni.pb.go | 26 +- client/api/omni/management/management.pb.go | 576 +-- client/api/omni/oidc/oidc.pb.go | 48 +- client/api/omni/resources/resources.pb.go | 312 +- client/api/omni/specs/auth.pb.go | 532 +-- client/api/omni/specs/ephemeral.pb.go | 26 +- client/api/omni/specs/infra.pb.go | 273 +- client/api/omni/specs/infra.proto | 12 + client/api/omni/specs/infra_vtproto.pb.go | 462 +++ client/api/omni/specs/oidc.pb.go | 26 +- client/api/omni/specs/omni.pb.go | 3091 +++++------------ client/api/omni/specs/omni.proto | 12 + client/api/omni/specs/omni_vtproto.pb.go | 194 ++ client/api/omni/specs/siderolink.pb.go | 92 +- client/api/omni/specs/system.pb.go | 70 +- client/api/omni/specs/virtual.pb.go | 114 +- client/go.mod | 2 + client/go.sum | 81 + client/pkg/client/client.go | 9 + client/pkg/omni/resources/common/common.go | 1 + client/pkg/omni/resources/infra/infra.go | 6 +- client/pkg/omni/resources/infra/machine.go | 66 + .../omni/resources/infra/machine_status.go | 58 + .../resources/omni/infra_machine_config.go | 58 + client/pkg/omni/resources/omni/labels.go | 8 + client/pkg/omni/resources/omni/omni.go | 1 + cmd/integration-test/pkg/tests/auth.go | 7 + frontend/src/api/omni/specs/infra.pb.ts | 12 + frontend/src/api/omni/specs/omni.pb.ts | 11 + frontend/src/api/resources.ts | 53 +- go.mod | 6 + go.sum | 40 + go.work | 2 +- internal/backend/baremetal/baremetal.go | 113 + internal/backend/grpc/grpc.go | 5 + internal/backend/grpc/tunnel.go | 30 + .../omni/controllers/omni/infra_machine.go | 71 + .../runtime/omni/controllers/omni/machine.go | 37 +- .../runtime/omni/infraprovider/state.go | 12 +- .../runtime/omni/infraprovider/state_test.go | 117 +- internal/backend/runtime/omni/omni.go | 1 + internal/backend/runtime/omni/state_access.go | 3 + internal/backend/server.go | 39 + 43 files changed, 2814 insertions(+), 3901 deletions(-) create mode 100644 client/pkg/omni/resources/infra/machine.go create mode 100644 client/pkg/omni/resources/infra/machine_status.go create mode 100644 client/pkg/omni/resources/omni/infra_machine_config.go create mode 100644 internal/backend/baremetal/baremetal.go create mode 100644 internal/backend/grpc/tunnel.go create mode 100644 internal/backend/runtime/omni/controllers/omni/infra_machine.go diff --git a/client/api/common/omni.pb.go b/client/api/common/omni.pb.go index d76bf398..d8d30f2e 100644 --- a/client/api/common/omni.pb.go +++ b/client/api/common/omni.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc v4.24.4 // source: common/omni.proto @@ -86,11 +86,9 @@ type Context struct { func (x *Context) Reset() { *x = Context{} - if protoimpl.UnsafeEnabled { - mi := &file_common_omni_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_common_omni_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Context) String() string { @@ -101,7 +99,7 @@ func (*Context) ProtoMessage() {} func (x *Context) ProtoReflect() protoreflect.Message { mi := &file_common_omni_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -170,20 +168,6 @@ func file_common_omni_proto_init() { if File_common_omni_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_common_omni_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*Context); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/client/api/omni/management/management.pb.go b/client/api/omni/management/management.pb.go index 1a1bd0b8..a199365b 100644 --- a/client/api/omni/management/management.pb.go +++ b/client/api/omni/management/management.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc v4.24.4 // source: omni/management/management.proto @@ -134,11 +134,9 @@ type KubeconfigResponse struct { func (x *KubeconfigResponse) Reset() { *x = KubeconfigResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_management_management_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_management_management_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *KubeconfigResponse) String() string { @@ -149,7 +147,7 @@ func (*KubeconfigResponse) ProtoMessage() {} func (x *KubeconfigResponse) ProtoReflect() protoreflect.Message { mi := &file_omni_management_management_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -182,11 +180,9 @@ type TalosconfigResponse struct { func (x *TalosconfigResponse) Reset() { *x = TalosconfigResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_management_management_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_management_management_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TalosconfigResponse) String() string { @@ -197,7 +193,7 @@ func (*TalosconfigResponse) ProtoMessage() {} func (x *TalosconfigResponse) ProtoReflect() protoreflect.Message { mi := &file_omni_management_management_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -230,11 +226,9 @@ type OmniconfigResponse struct { func (x *OmniconfigResponse) Reset() { *x = OmniconfigResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_management_management_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_management_management_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *OmniconfigResponse) String() string { @@ -245,7 +239,7 @@ func (*OmniconfigResponse) ProtoMessage() {} func (x *OmniconfigResponse) ProtoReflect() protoreflect.Message { mi := &file_omni_management_management_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -282,11 +276,9 @@ type MachineLogsRequest struct { func (x *MachineLogsRequest) Reset() { *x = MachineLogsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_management_management_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_management_management_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MachineLogsRequest) String() string { @@ -297,7 +289,7 @@ func (*MachineLogsRequest) ProtoMessage() {} func (x *MachineLogsRequest) ProtoReflect() protoreflect.Message { mi := &file_omni_management_management_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -344,11 +336,9 @@ type ValidateConfigRequest struct { func (x *ValidateConfigRequest) Reset() { *x = ValidateConfigRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_management_management_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_management_management_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ValidateConfigRequest) String() string { @@ -359,7 +349,7 @@ func (*ValidateConfigRequest) ProtoMessage() {} func (x *ValidateConfigRequest) ProtoReflect() protoreflect.Message { mi := &file_omni_management_management_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -394,11 +384,9 @@ type TalosconfigRequest struct { func (x *TalosconfigRequest) Reset() { *x = TalosconfigRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_management_management_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_management_management_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TalosconfigRequest) String() string { @@ -409,7 +397,7 @@ func (*TalosconfigRequest) ProtoMessage() {} func (x *TalosconfigRequest) ProtoReflect() protoreflect.Message { mi := &file_omni_management_management_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -453,11 +441,9 @@ type CreateServiceAccountRequest struct { func (x *CreateServiceAccountRequest) Reset() { *x = CreateServiceAccountRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_management_management_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_management_management_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CreateServiceAccountRequest) String() string { @@ -468,7 +454,7 @@ func (*CreateServiceAccountRequest) ProtoMessage() {} func (x *CreateServiceAccountRequest) ProtoReflect() protoreflect.Message { mi := &file_omni_management_management_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -521,11 +507,9 @@ type CreateServiceAccountResponse struct { func (x *CreateServiceAccountResponse) Reset() { *x = CreateServiceAccountResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_management_management_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_management_management_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CreateServiceAccountResponse) String() string { @@ -536,7 +520,7 @@ func (*CreateServiceAccountResponse) ProtoMessage() {} func (x *CreateServiceAccountResponse) ProtoReflect() protoreflect.Message { mi := &file_omni_management_management_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -569,11 +553,9 @@ type RenewServiceAccountRequest struct { func (x *RenewServiceAccountRequest) Reset() { *x = RenewServiceAccountRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_management_management_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_management_management_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RenewServiceAccountRequest) String() string { @@ -584,7 +566,7 @@ func (*RenewServiceAccountRequest) ProtoMessage() {} func (x *RenewServiceAccountRequest) ProtoReflect() protoreflect.Message { mi := &file_omni_management_management_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -623,11 +605,9 @@ type RenewServiceAccountResponse struct { func (x *RenewServiceAccountResponse) Reset() { *x = RenewServiceAccountResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_management_management_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_management_management_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RenewServiceAccountResponse) String() string { @@ -638,7 +618,7 @@ func (*RenewServiceAccountResponse) ProtoMessage() {} func (x *RenewServiceAccountResponse) ProtoReflect() protoreflect.Message { mi := &file_omni_management_management_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -670,11 +650,9 @@ type DestroyServiceAccountRequest struct { func (x *DestroyServiceAccountRequest) Reset() { *x = DestroyServiceAccountRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_management_management_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_management_management_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DestroyServiceAccountRequest) String() string { @@ -685,7 +663,7 @@ func (*DestroyServiceAccountRequest) ProtoMessage() {} func (x *DestroyServiceAccountRequest) ProtoReflect() protoreflect.Message { mi := &file_omni_management_management_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -717,11 +695,9 @@ type ListServiceAccountsResponse struct { func (x *ListServiceAccountsResponse) Reset() { *x = ListServiceAccountsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_management_management_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_management_management_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListServiceAccountsResponse) String() string { @@ -732,7 +708,7 @@ func (*ListServiceAccountsResponse) ProtoMessage() {} func (x *ListServiceAccountsResponse) ProtoReflect() protoreflect.Message { mi := &file_omni_management_management_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -769,11 +745,9 @@ type KubeconfigRequest struct { func (x *KubeconfigRequest) Reset() { *x = KubeconfigRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_management_management_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_management_management_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *KubeconfigRequest) String() string { @@ -784,7 +758,7 @@ func (*KubeconfigRequest) ProtoMessage() {} func (x *KubeconfigRequest) ProtoReflect() protoreflect.Message { mi := &file_omni_management_management_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -851,11 +825,9 @@ type KubernetesUpgradePreChecksRequest struct { func (x *KubernetesUpgradePreChecksRequest) Reset() { *x = KubernetesUpgradePreChecksRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_management_management_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_management_management_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *KubernetesUpgradePreChecksRequest) String() string { @@ -866,7 +838,7 @@ func (*KubernetesUpgradePreChecksRequest) ProtoMessage() {} func (x *KubernetesUpgradePreChecksRequest) ProtoReflect() protoreflect.Message { mi := &file_omni_management_management_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -899,11 +871,9 @@ type KubernetesUpgradePreChecksResponse struct { func (x *KubernetesUpgradePreChecksResponse) Reset() { *x = KubernetesUpgradePreChecksResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_management_management_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_management_management_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *KubernetesUpgradePreChecksResponse) String() string { @@ -914,7 +884,7 @@ func (*KubernetesUpgradePreChecksResponse) ProtoMessage() {} func (x *KubernetesUpgradePreChecksResponse) ProtoReflect() protoreflect.Message { mi := &file_omni_management_management_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -953,11 +923,9 @@ type KubernetesSyncManifestRequest struct { func (x *KubernetesSyncManifestRequest) Reset() { *x = KubernetesSyncManifestRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_management_management_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_management_management_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *KubernetesSyncManifestRequest) String() string { @@ -968,7 +936,7 @@ func (*KubernetesSyncManifestRequest) ProtoMessage() {} func (x *KubernetesSyncManifestRequest) ProtoReflect() protoreflect.Message { mi := &file_omni_management_management_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1004,11 +972,9 @@ type KubernetesSyncManifestResponse struct { func (x *KubernetesSyncManifestResponse) Reset() { *x = KubernetesSyncManifestResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_management_management_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_management_management_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *KubernetesSyncManifestResponse) String() string { @@ -1019,7 +985,7 @@ func (*KubernetesSyncManifestResponse) ProtoMessage() {} func (x *KubernetesSyncManifestResponse) ProtoReflect() protoreflect.Message { mi := &file_omni_management_management_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1085,11 +1051,9 @@ type CreateSchematicRequest struct { func (x *CreateSchematicRequest) Reset() { *x = CreateSchematicRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_management_management_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_management_management_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CreateSchematicRequest) String() string { @@ -1100,7 +1064,7 @@ func (*CreateSchematicRequest) ProtoMessage() {} func (x *CreateSchematicRequest) ProtoReflect() protoreflect.Message { mi := &file_omni_management_management_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1175,11 +1139,9 @@ type CreateSchematicResponse struct { func (x *CreateSchematicResponse) Reset() { *x = CreateSchematicResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_management_management_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_management_management_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CreateSchematicResponse) String() string { @@ -1190,7 +1152,7 @@ func (*CreateSchematicResponse) ProtoMessage() {} func (x *CreateSchematicResponse) ProtoReflect() protoreflect.Message { mi := &file_omni_management_management_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1229,11 +1191,9 @@ type GetSupportBundleRequest struct { func (x *GetSupportBundleRequest) Reset() { *x = GetSupportBundleRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_management_management_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_management_management_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetSupportBundleRequest) String() string { @@ -1244,7 +1204,7 @@ func (*GetSupportBundleRequest) ProtoMessage() {} func (x *GetSupportBundleRequest) ProtoReflect() protoreflect.Message { mi := &file_omni_management_management_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1277,11 +1237,9 @@ type GetSupportBundleResponse struct { func (x *GetSupportBundleResponse) Reset() { *x = GetSupportBundleResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_management_management_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_management_management_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetSupportBundleResponse) String() string { @@ -1292,7 +1250,7 @@ func (*GetSupportBundleResponse) ProtoMessage() {} func (x *GetSupportBundleResponse) ProtoReflect() protoreflect.Message { mi := &file_omni_management_management_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1333,11 +1291,9 @@ type ReadAuditLogRequest struct { func (x *ReadAuditLogRequest) Reset() { *x = ReadAuditLogRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_management_management_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_management_management_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ReadAuditLogRequest) String() string { @@ -1348,7 +1304,7 @@ func (*ReadAuditLogRequest) ProtoMessage() {} func (x *ReadAuditLogRequest) ProtoReflect() protoreflect.Message { mi := &file_omni_management_management_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1387,11 +1343,9 @@ type ReadAuditLogResponse struct { func (x *ReadAuditLogResponse) Reset() { *x = ReadAuditLogResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_management_management_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_management_management_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ReadAuditLogResponse) String() string { @@ -1402,7 +1356,7 @@ func (*ReadAuditLogResponse) ProtoMessage() {} func (x *ReadAuditLogResponse) ProtoReflect() protoreflect.Message { mi := &file_omni_management_management_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1436,11 +1390,9 @@ type ListServiceAccountsResponse_ServiceAccount struct { func (x *ListServiceAccountsResponse_ServiceAccount) Reset() { *x = ListServiceAccountsResponse_ServiceAccount{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_management_management_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_management_management_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListServiceAccountsResponse_ServiceAccount) String() string { @@ -1451,7 +1403,7 @@ func (*ListServiceAccountsResponse_ServiceAccount) ProtoMessage() {} func (x *ListServiceAccountsResponse_ServiceAccount) ProtoReflect() protoreflect.Message { mi := &file_omni_management_management_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1499,11 +1451,9 @@ type ListServiceAccountsResponse_ServiceAccount_PgpPublicKey struct { func (x *ListServiceAccountsResponse_ServiceAccount_PgpPublicKey) Reset() { *x = ListServiceAccountsResponse_ServiceAccount_PgpPublicKey{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_management_management_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_management_management_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListServiceAccountsResponse_ServiceAccount_PgpPublicKey) String() string { @@ -1514,7 +1464,7 @@ func (*ListServiceAccountsResponse_ServiceAccount_PgpPublicKey) ProtoMessage() { func (x *ListServiceAccountsResponse_ServiceAccount_PgpPublicKey) ProtoReflect() protoreflect.Message { mi := &file_omni_management_management_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1564,11 +1514,9 @@ type GetSupportBundleResponse_Progress struct { func (x *GetSupportBundleResponse_Progress) Reset() { *x = GetSupportBundleResponse_Progress{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_management_management_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_management_management_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetSupportBundleResponse_Progress) String() string { @@ -1579,7 +1527,7 @@ func (*GetSupportBundleResponse_Progress) ProtoMessage() {} func (x *GetSupportBundleResponse_Progress) ProtoReflect() protoreflect.Message { mi := &file_omni_management_management_proto_msgTypes[26] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2023,320 +1971,6 @@ func file_omni_management_management_proto_init() { if File_omni_management_management_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_omni_management_management_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*KubeconfigResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_management_management_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*TalosconfigResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_management_management_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*OmniconfigResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_management_management_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*MachineLogsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_management_management_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*ValidateConfigRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_management_management_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*TalosconfigRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_management_management_proto_msgTypes[6].Exporter = func(v any, i int) any { - switch v := v.(*CreateServiceAccountRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_management_management_proto_msgTypes[7].Exporter = func(v any, i int) any { - switch v := v.(*CreateServiceAccountResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_management_management_proto_msgTypes[8].Exporter = func(v any, i int) any { - switch v := v.(*RenewServiceAccountRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_management_management_proto_msgTypes[9].Exporter = func(v any, i int) any { - switch v := v.(*RenewServiceAccountResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_management_management_proto_msgTypes[10].Exporter = func(v any, i int) any { - switch v := v.(*DestroyServiceAccountRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_management_management_proto_msgTypes[11].Exporter = func(v any, i int) any { - switch v := v.(*ListServiceAccountsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_management_management_proto_msgTypes[12].Exporter = func(v any, i int) any { - switch v := v.(*KubeconfigRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_management_management_proto_msgTypes[13].Exporter = func(v any, i int) any { - switch v := v.(*KubernetesUpgradePreChecksRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_management_management_proto_msgTypes[14].Exporter = func(v any, i int) any { - switch v := v.(*KubernetesUpgradePreChecksResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_management_management_proto_msgTypes[15].Exporter = func(v any, i int) any { - switch v := v.(*KubernetesSyncManifestRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_management_management_proto_msgTypes[16].Exporter = func(v any, i int) any { - switch v := v.(*KubernetesSyncManifestResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_management_management_proto_msgTypes[17].Exporter = func(v any, i int) any { - switch v := v.(*CreateSchematicRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_management_management_proto_msgTypes[18].Exporter = func(v any, i int) any { - switch v := v.(*CreateSchematicResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_management_management_proto_msgTypes[19].Exporter = func(v any, i int) any { - switch v := v.(*GetSupportBundleRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_management_management_proto_msgTypes[20].Exporter = func(v any, i int) any { - switch v := v.(*GetSupportBundleResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_management_management_proto_msgTypes[21].Exporter = func(v any, i int) any { - switch v := v.(*ReadAuditLogRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_management_management_proto_msgTypes[22].Exporter = func(v any, i int) any { - switch v := v.(*ReadAuditLogResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_management_management_proto_msgTypes[23].Exporter = func(v any, i int) any { - switch v := v.(*ListServiceAccountsResponse_ServiceAccount); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_management_management_proto_msgTypes[24].Exporter = func(v any, i int) any { - switch v := v.(*ListServiceAccountsResponse_ServiceAccount_PgpPublicKey); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_management_management_proto_msgTypes[26].Exporter = func(v any, i int) any { - switch v := v.(*GetSupportBundleResponse_Progress); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/client/api/omni/oidc/oidc.pb.go b/client/api/omni/oidc/oidc.pb.go index 91f00202..6deb91ce 100644 --- a/client/api/omni/oidc/oidc.pb.go +++ b/client/api/omni/oidc/oidc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc v4.24.4 // source: omni/oidc/oidc.proto @@ -33,11 +33,9 @@ type AuthenticateRequest struct { func (x *AuthenticateRequest) Reset() { *x = AuthenticateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_oidc_oidc_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_oidc_oidc_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AuthenticateRequest) String() string { @@ -48,7 +46,7 @@ func (*AuthenticateRequest) ProtoMessage() {} func (x *AuthenticateRequest) ProtoReflect() protoreflect.Message { mi := &file_omni_oidc_oidc_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -83,11 +81,9 @@ type AuthenticateResponse struct { func (x *AuthenticateResponse) Reset() { *x = AuthenticateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_oidc_oidc_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_oidc_oidc_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AuthenticateResponse) String() string { @@ -98,7 +94,7 @@ func (*AuthenticateResponse) ProtoMessage() {} func (x *AuthenticateResponse) ProtoReflect() protoreflect.Message { mi := &file_omni_oidc_oidc_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -187,32 +183,6 @@ func file_omni_oidc_oidc_proto_init() { if File_omni_oidc_oidc_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_omni_oidc_oidc_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*AuthenticateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_oidc_oidc_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*AuthenticateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/client/api/omni/resources/resources.pb.go b/client/api/omni/resources/resources.pb.go index 92d02103..92b9da38 100644 --- a/client/api/omni/resources/resources.pb.go +++ b/client/api/omni/resources/resources.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc v4.24.4 // source: omni/resources/resources.proto @@ -90,11 +90,9 @@ type Resource struct { func (x *Resource) Reset() { *x = Resource{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_resources_resources_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_resources_resources_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Resource) String() string { @@ -105,7 +103,7 @@ func (*Resource) ProtoMessage() {} func (x *Resource) ProtoReflect() protoreflect.Message { mi := &file_omni_resources_resources_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -146,11 +144,9 @@ type GetRequest struct { func (x *GetRequest) Reset() { *x = GetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_resources_resources_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_resources_resources_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetRequest) String() string { @@ -161,7 +157,7 @@ func (*GetRequest) ProtoMessage() {} func (x *GetRequest) ProtoReflect() protoreflect.Message { mi := &file_omni_resources_resources_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -208,11 +204,9 @@ type GetResponse struct { func (x *GetResponse) Reset() { *x = GetResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_resources_resources_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_resources_resources_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetResponse) String() string { @@ -223,7 +217,7 @@ func (*GetResponse) ProtoMessage() {} func (x *GetResponse) ProtoReflect() protoreflect.Message { mi := &file_omni_resources_resources_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -261,11 +255,9 @@ type ListRequest struct { func (x *ListRequest) Reset() { *x = ListRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_resources_resources_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_resources_resources_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListRequest) String() string { @@ -276,7 +268,7 @@ func (*ListRequest) ProtoMessage() {} func (x *ListRequest) ProtoReflect() protoreflect.Message { mi := &file_omni_resources_resources_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -352,11 +344,9 @@ type ListResponse struct { func (x *ListResponse) Reset() { *x = ListResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_resources_resources_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_resources_resources_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListResponse) String() string { @@ -367,7 +357,7 @@ func (*ListResponse) ProtoMessage() {} func (x *ListResponse) ProtoReflect() protoreflect.Message { mi := &file_omni_resources_resources_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -410,11 +400,9 @@ type Event struct { func (x *Event) Reset() { *x = Event{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_resources_resources_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_resources_resources_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Event) String() string { @@ -425,7 +413,7 @@ func (*Event) ProtoMessage() {} func (x *Event) ProtoReflect() protoreflect.Message { mi := &file_omni_resources_resources_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -479,11 +467,9 @@ type WatchRequest struct { func (x *WatchRequest) Reset() { *x = WatchRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_resources_resources_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_resources_resources_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WatchRequest) String() string { @@ -494,7 +480,7 @@ func (*WatchRequest) ProtoMessage() {} func (x *WatchRequest) ProtoReflect() protoreflect.Message { mi := &file_omni_resources_resources_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -585,11 +571,9 @@ type WatchResponse struct { func (x *WatchResponse) Reset() { *x = WatchResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_resources_resources_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_resources_resources_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WatchResponse) String() string { @@ -600,7 +584,7 @@ func (*WatchResponse) ProtoMessage() {} func (x *WatchResponse) ProtoReflect() protoreflect.Message { mi := &file_omni_resources_resources_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -653,11 +637,9 @@ type CreateRequest struct { func (x *CreateRequest) Reset() { *x = CreateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_resources_resources_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_resources_resources_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CreateRequest) String() string { @@ -668,7 +650,7 @@ func (*CreateRequest) ProtoMessage() {} func (x *CreateRequest) ProtoReflect() protoreflect.Message { mi := &file_omni_resources_resources_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -698,11 +680,9 @@ type CreateResponse struct { func (x *CreateResponse) Reset() { *x = CreateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_resources_resources_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_resources_resources_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CreateResponse) String() string { @@ -713,7 +693,7 @@ func (*CreateResponse) ProtoMessage() {} func (x *CreateResponse) ProtoReflect() protoreflect.Message { mi := &file_omni_resources_resources_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -739,11 +719,9 @@ type UpdateRequest struct { func (x *UpdateRequest) Reset() { *x = UpdateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_resources_resources_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_resources_resources_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UpdateRequest) String() string { @@ -754,7 +732,7 @@ func (*UpdateRequest) ProtoMessage() {} func (x *UpdateRequest) ProtoReflect() protoreflect.Message { mi := &file_omni_resources_resources_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -791,11 +769,9 @@ type UpdateResponse struct { func (x *UpdateResponse) Reset() { *x = UpdateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_resources_resources_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_resources_resources_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UpdateResponse) String() string { @@ -806,7 +782,7 @@ func (*UpdateResponse) ProtoMessage() {} func (x *UpdateResponse) ProtoReflect() protoreflect.Message { mi := &file_omni_resources_resources_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -833,11 +809,9 @@ type DeleteRequest struct { func (x *DeleteRequest) Reset() { *x = DeleteRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_resources_resources_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_resources_resources_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DeleteRequest) String() string { @@ -848,7 +822,7 @@ func (*DeleteRequest) ProtoMessage() {} func (x *DeleteRequest) ProtoReflect() protoreflect.Message { mi := &file_omni_resources_resources_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -892,11 +866,9 @@ type DeleteResponse struct { func (x *DeleteResponse) Reset() { *x = DeleteResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_resources_resources_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_resources_resources_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DeleteResponse) String() string { @@ -907,7 +879,7 @@ func (*DeleteResponse) ProtoMessage() {} func (x *DeleteResponse) ProtoReflect() protoreflect.Message { mi := &file_omni_resources_resources_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1123,176 +1095,6 @@ func file_omni_resources_resources_proto_init() { if File_omni_resources_resources_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_omni_resources_resources_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*Resource); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_resources_resources_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*GetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_resources_resources_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*GetResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_resources_resources_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*ListRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_resources_resources_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*ListResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_resources_resources_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*Event); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_resources_resources_proto_msgTypes[6].Exporter = func(v any, i int) any { - switch v := v.(*WatchRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_resources_resources_proto_msgTypes[7].Exporter = func(v any, i int) any { - switch v := v.(*WatchResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_resources_resources_proto_msgTypes[8].Exporter = func(v any, i int) any { - switch v := v.(*CreateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_resources_resources_proto_msgTypes[9].Exporter = func(v any, i int) any { - switch v := v.(*CreateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_resources_resources_proto_msgTypes[10].Exporter = func(v any, i int) any { - switch v := v.(*UpdateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_resources_resources_proto_msgTypes[11].Exporter = func(v any, i int) any { - switch v := v.(*UpdateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_resources_resources_proto_msgTypes[12].Exporter = func(v any, i int) any { - switch v := v.(*DeleteRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_resources_resources_proto_msgTypes[13].Exporter = func(v any, i int) any { - switch v := v.(*DeleteResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/client/api/omni/specs/auth.pb.go b/client/api/omni/specs/auth.pb.go index 066b4054..c0b488f1 100644 --- a/client/api/omni/specs/auth.pb.go +++ b/client/api/omni/specs/auth.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc v4.24.4 // source: omni/specs/auth.proto @@ -37,11 +37,9 @@ type AuthConfigSpec struct { func (x *AuthConfigSpec) Reset() { *x = AuthConfigSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_auth_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_auth_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AuthConfigSpec) String() string { @@ -52,7 +50,7 @@ func (*AuthConfigSpec) ProtoMessage() {} func (x *AuthConfigSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_auth_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -111,11 +109,9 @@ type SAMLAssertionSpec struct { func (x *SAMLAssertionSpec) Reset() { *x = SAMLAssertionSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_auth_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_auth_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SAMLAssertionSpec) String() string { @@ -126,7 +122,7 @@ func (*SAMLAssertionSpec) ProtoMessage() {} func (x *SAMLAssertionSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_auth_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -178,11 +174,9 @@ type UserSpec struct { func (x *UserSpec) Reset() { *x = UserSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_auth_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_auth_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UserSpec) String() string { @@ -193,7 +187,7 @@ func (*UserSpec) ProtoMessage() {} func (x *UserSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_auth_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -233,11 +227,9 @@ type IdentitySpec struct { func (x *IdentitySpec) Reset() { *x = IdentitySpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_auth_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_auth_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *IdentitySpec) String() string { @@ -248,7 +240,7 @@ func (*IdentitySpec) ProtoMessage() {} func (x *IdentitySpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_auth_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -280,11 +272,9 @@ type Identity struct { func (x *Identity) Reset() { *x = Identity{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_auth_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_auth_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Identity) String() string { @@ -295,7 +285,7 @@ func (*Identity) ProtoMessage() {} func (x *Identity) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_auth_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -337,11 +327,9 @@ type PublicKeySpec struct { func (x *PublicKeySpec) Reset() { *x = PublicKeySpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_auth_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_auth_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PublicKeySpec) String() string { @@ -352,7 +340,7 @@ func (*PublicKeySpec) ProtoMessage() {} func (x *PublicKeySpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_auth_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -420,11 +408,9 @@ type AccessPolicyUserGroup struct { func (x *AccessPolicyUserGroup) Reset() { *x = AccessPolicyUserGroup{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_auth_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_auth_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AccessPolicyUserGroup) String() string { @@ -435,7 +421,7 @@ func (*AccessPolicyUserGroup) ProtoMessage() {} func (x *AccessPolicyUserGroup) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_auth_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -468,11 +454,9 @@ type AccessPolicyClusterGroup struct { func (x *AccessPolicyClusterGroup) Reset() { *x = AccessPolicyClusterGroup{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_auth_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_auth_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AccessPolicyClusterGroup) String() string { @@ -483,7 +467,7 @@ func (*AccessPolicyClusterGroup) ProtoMessage() {} func (x *AccessPolicyClusterGroup) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_auth_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -519,11 +503,9 @@ type AccessPolicyRule struct { func (x *AccessPolicyRule) Reset() { *x = AccessPolicyRule{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_auth_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_auth_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AccessPolicyRule) String() string { @@ -534,7 +516,7 @@ func (*AccessPolicyRule) ProtoMessage() {} func (x *AccessPolicyRule) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_auth_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -590,11 +572,9 @@ type AccessPolicyTest struct { func (x *AccessPolicyTest) Reset() { *x = AccessPolicyTest{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_auth_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_auth_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AccessPolicyTest) String() string { @@ -605,7 +585,7 @@ func (*AccessPolicyTest) ProtoMessage() {} func (x *AccessPolicyTest) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_auth_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -662,11 +642,9 @@ type AccessPolicySpec struct { func (x *AccessPolicySpec) Reset() { *x = AccessPolicySpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_auth_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_auth_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AccessPolicySpec) String() string { @@ -677,7 +655,7 @@ func (*AccessPolicySpec) ProtoMessage() {} func (x *AccessPolicySpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_auth_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -734,11 +712,9 @@ type SAMLLabelRuleSpec struct { func (x *SAMLLabelRuleSpec) Reset() { *x = SAMLLabelRuleSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_auth_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_auth_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SAMLLabelRuleSpec) String() string { @@ -749,7 +725,7 @@ func (*SAMLLabelRuleSpec) ProtoMessage() {} func (x *SAMLLabelRuleSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_auth_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -791,11 +767,9 @@ type AuthConfigSpec_Auth0 struct { func (x *AuthConfigSpec_Auth0) Reset() { *x = AuthConfigSpec_Auth0{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_auth_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_auth_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AuthConfigSpec_Auth0) String() string { @@ -806,7 +780,7 @@ func (*AuthConfigSpec_Auth0) ProtoMessage() {} func (x *AuthConfigSpec_Auth0) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_auth_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -860,11 +834,9 @@ type AuthConfigSpec_Webauthn struct { func (x *AuthConfigSpec_Webauthn) Reset() { *x = AuthConfigSpec_Webauthn{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_auth_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_auth_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AuthConfigSpec_Webauthn) String() string { @@ -875,7 +847,7 @@ func (*AuthConfigSpec_Webauthn) ProtoMessage() {} func (x *AuthConfigSpec_Webauthn) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_auth_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -919,11 +891,9 @@ type AuthConfigSpec_SAML struct { func (x *AuthConfigSpec_SAML) Reset() { *x = AuthConfigSpec_SAML{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_auth_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_auth_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AuthConfigSpec_SAML) String() string { @@ -934,7 +904,7 @@ func (*AuthConfigSpec_SAML) ProtoMessage() {} func (x *AuthConfigSpec_SAML) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_auth_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -989,11 +959,9 @@ type AccessPolicyUserGroup_User struct { func (x *AccessPolicyUserGroup_User) Reset() { *x = AccessPolicyUserGroup_User{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_auth_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_auth_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AccessPolicyUserGroup_User) String() string { @@ -1004,7 +972,7 @@ func (*AccessPolicyUserGroup_User) ProtoMessage() {} func (x *AccessPolicyUserGroup_User) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_auth_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1051,11 +1019,9 @@ type AccessPolicyClusterGroup_Cluster struct { func (x *AccessPolicyClusterGroup_Cluster) Reset() { *x = AccessPolicyClusterGroup_Cluster{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_auth_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_auth_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AccessPolicyClusterGroup_Cluster) String() string { @@ -1066,7 +1032,7 @@ func (*AccessPolicyClusterGroup_Cluster) ProtoMessage() {} func (x *AccessPolicyClusterGroup_Cluster) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_auth_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1105,11 +1071,9 @@ type AccessPolicyRule_Kubernetes struct { func (x *AccessPolicyRule_Kubernetes) Reset() { *x = AccessPolicyRule_Kubernetes{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_auth_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_auth_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AccessPolicyRule_Kubernetes) String() string { @@ -1120,7 +1084,7 @@ func (*AccessPolicyRule_Kubernetes) ProtoMessage() {} func (x *AccessPolicyRule_Kubernetes) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_auth_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1152,11 +1116,9 @@ type AccessPolicyRule_Kubernetes_Impersonate struct { func (x *AccessPolicyRule_Kubernetes_Impersonate) Reset() { *x = AccessPolicyRule_Kubernetes_Impersonate{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_auth_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_auth_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AccessPolicyRule_Kubernetes_Impersonate) String() string { @@ -1167,7 +1129,7 @@ func (*AccessPolicyRule_Kubernetes_Impersonate) ProtoMessage() {} func (x *AccessPolicyRule_Kubernetes_Impersonate) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_auth_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1200,11 +1162,9 @@ type AccessPolicyTest_Expected struct { func (x *AccessPolicyTest_Expected) Reset() { *x = AccessPolicyTest_Expected{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_auth_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_auth_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AccessPolicyTest_Expected) String() string { @@ -1215,7 +1175,7 @@ func (*AccessPolicyTest_Expected) ProtoMessage() {} func (x *AccessPolicyTest_Expected) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_auth_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1255,11 +1215,9 @@ type AccessPolicyTest_User struct { func (x *AccessPolicyTest_User) Reset() { *x = AccessPolicyTest_User{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_auth_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_auth_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AccessPolicyTest_User) String() string { @@ -1270,7 +1228,7 @@ func (*AccessPolicyTest_User) ProtoMessage() {} func (x *AccessPolicyTest_User) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_auth_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1309,11 +1267,9 @@ type AccessPolicyTest_Cluster struct { func (x *AccessPolicyTest_Cluster) Reset() { *x = AccessPolicyTest_Cluster{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_auth_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_auth_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AccessPolicyTest_Cluster) String() string { @@ -1324,7 +1280,7 @@ func (*AccessPolicyTest_Cluster) ProtoMessage() {} func (x *AccessPolicyTest_Cluster) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_auth_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1356,11 +1312,9 @@ type AccessPolicyTest_Expected_Kubernetes struct { func (x *AccessPolicyTest_Expected_Kubernetes) Reset() { *x = AccessPolicyTest_Expected_Kubernetes{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_auth_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_auth_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AccessPolicyTest_Expected_Kubernetes) String() string { @@ -1371,7 +1325,7 @@ func (*AccessPolicyTest_Expected_Kubernetes) ProtoMessage() {} func (x *AccessPolicyTest_Expected_Kubernetes) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_auth_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1403,11 +1357,9 @@ type AccessPolicyTest_Expected_Kubernetes_Impersonate struct { func (x *AccessPolicyTest_Expected_Kubernetes_Impersonate) Reset() { *x = AccessPolicyTest_Expected_Kubernetes_Impersonate{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_auth_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_auth_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AccessPolicyTest_Expected_Kubernetes_Impersonate) String() string { @@ -1418,7 +1370,7 @@ func (*AccessPolicyTest_Expected_Kubernetes_Impersonate) ProtoMessage() {} func (x *AccessPolicyTest_Expected_Kubernetes_Impersonate) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_auth_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1716,296 +1668,6 @@ func file_omni_specs_auth_proto_init() { if File_omni_specs_auth_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_omni_specs_auth_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*AuthConfigSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_auth_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*SAMLAssertionSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_auth_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*UserSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_auth_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*IdentitySpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_auth_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*Identity); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_auth_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*PublicKeySpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_auth_proto_msgTypes[6].Exporter = func(v any, i int) any { - switch v := v.(*AccessPolicyUserGroup); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_auth_proto_msgTypes[7].Exporter = func(v any, i int) any { - switch v := v.(*AccessPolicyClusterGroup); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_auth_proto_msgTypes[8].Exporter = func(v any, i int) any { - switch v := v.(*AccessPolicyRule); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_auth_proto_msgTypes[9].Exporter = func(v any, i int) any { - switch v := v.(*AccessPolicyTest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_auth_proto_msgTypes[10].Exporter = func(v any, i int) any { - switch v := v.(*AccessPolicySpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_auth_proto_msgTypes[11].Exporter = func(v any, i int) any { - switch v := v.(*SAMLLabelRuleSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_auth_proto_msgTypes[12].Exporter = func(v any, i int) any { - switch v := v.(*AuthConfigSpec_Auth0); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_auth_proto_msgTypes[13].Exporter = func(v any, i int) any { - switch v := v.(*AuthConfigSpec_Webauthn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_auth_proto_msgTypes[14].Exporter = func(v any, i int) any { - switch v := v.(*AuthConfigSpec_SAML); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_auth_proto_msgTypes[16].Exporter = func(v any, i int) any { - switch v := v.(*AccessPolicyUserGroup_User); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_auth_proto_msgTypes[17].Exporter = func(v any, i int) any { - switch v := v.(*AccessPolicyClusterGroup_Cluster); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_auth_proto_msgTypes[18].Exporter = func(v any, i int) any { - switch v := v.(*AccessPolicyRule_Kubernetes); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_auth_proto_msgTypes[19].Exporter = func(v any, i int) any { - switch v := v.(*AccessPolicyRule_Kubernetes_Impersonate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_auth_proto_msgTypes[20].Exporter = func(v any, i int) any { - switch v := v.(*AccessPolicyTest_Expected); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_auth_proto_msgTypes[21].Exporter = func(v any, i int) any { - switch v := v.(*AccessPolicyTest_User); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_auth_proto_msgTypes[22].Exporter = func(v any, i int) any { - switch v := v.(*AccessPolicyTest_Cluster); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_auth_proto_msgTypes[23].Exporter = func(v any, i int) any { - switch v := v.(*AccessPolicyTest_Expected_Kubernetes); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_auth_proto_msgTypes[24].Exporter = func(v any, i int) any { - switch v := v.(*AccessPolicyTest_Expected_Kubernetes_Impersonate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/client/api/omni/specs/ephemeral.pb.go b/client/api/omni/specs/ephemeral.pb.go index c00100b1..3ca3b231 100644 --- a/client/api/omni/specs/ephemeral.pb.go +++ b/client/api/omni/specs/ephemeral.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc v4.24.4 // source: omni/specs/ephemeral.proto @@ -35,11 +35,9 @@ type MachineStatusLinkSpec struct { func (x *MachineStatusLinkSpec) Reset() { *x = MachineStatusLinkSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_ephemeral_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_ephemeral_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MachineStatusLinkSpec) String() string { @@ -50,7 +48,7 @@ func (*MachineStatusLinkSpec) ProtoMessage() {} func (x *MachineStatusLinkSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_ephemeral_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -158,20 +156,6 @@ func file_omni_specs_ephemeral_proto_init() { } file_omni_specs_omni_proto_init() file_omni_specs_siderolink_proto_init() - if !protoimpl.UnsafeEnabled { - file_omni_specs_ephemeral_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*MachineStatusLinkSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/client/api/omni/specs/infra.pb.go b/client/api/omni/specs/infra.pb.go index 0dcdb06b..96f81cd7 100644 --- a/client/api/omni/specs/infra.pb.go +++ b/client/api/omni/specs/infra.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc v4.24.4 // source: omni/specs/infra.proto @@ -89,11 +89,9 @@ type MachineRequestSpec struct { func (x *MachineRequestSpec) Reset() { *x = MachineRequestSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_infra_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_infra_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MachineRequestSpec) String() string { @@ -104,7 +102,7 @@ func (*MachineRequestSpec) ProtoMessage() {} func (x *MachineRequestSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_infra_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -181,11 +179,9 @@ type MachineRequestStatusSpec struct { func (x *MachineRequestStatusSpec) Reset() { *x = MachineRequestStatusSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_infra_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_infra_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MachineRequestStatusSpec) String() string { @@ -196,7 +192,7 @@ func (*MachineRequestStatusSpec) ProtoMessage() {} func (x *MachineRequestStatusSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_infra_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -239,6 +235,128 @@ func (x *MachineRequestStatusSpec) GetStatus() string { return "" } +type InfraMachineSpec struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + PowerState MachinePowerState `protobuf:"varint,1,opt,name=power_state,json=powerState,proto3,enum=specs.MachinePowerState" json:"power_state,omitempty"` + Accepted bool `protobuf:"varint,2,opt,name=accepted,proto3" json:"accepted,omitempty"` + Allocated bool `protobuf:"varint,3,opt,name=allocated,proto3" json:"allocated,omitempty"` + Installed bool `protobuf:"varint,4,opt,name=installed,proto3" json:"installed,omitempty"` +} + +func (x *InfraMachineSpec) Reset() { + *x = InfraMachineSpec{} + mi := &file_omni_specs_infra_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *InfraMachineSpec) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InfraMachineSpec) ProtoMessage() {} + +func (x *InfraMachineSpec) ProtoReflect() protoreflect.Message { + mi := &file_omni_specs_infra_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use InfraMachineSpec.ProtoReflect.Descriptor instead. +func (*InfraMachineSpec) Descriptor() ([]byte, []int) { + return file_omni_specs_infra_proto_rawDescGZIP(), []int{2} +} + +func (x *InfraMachineSpec) GetPowerState() MachinePowerState { + if x != nil { + return x.PowerState + } + return MachinePowerState_POWER_STATE_UNKNOWN +} + +func (x *InfraMachineSpec) GetAccepted() bool { + if x != nil { + return x.Accepted + } + return false +} + +func (x *InfraMachineSpec) GetAllocated() bool { + if x != nil { + return x.Allocated + } + return false +} + +func (x *InfraMachineSpec) GetInstalled() bool { + if x != nil { + return x.Installed + } + return false +} + +type InfraMachineStatusSpec struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + PowerState MachinePowerState `protobuf:"varint,1,opt,name=power_state,json=powerState,proto3,enum=specs.MachinePowerState" json:"power_state,omitempty"` + ReadyToUse bool `protobuf:"varint,2,opt,name=ready_to_use,json=readyToUse,proto3" json:"ready_to_use,omitempty"` +} + +func (x *InfraMachineStatusSpec) Reset() { + *x = InfraMachineStatusSpec{} + mi := &file_omni_specs_infra_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *InfraMachineStatusSpec) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InfraMachineStatusSpec) ProtoMessage() {} + +func (x *InfraMachineStatusSpec) ProtoReflect() protoreflect.Message { + mi := &file_omni_specs_infra_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use InfraMachineStatusSpec.ProtoReflect.Descriptor instead. +func (*InfraMachineStatusSpec) Descriptor() ([]byte, []int) { + return file_omni_specs_infra_proto_rawDescGZIP(), []int{3} +} + +func (x *InfraMachineStatusSpec) GetPowerState() MachinePowerState { + if x != nil { + return x.PowerState + } + return MachinePowerState_POWER_STATE_UNKNOWN +} + +func (x *InfraMachineStatusSpec) GetReadyToUse() bool { + if x != nil { + return x.ReadyToUse + } + return false +} + type InfraProviderStatusSpec struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -252,11 +370,9 @@ type InfraProviderStatusSpec struct { func (x *InfraProviderStatusSpec) Reset() { *x = InfraProviderStatusSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_infra_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_infra_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *InfraProviderStatusSpec) String() string { @@ -266,8 +382,8 @@ func (x *InfraProviderStatusSpec) String() string { func (*InfraProviderStatusSpec) ProtoMessage() {} func (x *InfraProviderStatusSpec) ProtoReflect() protoreflect.Message { - mi := &file_omni_specs_infra_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_omni_specs_infra_proto_msgTypes[4] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -279,7 +395,7 @@ func (x *InfraProviderStatusSpec) ProtoReflect() protoreflect.Message { // Deprecated: Use InfraProviderStatusSpec.ProtoReflect.Descriptor instead. func (*InfraProviderStatusSpec) Descriptor() ([]byte, []int) { - return file_omni_specs_infra_proto_rawDescGZIP(), []int{2} + return file_omni_specs_infra_proto_rawDescGZIP(), []int{4} } func (x *InfraProviderStatusSpec) GetSchema() string { @@ -349,19 +465,37 @@ var file_omni_specs_infra_proto_rawDesc = []byte{ 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x50, 0x52, 0x4f, 0x56, 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x50, 0x52, 0x4f, 0x56, 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x45, 0x44, 0x10, 0x02, 0x12, 0x0a, - 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x22, 0x7b, 0x0a, 0x17, 0x49, 0x6e, - 0x66, 0x72, 0x61, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x53, 0x70, 0x65, 0x63, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x12, 0x0a, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x63, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x69, 0x63, 0x6f, 0x6e, 0x42, 0x32, 0x5a, 0x30, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x69, 0x64, 0x65, 0x72, 0x6f, 0x6c, 0x61, 0x62, 0x73, - 0x2f, 0x6f, 0x6d, 0x6e, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2f, 0x61, 0x70, 0x69, - 0x2f, 0x6f, 0x6d, 0x6e, 0x69, 0x2f, 0x73, 0x70, 0x65, 0x63, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, + 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x22, 0xa5, 0x01, 0x0a, 0x10, 0x49, + 0x6e, 0x66, 0x72, 0x61, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x53, 0x70, 0x65, 0x63, 0x12, + 0x39, 0x0a, 0x0b, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x73, 0x70, 0x65, 0x63, 0x73, 0x2e, 0x4d, 0x61, 0x63, + 0x68, 0x69, 0x6e, 0x65, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x0a, + 0x70, 0x6f, 0x77, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x63, + 0x63, 0x65, 0x70, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x61, 0x63, + 0x63, 0x65, 0x70, 0x74, 0x65, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x61, + 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x61, 0x6c, 0x6c, 0x6f, 0x63, + 0x61, 0x74, 0x65, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, + 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, + 0x65, 0x64, 0x22, 0x75, 0x0a, 0x16, 0x49, 0x6e, 0x66, 0x72, 0x61, 0x4d, 0x61, 0x63, 0x68, 0x69, + 0x6e, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x53, 0x70, 0x65, 0x63, 0x12, 0x39, 0x0a, 0x0b, + 0x70, 0x6f, 0x77, 0x65, 0x72, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x18, 0x2e, 0x73, 0x70, 0x65, 0x63, 0x73, 0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, + 0x65, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x0a, 0x70, 0x6f, 0x77, + 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x20, 0x0a, 0x0c, 0x72, 0x65, 0x61, 0x64, 0x79, + 0x5f, 0x74, 0x6f, 0x5f, 0x75, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x72, + 0x65, 0x61, 0x64, 0x79, 0x54, 0x6f, 0x55, 0x73, 0x65, 0x22, 0x7b, 0x0a, 0x17, 0x49, 0x6e, 0x66, + 0x72, 0x61, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x53, 0x70, 0x65, 0x63, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x12, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x63, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x69, 0x63, 0x6f, 0x6e, 0x42, 0x32, 0x5a, 0x30, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x69, 0x64, 0x65, 0x72, 0x6f, 0x6c, 0x61, 0x62, 0x73, 0x2f, + 0x6f, 0x6d, 0x6e, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x6f, 0x6d, 0x6e, 0x69, 0x2f, 0x73, 0x70, 0x65, 0x63, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, } var ( @@ -377,26 +511,31 @@ func file_omni_specs_infra_proto_rawDescGZIP() []byte { } var file_omni_specs_infra_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_omni_specs_infra_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_omni_specs_infra_proto_msgTypes = make([]protoimpl.MessageInfo, 5) var file_omni_specs_infra_proto_goTypes = []any{ (MachineRequestStatusSpec_Stage)(0), // 0: specs.MachineRequestStatusSpec.Stage (*MachineRequestSpec)(nil), // 1: specs.MachineRequestSpec (*MachineRequestStatusSpec)(nil), // 2: specs.MachineRequestStatusSpec - (*InfraProviderStatusSpec)(nil), // 3: specs.InfraProviderStatusSpec - (*Overlay)(nil), // 4: specs.Overlay - (*MetaValue)(nil), // 5: specs.MetaValue - (GrpcTunnelMode)(0), // 6: specs.GrpcTunnelMode + (*InfraMachineSpec)(nil), // 3: specs.InfraMachineSpec + (*InfraMachineStatusSpec)(nil), // 4: specs.InfraMachineStatusSpec + (*InfraProviderStatusSpec)(nil), // 5: specs.InfraProviderStatusSpec + (*Overlay)(nil), // 6: specs.Overlay + (*MetaValue)(nil), // 7: specs.MetaValue + (GrpcTunnelMode)(0), // 8: specs.GrpcTunnelMode + (MachinePowerState)(0), // 9: specs.MachinePowerState } var file_omni_specs_infra_proto_depIdxs = []int32{ - 4, // 0: specs.MachineRequestSpec.overlay:type_name -> specs.Overlay - 5, // 1: specs.MachineRequestSpec.meta_values:type_name -> specs.MetaValue - 6, // 2: specs.MachineRequestSpec.grpc_tunnel:type_name -> specs.GrpcTunnelMode + 6, // 0: specs.MachineRequestSpec.overlay:type_name -> specs.Overlay + 7, // 1: specs.MachineRequestSpec.meta_values:type_name -> specs.MetaValue + 8, // 2: specs.MachineRequestSpec.grpc_tunnel:type_name -> specs.GrpcTunnelMode 0, // 3: specs.MachineRequestStatusSpec.stage:type_name -> specs.MachineRequestStatusSpec.Stage - 4, // [4:4] is the sub-list for method output_type - 4, // [4:4] is the sub-list for method input_type - 4, // [4:4] is the sub-list for extension type_name - 4, // [4:4] is the sub-list for extension extendee - 0, // [0:4] is the sub-list for field type_name + 9, // 4: specs.InfraMachineSpec.power_state:type_name -> specs.MachinePowerState + 9, // 5: specs.InfraMachineStatusSpec.power_state:type_name -> specs.MachinePowerState + 6, // [6:6] is the sub-list for method output_type + 6, // [6:6] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name } func init() { file_omni_specs_infra_proto_init() } @@ -405,51 +544,13 @@ func file_omni_specs_infra_proto_init() { return } file_omni_specs_omni_proto_init() - if !protoimpl.UnsafeEnabled { - file_omni_specs_infra_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*MachineRequestSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_infra_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*MachineRequestStatusSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_infra_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*InfraProviderStatusSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_omni_specs_infra_proto_rawDesc, NumEnums: 1, - NumMessages: 3, + NumMessages: 5, NumExtensions: 0, NumServices: 0, }, diff --git a/client/api/omni/specs/infra.proto b/client/api/omni/specs/infra.proto index e4d35796..ef4868cf 100644 --- a/client/api/omni/specs/infra.proto +++ b/client/api/omni/specs/infra.proto @@ -29,6 +29,18 @@ message MachineRequestStatusSpec { string status = 4; } +message InfraMachineSpec { + MachinePowerState power_state = 1; + bool accepted = 2; + bool allocated = 3; + bool installed = 4; +} + +message InfraMachineStatusSpec { + MachinePowerState power_state = 1; + bool ready_to_use = 2; +} + message InfraProviderStatusSpec { string schema = 1; string name = 2; diff --git a/client/api/omni/specs/infra_vtproto.pb.go b/client/api/omni/specs/infra_vtproto.pb.go index 0b9c0544..33e8656f 100644 --- a/client/api/omni/specs/infra_vtproto.pb.go +++ b/client/api/omni/specs/infra_vtproto.pb.go @@ -77,6 +77,44 @@ func (m *MachineRequestStatusSpec) CloneMessageVT() proto.Message { return m.CloneVT() } +func (m *InfraMachineSpec) CloneVT() *InfraMachineSpec { + if m == nil { + return (*InfraMachineSpec)(nil) + } + r := new(InfraMachineSpec) + r.PowerState = m.PowerState + r.Accepted = m.Accepted + r.Allocated = m.Allocated + r.Installed = m.Installed + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *InfraMachineSpec) CloneMessageVT() proto.Message { + return m.CloneVT() +} + +func (m *InfraMachineStatusSpec) CloneVT() *InfraMachineStatusSpec { + if m == nil { + return (*InfraMachineStatusSpec)(nil) + } + r := new(InfraMachineStatusSpec) + r.PowerState = m.PowerState + r.ReadyToUse = m.ReadyToUse + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *InfraMachineStatusSpec) CloneMessageVT() proto.Message { + return m.CloneVT() +} + func (m *InfraProviderStatusSpec) CloneVT() *InfraProviderStatusSpec { if m == nil { return (*InfraProviderStatusSpec)(nil) @@ -188,6 +226,56 @@ func (this *MachineRequestStatusSpec) EqualMessageVT(thatMsg proto.Message) bool } return this.EqualVT(that) } +func (this *InfraMachineSpec) EqualVT(that *InfraMachineSpec) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.PowerState != that.PowerState { + return false + } + if this.Accepted != that.Accepted { + return false + } + if this.Allocated != that.Allocated { + return false + } + if this.Installed != that.Installed { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *InfraMachineSpec) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*InfraMachineSpec) + if !ok { + return false + } + return this.EqualVT(that) +} +func (this *InfraMachineStatusSpec) EqualVT(that *InfraMachineStatusSpec) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.PowerState != that.PowerState { + return false + } + if this.ReadyToUse != that.ReadyToUse { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *InfraMachineStatusSpec) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*InfraMachineStatusSpec) + if !ok { + return false + } + return this.EqualVT(that) +} func (this *InfraProviderStatusSpec) EqualVT(that *InfraProviderStatusSpec) bool { if this == that { return true @@ -367,6 +455,122 @@ func (m *MachineRequestStatusSpec) MarshalToSizedBufferVT(dAtA []byte) (int, err return len(dAtA) - i, nil } +func (m *InfraMachineSpec) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InfraMachineSpec) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *InfraMachineSpec) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.Installed { + i-- + if m.Installed { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + if m.Allocated { + i-- + if m.Allocated { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if m.Accepted { + i-- + if m.Accepted { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if m.PowerState != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.PowerState)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *InfraMachineStatusSpec) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InfraMachineStatusSpec) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *InfraMachineStatusSpec) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.ReadyToUse { + i-- + if m.ReadyToUse { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if m.PowerState != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.PowerState)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + func (m *InfraProviderStatusSpec) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil @@ -496,6 +700,44 @@ func (m *MachineRequestStatusSpec) SizeVT() (n int) { return n } +func (m *InfraMachineSpec) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PowerState != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.PowerState)) + } + if m.Accepted { + n += 2 + } + if m.Allocated { + n += 2 + } + if m.Installed { + n += 2 + } + n += len(m.unknownFields) + return n +} + +func (m *InfraMachineStatusSpec) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PowerState != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.PowerState)) + } + if m.ReadyToUse { + n += 2 + } + n += len(m.unknownFields) + return n +} + func (m *InfraProviderStatusSpec) SizeVT() (n int) { if m == nil { return 0 @@ -956,6 +1198,226 @@ func (m *MachineRequestStatusSpec) UnmarshalVT(dAtA []byte) error { } return nil } +func (m *InfraMachineSpec) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: InfraMachineSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: InfraMachineSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PowerState", wireType) + } + m.PowerState = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PowerState |= MachinePowerState(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Accepted", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Accepted = bool(v != 0) + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Allocated", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Allocated = bool(v != 0) + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Installed", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Installed = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *InfraMachineStatusSpec) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: InfraMachineStatusSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: InfraMachineStatusSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PowerState", wireType) + } + m.PowerState = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PowerState |= MachinePowerState(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReadyToUse", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ReadyToUse = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *InfraProviderStatusSpec) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/client/api/omni/specs/oidc.pb.go b/client/api/omni/specs/oidc.pb.go index 84fde7a2..3ad26b99 100644 --- a/client/api/omni/specs/oidc.pb.go +++ b/client/api/omni/specs/oidc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc v4.24.4 // source: omni/specs/oidc.proto @@ -36,11 +36,9 @@ type JWTPublicKeySpec struct { func (x *JWTPublicKeySpec) Reset() { *x = JWTPublicKeySpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_oidc_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_oidc_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *JWTPublicKeySpec) String() string { @@ -51,7 +49,7 @@ func (*JWTPublicKeySpec) ProtoMessage() {} func (x *JWTPublicKeySpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_oidc_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -131,20 +129,6 @@ func file_omni_specs_oidc_proto_init() { if File_omni_specs_oidc_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_omni_specs_oidc_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*JWTPublicKeySpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/client/api/omni/specs/omni.pb.go b/client/api/omni/specs/omni.pb.go index 950cc0a4..02938a60 100644 --- a/client/api/omni/specs/omni.pb.go +++ b/client/api/omni/specs/omni.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc v4.24.4 // source: omni/specs/omni.proto @@ -236,6 +236,55 @@ func (GrpcTunnelMode) EnumDescriptor() ([]byte, []int) { return file_omni_specs_omni_proto_rawDescGZIP(), []int{3} } +type MachinePowerState int32 + +const ( + MachinePowerState_POWER_STATE_UNKNOWN MachinePowerState = 0 + MachinePowerState_POWER_STATE_OFF MachinePowerState = 1 + MachinePowerState_POWER_STATE_ON MachinePowerState = 2 +) + +// Enum value maps for MachinePowerState. +var ( + MachinePowerState_name = map[int32]string{ + 0: "POWER_STATE_UNKNOWN", + 1: "POWER_STATE_OFF", + 2: "POWER_STATE_ON", + } + MachinePowerState_value = map[string]int32{ + "POWER_STATE_UNKNOWN": 0, + "POWER_STATE_OFF": 1, + "POWER_STATE_ON": 2, + } +) + +func (x MachinePowerState) Enum() *MachinePowerState { + p := new(MachinePowerState) + *p = x + return p +} + +func (x MachinePowerState) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (MachinePowerState) Descriptor() protoreflect.EnumDescriptor { + return file_omni_specs_omni_proto_enumTypes[4].Descriptor() +} + +func (MachinePowerState) Type() protoreflect.EnumType { + return &file_omni_specs_omni_proto_enumTypes[4] +} + +func (x MachinePowerState) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use MachinePowerState.Descriptor instead. +func (MachinePowerState) EnumDescriptor() ([]byte, []int) { + return file_omni_specs_omni_proto_rawDescGZIP(), []int{4} +} + type MachineStatusSpec_Role int32 const ( @@ -269,11 +318,11 @@ func (x MachineStatusSpec_Role) String() string { } func (MachineStatusSpec_Role) Descriptor() protoreflect.EnumDescriptor { - return file_omni_specs_omni_proto_enumTypes[4].Descriptor() + return file_omni_specs_omni_proto_enumTypes[5].Descriptor() } func (MachineStatusSpec_Role) Type() protoreflect.EnumType { - return &file_omni_specs_omni_proto_enumTypes[4] + return &file_omni_specs_omni_proto_enumTypes[5] } func (x MachineStatusSpec_Role) Number() protoreflect.EnumNumber { @@ -321,11 +370,11 @@ func (x EtcdBackupStatusSpec_Status) String() string { } func (EtcdBackupStatusSpec_Status) Descriptor() protoreflect.EnumDescriptor { - return file_omni_specs_omni_proto_enumTypes[5].Descriptor() + return file_omni_specs_omni_proto_enumTypes[6].Descriptor() } func (EtcdBackupStatusSpec_Status) Type() protoreflect.EnumType { - return &file_omni_specs_omni_proto_enumTypes[5] + return &file_omni_specs_omni_proto_enumTypes[6] } func (x EtcdBackupStatusSpec_Status) Number() protoreflect.EnumNumber { @@ -391,11 +440,11 @@ func (x ClusterMachineStatusSpec_Stage) String() string { } func (ClusterMachineStatusSpec_Stage) Descriptor() protoreflect.EnumDescriptor { - return file_omni_specs_omni_proto_enumTypes[6].Descriptor() + return file_omni_specs_omni_proto_enumTypes[7].Descriptor() } func (ClusterMachineStatusSpec_Stage) Type() protoreflect.EnumType { - return &file_omni_specs_omni_proto_enumTypes[6] + return &file_omni_specs_omni_proto_enumTypes[7] } func (x ClusterMachineStatusSpec_Stage) Number() protoreflect.EnumNumber { @@ -446,11 +495,11 @@ func (x ClusterStatusSpec_Phase) String() string { } func (ClusterStatusSpec_Phase) Descriptor() protoreflect.EnumDescriptor { - return file_omni_specs_omni_proto_enumTypes[7].Descriptor() + return file_omni_specs_omni_proto_enumTypes[8].Descriptor() } func (ClusterStatusSpec_Phase) Type() protoreflect.EnumType { - return &file_omni_specs_omni_proto_enumTypes[7] + return &file_omni_specs_omni_proto_enumTypes[8] } func (x ClusterStatusSpec_Phase) Number() protoreflect.EnumNumber { @@ -493,11 +542,11 @@ func (x MachineSetSpec_UpdateStrategy) String() string { } func (MachineSetSpec_UpdateStrategy) Descriptor() protoreflect.EnumDescriptor { - return file_omni_specs_omni_proto_enumTypes[8].Descriptor() + return file_omni_specs_omni_proto_enumTypes[9].Descriptor() } func (MachineSetSpec_UpdateStrategy) Type() protoreflect.EnumType { - return &file_omni_specs_omni_proto_enumTypes[8] + return &file_omni_specs_omni_proto_enumTypes[9] } func (x MachineSetSpec_UpdateStrategy) Number() protoreflect.EnumNumber { @@ -541,11 +590,11 @@ func (x MachineSetSpec_MachineClass_Type) String() string { } func (MachineSetSpec_MachineClass_Type) Descriptor() protoreflect.EnumDescriptor { - return file_omni_specs_omni_proto_enumTypes[9].Descriptor() + return file_omni_specs_omni_proto_enumTypes[10].Descriptor() } func (MachineSetSpec_MachineClass_Type) Type() protoreflect.EnumType { - return &file_omni_specs_omni_proto_enumTypes[9] + return &file_omni_specs_omni_proto_enumTypes[10] } func (x MachineSetSpec_MachineClass_Type) Number() protoreflect.EnumNumber { @@ -589,11 +638,11 @@ func (x MachineSetSpec_MachineAllocation_Type) String() string { } func (MachineSetSpec_MachineAllocation_Type) Descriptor() protoreflect.EnumDescriptor { - return file_omni_specs_omni_proto_enumTypes[10].Descriptor() + return file_omni_specs_omni_proto_enumTypes[11].Descriptor() } func (MachineSetSpec_MachineAllocation_Type) Type() protoreflect.EnumType { - return &file_omni_specs_omni_proto_enumTypes[10] + return &file_omni_specs_omni_proto_enumTypes[11] } func (x MachineSetSpec_MachineAllocation_Type) Number() protoreflect.EnumNumber { @@ -637,11 +686,11 @@ func (x MachineSetSpec_MachineAllocation_Source) String() string { } func (MachineSetSpec_MachineAllocation_Source) Descriptor() protoreflect.EnumDescriptor { - return file_omni_specs_omni_proto_enumTypes[11].Descriptor() + return file_omni_specs_omni_proto_enumTypes[12].Descriptor() } func (MachineSetSpec_MachineAllocation_Source) Type() protoreflect.EnumType { - return &file_omni_specs_omni_proto_enumTypes[11] + return &file_omni_specs_omni_proto_enumTypes[12] } func (x MachineSetSpec_MachineAllocation_Source) Number() protoreflect.EnumNumber { @@ -695,11 +744,11 @@ func (x TalosUpgradeStatusSpec_Phase) String() string { } func (TalosUpgradeStatusSpec_Phase) Descriptor() protoreflect.EnumDescriptor { - return file_omni_specs_omni_proto_enumTypes[12].Descriptor() + return file_omni_specs_omni_proto_enumTypes[13].Descriptor() } func (TalosUpgradeStatusSpec_Phase) Type() protoreflect.EnumType { - return &file_omni_specs_omni_proto_enumTypes[12] + return &file_omni_specs_omni_proto_enumTypes[13] } func (x TalosUpgradeStatusSpec_Phase) Number() protoreflect.EnumNumber { @@ -744,11 +793,11 @@ func (x ControlPlaneStatusSpec_Condition_Status) String() string { } func (ControlPlaneStatusSpec_Condition_Status) Descriptor() protoreflect.EnumDescriptor { - return file_omni_specs_omni_proto_enumTypes[13].Descriptor() + return file_omni_specs_omni_proto_enumTypes[14].Descriptor() } func (ControlPlaneStatusSpec_Condition_Status) Type() protoreflect.EnumType { - return &file_omni_specs_omni_proto_enumTypes[13] + return &file_omni_specs_omni_proto_enumTypes[14] } func (x ControlPlaneStatusSpec_Condition_Status) Number() protoreflect.EnumNumber { @@ -793,11 +842,11 @@ func (x ControlPlaneStatusSpec_Condition_Severity) String() string { } func (ControlPlaneStatusSpec_Condition_Severity) Descriptor() protoreflect.EnumDescriptor { - return file_omni_specs_omni_proto_enumTypes[14].Descriptor() + return file_omni_specs_omni_proto_enumTypes[15].Descriptor() } func (ControlPlaneStatusSpec_Condition_Severity) Type() protoreflect.EnumType { - return &file_omni_specs_omni_proto_enumTypes[14] + return &file_omni_specs_omni_proto_enumTypes[15] } func (x ControlPlaneStatusSpec_Condition_Severity) Number() protoreflect.EnumNumber { @@ -848,11 +897,11 @@ func (x KubernetesUpgradeStatusSpec_Phase) String() string { } func (KubernetesUpgradeStatusSpec_Phase) Descriptor() protoreflect.EnumDescriptor { - return file_omni_specs_omni_proto_enumTypes[15].Descriptor() + return file_omni_specs_omni_proto_enumTypes[16].Descriptor() } func (KubernetesUpgradeStatusSpec_Phase) Type() protoreflect.EnumType { - return &file_omni_specs_omni_proto_enumTypes[15] + return &file_omni_specs_omni_proto_enumTypes[16] } func (x KubernetesUpgradeStatusSpec_Phase) Number() protoreflect.EnumNumber { @@ -897,11 +946,11 @@ func (x ExtensionsConfigurationStatusSpec_Phase) String() string { } func (ExtensionsConfigurationStatusSpec_Phase) Descriptor() protoreflect.EnumDescriptor { - return file_omni_specs_omni_proto_enumTypes[16].Descriptor() + return file_omni_specs_omni_proto_enumTypes[17].Descriptor() } func (ExtensionsConfigurationStatusSpec_Phase) Type() protoreflect.EnumType { - return &file_omni_specs_omni_proto_enumTypes[16] + return &file_omni_specs_omni_proto_enumTypes[17] } func (x ExtensionsConfigurationStatusSpec_Phase) Number() protoreflect.EnumNumber { @@ -946,11 +995,11 @@ func (x MachineExtensionsStatusSpec_Item_Phase) String() string { } func (MachineExtensionsStatusSpec_Item_Phase) Descriptor() protoreflect.EnumDescriptor { - return file_omni_specs_omni_proto_enumTypes[17].Descriptor() + return file_omni_specs_omni_proto_enumTypes[18].Descriptor() } func (MachineExtensionsStatusSpec_Item_Phase) Type() protoreflect.EnumType { - return &file_omni_specs_omni_proto_enumTypes[17] + return &file_omni_specs_omni_proto_enumTypes[18] } func (x MachineExtensionsStatusSpec_Item_Phase) Number() protoreflect.EnumNumber { @@ -1004,11 +1053,11 @@ func (x ClusterMachineRequestStatusSpec_Stage) String() string { } func (ClusterMachineRequestStatusSpec_Stage) Descriptor() protoreflect.EnumDescriptor { - return file_omni_specs_omni_proto_enumTypes[18].Descriptor() + return file_omni_specs_omni_proto_enumTypes[19].Descriptor() } func (ClusterMachineRequestStatusSpec_Stage) Type() protoreflect.EnumType { - return &file_omni_specs_omni_proto_enumTypes[18] + return &file_omni_specs_omni_proto_enumTypes[19] } func (x ClusterMachineRequestStatusSpec_Stage) Number() protoreflect.EnumNumber { @@ -1034,11 +1083,9 @@ type MachineSpec struct { func (x *MachineSpec) Reset() { *x = MachineSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MachineSpec) String() string { @@ -1049,7 +1096,7 @@ func (*MachineSpec) ProtoMessage() {} func (x *MachineSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1090,11 +1137,9 @@ type SecureBootStatus struct { func (x *SecureBootStatus) Reset() { *x = SecureBootStatus{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SecureBootStatus) String() string { @@ -1105,7 +1150,7 @@ func (*SecureBootStatus) ProtoMessage() {} func (x *SecureBootStatus) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1138,11 +1183,9 @@ type Overlay struct { func (x *Overlay) Reset() { *x = Overlay{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Overlay) String() string { @@ -1153,7 +1196,7 @@ func (*Overlay) ProtoMessage() {} func (x *Overlay) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1193,11 +1236,9 @@ type MetaValue struct { func (x *MetaValue) Reset() { *x = MetaValue{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MetaValue) String() string { @@ -1208,7 +1249,7 @@ func (*MetaValue) ProtoMessage() {} func (x *MetaValue) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1273,11 +1314,9 @@ type MachineStatusSpec struct { func (x *MachineStatusSpec) Reset() { *x = MachineStatusSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MachineStatusSpec) String() string { @@ -1288,7 +1327,7 @@ func (*MachineStatusSpec) ProtoMessage() {} func (x *MachineStatusSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1424,11 +1463,9 @@ type TalosConfigSpec struct { func (x *TalosConfigSpec) Reset() { *x = TalosConfigSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TalosConfigSpec) String() string { @@ -1439,7 +1476,7 @@ func (*TalosConfigSpec) ProtoMessage() {} func (x *TalosConfigSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1497,11 +1534,9 @@ type ClusterSpec struct { func (x *ClusterSpec) Reset() { *x = ClusterSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ClusterSpec) String() string { @@ -1512,7 +1547,7 @@ func (*ClusterSpec) ProtoMessage() {} func (x *ClusterSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1572,11 +1607,9 @@ type ClusterTaintSpec struct { func (x *ClusterTaintSpec) Reset() { *x = ClusterTaintSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ClusterTaintSpec) String() string { @@ -1587,7 +1620,7 @@ func (*ClusterTaintSpec) ProtoMessage() {} func (x *ClusterTaintSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1616,11 +1649,9 @@ type EtcdBackupConf struct { func (x *EtcdBackupConf) Reset() { *x = EtcdBackupConf{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EtcdBackupConf) String() string { @@ -1631,7 +1662,7 @@ func (*EtcdBackupConf) ProtoMessage() {} func (x *EtcdBackupConf) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1671,11 +1702,9 @@ type EtcdBackupEncryptionSpec struct { func (x *EtcdBackupEncryptionSpec) Reset() { *x = EtcdBackupEncryptionSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EtcdBackupEncryptionSpec) String() string { @@ -1686,7 +1715,7 @@ func (*EtcdBackupEncryptionSpec) ProtoMessage() {} func (x *EtcdBackupEncryptionSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1720,11 +1749,9 @@ type EtcdBackupHeader struct { func (x *EtcdBackupHeader) Reset() { *x = EtcdBackupHeader{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EtcdBackupHeader) String() string { @@ -1735,7 +1762,7 @@ func (*EtcdBackupHeader) ProtoMessage() {} func (x *EtcdBackupHeader) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1773,11 +1800,9 @@ type EtcdBackupSpec struct { func (x *EtcdBackupSpec) Reset() { *x = EtcdBackupSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EtcdBackupSpec) String() string { @@ -1788,7 +1813,7 @@ func (*EtcdBackupSpec) ProtoMessage() {} func (x *EtcdBackupSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1839,11 +1864,9 @@ type BackupDataSpec struct { func (x *BackupDataSpec) Reset() { *x = BackupDataSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BackupDataSpec) String() string { @@ -1854,7 +1877,7 @@ func (*BackupDataSpec) ProtoMessage() {} func (x *BackupDataSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1920,11 +1943,9 @@ type EtcdBackupS3ConfSpec struct { func (x *EtcdBackupS3ConfSpec) Reset() { *x = EtcdBackupS3ConfSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EtcdBackupS3ConfSpec) String() string { @@ -1935,7 +1956,7 @@ func (*EtcdBackupS3ConfSpec) ProtoMessage() {} func (x *EtcdBackupS3ConfSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2010,11 +2031,9 @@ type EtcdBackupStatusSpec struct { func (x *EtcdBackupStatusSpec) Reset() { *x = EtcdBackupStatusSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EtcdBackupStatusSpec) String() string { @@ -2025,7 +2044,7 @@ func (*EtcdBackupStatusSpec) ProtoMessage() {} func (x *EtcdBackupStatusSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2080,11 +2099,9 @@ type EtcdManualBackupSpec struct { func (x *EtcdManualBackupSpec) Reset() { *x = EtcdManualBackupSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EtcdManualBackupSpec) String() string { @@ -2095,7 +2112,7 @@ func (*EtcdManualBackupSpec) ProtoMessage() {} func (x *EtcdManualBackupSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2131,11 +2148,9 @@ type EtcdBackupStoreStatusSpec struct { func (x *EtcdBackupStoreStatusSpec) Reset() { *x = EtcdBackupStoreStatusSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EtcdBackupStoreStatusSpec) String() string { @@ -2146,7 +2161,7 @@ func (*EtcdBackupStoreStatusSpec) ProtoMessage() {} func (x *EtcdBackupStoreStatusSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2191,11 +2206,9 @@ type EtcdBackupOverallStatusSpec struct { func (x *EtcdBackupOverallStatusSpec) Reset() { *x = EtcdBackupOverallStatusSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EtcdBackupOverallStatusSpec) String() string { @@ -2206,7 +2219,7 @@ func (*EtcdBackupOverallStatusSpec) ProtoMessage() {} func (x *EtcdBackupOverallStatusSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2254,11 +2267,9 @@ type ClusterMachineSpec struct { func (x *ClusterMachineSpec) Reset() { *x = ClusterMachineSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ClusterMachineSpec) String() string { @@ -2269,7 +2280,7 @@ func (*ClusterMachineSpec) ProtoMessage() {} func (x *ClusterMachineSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2309,11 +2320,9 @@ type ClusterMachineConfigPatchesSpec struct { func (x *ClusterMachineConfigPatchesSpec) Reset() { *x = ClusterMachineConfigPatchesSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ClusterMachineConfigPatchesSpec) String() string { @@ -2324,7 +2333,7 @@ func (*ClusterMachineConfigPatchesSpec) ProtoMessage() {} func (x *ClusterMachineConfigPatchesSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2365,11 +2374,9 @@ type ClusterMachineTalosVersionSpec struct { func (x *ClusterMachineTalosVersionSpec) Reset() { *x = ClusterMachineTalosVersionSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ClusterMachineTalosVersionSpec) String() string { @@ -2380,7 +2387,7 @@ func (*ClusterMachineTalosVersionSpec) ProtoMessage() {} func (x *ClusterMachineTalosVersionSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2429,11 +2436,9 @@ type ClusterMachineConfigSpec struct { func (x *ClusterMachineConfigSpec) Reset() { *x = ClusterMachineConfigSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ClusterMachineConfigSpec) String() string { @@ -2444,7 +2449,7 @@ func (*ClusterMachineConfigSpec) ProtoMessage() {} func (x *ClusterMachineConfigSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2505,11 +2510,9 @@ type RedactedClusterMachineConfigSpec struct { func (x *RedactedClusterMachineConfigSpec) Reset() { *x = RedactedClusterMachineConfigSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RedactedClusterMachineConfigSpec) String() string { @@ -2520,7 +2523,7 @@ func (*RedactedClusterMachineConfigSpec) ProtoMessage() {} func (x *RedactedClusterMachineConfigSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2567,11 +2570,9 @@ type ClusterMachineIdentitySpec struct { func (x *ClusterMachineIdentitySpec) Reset() { *x = ClusterMachineIdentitySpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ClusterMachineIdentitySpec) String() string { @@ -2582,7 +2583,7 @@ func (*ClusterMachineIdentitySpec) ProtoMessage() {} func (x *ClusterMachineIdentitySpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2643,11 +2644,9 @@ type ClusterMachineTemplateSpec struct { func (x *ClusterMachineTemplateSpec) Reset() { *x = ClusterMachineTemplateSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ClusterMachineTemplateSpec) String() string { @@ -2658,7 +2657,7 @@ func (*ClusterMachineTemplateSpec) ProtoMessage() {} func (x *ClusterMachineTemplateSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2725,11 +2724,9 @@ type ClusterMachineStatusSpec struct { func (x *ClusterMachineStatusSpec) Reset() { *x = ClusterMachineStatusSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ClusterMachineStatusSpec) String() string { @@ -2740,7 +2737,7 @@ func (*ClusterMachineStatusSpec) ProtoMessage() {} func (x *ClusterMachineStatusSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[25] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2836,11 +2833,9 @@ type Machines struct { func (x *Machines) Reset() { *x = Machines{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Machines) String() string { @@ -2851,7 +2846,7 @@ func (*Machines) ProtoMessage() {} func (x *Machines) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[26] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2916,11 +2911,9 @@ type ClusterStatusSpec struct { func (x *ClusterStatusSpec) Reset() { *x = ClusterStatusSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ClusterStatusSpec) String() string { @@ -2931,7 +2924,7 @@ func (*ClusterStatusSpec) ProtoMessage() {} func (x *ClusterStatusSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[27] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3013,11 +3006,9 @@ type ClusterUUID struct { func (x *ClusterUUID) Reset() { *x = ClusterUUID{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ClusterUUID) String() string { @@ -3028,7 +3019,7 @@ func (*ClusterUUID) ProtoMessage() {} func (x *ClusterUUID) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[28] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3061,11 +3052,9 @@ type ClusterConfigVersionSpec struct { func (x *ClusterConfigVersionSpec) Reset() { *x = ClusterConfigVersionSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ClusterConfigVersionSpec) String() string { @@ -3076,7 +3065,7 @@ func (*ClusterConfigVersionSpec) ProtoMessage() {} func (x *ClusterConfigVersionSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[29] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3114,11 +3103,9 @@ type ClusterMachineConfigStatusSpec struct { func (x *ClusterMachineConfigStatusSpec) Reset() { *x = ClusterMachineConfigStatusSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ClusterMachineConfigStatusSpec) String() string { @@ -3129,7 +3116,7 @@ func (*ClusterMachineConfigStatusSpec) ProtoMessage() {} func (x *ClusterMachineConfigStatusSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[30] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3197,11 +3184,9 @@ type ClusterBootstrapStatusSpec struct { func (x *ClusterBootstrapStatusSpec) Reset() { *x = ClusterBootstrapStatusSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[31] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ClusterBootstrapStatusSpec) String() string { @@ -3212,7 +3197,7 @@ func (*ClusterBootstrapStatusSpec) ProtoMessage() {} func (x *ClusterBootstrapStatusSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[31] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3246,11 +3231,9 @@ type ClusterSecretsSpec struct { func (x *ClusterSecretsSpec) Reset() { *x = ClusterSecretsSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[32] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ClusterSecretsSpec) String() string { @@ -3261,7 +3244,7 @@ func (*ClusterSecretsSpec) ProtoMessage() {} func (x *ClusterSecretsSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[32] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3298,11 +3281,9 @@ type LoadBalancerConfigSpec struct { func (x *LoadBalancerConfigSpec) Reset() { *x = LoadBalancerConfigSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[33] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LoadBalancerConfigSpec) String() string { @@ -3313,7 +3294,7 @@ func (*LoadBalancerConfigSpec) ProtoMessage() {} func (x *LoadBalancerConfigSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[33] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3361,11 +3342,9 @@ type LoadBalancerStatusSpec struct { func (x *LoadBalancerStatusSpec) Reset() { *x = LoadBalancerStatusSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[34] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LoadBalancerStatusSpec) String() string { @@ -3376,7 +3355,7 @@ func (*LoadBalancerStatusSpec) ProtoMessage() {} func (x *LoadBalancerStatusSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[34] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3416,11 +3395,9 @@ type KubernetesVersionSpec struct { func (x *KubernetesVersionSpec) Reset() { *x = KubernetesVersionSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[35] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *KubernetesVersionSpec) String() string { @@ -3431,7 +3408,7 @@ func (*KubernetesVersionSpec) ProtoMessage() {} func (x *KubernetesVersionSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[35] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3466,11 +3443,9 @@ type TalosVersionSpec struct { func (x *TalosVersionSpec) Reset() { *x = TalosVersionSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[36] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TalosVersionSpec) String() string { @@ -3481,7 +3456,7 @@ func (*TalosVersionSpec) ProtoMessage() {} func (x *TalosVersionSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[36] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3542,11 +3517,9 @@ type InstallationMediaSpec struct { func (x *InstallationMediaSpec) Reset() { *x = InstallationMediaSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[37] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *InstallationMediaSpec) String() string { @@ -3557,7 +3530,7 @@ func (*InstallationMediaSpec) ProtoMessage() {} func (x *InstallationMediaSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[37] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3653,11 +3626,9 @@ type ConfigPatchSpec struct { func (x *ConfigPatchSpec) Reset() { *x = ConfigPatchSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[38] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ConfigPatchSpec) String() string { @@ -3668,7 +3639,7 @@ func (*ConfigPatchSpec) ProtoMessage() {} func (x *ConfigPatchSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[38] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3726,11 +3697,9 @@ type MachineSetSpec struct { func (x *MachineSetSpec) Reset() { *x = MachineSetSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[39] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MachineSetSpec) String() string { @@ -3741,7 +3710,7 @@ func (*MachineSetSpec) ProtoMessage() {} func (x *MachineSetSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[39] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3830,11 +3799,9 @@ type TalosUpgradeStatusSpec struct { func (x *TalosUpgradeStatusSpec) Reset() { *x = TalosUpgradeStatusSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[40] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TalosUpgradeStatusSpec) String() string { @@ -3845,7 +3812,7 @@ func (*TalosUpgradeStatusSpec) ProtoMessage() {} func (x *TalosUpgradeStatusSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[40] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3929,11 +3896,9 @@ type MachineSetStatusSpec struct { func (x *MachineSetStatusSpec) Reset() { *x = MachineSetStatusSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[41] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[41] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MachineSetStatusSpec) String() string { @@ -3944,7 +3909,7 @@ func (*MachineSetStatusSpec) ProtoMessage() {} func (x *MachineSetStatusSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[41] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4017,11 +3982,9 @@ type MachineSetNodeSpec struct { func (x *MachineSetNodeSpec) Reset() { *x = MachineSetNodeSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[42] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[42] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MachineSetNodeSpec) String() string { @@ -4032,7 +3995,7 @@ func (*MachineSetNodeSpec) ProtoMessage() {} func (x *MachineSetNodeSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[42] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4056,11 +4019,9 @@ type MachineLabelsSpec struct { func (x *MachineLabelsSpec) Reset() { *x = MachineLabelsSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[43] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[43] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MachineLabelsSpec) String() string { @@ -4071,7 +4032,7 @@ func (*MachineLabelsSpec) ProtoMessage() {} func (x *MachineLabelsSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[43] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4097,11 +4058,9 @@ type MachineStatusSnapshotSpec struct { func (x *MachineStatusSnapshotSpec) Reset() { *x = MachineStatusSnapshotSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[44] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[44] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MachineStatusSnapshotSpec) String() string { @@ -4112,7 +4071,7 @@ func (*MachineStatusSnapshotSpec) ProtoMessage() {} func (x *MachineStatusSnapshotSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[44] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4145,11 +4104,9 @@ type ControlPlaneStatusSpec struct { func (x *ControlPlaneStatusSpec) Reset() { *x = ControlPlaneStatusSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[45] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[45] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ControlPlaneStatusSpec) String() string { @@ -4160,7 +4117,7 @@ func (*ControlPlaneStatusSpec) ProtoMessage() {} func (x *ControlPlaneStatusSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[45] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4194,11 +4151,9 @@ type ClusterEndpointSpec struct { func (x *ClusterEndpointSpec) Reset() { *x = ClusterEndpointSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[46] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[46] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ClusterEndpointSpec) String() string { @@ -4209,7 +4164,7 @@ func (*ClusterEndpointSpec) ProtoMessage() {} func (x *ClusterEndpointSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[46] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4245,11 +4200,9 @@ type KubernetesStatusSpec struct { func (x *KubernetesStatusSpec) Reset() { *x = KubernetesStatusSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[47] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[47] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *KubernetesStatusSpec) String() string { @@ -4260,7 +4213,7 @@ func (*KubernetesStatusSpec) ProtoMessage() {} func (x *KubernetesStatusSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[47] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4313,11 +4266,9 @@ type KubernetesUpgradeStatusSpec struct { func (x *KubernetesUpgradeStatusSpec) Reset() { *x = KubernetesUpgradeStatusSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[48] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[48] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *KubernetesUpgradeStatusSpec) String() string { @@ -4328,7 +4279,7 @@ func (*KubernetesUpgradeStatusSpec) ProtoMessage() {} func (x *KubernetesUpgradeStatusSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[48] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4406,11 +4357,9 @@ type KubernetesUpgradeManifestStatusSpec struct { func (x *KubernetesUpgradeManifestStatusSpec) Reset() { *x = KubernetesUpgradeManifestStatusSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[49] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[49] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *KubernetesUpgradeManifestStatusSpec) String() string { @@ -4421,7 +4370,7 @@ func (*KubernetesUpgradeManifestStatusSpec) ProtoMessage() {} func (x *KubernetesUpgradeManifestStatusSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[49] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4462,11 +4411,9 @@ type DestroyStatusSpec struct { func (x *DestroyStatusSpec) Reset() { *x = DestroyStatusSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[50] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[50] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DestroyStatusSpec) String() string { @@ -4477,7 +4424,7 @@ func (*DestroyStatusSpec) ProtoMessage() {} func (x *DestroyStatusSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[50] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4519,11 +4466,9 @@ type OngoingTaskSpec struct { func (x *OngoingTaskSpec) Reset() { *x = OngoingTaskSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[51] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[51] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *OngoingTaskSpec) String() string { @@ -4534,7 +4479,7 @@ func (*OngoingTaskSpec) ProtoMessage() {} func (x *OngoingTaskSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[51] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4618,11 +4563,9 @@ type ClusterMachineEncryptionKeySpec struct { func (x *ClusterMachineEncryptionKeySpec) Reset() { *x = ClusterMachineEncryptionKeySpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[52] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[52] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ClusterMachineEncryptionKeySpec) String() string { @@ -4633,7 +4576,7 @@ func (*ClusterMachineEncryptionKeySpec) ProtoMessage() {} func (x *ClusterMachineEncryptionKeySpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[52] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4673,11 +4616,9 @@ type ExposedServiceSpec struct { func (x *ExposedServiceSpec) Reset() { *x = ExposedServiceSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[53] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[53] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ExposedServiceSpec) String() string { @@ -4688,7 +4629,7 @@ func (*ExposedServiceSpec) ProtoMessage() {} func (x *ExposedServiceSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[53] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4742,11 +4683,9 @@ type ClusterWorkloadProxyStatusSpec struct { func (x *ClusterWorkloadProxyStatusSpec) Reset() { *x = ClusterWorkloadProxyStatusSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[54] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[54] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ClusterWorkloadProxyStatusSpec) String() string { @@ -4757,7 +4696,7 @@ func (*ClusterWorkloadProxyStatusSpec) ProtoMessage() {} func (x *ClusterWorkloadProxyStatusSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[54] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4796,11 +4735,9 @@ type FeaturesConfigSpec struct { func (x *FeaturesConfigSpec) Reset() { *x = FeaturesConfigSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[55] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[55] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FeaturesConfigSpec) String() string { @@ -4811,7 +4748,7 @@ func (*FeaturesConfigSpec) ProtoMessage() {} func (x *FeaturesConfigSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[55] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4869,11 +4806,9 @@ type EtcdBackupSettings struct { func (x *EtcdBackupSettings) Reset() { *x = EtcdBackupSettings{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[56] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[56] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EtcdBackupSettings) String() string { @@ -4884,7 +4819,7 @@ func (*EtcdBackupSettings) ProtoMessage() {} func (x *EtcdBackupSettings) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[56] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4934,11 +4869,9 @@ type MachineClassSpec struct { func (x *MachineClassSpec) Reset() { *x = MachineClassSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[57] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[57] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MachineClassSpec) String() string { @@ -4949,7 +4882,7 @@ func (*MachineClassSpec) ProtoMessage() {} func (x *MachineClassSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[57] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4991,11 +4924,9 @@ type MachineConfigGenOptionsSpec struct { func (x *MachineConfigGenOptionsSpec) Reset() { *x = MachineConfigGenOptionsSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[58] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[58] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MachineConfigGenOptionsSpec) String() string { @@ -5006,7 +4937,7 @@ func (*MachineConfigGenOptionsSpec) ProtoMessage() {} func (x *MachineConfigGenOptionsSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[58] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5050,11 +4981,9 @@ type EtcdAuditResultSpec struct { func (x *EtcdAuditResultSpec) Reset() { *x = EtcdAuditResultSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[59] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[59] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EtcdAuditResultSpec) String() string { @@ -5065,7 +4994,7 @@ func (*EtcdAuditResultSpec) ProtoMessage() {} func (x *EtcdAuditResultSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[59] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5099,11 +5028,9 @@ type KubeconfigSpec struct { func (x *KubeconfigSpec) Reset() { *x = KubeconfigSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[60] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[60] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *KubeconfigSpec) String() string { @@ -5114,7 +5041,7 @@ func (*KubeconfigSpec) ProtoMessage() {} func (x *KubeconfigSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[60] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5150,11 +5077,9 @@ type KubernetesUsageSpec struct { func (x *KubernetesUsageSpec) Reset() { *x = KubernetesUsageSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[61] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[61] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *KubernetesUsageSpec) String() string { @@ -5165,7 +5090,7 @@ func (*KubernetesUsageSpec) ProtoMessage() {} func (x *KubernetesUsageSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[61] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5220,11 +5145,9 @@ type ImagePullRequestSpec struct { func (x *ImagePullRequestSpec) Reset() { *x = ImagePullRequestSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[62] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[62] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ImagePullRequestSpec) String() string { @@ -5235,7 +5158,7 @@ func (*ImagePullRequestSpec) ProtoMessage() {} func (x *ImagePullRequestSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[62] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5274,11 +5197,9 @@ type ImagePullStatusSpec struct { func (x *ImagePullStatusSpec) Reset() { *x = ImagePullStatusSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[63] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[63] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ImagePullStatusSpec) String() string { @@ -5289,7 +5210,7 @@ func (*ImagePullStatusSpec) ProtoMessage() {} func (x *ImagePullStatusSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[63] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5356,11 +5277,9 @@ type SchematicSpec struct { func (x *SchematicSpec) Reset() { *x = SchematicSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[64] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[64] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SchematicSpec) String() string { @@ -5371,7 +5290,7 @@ func (*SchematicSpec) ProtoMessage() {} func (x *SchematicSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[64] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5397,11 +5316,9 @@ type TalosExtensionsSpec struct { func (x *TalosExtensionsSpec) Reset() { *x = TalosExtensionsSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[65] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[65] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TalosExtensionsSpec) String() string { @@ -5412,7 +5329,7 @@ func (*TalosExtensionsSpec) ProtoMessage() {} func (x *TalosExtensionsSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[65] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5446,11 +5363,9 @@ type SchematicConfigurationSpec struct { func (x *SchematicConfigurationSpec) Reset() { *x = SchematicConfigurationSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[66] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[66] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SchematicConfigurationSpec) String() string { @@ -5461,7 +5376,7 @@ func (*SchematicConfigurationSpec) ProtoMessage() {} func (x *SchematicConfigurationSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[66] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5501,11 +5416,9 @@ type ExtensionsConfigurationSpec struct { func (x *ExtensionsConfigurationSpec) Reset() { *x = ExtensionsConfigurationSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[67] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[67] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ExtensionsConfigurationSpec) String() string { @@ -5516,7 +5429,7 @@ func (*ExtensionsConfigurationSpec) ProtoMessage() {} func (x *ExtensionsConfigurationSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[67] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5552,11 +5465,9 @@ type ExtensionsConfigurationStatusSpec struct { func (x *ExtensionsConfigurationStatusSpec) Reset() { *x = ExtensionsConfigurationStatusSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[68] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[68] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ExtensionsConfigurationStatusSpec) String() string { @@ -5567,7 +5478,7 @@ func (*ExtensionsConfigurationStatusSpec) ProtoMessage() {} func (x *ExtensionsConfigurationStatusSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[68] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5614,11 +5525,9 @@ type MachineExtensionsSpec struct { func (x *MachineExtensionsSpec) Reset() { *x = MachineExtensionsSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[69] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[69] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MachineExtensionsSpec) String() string { @@ -5629,7 +5538,7 @@ func (*MachineExtensionsSpec) ProtoMessage() {} func (x *MachineExtensionsSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[69] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5663,11 +5572,9 @@ type MachineExtensionsStatusSpec struct { func (x *MachineExtensionsStatusSpec) Reset() { *x = MachineExtensionsStatusSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[70] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[70] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MachineExtensionsStatusSpec) String() string { @@ -5678,7 +5585,7 @@ func (*MachineExtensionsStatusSpec) ProtoMessage() {} func (x *MachineExtensionsStatusSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[70] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5720,11 +5627,9 @@ type MachineStatusMetricsSpec struct { func (x *MachineStatusMetricsSpec) Reset() { *x = MachineStatusMetricsSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[71] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[71] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MachineStatusMetricsSpec) String() string { @@ -5735,7 +5640,7 @@ func (*MachineStatusMetricsSpec) ProtoMessage() {} func (x *MachineStatusMetricsSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[71] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5784,11 +5689,9 @@ type ClusterStatusMetricsSpec struct { func (x *ClusterStatusMetricsSpec) Reset() { *x = ClusterStatusMetricsSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[72] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[72] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ClusterStatusMetricsSpec) String() string { @@ -5799,7 +5702,7 @@ func (*ClusterStatusMetricsSpec) ProtoMessage() {} func (x *ClusterStatusMetricsSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[72] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5842,11 +5745,9 @@ type ClusterKubernetesNodesSpec struct { func (x *ClusterKubernetesNodesSpec) Reset() { *x = ClusterKubernetesNodesSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[73] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[73] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ClusterKubernetesNodesSpec) String() string { @@ -5857,7 +5758,7 @@ func (*ClusterKubernetesNodesSpec) ProtoMessage() {} func (x *ClusterKubernetesNodesSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[73] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5893,11 +5794,9 @@ type KubernetesNodeAuditResultSpec struct { func (x *KubernetesNodeAuditResultSpec) Reset() { *x = KubernetesNodeAuditResultSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[74] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[74] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *KubernetesNodeAuditResultSpec) String() string { @@ -5908,7 +5807,7 @@ func (*KubernetesNodeAuditResultSpec) ProtoMessage() {} func (x *KubernetesNodeAuditResultSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[74] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -5949,11 +5848,9 @@ type MachineRequestSetSpec struct { func (x *MachineRequestSetSpec) Reset() { *x = MachineRequestSetSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[75] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[75] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MachineRequestSetSpec) String() string { @@ -5964,7 +5861,7 @@ func (*MachineRequestSetSpec) ProtoMessage() {} func (x *MachineRequestSetSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[75] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -6044,11 +5941,9 @@ type MachineRequestSetStatusSpec struct { func (x *MachineRequestSetStatusSpec) Reset() { *x = MachineRequestSetStatusSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[76] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[76] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MachineRequestSetStatusSpec) String() string { @@ -6059,7 +5954,7 @@ func (*MachineRequestSetStatusSpec) ProtoMessage() {} func (x *MachineRequestSetStatusSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[76] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -6085,11 +5980,9 @@ type ClusterDiagnosticsSpec struct { func (x *ClusterDiagnosticsSpec) Reset() { *x = ClusterDiagnosticsSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[77] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[77] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ClusterDiagnosticsSpec) String() string { @@ -6100,7 +5993,7 @@ func (*ClusterDiagnosticsSpec) ProtoMessage() {} func (x *ClusterDiagnosticsSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[77] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -6134,11 +6027,9 @@ type MachineRequestSetPressureSpec struct { func (x *MachineRequestSetPressureSpec) Reset() { *x = MachineRequestSetPressureSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[78] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[78] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MachineRequestSetPressureSpec) String() string { @@ -6149,7 +6040,7 @@ func (*MachineRequestSetPressureSpec) ProtoMessage() {} func (x *MachineRequestSetPressureSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[78] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -6186,11 +6077,9 @@ type ClusterMachineRequestStatusSpec struct { func (x *ClusterMachineRequestStatusSpec) Reset() { *x = ClusterMachineRequestStatusSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[79] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[79] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ClusterMachineRequestStatusSpec) String() string { @@ -6201,7 +6090,7 @@ func (*ClusterMachineRequestStatusSpec) ProtoMessage() {} func (x *ClusterMachineRequestStatusSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_omni_proto_msgTypes[79] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -6244,6 +6133,60 @@ func (x *ClusterMachineRequestStatusSpec) GetStage() ClusterMachineRequestStatus return ClusterMachineRequestStatusSpec_UNKNOWN } +// InfraMachineConfigSpec is the spec of the user-owned InfraMachineConfig resource. +type InfraMachineConfigSpec struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + PowerState MachinePowerState `protobuf:"varint,1,opt,name=power_state,json=powerState,proto3,enum=specs.MachinePowerState" json:"power_state,omitempty"` + Accepted bool `protobuf:"varint,2,opt,name=accepted,proto3" json:"accepted,omitempty"` +} + +func (x *InfraMachineConfigSpec) Reset() { + *x = InfraMachineConfigSpec{} + mi := &file_omni_specs_omni_proto_msgTypes[80] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *InfraMachineConfigSpec) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InfraMachineConfigSpec) ProtoMessage() {} + +func (x *InfraMachineConfigSpec) ProtoReflect() protoreflect.Message { + mi := &file_omni_specs_omni_proto_msgTypes[80] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use InfraMachineConfigSpec.ProtoReflect.Descriptor instead. +func (*InfraMachineConfigSpec) Descriptor() ([]byte, []int) { + return file_omni_specs_omni_proto_rawDescGZIP(), []int{80} +} + +func (x *InfraMachineConfigSpec) GetPowerState() MachinePowerState { + if x != nil { + return x.PowerState + } + return MachinePowerState_POWER_STATE_UNKNOWN +} + +func (x *InfraMachineConfigSpec) GetAccepted() bool { + if x != nil { + return x.Accepted + } + return false +} + // HardwareStatus describes machine hardware status. type MachineStatusSpec_HardwareStatus struct { state protoimpl.MessageState @@ -6262,11 +6205,9 @@ type MachineStatusSpec_HardwareStatus struct { func (x *MachineStatusSpec_HardwareStatus) Reset() { *x = MachineStatusSpec_HardwareStatus{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[80] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[81] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MachineStatusSpec_HardwareStatus) String() string { @@ -6276,8 +6217,8 @@ func (x *MachineStatusSpec_HardwareStatus) String() string { func (*MachineStatusSpec_HardwareStatus) ProtoMessage() {} func (x *MachineStatusSpec_HardwareStatus) ProtoReflect() protoreflect.Message { - mi := &file_omni_specs_omni_proto_msgTypes[80] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_omni_specs_omni_proto_msgTypes[81] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -6340,11 +6281,9 @@ type MachineStatusSpec_NetworkStatus struct { func (x *MachineStatusSpec_NetworkStatus) Reset() { *x = MachineStatusSpec_NetworkStatus{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[81] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[82] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MachineStatusSpec_NetworkStatus) String() string { @@ -6354,8 +6293,8 @@ func (x *MachineStatusSpec_NetworkStatus) String() string { func (*MachineStatusSpec_NetworkStatus) ProtoMessage() {} func (x *MachineStatusSpec_NetworkStatus) ProtoReflect() protoreflect.Message { - mi := &file_omni_specs_omni_proto_msgTypes[81] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_omni_specs_omni_proto_msgTypes[82] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -6431,11 +6370,9 @@ type MachineStatusSpec_PlatformMetadata struct { func (x *MachineStatusSpec_PlatformMetadata) Reset() { *x = MachineStatusSpec_PlatformMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[82] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[83] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MachineStatusSpec_PlatformMetadata) String() string { @@ -6445,8 +6382,8 @@ func (x *MachineStatusSpec_PlatformMetadata) String() string { func (*MachineStatusSpec_PlatformMetadata) ProtoMessage() {} func (x *MachineStatusSpec_PlatformMetadata) ProtoReflect() protoreflect.Message { - mi := &file_omni_specs_omni_proto_msgTypes[82] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_omni_specs_omni_proto_msgTypes[83] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -6550,11 +6487,9 @@ type MachineStatusSpec_Schematic struct { func (x *MachineStatusSpec_Schematic) Reset() { *x = MachineStatusSpec_Schematic{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[83] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[84] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MachineStatusSpec_Schematic) String() string { @@ -6564,8 +6499,8 @@ func (x *MachineStatusSpec_Schematic) String() string { func (*MachineStatusSpec_Schematic) ProtoMessage() {} func (x *MachineStatusSpec_Schematic) ProtoReflect() protoreflect.Message { - mi := &file_omni_specs_omni_proto_msgTypes[83] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_omni_specs_omni_proto_msgTypes[84] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -6648,11 +6583,9 @@ type MachineStatusSpec_Diagnostic struct { func (x *MachineStatusSpec_Diagnostic) Reset() { *x = MachineStatusSpec_Diagnostic{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[84] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[85] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MachineStatusSpec_Diagnostic) String() string { @@ -6662,8 +6595,8 @@ func (x *MachineStatusSpec_Diagnostic) String() string { func (*MachineStatusSpec_Diagnostic) ProtoMessage() {} func (x *MachineStatusSpec_Diagnostic) ProtoReflect() protoreflect.Message { - mi := &file_omni_specs_omni_proto_msgTypes[84] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_omni_specs_omni_proto_msgTypes[85] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -6719,11 +6652,9 @@ type MachineStatusSpec_HardwareStatus_Processor struct { func (x *MachineStatusSpec_HardwareStatus_Processor) Reset() { *x = MachineStatusSpec_HardwareStatus_Processor{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[86] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[87] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MachineStatusSpec_HardwareStatus_Processor) String() string { @@ -6733,8 +6664,8 @@ func (x *MachineStatusSpec_HardwareStatus_Processor) String() string { func (*MachineStatusSpec_HardwareStatus_Processor) ProtoMessage() {} func (x *MachineStatusSpec_HardwareStatus_Processor) ProtoReflect() protoreflect.Message { - mi := &file_omni_specs_omni_proto_msgTypes[86] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_omni_specs_omni_proto_msgTypes[87] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -6798,11 +6729,9 @@ type MachineStatusSpec_HardwareStatus_MemoryModule struct { func (x *MachineStatusSpec_HardwareStatus_MemoryModule) Reset() { *x = MachineStatusSpec_HardwareStatus_MemoryModule{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[87] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[88] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MachineStatusSpec_HardwareStatus_MemoryModule) String() string { @@ -6812,8 +6741,8 @@ func (x *MachineStatusSpec_HardwareStatus_MemoryModule) String() string { func (*MachineStatusSpec_HardwareStatus_MemoryModule) ProtoMessage() {} func (x *MachineStatusSpec_HardwareStatus_MemoryModule) ProtoReflect() protoreflect.Message { - mi := &file_omni_specs_omni_proto_msgTypes[87] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_omni_specs_omni_proto_msgTypes[88] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -6874,11 +6803,9 @@ type MachineStatusSpec_HardwareStatus_BlockDevice struct { func (x *MachineStatusSpec_HardwareStatus_BlockDevice) Reset() { *x = MachineStatusSpec_HardwareStatus_BlockDevice{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[88] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[89] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MachineStatusSpec_HardwareStatus_BlockDevice) String() string { @@ -6888,8 +6815,8 @@ func (x *MachineStatusSpec_HardwareStatus_BlockDevice) String() string { func (*MachineStatusSpec_HardwareStatus_BlockDevice) ProtoMessage() {} func (x *MachineStatusSpec_HardwareStatus_BlockDevice) ProtoReflect() protoreflect.Message { - mi := &file_omni_specs_omni_proto_msgTypes[88] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_omni_specs_omni_proto_msgTypes[89] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -7001,11 +6928,9 @@ type MachineStatusSpec_NetworkStatus_NetworkLinkStatus struct { func (x *MachineStatusSpec_NetworkStatus_NetworkLinkStatus) Reset() { *x = MachineStatusSpec_NetworkStatus_NetworkLinkStatus{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[89] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[90] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MachineStatusSpec_NetworkStatus_NetworkLinkStatus) String() string { @@ -7015,8 +6940,8 @@ func (x *MachineStatusSpec_NetworkStatus_NetworkLinkStatus) String() string { func (*MachineStatusSpec_NetworkStatus_NetworkLinkStatus) ProtoMessage() {} func (x *MachineStatusSpec_NetworkStatus_NetworkLinkStatus) ProtoReflect() protoreflect.Message { - mi := &file_omni_specs_omni_proto_msgTypes[89] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_omni_specs_omni_proto_msgTypes[90] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -7081,11 +7006,9 @@ type ClusterSpec_Features struct { func (x *ClusterSpec_Features) Reset() { *x = ClusterSpec_Features{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[90] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[91] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ClusterSpec_Features) String() string { @@ -7095,8 +7018,8 @@ func (x *ClusterSpec_Features) String() string { func (*ClusterSpec_Features) ProtoMessage() {} func (x *ClusterSpec_Features) ProtoReflect() protoreflect.Message { - mi := &file_omni_specs_omni_proto_msgTypes[90] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_omni_specs_omni_proto_msgTypes[91] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -7143,11 +7066,9 @@ type ClusterMachineStatusSpec_ProvisionStatus struct { func (x *ClusterMachineStatusSpec_ProvisionStatus) Reset() { *x = ClusterMachineStatusSpec_ProvisionStatus{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[91] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[92] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ClusterMachineStatusSpec_ProvisionStatus) String() string { @@ -7157,8 +7078,8 @@ func (x *ClusterMachineStatusSpec_ProvisionStatus) String() string { func (*ClusterMachineStatusSpec_ProvisionStatus) ProtoMessage() {} func (x *ClusterMachineStatusSpec_ProvisionStatus) ProtoReflect() protoreflect.Message { - mi := &file_omni_specs_omni_proto_msgTypes[91] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_omni_specs_omni_proto_msgTypes[92] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -7203,11 +7124,9 @@ type MachineSetSpec_MachineClass struct { func (x *MachineSetSpec_MachineClass) Reset() { *x = MachineSetSpec_MachineClass{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[92] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[93] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MachineSetSpec_MachineClass) String() string { @@ -7217,8 +7136,8 @@ func (x *MachineSetSpec_MachineClass) String() string { func (*MachineSetSpec_MachineClass) ProtoMessage() {} func (x *MachineSetSpec_MachineClass) ProtoReflect() protoreflect.Message { - mi := &file_omni_specs_omni_proto_msgTypes[92] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_omni_specs_omni_proto_msgTypes[93] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -7273,11 +7192,9 @@ type MachineSetSpec_MachineAllocation struct { func (x *MachineSetSpec_MachineAllocation) Reset() { *x = MachineSetSpec_MachineAllocation{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[93] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[94] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MachineSetSpec_MachineAllocation) String() string { @@ -7287,8 +7204,8 @@ func (x *MachineSetSpec_MachineAllocation) String() string { func (*MachineSetSpec_MachineAllocation) ProtoMessage() {} func (x *MachineSetSpec_MachineAllocation) ProtoReflect() protoreflect.Message { - mi := &file_omni_specs_omni_proto_msgTypes[93] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_omni_specs_omni_proto_msgTypes[94] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -7346,11 +7263,9 @@ type MachineSetSpec_BootstrapSpec struct { func (x *MachineSetSpec_BootstrapSpec) Reset() { *x = MachineSetSpec_BootstrapSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[94] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[95] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MachineSetSpec_BootstrapSpec) String() string { @@ -7360,8 +7275,8 @@ func (x *MachineSetSpec_BootstrapSpec) String() string { func (*MachineSetSpec_BootstrapSpec) ProtoMessage() {} func (x *MachineSetSpec_BootstrapSpec) ProtoReflect() protoreflect.Message { - mi := &file_omni_specs_omni_proto_msgTypes[94] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_omni_specs_omni_proto_msgTypes[95] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -7403,11 +7318,9 @@ type MachineSetSpec_RollingUpdateStrategyConfig struct { func (x *MachineSetSpec_RollingUpdateStrategyConfig) Reset() { *x = MachineSetSpec_RollingUpdateStrategyConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[95] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[96] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MachineSetSpec_RollingUpdateStrategyConfig) String() string { @@ -7417,8 +7330,8 @@ func (x *MachineSetSpec_RollingUpdateStrategyConfig) String() string { func (*MachineSetSpec_RollingUpdateStrategyConfig) ProtoMessage() {} func (x *MachineSetSpec_RollingUpdateStrategyConfig) ProtoReflect() protoreflect.Message { - mi := &file_omni_specs_omni_proto_msgTypes[95] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_omni_specs_omni_proto_msgTypes[96] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -7453,11 +7366,9 @@ type MachineSetSpec_UpdateStrategyConfig struct { func (x *MachineSetSpec_UpdateStrategyConfig) Reset() { *x = MachineSetSpec_UpdateStrategyConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[96] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[97] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MachineSetSpec_UpdateStrategyConfig) String() string { @@ -7467,8 +7378,8 @@ func (x *MachineSetSpec_UpdateStrategyConfig) String() string { func (*MachineSetSpec_UpdateStrategyConfig) ProtoMessage() {} func (x *MachineSetSpec_UpdateStrategyConfig) ProtoReflect() protoreflect.Message { - mi := &file_omni_specs_omni_proto_msgTypes[96] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_omni_specs_omni_proto_msgTypes[97] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -7503,11 +7414,9 @@ type ControlPlaneStatusSpec_Condition struct { func (x *ControlPlaneStatusSpec_Condition) Reset() { *x = ControlPlaneStatusSpec_Condition{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[97] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[98] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ControlPlaneStatusSpec_Condition) String() string { @@ -7517,8 +7426,8 @@ func (x *ControlPlaneStatusSpec_Condition) String() string { func (*ControlPlaneStatusSpec_Condition) ProtoMessage() {} func (x *ControlPlaneStatusSpec_Condition) ProtoReflect() protoreflect.Message { - mi := &file_omni_specs_omni_proto_msgTypes[97] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_omni_specs_omni_proto_msgTypes[98] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -7573,11 +7482,9 @@ type KubernetesStatusSpec_NodeStatus struct { func (x *KubernetesStatusSpec_NodeStatus) Reset() { *x = KubernetesStatusSpec_NodeStatus{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[98] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[99] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *KubernetesStatusSpec_NodeStatus) String() string { @@ -7587,8 +7494,8 @@ func (x *KubernetesStatusSpec_NodeStatus) String() string { func (*KubernetesStatusSpec_NodeStatus) ProtoMessage() {} func (x *KubernetesStatusSpec_NodeStatus) ProtoReflect() protoreflect.Message { - mi := &file_omni_specs_omni_proto_msgTypes[98] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_omni_specs_omni_proto_msgTypes[99] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -7636,11 +7543,9 @@ type KubernetesStatusSpec_StaticPodStatus struct { func (x *KubernetesStatusSpec_StaticPodStatus) Reset() { *x = KubernetesStatusSpec_StaticPodStatus{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[99] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[100] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *KubernetesStatusSpec_StaticPodStatus) String() string { @@ -7650,8 +7555,8 @@ func (x *KubernetesStatusSpec_StaticPodStatus) String() string { func (*KubernetesStatusSpec_StaticPodStatus) ProtoMessage() {} func (x *KubernetesStatusSpec_StaticPodStatus) ProtoReflect() protoreflect.Message { - mi := &file_omni_specs_omni_proto_msgTypes[99] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_omni_specs_omni_proto_msgTypes[100] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -7698,11 +7603,9 @@ type KubernetesStatusSpec_NodeStaticPods struct { func (x *KubernetesStatusSpec_NodeStaticPods) Reset() { *x = KubernetesStatusSpec_NodeStaticPods{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[100] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[101] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *KubernetesStatusSpec_NodeStaticPods) String() string { @@ -7712,8 +7615,8 @@ func (x *KubernetesStatusSpec_NodeStaticPods) String() string { func (*KubernetesStatusSpec_NodeStaticPods) ProtoMessage() {} func (x *KubernetesStatusSpec_NodeStaticPods) ProtoReflect() protoreflect.Message { - mi := &file_omni_specs_omni_proto_msgTypes[100] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_omni_specs_omni_proto_msgTypes[101] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -7757,11 +7660,9 @@ type MachineClassSpec_Provision struct { func (x *MachineClassSpec_Provision) Reset() { *x = MachineClassSpec_Provision{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[101] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[102] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MachineClassSpec_Provision) String() string { @@ -7771,8 +7672,8 @@ func (x *MachineClassSpec_Provision) String() string { func (*MachineClassSpec_Provision) ProtoMessage() {} func (x *MachineClassSpec_Provision) ProtoReflect() protoreflect.Message { - mi := &file_omni_specs_omni_proto_msgTypes[101] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_omni_specs_omni_proto_msgTypes[102] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -7841,11 +7742,9 @@ type MachineConfigGenOptionsSpec_InstallImage struct { func (x *MachineConfigGenOptionsSpec_InstallImage) Reset() { *x = MachineConfigGenOptionsSpec_InstallImage{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[102] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[103] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MachineConfigGenOptionsSpec_InstallImage) String() string { @@ -7855,8 +7754,8 @@ func (x *MachineConfigGenOptionsSpec_InstallImage) String() string { func (*MachineConfigGenOptionsSpec_InstallImage) ProtoMessage() {} func (x *MachineConfigGenOptionsSpec_InstallImage) ProtoReflect() protoreflect.Message { - mi := &file_omni_specs_omni_proto_msgTypes[102] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_omni_specs_omni_proto_msgTypes[103] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -7918,11 +7817,9 @@ type KubernetesUsageSpec_Quantity struct { func (x *KubernetesUsageSpec_Quantity) Reset() { *x = KubernetesUsageSpec_Quantity{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[103] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[104] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *KubernetesUsageSpec_Quantity) String() string { @@ -7932,8 +7829,8 @@ func (x *KubernetesUsageSpec_Quantity) String() string { func (*KubernetesUsageSpec_Quantity) ProtoMessage() {} func (x *KubernetesUsageSpec_Quantity) ProtoReflect() protoreflect.Message { - mi := &file_omni_specs_omni_proto_msgTypes[103] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_omni_specs_omni_proto_msgTypes[104] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -7980,11 +7877,9 @@ type KubernetesUsageSpec_Pod struct { func (x *KubernetesUsageSpec_Pod) Reset() { *x = KubernetesUsageSpec_Pod{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[104] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[105] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *KubernetesUsageSpec_Pod) String() string { @@ -7994,8 +7889,8 @@ func (x *KubernetesUsageSpec_Pod) String() string { func (*KubernetesUsageSpec_Pod) ProtoMessage() {} func (x *KubernetesUsageSpec_Pod) ProtoReflect() protoreflect.Message { - mi := &file_omni_specs_omni_proto_msgTypes[104] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_omni_specs_omni_proto_msgTypes[105] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -8035,11 +7930,9 @@ type ImagePullRequestSpec_NodeImageList struct { func (x *ImagePullRequestSpec_NodeImageList) Reset() { *x = ImagePullRequestSpec_NodeImageList{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[105] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[106] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ImagePullRequestSpec_NodeImageList) String() string { @@ -8049,8 +7942,8 @@ func (x *ImagePullRequestSpec_NodeImageList) String() string { func (*ImagePullRequestSpec_NodeImageList) ProtoMessage() {} func (x *ImagePullRequestSpec_NodeImageList) ProtoReflect() protoreflect.Message { - mi := &file_omni_specs_omni_proto_msgTypes[105] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_omni_specs_omni_proto_msgTypes[106] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -8095,11 +7988,9 @@ type TalosExtensionsSpec_Info struct { func (x *TalosExtensionsSpec_Info) Reset() { *x = TalosExtensionsSpec_Info{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[106] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[107] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TalosExtensionsSpec_Info) String() string { @@ -8109,8 +8000,8 @@ func (x *TalosExtensionsSpec_Info) String() string { func (*TalosExtensionsSpec_Info) ProtoMessage() {} func (x *TalosExtensionsSpec_Info) ProtoReflect() protoreflect.Message { - mi := &file_omni_specs_omni_proto_msgTypes[106] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_omni_specs_omni_proto_msgTypes[107] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -8179,11 +8070,9 @@ type MachineExtensionsStatusSpec_Item struct { func (x *MachineExtensionsStatusSpec_Item) Reset() { *x = MachineExtensionsStatusSpec_Item{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[107] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[108] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MachineExtensionsStatusSpec_Item) String() string { @@ -8193,8 +8082,8 @@ func (x *MachineExtensionsStatusSpec_Item) String() string { func (*MachineExtensionsStatusSpec_Item) ProtoMessage() {} func (x *MachineExtensionsStatusSpec_Item) ProtoReflect() protoreflect.Message { - mi := &file_omni_specs_omni_proto_msgTypes[107] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_omni_specs_omni_proto_msgTypes[108] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -8241,11 +8130,9 @@ type ClusterDiagnosticsSpec_Node struct { func (x *ClusterDiagnosticsSpec_Node) Reset() { *x = ClusterDiagnosticsSpec_Node{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_omni_proto_msgTypes[109] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_omni_proto_msgTypes[110] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ClusterDiagnosticsSpec_Node) String() string { @@ -8255,8 +8142,8 @@ func (x *ClusterDiagnosticsSpec_Node) String() string { func (*ClusterDiagnosticsSpec_Node) ProtoMessage() {} func (x *ClusterDiagnosticsSpec_Node) ProtoReflect() protoreflect.Message { - mi := &file_omni_specs_omni_proto_msgTypes[109] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_omni_specs_omni_proto_msgTypes[110] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -9407,31 +9294,44 @@ var file_omni_specs_omni_proto_rawDesc = []byte{ 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x50, 0x52, 0x4f, 0x56, 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x45, 0x44, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x44, 0x45, 0x50, 0x52, 0x4f, 0x56, 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x04, 0x12, - 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x05, 0x2a, 0x46, 0x0a, 0x11, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0b, 0x0a, - 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x41, 0x50, - 0x50, 0x4c, 0x49, 0x45, 0x44, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, - 0x44, 0x10, 0x03, 0x2a, 0x7a, 0x0a, 0x0f, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x53, 0x65, - 0x74, 0x50, 0x68, 0x61, 0x73, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, - 0x6e, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x63, 0x61, 0x6c, 0x69, 0x6e, 0x67, 0x55, 0x70, - 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x53, 0x63, 0x61, 0x6c, 0x69, 0x6e, 0x67, 0x44, 0x6f, 0x77, - 0x6e, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x10, 0x03, - 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x65, 0x73, 0x74, 0x72, 0x6f, 0x79, 0x69, 0x6e, 0x67, 0x10, 0x04, - 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x10, 0x05, 0x12, 0x11, 0x0a, 0x0d, - 0x52, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x69, 0x6e, 0x67, 0x10, 0x06, 0x2a, - 0x48, 0x0a, 0x0d, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, - 0x12, 0x14, 0x0a, 0x10, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x43, 0x6f, 0x6e, 0x64, 0x69, - 0x74, 0x69, 0x6f, 0x6e, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x45, 0x74, 0x63, 0x64, 0x10, 0x01, - 0x12, 0x17, 0x0a, 0x13, 0x57, 0x69, 0x72, 0x65, 0x67, 0x75, 0x61, 0x72, 0x64, 0x43, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x10, 0x02, 0x2a, 0x36, 0x0a, 0x0e, 0x47, 0x72, 0x70, - 0x63, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x09, 0x0a, 0x05, 0x55, - 0x4e, 0x53, 0x45, 0x54, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x4e, 0x41, 0x42, 0x4c, 0x45, - 0x44, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, - 0x02, 0x42, 0x32, 0x5a, 0x30, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x73, 0x69, 0x64, 0x65, 0x72, 0x6f, 0x6c, 0x61, 0x62, 0x73, 0x2f, 0x6f, 0x6d, 0x6e, 0x69, 0x2f, - 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6f, 0x6d, 0x6e, 0x69, 0x2f, - 0x73, 0x70, 0x65, 0x63, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x05, 0x22, 0x6f, 0x0a, 0x16, 0x49, + 0x6e, 0x66, 0x72, 0x61, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x53, 0x70, 0x65, 0x63, 0x12, 0x39, 0x0a, 0x0b, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x5f, 0x73, + 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x73, 0x70, 0x65, + 0x63, 0x73, 0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x53, + 0x74, 0x61, 0x74, 0x65, 0x52, 0x0a, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, + 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x08, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x65, 0x64, 0x2a, 0x46, 0x0a, 0x11, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0b, + 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x41, + 0x50, 0x50, 0x4c, 0x49, 0x45, 0x44, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, + 0x45, 0x44, 0x10, 0x03, 0x2a, 0x7a, 0x0a, 0x0f, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x53, + 0x65, 0x74, 0x50, 0x68, 0x61, 0x73, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, + 0x77, 0x6e, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x63, 0x61, 0x6c, 0x69, 0x6e, 0x67, 0x55, + 0x70, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x53, 0x63, 0x61, 0x6c, 0x69, 0x6e, 0x67, 0x44, 0x6f, + 0x77, 0x6e, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x10, + 0x03, 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x65, 0x73, 0x74, 0x72, 0x6f, 0x79, 0x69, 0x6e, 0x67, 0x10, + 0x04, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x10, 0x05, 0x12, 0x11, 0x0a, + 0x0d, 0x52, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x69, 0x6e, 0x67, 0x10, 0x06, + 0x2a, 0x48, 0x0a, 0x0d, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, + 0x65, 0x12, 0x14, 0x0a, 0x10, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x43, 0x6f, 0x6e, 0x64, + 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x45, 0x74, 0x63, 0x64, 0x10, + 0x01, 0x12, 0x17, 0x0a, 0x13, 0x57, 0x69, 0x72, 0x65, 0x67, 0x75, 0x61, 0x72, 0x64, 0x43, 0x6f, + 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x10, 0x02, 0x2a, 0x36, 0x0a, 0x0e, 0x47, 0x72, + 0x70, 0x63, 0x54, 0x75, 0x6e, 0x6e, 0x65, 0x6c, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x09, 0x0a, 0x05, + 0x55, 0x4e, 0x53, 0x45, 0x54, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x4e, 0x41, 0x42, 0x4c, + 0x45, 0x44, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, + 0x10, 0x02, 0x2a, 0x55, 0x0a, 0x11, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x50, 0x6f, 0x77, + 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x17, 0x0a, 0x13, 0x50, 0x4f, 0x57, 0x45, 0x52, + 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, + 0x12, 0x13, 0x0a, 0x0f, 0x50, 0x4f, 0x57, 0x45, 0x52, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, + 0x4f, 0x46, 0x46, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x50, 0x4f, 0x57, 0x45, 0x52, 0x5f, 0x53, + 0x54, 0x41, 0x54, 0x45, 0x5f, 0x4f, 0x4e, 0x10, 0x02, 0x42, 0x32, 0x5a, 0x30, 0x67, 0x69, 0x74, + 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x69, 0x64, 0x65, 0x72, 0x6f, 0x6c, 0x61, + 0x62, 0x73, 0x2f, 0x6f, 0x6d, 0x6e, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x6f, 0x6d, 0x6e, 0x69, 0x2f, 0x73, 0x70, 0x65, 0x63, 0x73, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -9446,227 +9346,230 @@ func file_omni_specs_omni_proto_rawDescGZIP() []byte { return file_omni_specs_omni_proto_rawDescData } -var file_omni_specs_omni_proto_enumTypes = make([]protoimpl.EnumInfo, 19) -var file_omni_specs_omni_proto_msgTypes = make([]protoimpl.MessageInfo, 110) +var file_omni_specs_omni_proto_enumTypes = make([]protoimpl.EnumInfo, 20) +var file_omni_specs_omni_proto_msgTypes = make([]protoimpl.MessageInfo, 111) var file_omni_specs_omni_proto_goTypes = []any{ (ConfigApplyStatus)(0), // 0: specs.ConfigApplyStatus (MachineSetPhase)(0), // 1: specs.MachineSetPhase (ConditionType)(0), // 2: specs.ConditionType (GrpcTunnelMode)(0), // 3: specs.GrpcTunnelMode - (MachineStatusSpec_Role)(0), // 4: specs.MachineStatusSpec.Role - (EtcdBackupStatusSpec_Status)(0), // 5: specs.EtcdBackupStatusSpec.Status - (ClusterMachineStatusSpec_Stage)(0), // 6: specs.ClusterMachineStatusSpec.Stage - (ClusterStatusSpec_Phase)(0), // 7: specs.ClusterStatusSpec.Phase - (MachineSetSpec_UpdateStrategy)(0), // 8: specs.MachineSetSpec.UpdateStrategy - (MachineSetSpec_MachineClass_Type)(0), // 9: specs.MachineSetSpec.MachineClass.Type - (MachineSetSpec_MachineAllocation_Type)(0), // 10: specs.MachineSetSpec.MachineAllocation.Type - (MachineSetSpec_MachineAllocation_Source)(0), // 11: specs.MachineSetSpec.MachineAllocation.Source - (TalosUpgradeStatusSpec_Phase)(0), // 12: specs.TalosUpgradeStatusSpec.Phase - (ControlPlaneStatusSpec_Condition_Status)(0), // 13: specs.ControlPlaneStatusSpec.Condition.Status - (ControlPlaneStatusSpec_Condition_Severity)(0), // 14: specs.ControlPlaneStatusSpec.Condition.Severity - (KubernetesUpgradeStatusSpec_Phase)(0), // 15: specs.KubernetesUpgradeStatusSpec.Phase - (ExtensionsConfigurationStatusSpec_Phase)(0), // 16: specs.ExtensionsConfigurationStatusSpec.Phase - (MachineExtensionsStatusSpec_Item_Phase)(0), // 17: specs.MachineExtensionsStatusSpec.Item.Phase - (ClusterMachineRequestStatusSpec_Stage)(0), // 18: specs.ClusterMachineRequestStatusSpec.Stage - (*MachineSpec)(nil), // 19: specs.MachineSpec - (*SecureBootStatus)(nil), // 20: specs.SecureBootStatus - (*Overlay)(nil), // 21: specs.Overlay - (*MetaValue)(nil), // 22: specs.MetaValue - (*MachineStatusSpec)(nil), // 23: specs.MachineStatusSpec - (*TalosConfigSpec)(nil), // 24: specs.TalosConfigSpec - (*ClusterSpec)(nil), // 25: specs.ClusterSpec - (*ClusterTaintSpec)(nil), // 26: specs.ClusterTaintSpec - (*EtcdBackupConf)(nil), // 27: specs.EtcdBackupConf - (*EtcdBackupEncryptionSpec)(nil), // 28: specs.EtcdBackupEncryptionSpec - (*EtcdBackupHeader)(nil), // 29: specs.EtcdBackupHeader - (*EtcdBackupSpec)(nil), // 30: specs.EtcdBackupSpec - (*BackupDataSpec)(nil), // 31: specs.BackupDataSpec - (*EtcdBackupS3ConfSpec)(nil), // 32: specs.EtcdBackupS3ConfSpec - (*EtcdBackupStatusSpec)(nil), // 33: specs.EtcdBackupStatusSpec - (*EtcdManualBackupSpec)(nil), // 34: specs.EtcdManualBackupSpec - (*EtcdBackupStoreStatusSpec)(nil), // 35: specs.EtcdBackupStoreStatusSpec - (*EtcdBackupOverallStatusSpec)(nil), // 36: specs.EtcdBackupOverallStatusSpec - (*ClusterMachineSpec)(nil), // 37: specs.ClusterMachineSpec - (*ClusterMachineConfigPatchesSpec)(nil), // 38: specs.ClusterMachineConfigPatchesSpec - (*ClusterMachineTalosVersionSpec)(nil), // 39: specs.ClusterMachineTalosVersionSpec - (*ClusterMachineConfigSpec)(nil), // 40: specs.ClusterMachineConfigSpec - (*RedactedClusterMachineConfigSpec)(nil), // 41: specs.RedactedClusterMachineConfigSpec - (*ClusterMachineIdentitySpec)(nil), // 42: specs.ClusterMachineIdentitySpec - (*ClusterMachineTemplateSpec)(nil), // 43: specs.ClusterMachineTemplateSpec - (*ClusterMachineStatusSpec)(nil), // 44: specs.ClusterMachineStatusSpec - (*Machines)(nil), // 45: specs.Machines - (*ClusterStatusSpec)(nil), // 46: specs.ClusterStatusSpec - (*ClusterUUID)(nil), // 47: specs.ClusterUUID - (*ClusterConfigVersionSpec)(nil), // 48: specs.ClusterConfigVersionSpec - (*ClusterMachineConfigStatusSpec)(nil), // 49: specs.ClusterMachineConfigStatusSpec - (*ClusterBootstrapStatusSpec)(nil), // 50: specs.ClusterBootstrapStatusSpec - (*ClusterSecretsSpec)(nil), // 51: specs.ClusterSecretsSpec - (*LoadBalancerConfigSpec)(nil), // 52: specs.LoadBalancerConfigSpec - (*LoadBalancerStatusSpec)(nil), // 53: specs.LoadBalancerStatusSpec - (*KubernetesVersionSpec)(nil), // 54: specs.KubernetesVersionSpec - (*TalosVersionSpec)(nil), // 55: specs.TalosVersionSpec - (*InstallationMediaSpec)(nil), // 56: specs.InstallationMediaSpec - (*ConfigPatchSpec)(nil), // 57: specs.ConfigPatchSpec - (*MachineSetSpec)(nil), // 58: specs.MachineSetSpec - (*TalosUpgradeStatusSpec)(nil), // 59: specs.TalosUpgradeStatusSpec - (*MachineSetStatusSpec)(nil), // 60: specs.MachineSetStatusSpec - (*MachineSetNodeSpec)(nil), // 61: specs.MachineSetNodeSpec - (*MachineLabelsSpec)(nil), // 62: specs.MachineLabelsSpec - (*MachineStatusSnapshotSpec)(nil), // 63: specs.MachineStatusSnapshotSpec - (*ControlPlaneStatusSpec)(nil), // 64: specs.ControlPlaneStatusSpec - (*ClusterEndpointSpec)(nil), // 65: specs.ClusterEndpointSpec - (*KubernetesStatusSpec)(nil), // 66: specs.KubernetesStatusSpec - (*KubernetesUpgradeStatusSpec)(nil), // 67: specs.KubernetesUpgradeStatusSpec - (*KubernetesUpgradeManifestStatusSpec)(nil), // 68: specs.KubernetesUpgradeManifestStatusSpec - (*DestroyStatusSpec)(nil), // 69: specs.DestroyStatusSpec - (*OngoingTaskSpec)(nil), // 70: specs.OngoingTaskSpec - (*ClusterMachineEncryptionKeySpec)(nil), // 71: specs.ClusterMachineEncryptionKeySpec - (*ExposedServiceSpec)(nil), // 72: specs.ExposedServiceSpec - (*ClusterWorkloadProxyStatusSpec)(nil), // 73: specs.ClusterWorkloadProxyStatusSpec - (*FeaturesConfigSpec)(nil), // 74: specs.FeaturesConfigSpec - (*EtcdBackupSettings)(nil), // 75: specs.EtcdBackupSettings - (*MachineClassSpec)(nil), // 76: specs.MachineClassSpec - (*MachineConfigGenOptionsSpec)(nil), // 77: specs.MachineConfigGenOptionsSpec - (*EtcdAuditResultSpec)(nil), // 78: specs.EtcdAuditResultSpec - (*KubeconfigSpec)(nil), // 79: specs.KubeconfigSpec - (*KubernetesUsageSpec)(nil), // 80: specs.KubernetesUsageSpec - (*ImagePullRequestSpec)(nil), // 81: specs.ImagePullRequestSpec - (*ImagePullStatusSpec)(nil), // 82: specs.ImagePullStatusSpec - (*SchematicSpec)(nil), // 83: specs.SchematicSpec - (*TalosExtensionsSpec)(nil), // 84: specs.TalosExtensionsSpec - (*SchematicConfigurationSpec)(nil), // 85: specs.SchematicConfigurationSpec - (*ExtensionsConfigurationSpec)(nil), // 86: specs.ExtensionsConfigurationSpec - (*ExtensionsConfigurationStatusSpec)(nil), // 87: specs.ExtensionsConfigurationStatusSpec - (*MachineExtensionsSpec)(nil), // 88: specs.MachineExtensionsSpec - (*MachineExtensionsStatusSpec)(nil), // 89: specs.MachineExtensionsStatusSpec - (*MachineStatusMetricsSpec)(nil), // 90: specs.MachineStatusMetricsSpec - (*ClusterStatusMetricsSpec)(nil), // 91: specs.ClusterStatusMetricsSpec - (*ClusterKubernetesNodesSpec)(nil), // 92: specs.ClusterKubernetesNodesSpec - (*KubernetesNodeAuditResultSpec)(nil), // 93: specs.KubernetesNodeAuditResultSpec - (*MachineRequestSetSpec)(nil), // 94: specs.MachineRequestSetSpec - (*MachineRequestSetStatusSpec)(nil), // 95: specs.MachineRequestSetStatusSpec - (*ClusterDiagnosticsSpec)(nil), // 96: specs.ClusterDiagnosticsSpec - (*MachineRequestSetPressureSpec)(nil), // 97: specs.MachineRequestSetPressureSpec - (*ClusterMachineRequestStatusSpec)(nil), // 98: specs.ClusterMachineRequestStatusSpec - (*MachineStatusSpec_HardwareStatus)(nil), // 99: specs.MachineStatusSpec.HardwareStatus - (*MachineStatusSpec_NetworkStatus)(nil), // 100: specs.MachineStatusSpec.NetworkStatus - (*MachineStatusSpec_PlatformMetadata)(nil), // 101: specs.MachineStatusSpec.PlatformMetadata - (*MachineStatusSpec_Schematic)(nil), // 102: specs.MachineStatusSpec.Schematic - (*MachineStatusSpec_Diagnostic)(nil), // 103: specs.MachineStatusSpec.Diagnostic - nil, // 104: specs.MachineStatusSpec.ImageLabelsEntry - (*MachineStatusSpec_HardwareStatus_Processor)(nil), // 105: specs.MachineStatusSpec.HardwareStatus.Processor - (*MachineStatusSpec_HardwareStatus_MemoryModule)(nil), // 106: specs.MachineStatusSpec.HardwareStatus.MemoryModule - (*MachineStatusSpec_HardwareStatus_BlockDevice)(nil), // 107: specs.MachineStatusSpec.HardwareStatus.BlockDevice - (*MachineStatusSpec_NetworkStatus_NetworkLinkStatus)(nil), // 108: specs.MachineStatusSpec.NetworkStatus.NetworkLinkStatus - (*ClusterSpec_Features)(nil), // 109: specs.ClusterSpec.Features - (*ClusterMachineStatusSpec_ProvisionStatus)(nil), // 110: specs.ClusterMachineStatusSpec.ProvisionStatus - (*MachineSetSpec_MachineClass)(nil), // 111: specs.MachineSetSpec.MachineClass - (*MachineSetSpec_MachineAllocation)(nil), // 112: specs.MachineSetSpec.MachineAllocation - (*MachineSetSpec_BootstrapSpec)(nil), // 113: specs.MachineSetSpec.BootstrapSpec - (*MachineSetSpec_RollingUpdateStrategyConfig)(nil), // 114: specs.MachineSetSpec.RollingUpdateStrategyConfig - (*MachineSetSpec_UpdateStrategyConfig)(nil), // 115: specs.MachineSetSpec.UpdateStrategyConfig - (*ControlPlaneStatusSpec_Condition)(nil), // 116: specs.ControlPlaneStatusSpec.Condition - (*KubernetesStatusSpec_NodeStatus)(nil), // 117: specs.KubernetesStatusSpec.NodeStatus - (*KubernetesStatusSpec_StaticPodStatus)(nil), // 118: specs.KubernetesStatusSpec.StaticPodStatus - (*KubernetesStatusSpec_NodeStaticPods)(nil), // 119: specs.KubernetesStatusSpec.NodeStaticPods - (*MachineClassSpec_Provision)(nil), // 120: specs.MachineClassSpec.Provision - (*MachineConfigGenOptionsSpec_InstallImage)(nil), // 121: specs.MachineConfigGenOptionsSpec.InstallImage - (*KubernetesUsageSpec_Quantity)(nil), // 122: specs.KubernetesUsageSpec.Quantity - (*KubernetesUsageSpec_Pod)(nil), // 123: specs.KubernetesUsageSpec.Pod - (*ImagePullRequestSpec_NodeImageList)(nil), // 124: specs.ImagePullRequestSpec.NodeImageList - (*TalosExtensionsSpec_Info)(nil), // 125: specs.TalosExtensionsSpec.Info - (*MachineExtensionsStatusSpec_Item)(nil), // 126: specs.MachineExtensionsStatusSpec.Item - nil, // 127: specs.ClusterStatusMetricsSpec.PhasesEntry - (*ClusterDiagnosticsSpec_Node)(nil), // 128: specs.ClusterDiagnosticsSpec.Node - (*durationpb.Duration)(nil), // 129: google.protobuf.Duration - (*timestamppb.Timestamp)(nil), // 130: google.protobuf.Timestamp - (*machine.MachineStatusEvent)(nil), // 131: machine.MachineStatusEvent + (MachinePowerState)(0), // 4: specs.MachinePowerState + (MachineStatusSpec_Role)(0), // 5: specs.MachineStatusSpec.Role + (EtcdBackupStatusSpec_Status)(0), // 6: specs.EtcdBackupStatusSpec.Status + (ClusterMachineStatusSpec_Stage)(0), // 7: specs.ClusterMachineStatusSpec.Stage + (ClusterStatusSpec_Phase)(0), // 8: specs.ClusterStatusSpec.Phase + (MachineSetSpec_UpdateStrategy)(0), // 9: specs.MachineSetSpec.UpdateStrategy + (MachineSetSpec_MachineClass_Type)(0), // 10: specs.MachineSetSpec.MachineClass.Type + (MachineSetSpec_MachineAllocation_Type)(0), // 11: specs.MachineSetSpec.MachineAllocation.Type + (MachineSetSpec_MachineAllocation_Source)(0), // 12: specs.MachineSetSpec.MachineAllocation.Source + (TalosUpgradeStatusSpec_Phase)(0), // 13: specs.TalosUpgradeStatusSpec.Phase + (ControlPlaneStatusSpec_Condition_Status)(0), // 14: specs.ControlPlaneStatusSpec.Condition.Status + (ControlPlaneStatusSpec_Condition_Severity)(0), // 15: specs.ControlPlaneStatusSpec.Condition.Severity + (KubernetesUpgradeStatusSpec_Phase)(0), // 16: specs.KubernetesUpgradeStatusSpec.Phase + (ExtensionsConfigurationStatusSpec_Phase)(0), // 17: specs.ExtensionsConfigurationStatusSpec.Phase + (MachineExtensionsStatusSpec_Item_Phase)(0), // 18: specs.MachineExtensionsStatusSpec.Item.Phase + (ClusterMachineRequestStatusSpec_Stage)(0), // 19: specs.ClusterMachineRequestStatusSpec.Stage + (*MachineSpec)(nil), // 20: specs.MachineSpec + (*SecureBootStatus)(nil), // 21: specs.SecureBootStatus + (*Overlay)(nil), // 22: specs.Overlay + (*MetaValue)(nil), // 23: specs.MetaValue + (*MachineStatusSpec)(nil), // 24: specs.MachineStatusSpec + (*TalosConfigSpec)(nil), // 25: specs.TalosConfigSpec + (*ClusterSpec)(nil), // 26: specs.ClusterSpec + (*ClusterTaintSpec)(nil), // 27: specs.ClusterTaintSpec + (*EtcdBackupConf)(nil), // 28: specs.EtcdBackupConf + (*EtcdBackupEncryptionSpec)(nil), // 29: specs.EtcdBackupEncryptionSpec + (*EtcdBackupHeader)(nil), // 30: specs.EtcdBackupHeader + (*EtcdBackupSpec)(nil), // 31: specs.EtcdBackupSpec + (*BackupDataSpec)(nil), // 32: specs.BackupDataSpec + (*EtcdBackupS3ConfSpec)(nil), // 33: specs.EtcdBackupS3ConfSpec + (*EtcdBackupStatusSpec)(nil), // 34: specs.EtcdBackupStatusSpec + (*EtcdManualBackupSpec)(nil), // 35: specs.EtcdManualBackupSpec + (*EtcdBackupStoreStatusSpec)(nil), // 36: specs.EtcdBackupStoreStatusSpec + (*EtcdBackupOverallStatusSpec)(nil), // 37: specs.EtcdBackupOverallStatusSpec + (*ClusterMachineSpec)(nil), // 38: specs.ClusterMachineSpec + (*ClusterMachineConfigPatchesSpec)(nil), // 39: specs.ClusterMachineConfigPatchesSpec + (*ClusterMachineTalosVersionSpec)(nil), // 40: specs.ClusterMachineTalosVersionSpec + (*ClusterMachineConfigSpec)(nil), // 41: specs.ClusterMachineConfigSpec + (*RedactedClusterMachineConfigSpec)(nil), // 42: specs.RedactedClusterMachineConfigSpec + (*ClusterMachineIdentitySpec)(nil), // 43: specs.ClusterMachineIdentitySpec + (*ClusterMachineTemplateSpec)(nil), // 44: specs.ClusterMachineTemplateSpec + (*ClusterMachineStatusSpec)(nil), // 45: specs.ClusterMachineStatusSpec + (*Machines)(nil), // 46: specs.Machines + (*ClusterStatusSpec)(nil), // 47: specs.ClusterStatusSpec + (*ClusterUUID)(nil), // 48: specs.ClusterUUID + (*ClusterConfigVersionSpec)(nil), // 49: specs.ClusterConfigVersionSpec + (*ClusterMachineConfigStatusSpec)(nil), // 50: specs.ClusterMachineConfigStatusSpec + (*ClusterBootstrapStatusSpec)(nil), // 51: specs.ClusterBootstrapStatusSpec + (*ClusterSecretsSpec)(nil), // 52: specs.ClusterSecretsSpec + (*LoadBalancerConfigSpec)(nil), // 53: specs.LoadBalancerConfigSpec + (*LoadBalancerStatusSpec)(nil), // 54: specs.LoadBalancerStatusSpec + (*KubernetesVersionSpec)(nil), // 55: specs.KubernetesVersionSpec + (*TalosVersionSpec)(nil), // 56: specs.TalosVersionSpec + (*InstallationMediaSpec)(nil), // 57: specs.InstallationMediaSpec + (*ConfigPatchSpec)(nil), // 58: specs.ConfigPatchSpec + (*MachineSetSpec)(nil), // 59: specs.MachineSetSpec + (*TalosUpgradeStatusSpec)(nil), // 60: specs.TalosUpgradeStatusSpec + (*MachineSetStatusSpec)(nil), // 61: specs.MachineSetStatusSpec + (*MachineSetNodeSpec)(nil), // 62: specs.MachineSetNodeSpec + (*MachineLabelsSpec)(nil), // 63: specs.MachineLabelsSpec + (*MachineStatusSnapshotSpec)(nil), // 64: specs.MachineStatusSnapshotSpec + (*ControlPlaneStatusSpec)(nil), // 65: specs.ControlPlaneStatusSpec + (*ClusterEndpointSpec)(nil), // 66: specs.ClusterEndpointSpec + (*KubernetesStatusSpec)(nil), // 67: specs.KubernetesStatusSpec + (*KubernetesUpgradeStatusSpec)(nil), // 68: specs.KubernetesUpgradeStatusSpec + (*KubernetesUpgradeManifestStatusSpec)(nil), // 69: specs.KubernetesUpgradeManifestStatusSpec + (*DestroyStatusSpec)(nil), // 70: specs.DestroyStatusSpec + (*OngoingTaskSpec)(nil), // 71: specs.OngoingTaskSpec + (*ClusterMachineEncryptionKeySpec)(nil), // 72: specs.ClusterMachineEncryptionKeySpec + (*ExposedServiceSpec)(nil), // 73: specs.ExposedServiceSpec + (*ClusterWorkloadProxyStatusSpec)(nil), // 74: specs.ClusterWorkloadProxyStatusSpec + (*FeaturesConfigSpec)(nil), // 75: specs.FeaturesConfigSpec + (*EtcdBackupSettings)(nil), // 76: specs.EtcdBackupSettings + (*MachineClassSpec)(nil), // 77: specs.MachineClassSpec + (*MachineConfigGenOptionsSpec)(nil), // 78: specs.MachineConfigGenOptionsSpec + (*EtcdAuditResultSpec)(nil), // 79: specs.EtcdAuditResultSpec + (*KubeconfigSpec)(nil), // 80: specs.KubeconfigSpec + (*KubernetesUsageSpec)(nil), // 81: specs.KubernetesUsageSpec + (*ImagePullRequestSpec)(nil), // 82: specs.ImagePullRequestSpec + (*ImagePullStatusSpec)(nil), // 83: specs.ImagePullStatusSpec + (*SchematicSpec)(nil), // 84: specs.SchematicSpec + (*TalosExtensionsSpec)(nil), // 85: specs.TalosExtensionsSpec + (*SchematicConfigurationSpec)(nil), // 86: specs.SchematicConfigurationSpec + (*ExtensionsConfigurationSpec)(nil), // 87: specs.ExtensionsConfigurationSpec + (*ExtensionsConfigurationStatusSpec)(nil), // 88: specs.ExtensionsConfigurationStatusSpec + (*MachineExtensionsSpec)(nil), // 89: specs.MachineExtensionsSpec + (*MachineExtensionsStatusSpec)(nil), // 90: specs.MachineExtensionsStatusSpec + (*MachineStatusMetricsSpec)(nil), // 91: specs.MachineStatusMetricsSpec + (*ClusterStatusMetricsSpec)(nil), // 92: specs.ClusterStatusMetricsSpec + (*ClusterKubernetesNodesSpec)(nil), // 93: specs.ClusterKubernetesNodesSpec + (*KubernetesNodeAuditResultSpec)(nil), // 94: specs.KubernetesNodeAuditResultSpec + (*MachineRequestSetSpec)(nil), // 95: specs.MachineRequestSetSpec + (*MachineRequestSetStatusSpec)(nil), // 96: specs.MachineRequestSetStatusSpec + (*ClusterDiagnosticsSpec)(nil), // 97: specs.ClusterDiagnosticsSpec + (*MachineRequestSetPressureSpec)(nil), // 98: specs.MachineRequestSetPressureSpec + (*ClusterMachineRequestStatusSpec)(nil), // 99: specs.ClusterMachineRequestStatusSpec + (*InfraMachineConfigSpec)(nil), // 100: specs.InfraMachineConfigSpec + (*MachineStatusSpec_HardwareStatus)(nil), // 101: specs.MachineStatusSpec.HardwareStatus + (*MachineStatusSpec_NetworkStatus)(nil), // 102: specs.MachineStatusSpec.NetworkStatus + (*MachineStatusSpec_PlatformMetadata)(nil), // 103: specs.MachineStatusSpec.PlatformMetadata + (*MachineStatusSpec_Schematic)(nil), // 104: specs.MachineStatusSpec.Schematic + (*MachineStatusSpec_Diagnostic)(nil), // 105: specs.MachineStatusSpec.Diagnostic + nil, // 106: specs.MachineStatusSpec.ImageLabelsEntry + (*MachineStatusSpec_HardwareStatus_Processor)(nil), // 107: specs.MachineStatusSpec.HardwareStatus.Processor + (*MachineStatusSpec_HardwareStatus_MemoryModule)(nil), // 108: specs.MachineStatusSpec.HardwareStatus.MemoryModule + (*MachineStatusSpec_HardwareStatus_BlockDevice)(nil), // 109: specs.MachineStatusSpec.HardwareStatus.BlockDevice + (*MachineStatusSpec_NetworkStatus_NetworkLinkStatus)(nil), // 110: specs.MachineStatusSpec.NetworkStatus.NetworkLinkStatus + (*ClusterSpec_Features)(nil), // 111: specs.ClusterSpec.Features + (*ClusterMachineStatusSpec_ProvisionStatus)(nil), // 112: specs.ClusterMachineStatusSpec.ProvisionStatus + (*MachineSetSpec_MachineClass)(nil), // 113: specs.MachineSetSpec.MachineClass + (*MachineSetSpec_MachineAllocation)(nil), // 114: specs.MachineSetSpec.MachineAllocation + (*MachineSetSpec_BootstrapSpec)(nil), // 115: specs.MachineSetSpec.BootstrapSpec + (*MachineSetSpec_RollingUpdateStrategyConfig)(nil), // 116: specs.MachineSetSpec.RollingUpdateStrategyConfig + (*MachineSetSpec_UpdateStrategyConfig)(nil), // 117: specs.MachineSetSpec.UpdateStrategyConfig + (*ControlPlaneStatusSpec_Condition)(nil), // 118: specs.ControlPlaneStatusSpec.Condition + (*KubernetesStatusSpec_NodeStatus)(nil), // 119: specs.KubernetesStatusSpec.NodeStatus + (*KubernetesStatusSpec_StaticPodStatus)(nil), // 120: specs.KubernetesStatusSpec.StaticPodStatus + (*KubernetesStatusSpec_NodeStaticPods)(nil), // 121: specs.KubernetesStatusSpec.NodeStaticPods + (*MachineClassSpec_Provision)(nil), // 122: specs.MachineClassSpec.Provision + (*MachineConfigGenOptionsSpec_InstallImage)(nil), // 123: specs.MachineConfigGenOptionsSpec.InstallImage + (*KubernetesUsageSpec_Quantity)(nil), // 124: specs.KubernetesUsageSpec.Quantity + (*KubernetesUsageSpec_Pod)(nil), // 125: specs.KubernetesUsageSpec.Pod + (*ImagePullRequestSpec_NodeImageList)(nil), // 126: specs.ImagePullRequestSpec.NodeImageList + (*TalosExtensionsSpec_Info)(nil), // 127: specs.TalosExtensionsSpec.Info + (*MachineExtensionsStatusSpec_Item)(nil), // 128: specs.MachineExtensionsStatusSpec.Item + nil, // 129: specs.ClusterStatusMetricsSpec.PhasesEntry + (*ClusterDiagnosticsSpec_Node)(nil), // 130: specs.ClusterDiagnosticsSpec.Node + (*durationpb.Duration)(nil), // 131: google.protobuf.Duration + (*timestamppb.Timestamp)(nil), // 132: google.protobuf.Timestamp + (*machine.MachineStatusEvent)(nil), // 133: machine.MachineStatusEvent } var file_omni_specs_omni_proto_depIdxs = []int32{ - 99, // 0: specs.MachineStatusSpec.hardware:type_name -> specs.MachineStatusSpec.HardwareStatus - 100, // 1: specs.MachineStatusSpec.network:type_name -> specs.MachineStatusSpec.NetworkStatus - 4, // 2: specs.MachineStatusSpec.role:type_name -> specs.MachineStatusSpec.Role - 101, // 3: specs.MachineStatusSpec.platform_metadata:type_name -> specs.MachineStatusSpec.PlatformMetadata - 104, // 4: specs.MachineStatusSpec.image_labels:type_name -> specs.MachineStatusSpec.ImageLabelsEntry - 102, // 5: specs.MachineStatusSpec.schematic:type_name -> specs.MachineStatusSpec.Schematic - 20, // 6: specs.MachineStatusSpec.secure_boot_status:type_name -> specs.SecureBootStatus - 103, // 7: specs.MachineStatusSpec.diagnostics:type_name -> specs.MachineStatusSpec.Diagnostic - 109, // 8: specs.ClusterSpec.features:type_name -> specs.ClusterSpec.Features - 27, // 9: specs.ClusterSpec.backup_configuration:type_name -> specs.EtcdBackupConf - 129, // 10: specs.EtcdBackupConf.interval:type_name -> google.protobuf.Duration - 130, // 11: specs.EtcdBackupSpec.created_at:type_name -> google.protobuf.Timestamp - 129, // 12: specs.BackupDataSpec.interval:type_name -> google.protobuf.Duration - 5, // 13: specs.EtcdBackupStatusSpec.status:type_name -> specs.EtcdBackupStatusSpec.Status - 130, // 14: specs.EtcdBackupStatusSpec.last_backup_time:type_name -> google.protobuf.Timestamp - 130, // 15: specs.EtcdBackupStatusSpec.last_backup_attempt:type_name -> google.protobuf.Timestamp - 130, // 16: specs.EtcdManualBackupSpec.backup_at:type_name -> google.protobuf.Timestamp - 33, // 17: specs.EtcdBackupOverallStatusSpec.last_backup_status:type_name -> specs.EtcdBackupStatusSpec - 6, // 18: specs.ClusterMachineStatusSpec.stage:type_name -> specs.ClusterMachineStatusSpec.Stage + 101, // 0: specs.MachineStatusSpec.hardware:type_name -> specs.MachineStatusSpec.HardwareStatus + 102, // 1: specs.MachineStatusSpec.network:type_name -> specs.MachineStatusSpec.NetworkStatus + 5, // 2: specs.MachineStatusSpec.role:type_name -> specs.MachineStatusSpec.Role + 103, // 3: specs.MachineStatusSpec.platform_metadata:type_name -> specs.MachineStatusSpec.PlatformMetadata + 106, // 4: specs.MachineStatusSpec.image_labels:type_name -> specs.MachineStatusSpec.ImageLabelsEntry + 104, // 5: specs.MachineStatusSpec.schematic:type_name -> specs.MachineStatusSpec.Schematic + 21, // 6: specs.MachineStatusSpec.secure_boot_status:type_name -> specs.SecureBootStatus + 105, // 7: specs.MachineStatusSpec.diagnostics:type_name -> specs.MachineStatusSpec.Diagnostic + 111, // 8: specs.ClusterSpec.features:type_name -> specs.ClusterSpec.Features + 28, // 9: specs.ClusterSpec.backup_configuration:type_name -> specs.EtcdBackupConf + 131, // 10: specs.EtcdBackupConf.interval:type_name -> google.protobuf.Duration + 132, // 11: specs.EtcdBackupSpec.created_at:type_name -> google.protobuf.Timestamp + 131, // 12: specs.BackupDataSpec.interval:type_name -> google.protobuf.Duration + 6, // 13: specs.EtcdBackupStatusSpec.status:type_name -> specs.EtcdBackupStatusSpec.Status + 132, // 14: specs.EtcdBackupStatusSpec.last_backup_time:type_name -> google.protobuf.Timestamp + 132, // 15: specs.EtcdBackupStatusSpec.last_backup_attempt:type_name -> google.protobuf.Timestamp + 132, // 16: specs.EtcdManualBackupSpec.backup_at:type_name -> google.protobuf.Timestamp + 34, // 17: specs.EtcdBackupOverallStatusSpec.last_backup_status:type_name -> specs.EtcdBackupStatusSpec + 7, // 18: specs.ClusterMachineStatusSpec.stage:type_name -> specs.ClusterMachineStatusSpec.Stage 0, // 19: specs.ClusterMachineStatusSpec.config_apply_status:type_name -> specs.ConfigApplyStatus - 110, // 20: specs.ClusterMachineStatusSpec.provision_status:type_name -> specs.ClusterMachineStatusSpec.ProvisionStatus - 45, // 21: specs.ClusterStatusSpec.machines:type_name -> specs.Machines - 7, // 22: specs.ClusterStatusSpec.phase:type_name -> specs.ClusterStatusSpec.Phase - 8, // 23: specs.MachineSetSpec.update_strategy:type_name -> specs.MachineSetSpec.UpdateStrategy - 112, // 24: specs.MachineSetSpec.machine_class:type_name -> specs.MachineSetSpec.MachineAllocation - 113, // 25: specs.MachineSetSpec.bootstrap_spec:type_name -> specs.MachineSetSpec.BootstrapSpec - 8, // 26: specs.MachineSetSpec.delete_strategy:type_name -> specs.MachineSetSpec.UpdateStrategy - 115, // 27: specs.MachineSetSpec.update_strategy_config:type_name -> specs.MachineSetSpec.UpdateStrategyConfig - 115, // 28: specs.MachineSetSpec.delete_strategy_config:type_name -> specs.MachineSetSpec.UpdateStrategyConfig - 112, // 29: specs.MachineSetSpec.machine_allocation:type_name -> specs.MachineSetSpec.MachineAllocation - 12, // 30: specs.TalosUpgradeStatusSpec.phase:type_name -> specs.TalosUpgradeStatusSpec.Phase + 112, // 20: specs.ClusterMachineStatusSpec.provision_status:type_name -> specs.ClusterMachineStatusSpec.ProvisionStatus + 46, // 21: specs.ClusterStatusSpec.machines:type_name -> specs.Machines + 8, // 22: specs.ClusterStatusSpec.phase:type_name -> specs.ClusterStatusSpec.Phase + 9, // 23: specs.MachineSetSpec.update_strategy:type_name -> specs.MachineSetSpec.UpdateStrategy + 114, // 24: specs.MachineSetSpec.machine_class:type_name -> specs.MachineSetSpec.MachineAllocation + 115, // 25: specs.MachineSetSpec.bootstrap_spec:type_name -> specs.MachineSetSpec.BootstrapSpec + 9, // 26: specs.MachineSetSpec.delete_strategy:type_name -> specs.MachineSetSpec.UpdateStrategy + 117, // 27: specs.MachineSetSpec.update_strategy_config:type_name -> specs.MachineSetSpec.UpdateStrategyConfig + 117, // 28: specs.MachineSetSpec.delete_strategy_config:type_name -> specs.MachineSetSpec.UpdateStrategyConfig + 114, // 29: specs.MachineSetSpec.machine_allocation:type_name -> specs.MachineSetSpec.MachineAllocation + 13, // 30: specs.TalosUpgradeStatusSpec.phase:type_name -> specs.TalosUpgradeStatusSpec.Phase 1, // 31: specs.MachineSetStatusSpec.phase:type_name -> specs.MachineSetPhase - 45, // 32: specs.MachineSetStatusSpec.machines:type_name -> specs.Machines - 112, // 33: specs.MachineSetStatusSpec.machine_allocation:type_name -> specs.MachineSetSpec.MachineAllocation - 131, // 34: specs.MachineStatusSnapshotSpec.machine_status:type_name -> machine.MachineStatusEvent - 116, // 35: specs.ControlPlaneStatusSpec.conditions:type_name -> specs.ControlPlaneStatusSpec.Condition - 117, // 36: specs.KubernetesStatusSpec.nodes:type_name -> specs.KubernetesStatusSpec.NodeStatus - 119, // 37: specs.KubernetesStatusSpec.static_pods:type_name -> specs.KubernetesStatusSpec.NodeStaticPods - 15, // 38: specs.KubernetesUpgradeStatusSpec.phase:type_name -> specs.KubernetesUpgradeStatusSpec.Phase - 59, // 39: specs.OngoingTaskSpec.talos_upgrade:type_name -> specs.TalosUpgradeStatusSpec - 67, // 40: specs.OngoingTaskSpec.kubernetes_upgrade:type_name -> specs.KubernetesUpgradeStatusSpec - 69, // 41: specs.OngoingTaskSpec.destroy:type_name -> specs.DestroyStatusSpec - 75, // 42: specs.FeaturesConfigSpec.etcd_backup_settings:type_name -> specs.EtcdBackupSettings - 129, // 43: specs.EtcdBackupSettings.tick_interval:type_name -> google.protobuf.Duration - 129, // 44: specs.EtcdBackupSettings.min_interval:type_name -> google.protobuf.Duration - 129, // 45: specs.EtcdBackupSettings.max_interval:type_name -> google.protobuf.Duration - 120, // 46: specs.MachineClassSpec.auto_provision:type_name -> specs.MachineClassSpec.Provision - 121, // 47: specs.MachineConfigGenOptionsSpec.install_image:type_name -> specs.MachineConfigGenOptionsSpec.InstallImage - 122, // 48: specs.KubernetesUsageSpec.cpu:type_name -> specs.KubernetesUsageSpec.Quantity - 122, // 49: specs.KubernetesUsageSpec.mem:type_name -> specs.KubernetesUsageSpec.Quantity - 122, // 50: specs.KubernetesUsageSpec.storage:type_name -> specs.KubernetesUsageSpec.Quantity - 123, // 51: specs.KubernetesUsageSpec.pods:type_name -> specs.KubernetesUsageSpec.Pod - 124, // 52: specs.ImagePullRequestSpec.node_image_list:type_name -> specs.ImagePullRequestSpec.NodeImageList - 125, // 53: specs.TalosExtensionsSpec.items:type_name -> specs.TalosExtensionsSpec.Info - 16, // 54: specs.ExtensionsConfigurationStatusSpec.phase:type_name -> specs.ExtensionsConfigurationStatusSpec.Phase - 126, // 55: specs.MachineExtensionsStatusSpec.extensions:type_name -> specs.MachineExtensionsStatusSpec.Item - 127, // 56: specs.ClusterStatusMetricsSpec.phases:type_name -> specs.ClusterStatusMetricsSpec.PhasesEntry - 22, // 57: specs.MachineRequestSetSpec.meta_values:type_name -> specs.MetaValue + 46, // 32: specs.MachineSetStatusSpec.machines:type_name -> specs.Machines + 114, // 33: specs.MachineSetStatusSpec.machine_allocation:type_name -> specs.MachineSetSpec.MachineAllocation + 133, // 34: specs.MachineStatusSnapshotSpec.machine_status:type_name -> machine.MachineStatusEvent + 118, // 35: specs.ControlPlaneStatusSpec.conditions:type_name -> specs.ControlPlaneStatusSpec.Condition + 119, // 36: specs.KubernetesStatusSpec.nodes:type_name -> specs.KubernetesStatusSpec.NodeStatus + 121, // 37: specs.KubernetesStatusSpec.static_pods:type_name -> specs.KubernetesStatusSpec.NodeStaticPods + 16, // 38: specs.KubernetesUpgradeStatusSpec.phase:type_name -> specs.KubernetesUpgradeStatusSpec.Phase + 60, // 39: specs.OngoingTaskSpec.talos_upgrade:type_name -> specs.TalosUpgradeStatusSpec + 68, // 40: specs.OngoingTaskSpec.kubernetes_upgrade:type_name -> specs.KubernetesUpgradeStatusSpec + 70, // 41: specs.OngoingTaskSpec.destroy:type_name -> specs.DestroyStatusSpec + 76, // 42: specs.FeaturesConfigSpec.etcd_backup_settings:type_name -> specs.EtcdBackupSettings + 131, // 43: specs.EtcdBackupSettings.tick_interval:type_name -> google.protobuf.Duration + 131, // 44: specs.EtcdBackupSettings.min_interval:type_name -> google.protobuf.Duration + 131, // 45: specs.EtcdBackupSettings.max_interval:type_name -> google.protobuf.Duration + 122, // 46: specs.MachineClassSpec.auto_provision:type_name -> specs.MachineClassSpec.Provision + 123, // 47: specs.MachineConfigGenOptionsSpec.install_image:type_name -> specs.MachineConfigGenOptionsSpec.InstallImage + 124, // 48: specs.KubernetesUsageSpec.cpu:type_name -> specs.KubernetesUsageSpec.Quantity + 124, // 49: specs.KubernetesUsageSpec.mem:type_name -> specs.KubernetesUsageSpec.Quantity + 124, // 50: specs.KubernetesUsageSpec.storage:type_name -> specs.KubernetesUsageSpec.Quantity + 125, // 51: specs.KubernetesUsageSpec.pods:type_name -> specs.KubernetesUsageSpec.Pod + 126, // 52: specs.ImagePullRequestSpec.node_image_list:type_name -> specs.ImagePullRequestSpec.NodeImageList + 127, // 53: specs.TalosExtensionsSpec.items:type_name -> specs.TalosExtensionsSpec.Info + 17, // 54: specs.ExtensionsConfigurationStatusSpec.phase:type_name -> specs.ExtensionsConfigurationStatusSpec.Phase + 128, // 55: specs.MachineExtensionsStatusSpec.extensions:type_name -> specs.MachineExtensionsStatusSpec.Item + 129, // 56: specs.ClusterStatusMetricsSpec.phases:type_name -> specs.ClusterStatusMetricsSpec.PhasesEntry + 23, // 57: specs.MachineRequestSetSpec.meta_values:type_name -> specs.MetaValue 3, // 58: specs.MachineRequestSetSpec.grpc_tunnel:type_name -> specs.GrpcTunnelMode - 128, // 59: specs.ClusterDiagnosticsSpec.nodes:type_name -> specs.ClusterDiagnosticsSpec.Node - 18, // 60: specs.ClusterMachineRequestStatusSpec.stage:type_name -> specs.ClusterMachineRequestStatusSpec.Stage - 105, // 61: specs.MachineStatusSpec.HardwareStatus.processors:type_name -> specs.MachineStatusSpec.HardwareStatus.Processor - 106, // 62: specs.MachineStatusSpec.HardwareStatus.memory_modules:type_name -> specs.MachineStatusSpec.HardwareStatus.MemoryModule - 107, // 63: specs.MachineStatusSpec.HardwareStatus.blockdevices:type_name -> specs.MachineStatusSpec.HardwareStatus.BlockDevice - 108, // 64: specs.MachineStatusSpec.NetworkStatus.network_links:type_name -> specs.MachineStatusSpec.NetworkStatus.NetworkLinkStatus - 21, // 65: specs.MachineStatusSpec.Schematic.overlay:type_name -> specs.Overlay - 22, // 66: specs.MachineStatusSpec.Schematic.meta_values:type_name -> specs.MetaValue - 9, // 67: specs.MachineSetSpec.MachineClass.allocation_type:type_name -> specs.MachineSetSpec.MachineClass.Type - 10, // 68: specs.MachineSetSpec.MachineAllocation.allocation_type:type_name -> specs.MachineSetSpec.MachineAllocation.Type - 11, // 69: specs.MachineSetSpec.MachineAllocation.source:type_name -> specs.MachineSetSpec.MachineAllocation.Source - 114, // 70: specs.MachineSetSpec.UpdateStrategyConfig.rolling:type_name -> specs.MachineSetSpec.RollingUpdateStrategyConfig - 2, // 71: specs.ControlPlaneStatusSpec.Condition.type:type_name -> specs.ConditionType - 13, // 72: specs.ControlPlaneStatusSpec.Condition.status:type_name -> specs.ControlPlaneStatusSpec.Condition.Status - 14, // 73: specs.ControlPlaneStatusSpec.Condition.severity:type_name -> specs.ControlPlaneStatusSpec.Condition.Severity - 118, // 74: specs.KubernetesStatusSpec.NodeStaticPods.static_pods:type_name -> specs.KubernetesStatusSpec.StaticPodStatus - 22, // 75: specs.MachineClassSpec.Provision.meta_values:type_name -> specs.MetaValue - 3, // 76: specs.MachineClassSpec.Provision.grpc_tunnel:type_name -> specs.GrpcTunnelMode - 20, // 77: specs.MachineConfigGenOptionsSpec.InstallImage.secure_boot_status:type_name -> specs.SecureBootStatus - 17, // 78: specs.MachineExtensionsStatusSpec.Item.phase:type_name -> specs.MachineExtensionsStatusSpec.Item.Phase - 79, // [79:79] is the sub-list for method output_type - 79, // [79:79] is the sub-list for method input_type - 79, // [79:79] is the sub-list for extension type_name - 79, // [79:79] is the sub-list for extension extendee - 0, // [0:79] is the sub-list for field type_name + 130, // 59: specs.ClusterDiagnosticsSpec.nodes:type_name -> specs.ClusterDiagnosticsSpec.Node + 19, // 60: specs.ClusterMachineRequestStatusSpec.stage:type_name -> specs.ClusterMachineRequestStatusSpec.Stage + 4, // 61: specs.InfraMachineConfigSpec.power_state:type_name -> specs.MachinePowerState + 107, // 62: specs.MachineStatusSpec.HardwareStatus.processors:type_name -> specs.MachineStatusSpec.HardwareStatus.Processor + 108, // 63: specs.MachineStatusSpec.HardwareStatus.memory_modules:type_name -> specs.MachineStatusSpec.HardwareStatus.MemoryModule + 109, // 64: specs.MachineStatusSpec.HardwareStatus.blockdevices:type_name -> specs.MachineStatusSpec.HardwareStatus.BlockDevice + 110, // 65: specs.MachineStatusSpec.NetworkStatus.network_links:type_name -> specs.MachineStatusSpec.NetworkStatus.NetworkLinkStatus + 22, // 66: specs.MachineStatusSpec.Schematic.overlay:type_name -> specs.Overlay + 23, // 67: specs.MachineStatusSpec.Schematic.meta_values:type_name -> specs.MetaValue + 10, // 68: specs.MachineSetSpec.MachineClass.allocation_type:type_name -> specs.MachineSetSpec.MachineClass.Type + 11, // 69: specs.MachineSetSpec.MachineAllocation.allocation_type:type_name -> specs.MachineSetSpec.MachineAllocation.Type + 12, // 70: specs.MachineSetSpec.MachineAllocation.source:type_name -> specs.MachineSetSpec.MachineAllocation.Source + 116, // 71: specs.MachineSetSpec.UpdateStrategyConfig.rolling:type_name -> specs.MachineSetSpec.RollingUpdateStrategyConfig + 2, // 72: specs.ControlPlaneStatusSpec.Condition.type:type_name -> specs.ConditionType + 14, // 73: specs.ControlPlaneStatusSpec.Condition.status:type_name -> specs.ControlPlaneStatusSpec.Condition.Status + 15, // 74: specs.ControlPlaneStatusSpec.Condition.severity:type_name -> specs.ControlPlaneStatusSpec.Condition.Severity + 120, // 75: specs.KubernetesStatusSpec.NodeStaticPods.static_pods:type_name -> specs.KubernetesStatusSpec.StaticPodStatus + 23, // 76: specs.MachineClassSpec.Provision.meta_values:type_name -> specs.MetaValue + 3, // 77: specs.MachineClassSpec.Provision.grpc_tunnel:type_name -> specs.GrpcTunnelMode + 21, // 78: specs.MachineConfigGenOptionsSpec.InstallImage.secure_boot_status:type_name -> specs.SecureBootStatus + 18, // 79: specs.MachineExtensionsStatusSpec.Item.phase:type_name -> specs.MachineExtensionsStatusSpec.Item.Phase + 80, // [80:80] is the sub-list for method output_type + 80, // [80:80] is the sub-list for method input_type + 80, // [80:80] is the sub-list for extension type_name + 80, // [80:80] is the sub-list for extension extendee + 0, // [0:80] is the sub-list for field type_name } func init() { file_omni_specs_omni_proto_init() } @@ -9674,1304 +9577,6 @@ func file_omni_specs_omni_proto_init() { if File_omni_specs_omni_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_omni_specs_omni_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*MachineSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*SecureBootStatus); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*Overlay); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*MetaValue); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*MachineStatusSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*TalosConfigSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[6].Exporter = func(v any, i int) any { - switch v := v.(*ClusterSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[7].Exporter = func(v any, i int) any { - switch v := v.(*ClusterTaintSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[8].Exporter = func(v any, i int) any { - switch v := v.(*EtcdBackupConf); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[9].Exporter = func(v any, i int) any { - switch v := v.(*EtcdBackupEncryptionSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[10].Exporter = func(v any, i int) any { - switch v := v.(*EtcdBackupHeader); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[11].Exporter = func(v any, i int) any { - switch v := v.(*EtcdBackupSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[12].Exporter = func(v any, i int) any { - switch v := v.(*BackupDataSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[13].Exporter = func(v any, i int) any { - switch v := v.(*EtcdBackupS3ConfSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[14].Exporter = func(v any, i int) any { - switch v := v.(*EtcdBackupStatusSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[15].Exporter = func(v any, i int) any { - switch v := v.(*EtcdManualBackupSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[16].Exporter = func(v any, i int) any { - switch v := v.(*EtcdBackupStoreStatusSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[17].Exporter = func(v any, i int) any { - switch v := v.(*EtcdBackupOverallStatusSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[18].Exporter = func(v any, i int) any { - switch v := v.(*ClusterMachineSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[19].Exporter = func(v any, i int) any { - switch v := v.(*ClusterMachineConfigPatchesSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[20].Exporter = func(v any, i int) any { - switch v := v.(*ClusterMachineTalosVersionSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[21].Exporter = func(v any, i int) any { - switch v := v.(*ClusterMachineConfigSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[22].Exporter = func(v any, i int) any { - switch v := v.(*RedactedClusterMachineConfigSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[23].Exporter = func(v any, i int) any { - switch v := v.(*ClusterMachineIdentitySpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[24].Exporter = func(v any, i int) any { - switch v := v.(*ClusterMachineTemplateSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[25].Exporter = func(v any, i int) any { - switch v := v.(*ClusterMachineStatusSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[26].Exporter = func(v any, i int) any { - switch v := v.(*Machines); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[27].Exporter = func(v any, i int) any { - switch v := v.(*ClusterStatusSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[28].Exporter = func(v any, i int) any { - switch v := v.(*ClusterUUID); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[29].Exporter = func(v any, i int) any { - switch v := v.(*ClusterConfigVersionSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[30].Exporter = func(v any, i int) any { - switch v := v.(*ClusterMachineConfigStatusSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[31].Exporter = func(v any, i int) any { - switch v := v.(*ClusterBootstrapStatusSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[32].Exporter = func(v any, i int) any { - switch v := v.(*ClusterSecretsSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[33].Exporter = func(v any, i int) any { - switch v := v.(*LoadBalancerConfigSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[34].Exporter = func(v any, i int) any { - switch v := v.(*LoadBalancerStatusSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[35].Exporter = func(v any, i int) any { - switch v := v.(*KubernetesVersionSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[36].Exporter = func(v any, i int) any { - switch v := v.(*TalosVersionSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[37].Exporter = func(v any, i int) any { - switch v := v.(*InstallationMediaSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[38].Exporter = func(v any, i int) any { - switch v := v.(*ConfigPatchSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[39].Exporter = func(v any, i int) any { - switch v := v.(*MachineSetSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[40].Exporter = func(v any, i int) any { - switch v := v.(*TalosUpgradeStatusSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[41].Exporter = func(v any, i int) any { - switch v := v.(*MachineSetStatusSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[42].Exporter = func(v any, i int) any { - switch v := v.(*MachineSetNodeSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[43].Exporter = func(v any, i int) any { - switch v := v.(*MachineLabelsSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[44].Exporter = func(v any, i int) any { - switch v := v.(*MachineStatusSnapshotSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[45].Exporter = func(v any, i int) any { - switch v := v.(*ControlPlaneStatusSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[46].Exporter = func(v any, i int) any { - switch v := v.(*ClusterEndpointSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[47].Exporter = func(v any, i int) any { - switch v := v.(*KubernetesStatusSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[48].Exporter = func(v any, i int) any { - switch v := v.(*KubernetesUpgradeStatusSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[49].Exporter = func(v any, i int) any { - switch v := v.(*KubernetesUpgradeManifestStatusSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[50].Exporter = func(v any, i int) any { - switch v := v.(*DestroyStatusSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[51].Exporter = func(v any, i int) any { - switch v := v.(*OngoingTaskSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[52].Exporter = func(v any, i int) any { - switch v := v.(*ClusterMachineEncryptionKeySpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[53].Exporter = func(v any, i int) any { - switch v := v.(*ExposedServiceSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[54].Exporter = func(v any, i int) any { - switch v := v.(*ClusterWorkloadProxyStatusSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[55].Exporter = func(v any, i int) any { - switch v := v.(*FeaturesConfigSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[56].Exporter = func(v any, i int) any { - switch v := v.(*EtcdBackupSettings); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[57].Exporter = func(v any, i int) any { - switch v := v.(*MachineClassSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[58].Exporter = func(v any, i int) any { - switch v := v.(*MachineConfigGenOptionsSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[59].Exporter = func(v any, i int) any { - switch v := v.(*EtcdAuditResultSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[60].Exporter = func(v any, i int) any { - switch v := v.(*KubeconfigSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[61].Exporter = func(v any, i int) any { - switch v := v.(*KubernetesUsageSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[62].Exporter = func(v any, i int) any { - switch v := v.(*ImagePullRequestSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[63].Exporter = func(v any, i int) any { - switch v := v.(*ImagePullStatusSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[64].Exporter = func(v any, i int) any { - switch v := v.(*SchematicSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[65].Exporter = func(v any, i int) any { - switch v := v.(*TalosExtensionsSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[66].Exporter = func(v any, i int) any { - switch v := v.(*SchematicConfigurationSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[67].Exporter = func(v any, i int) any { - switch v := v.(*ExtensionsConfigurationSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[68].Exporter = func(v any, i int) any { - switch v := v.(*ExtensionsConfigurationStatusSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[69].Exporter = func(v any, i int) any { - switch v := v.(*MachineExtensionsSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[70].Exporter = func(v any, i int) any { - switch v := v.(*MachineExtensionsStatusSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[71].Exporter = func(v any, i int) any { - switch v := v.(*MachineStatusMetricsSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[72].Exporter = func(v any, i int) any { - switch v := v.(*ClusterStatusMetricsSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[73].Exporter = func(v any, i int) any { - switch v := v.(*ClusterKubernetesNodesSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[74].Exporter = func(v any, i int) any { - switch v := v.(*KubernetesNodeAuditResultSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[75].Exporter = func(v any, i int) any { - switch v := v.(*MachineRequestSetSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[76].Exporter = func(v any, i int) any { - switch v := v.(*MachineRequestSetStatusSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[77].Exporter = func(v any, i int) any { - switch v := v.(*ClusterDiagnosticsSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[78].Exporter = func(v any, i int) any { - switch v := v.(*MachineRequestSetPressureSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[79].Exporter = func(v any, i int) any { - switch v := v.(*ClusterMachineRequestStatusSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[80].Exporter = func(v any, i int) any { - switch v := v.(*MachineStatusSpec_HardwareStatus); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[81].Exporter = func(v any, i int) any { - switch v := v.(*MachineStatusSpec_NetworkStatus); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[82].Exporter = func(v any, i int) any { - switch v := v.(*MachineStatusSpec_PlatformMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[83].Exporter = func(v any, i int) any { - switch v := v.(*MachineStatusSpec_Schematic); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[84].Exporter = func(v any, i int) any { - switch v := v.(*MachineStatusSpec_Diagnostic); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[86].Exporter = func(v any, i int) any { - switch v := v.(*MachineStatusSpec_HardwareStatus_Processor); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[87].Exporter = func(v any, i int) any { - switch v := v.(*MachineStatusSpec_HardwareStatus_MemoryModule); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[88].Exporter = func(v any, i int) any { - switch v := v.(*MachineStatusSpec_HardwareStatus_BlockDevice); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[89].Exporter = func(v any, i int) any { - switch v := v.(*MachineStatusSpec_NetworkStatus_NetworkLinkStatus); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[90].Exporter = func(v any, i int) any { - switch v := v.(*ClusterSpec_Features); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[91].Exporter = func(v any, i int) any { - switch v := v.(*ClusterMachineStatusSpec_ProvisionStatus); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[92].Exporter = func(v any, i int) any { - switch v := v.(*MachineSetSpec_MachineClass); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[93].Exporter = func(v any, i int) any { - switch v := v.(*MachineSetSpec_MachineAllocation); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[94].Exporter = func(v any, i int) any { - switch v := v.(*MachineSetSpec_BootstrapSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[95].Exporter = func(v any, i int) any { - switch v := v.(*MachineSetSpec_RollingUpdateStrategyConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[96].Exporter = func(v any, i int) any { - switch v := v.(*MachineSetSpec_UpdateStrategyConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[97].Exporter = func(v any, i int) any { - switch v := v.(*ControlPlaneStatusSpec_Condition); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[98].Exporter = func(v any, i int) any { - switch v := v.(*KubernetesStatusSpec_NodeStatus); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[99].Exporter = func(v any, i int) any { - switch v := v.(*KubernetesStatusSpec_StaticPodStatus); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[100].Exporter = func(v any, i int) any { - switch v := v.(*KubernetesStatusSpec_NodeStaticPods); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[101].Exporter = func(v any, i int) any { - switch v := v.(*MachineClassSpec_Provision); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[102].Exporter = func(v any, i int) any { - switch v := v.(*MachineConfigGenOptionsSpec_InstallImage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[103].Exporter = func(v any, i int) any { - switch v := v.(*KubernetesUsageSpec_Quantity); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[104].Exporter = func(v any, i int) any { - switch v := v.(*KubernetesUsageSpec_Pod); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[105].Exporter = func(v any, i int) any { - switch v := v.(*ImagePullRequestSpec_NodeImageList); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[106].Exporter = func(v any, i int) any { - switch v := v.(*TalosExtensionsSpec_Info); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[107].Exporter = func(v any, i int) any { - switch v := v.(*MachineExtensionsStatusSpec_Item); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_omni_proto_msgTypes[109].Exporter = func(v any, i int) any { - switch v := v.(*ClusterDiagnosticsSpec_Node); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } file_omni_specs_omni_proto_msgTypes[51].OneofWrappers = []any{ (*OngoingTaskSpec_TalosUpgrade)(nil), (*OngoingTaskSpec_KubernetesUpgrade)(nil), @@ -10982,8 +9587,8 @@ func file_omni_specs_omni_proto_init() { File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_omni_specs_omni_proto_rawDesc, - NumEnums: 19, - NumMessages: 110, + NumEnums: 20, + NumMessages: 111, NumExtensions: 0, NumServices: 0, }, diff --git a/client/api/omni/specs/omni.proto b/client/api/omni/specs/omni.proto index fa1580fd..68c48512 100644 --- a/client/api/omni/specs/omni.proto +++ b/client/api/omni/specs/omni.proto @@ -1251,3 +1251,15 @@ message ClusterMachineRequestStatusSpec { string provider_id = 3; Stage stage = 4; } + +enum MachinePowerState { + POWER_STATE_UNKNOWN = 0; + POWER_STATE_OFF = 1; + POWER_STATE_ON = 2; +} + +// InfraMachineConfigSpec is the spec of the user-owned InfraMachineConfig resource. +message InfraMachineConfigSpec { + MachinePowerState power_state = 1; + bool accepted = 2; +} diff --git a/client/api/omni/specs/omni_vtproto.pb.go b/client/api/omni/specs/omni_vtproto.pb.go index 32d16381..c346ed63 100644 --- a/client/api/omni/specs/omni_vtproto.pb.go +++ b/client/api/omni/specs/omni_vtproto.pb.go @@ -2372,6 +2372,24 @@ func (m *ClusterMachineRequestStatusSpec) CloneMessageVT() proto.Message { return m.CloneVT() } +func (m *InfraMachineConfigSpec) CloneVT() *InfraMachineConfigSpec { + if m == nil { + return (*InfraMachineConfigSpec)(nil) + } + r := new(InfraMachineConfigSpec) + r.PowerState = m.PowerState + r.Accepted = m.Accepted + if len(m.unknownFields) > 0 { + r.unknownFields = make([]byte, len(m.unknownFields)) + copy(r.unknownFields, m.unknownFields) + } + return r +} + +func (m *InfraMachineConfigSpec) CloneMessageVT() proto.Message { + return m.CloneVT() +} + func (this *MachineSpec) EqualVT(that *MachineSpec) bool { if this == that { return true @@ -5578,6 +5596,28 @@ func (this *ClusterMachineRequestStatusSpec) EqualMessageVT(thatMsg proto.Messag } return this.EqualVT(that) } +func (this *InfraMachineConfigSpec) EqualVT(that *InfraMachineConfigSpec) bool { + if this == that { + return true + } else if this == nil || that == nil { + return false + } + if this.PowerState != that.PowerState { + return false + } + if this.Accepted != that.Accepted { + return false + } + return string(this.unknownFields) == string(that.unknownFields) +} + +func (this *InfraMachineConfigSpec) EqualMessageVT(thatMsg proto.Message) bool { + that, ok := thatMsg.(*InfraMachineConfigSpec) + if !ok { + return false + } + return this.EqualVT(that) +} func (m *MachineSpec) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil @@ -11829,6 +11869,54 @@ func (m *ClusterMachineRequestStatusSpec) MarshalToSizedBufferVT(dAtA []byte) (i return len(dAtA) - i, nil } +func (m *InfraMachineConfigSpec) MarshalVT() (dAtA []byte, err error) { + if m == nil { + return nil, nil + } + size := m.SizeVT() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBufferVT(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *InfraMachineConfigSpec) MarshalToVT(dAtA []byte) (int, error) { + size := m.SizeVT() + return m.MarshalToSizedBufferVT(dAtA[:size]) +} + +func (m *InfraMachineConfigSpec) MarshalToSizedBufferVT(dAtA []byte) (int, error) { + if m == nil { + return 0, nil + } + i := len(dAtA) + _ = i + var l int + _ = l + if m.unknownFields != nil { + i -= len(m.unknownFields) + copy(dAtA[i:], m.unknownFields) + } + if m.Accepted { + i-- + if m.Accepted { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if m.PowerState != 0 { + i = protohelpers.EncodeVarint(dAtA, i, uint64(m.PowerState)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + func (m *MachineSpec) SizeVT() (n int) { if m == nil { return 0 @@ -14282,6 +14370,22 @@ func (m *ClusterMachineRequestStatusSpec) SizeVT() (n int) { return n } +func (m *InfraMachineConfigSpec) SizeVT() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.PowerState != 0 { + n += 1 + protohelpers.SizeOfVarint(uint64(m.PowerState)) + } + if m.Accepted { + n += 2 + } + n += len(m.unknownFields) + return n +} + func (m *MachineSpec) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -29785,3 +29889,93 @@ func (m *ClusterMachineRequestStatusSpec) UnmarshalVT(dAtA []byte) error { } return nil } +func (m *InfraMachineConfigSpec) UnmarshalVT(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: InfraMachineConfigSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: InfraMachineConfigSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PowerState", wireType) + } + m.PowerState = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.PowerState |= MachinePowerState(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Accepted", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protohelpers.ErrIntOverflow + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Accepted = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := protohelpers.Skip(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protohelpers.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} diff --git a/client/api/omni/specs/siderolink.pb.go b/client/api/omni/specs/siderolink.pb.go index f4a7dc4d..7c700e04 100644 --- a/client/api/omni/specs/siderolink.pb.go +++ b/client/api/omni/specs/siderolink.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc v4.24.4 // source: omni/specs/siderolink.proto @@ -39,11 +39,9 @@ type SiderolinkConfigSpec struct { func (x *SiderolinkConfigSpec) Reset() { *x = SiderolinkConfigSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_siderolink_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_siderolink_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SiderolinkConfigSpec) String() string { @@ -54,7 +52,7 @@ func (*SiderolinkConfigSpec) ProtoMessage() {} func (x *SiderolinkConfigSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_siderolink_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -136,11 +134,9 @@ type SiderolinkSpec struct { func (x *SiderolinkSpec) Reset() { *x = SiderolinkSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_siderolink_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_siderolink_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SiderolinkSpec) String() string { @@ -151,7 +147,7 @@ func (*SiderolinkSpec) ProtoMessage() {} func (x *SiderolinkSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_siderolink_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -221,11 +217,9 @@ type SiderolinkCounterSpec struct { func (x *SiderolinkCounterSpec) Reset() { *x = SiderolinkCounterSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_siderolink_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_siderolink_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SiderolinkCounterSpec) String() string { @@ -236,7 +230,7 @@ func (*SiderolinkCounterSpec) ProtoMessage() {} func (x *SiderolinkCounterSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_siderolink_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -297,11 +291,9 @@ type ConnectionParamsSpec struct { func (x *ConnectionParamsSpec) Reset() { *x = ConnectionParamsSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_siderolink_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_siderolink_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ConnectionParamsSpec) String() string { @@ -312,7 +304,7 @@ func (*ConnectionParamsSpec) ProtoMessage() {} func (x *ConnectionParamsSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_siderolink_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -482,56 +474,6 @@ func file_omni_specs_siderolink_proto_init() { if File_omni_specs_siderolink_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_omni_specs_siderolink_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*SiderolinkConfigSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_siderolink_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*SiderolinkSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_siderolink_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*SiderolinkCounterSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_siderolink_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*ConnectionParamsSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/client/api/omni/specs/system.pb.go b/client/api/omni/specs/system.pb.go index 20606fd5..8dec66ce 100644 --- a/client/api/omni/specs/system.pb.go +++ b/client/api/omni/specs/system.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc v4.24.4 // source: omni/specs/system.proto @@ -32,11 +32,9 @@ type DBVersionSpec struct { func (x *DBVersionSpec) Reset() { *x = DBVersionSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_system_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_system_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DBVersionSpec) String() string { @@ -47,7 +45,7 @@ func (*DBVersionSpec) ProtoMessage() {} func (x *DBVersionSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_system_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -82,11 +80,9 @@ type SysVersionSpec struct { func (x *SysVersionSpec) Reset() { *x = SysVersionSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_system_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_system_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SysVersionSpec) String() string { @@ -97,7 +93,7 @@ func (*SysVersionSpec) ProtoMessage() {} func (x *SysVersionSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_system_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -142,11 +138,9 @@ type CertRefreshTickSpec struct { func (x *CertRefreshTickSpec) Reset() { *x = CertRefreshTickSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_system_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_system_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CertRefreshTickSpec) String() string { @@ -157,7 +151,7 @@ func (*CertRefreshTickSpec) ProtoMessage() {} func (x *CertRefreshTickSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_system_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -227,44 +221,6 @@ func file_omni_specs_system_proto_init() { if File_omni_specs_system_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_omni_specs_system_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*DBVersionSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_system_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*SysVersionSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_system_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*CertRefreshTickSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/client/api/omni/specs/virtual.pb.go b/client/api/omni/specs/virtual.pb.go index a4260a99..4284045c 100644 --- a/client/api/omni/specs/virtual.pb.go +++ b/client/api/omni/specs/virtual.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.2 +// protoc-gen-go v1.35.1 // protoc v4.24.4 // source: omni/specs/virtual.proto @@ -32,11 +32,9 @@ type CurrentUserSpec struct { func (x *CurrentUserSpec) Reset() { *x = CurrentUserSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_virtual_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_virtual_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CurrentUserSpec) String() string { @@ -47,7 +45,7 @@ func (*CurrentUserSpec) ProtoMessage() {} func (x *CurrentUserSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_virtual_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -96,11 +94,9 @@ type PermissionsSpec struct { func (x *PermissionsSpec) Reset() { *x = PermissionsSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_virtual_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_virtual_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PermissionsSpec) String() string { @@ -111,7 +107,7 @@ func (*PermissionsSpec) ProtoMessage() {} func (x *PermissionsSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_virtual_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -224,11 +220,9 @@ type ClusterPermissionsSpec struct { func (x *ClusterPermissionsSpec) Reset() { *x = ClusterPermissionsSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_virtual_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_virtual_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ClusterPermissionsSpec) String() string { @@ -239,7 +233,7 @@ func (*ClusterPermissionsSpec) ProtoMessage() {} func (x *ClusterPermissionsSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_virtual_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -348,11 +342,9 @@ type LabelsCompletionSpec struct { func (x *LabelsCompletionSpec) Reset() { *x = LabelsCompletionSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_virtual_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_virtual_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LabelsCompletionSpec) String() string { @@ -363,7 +355,7 @@ func (*LabelsCompletionSpec) ProtoMessage() {} func (x *LabelsCompletionSpec) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_virtual_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -395,11 +387,9 @@ type LabelsCompletionSpec_Values struct { func (x *LabelsCompletionSpec_Values) Reset() { *x = LabelsCompletionSpec_Values{} - if protoimpl.UnsafeEnabled { - mi := &file_omni_specs_virtual_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_omni_specs_virtual_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LabelsCompletionSpec_Values) String() string { @@ -410,7 +400,7 @@ func (*LabelsCompletionSpec_Values) ProtoMessage() {} func (x *LabelsCompletionSpec_Values) ProtoReflect() protoreflect.Message { mi := &file_omni_specs_virtual_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -578,68 +568,6 @@ func file_omni_specs_virtual_proto_init() { if File_omni_specs_virtual_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_omni_specs_virtual_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*CurrentUserSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_virtual_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*PermissionsSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_virtual_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*ClusterPermissionsSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_virtual_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*LabelsCompletionSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_omni_specs_virtual_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*LabelsCompletionSpec_Values); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/client/go.mod b/client/go.mod index 9edc227c..c6561ae2 100644 --- a/client/go.mod +++ b/client/go.mod @@ -23,6 +23,7 @@ require ( github.com/grpc-ecosystem/grpc-gateway/v2 v2.23.0 github.com/hashicorp/go-multierror v1.1.1 github.com/hexops/gotextdiff v1.0.3 + github.com/jhump/grpctunnel v0.3.0 github.com/klauspost/compress v1.17.11 github.com/mattn/go-isatty v0.0.20 github.com/planetscale/vtprotobuf v0.6.1-0.20240917153116-6f2963f01587 @@ -57,6 +58,7 @@ require ( github.com/containernetworking/cni v1.2.3 // indirect github.com/cpuguy83/go-md2man/v2 v2.0.5 //indirect github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect + github.com/fullstorydev/grpchan v1.1.1 // indirect github.com/fxamacker/cbor/v2 v2.7.0 // indirect github.com/go-logr/logr v1.4.2 // indirect github.com/gogo/protobuf v1.3.2 // indirect diff --git a/client/go.sum b/client/go.sum index d29abe4d..8b50243e 100644 --- a/client/go.sum +++ b/client/go.sum @@ -1,3 +1,5 @@ +cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/ProtonMail/go-crypto v0.0.0-20230717121422-5aa5874ade95/go.mod h1:EjAoLdwvbIOoOQr3ihjnSoLZRtE8azugULFRteWMNc0= github.com/ProtonMail/go-crypto v1.1.0-beta.0-proton h1:ZGewsAoeSirbUS5cO8L0FMQA+iSop9xR1nmFYifDBPo= github.com/ProtonMail/go-crypto v1.1.0-beta.0-proton/go.mod h1:rA3QumHc/FZ8pAHreoekgiAbzpNsfQAosU5td4SnOrE= @@ -18,11 +20,14 @@ github.com/brianvoe/gofakeit/v6 v6.24.0/go.mod h1:Ow6qC71xtwm79anlwKRlWZW6zVq9D2 github.com/bwesterb/go-ristretto v1.2.3/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0= github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8= github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= +github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/cilium/ebpf v0.12.3 h1:8ht6F9MquybnY97at+VDZb3eQQr8ev79RueWeVaEcG4= github.com/cilium/ebpf v0.12.3/go.mod h1:TctK1ivibvI3znr66ljgi4hqOT8EYQjz1KWBfb1UVgM= +github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= github.com/cloudflare/circl v1.3.3/go.mod h1:5XYMA4rFBvNIrhs50XuiBJ15vF2pZn4nnUKZrLbUZFA= github.com/cloudflare/circl v1.5.0 h1:hxIWksrX6XN5a1L2TI/h53AGPhNHoUBo+TD1ms9+pys= github.com/cloudflare/circl v1.5.0/go.mod h1:uddAzsPgqdMAYatqJ0lsjX1oECcQLIlRpzZh3pJrofs= +github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= github.com/containerd/go-cni v1.1.10 h1:c2U73nld7spSWfiJwSh/8W9DK+/qQwYM2rngIhCyhyg= github.com/containerd/go-cni v1.1.10/go.mod h1:/Y/sL8yqYQn1ZG1om1OncJB1W4zN3YmjfP/ShCzG/OY= github.com/containernetworking/cni v1.2.3 h1:hhOcjNVUQTnzdRJ6alC5XF+wd9mfGIUaj8FuJbEslXM= @@ -40,10 +45,16 @@ github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkp github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto= github.com/emicklei/go-restful/v3 v3.12.0 h1:y2DdzBAURM29NFF94q6RaY4vjIH1rtwDapwQtU84iWk= github.com/emicklei/go-restful/v3 v3.12.0/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc= +github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= +github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/evanphx/json-patch v5.9.0+incompatible h1:fBXyNpNMuTTDdquAq/uisOr2lShz4oaXpDTX2bLe7ls= github.com/evanphx/json-patch v5.9.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= github.com/fatih/color v1.18.0 h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM= github.com/fatih/color v1.18.0/go.mod h1:4FelSpRwEGDpQ12mAdzqdOukCy4u8WUtOY6lkT/6HfU= +github.com/fullstorydev/grpchan v1.1.1 h1:heQqIJlAv5Cnks9a70GRL2EJke6QQoUB25VGR6TZQas= +github.com/fullstorydev/grpchan v1.1.1/go.mod h1:f4HpiV8V6htfY/K44GWV1ESQzHBTq7DinhzqQ95lpgc= github.com/fxamacker/cbor/v2 v2.7.0 h1:iM5WgngdRBanHcxugY4JySA0nk1wZorNOpTgCMedv5E= github.com/fxamacker/cbor/v2 v2.7.0/go.mod h1:pxXPTn3joSm21Gbwsv0w9OSA2y1HFR9qXEeXQVeNoDQ= github.com/gertd/go-pluralize v0.2.1 h1:M3uASbVjMnTsPb0PNqg+E/24Vwigyo/tvyMTtAlLgiA= @@ -62,12 +73,30 @@ github.com/go-task/slim-sprig/v3 v3.0.0 h1:sUs3vkvUymDpBKi3qH1YSqBQk9+9D/8M2mN1v github.com/go-task/slim-sprig/v3 v3.0.0/go.mod h1:W848ghGpv3Qj3dhTPRyJypKRiqCdHZiAzKg9hl15HA8= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= +github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= +github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= +github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= +github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= +github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= +github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= +github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= +github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= github.com/google/cel-go v0.21.0 h1:cl6uW/gxN+Hy50tNYvI691+sXxioCnstFzLp2WO4GCI= github.com/google/cel-go v0.21.0/go.mod h1:rHUlWCcBKgyEk+eV03RPdZUekPp6YcJwV0FxuUksYxc= github.com/google/gnostic-models v0.6.9-0.20230804172637-c7be7c783f49 h1:0VpGH+cDhbDtdcweoyCVsF3fhN8kejK6rFe/2FFX2nU= github.com/google/gnostic-models v0.6.9-0.20230804172637-c7be7c783f49/go.mod h1:BkkQ4L1KS1xMt2aWSPStnn55ChGC0DPOn2FQYj+f25M= +github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= +github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= @@ -76,6 +105,7 @@ github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0= github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/pprof v0.0.0-20240525223248-4bfdf5a9a2af h1:kmjWCqn2qkEml422C2Rrd27c3VGxi6a/6HNq8QmHRKM= github.com/google/pprof v0.0.0-20240525223248-4bfdf5a9a2af/go.mod h1:K1liHPHnj73Fdn/EKuT8nrFqBihUSKXoLYU0BuatOYo= +github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gosuri/uilive v0.0.4 h1:hUEBpQDj8D8jXgtCdBu7sWsy5sbW/5GhuO8KBwJ2jyY= @@ -95,6 +125,13 @@ github.com/imdario/mergo v0.3.16 h1:wwQJbIsHYGMUyLSPrEq1CT16AhnhNJQ51+4fdHUnCl4= github.com/imdario/mergo v0.3.16/go.mod h1:WBLT9ZmE3lPoWsEzCh9LPo3TiwVN+ZKEjmz+hD27ysY= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= +github.com/jhump/gopoet v0.0.0-20190322174617-17282ff210b3/go.mod h1:me9yfT6IJSlOL3FCfrg+L6yzUEZ+5jW6WHt4Sk+UPUI= +github.com/jhump/gopoet v0.1.0/go.mod h1:me9yfT6IJSlOL3FCfrg+L6yzUEZ+5jW6WHt4Sk+UPUI= +github.com/jhump/goprotoc v0.5.0/go.mod h1:VrbvcYrQOrTi3i0Vf+m+oqQWk9l72mjkJCYo7UvLHRQ= +github.com/jhump/grpctunnel v0.3.0 h1:itddWDKl7J4CeW4nzY3S/a1s7mPZUb8UtUzEhc/R8mg= +github.com/jhump/grpctunnel v0.3.0/go.mod h1:dn5zls1F+1ftPMkbh4kVTVgGuY5t/v3ZgdjtnSMC3f4= +github.com/jhump/protoreflect v1.11.0 h1:bvACHUD1Ua/3VxY4aAMpItKMhhwbimlKFJKsLsVgDjU= +github.com/jhump/protoreflect v1.11.0/go.mod h1:U7aMIjN0NWq9swDP7xDdoMfRHb35uiuTd3Z9nFXJf5E= github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY= github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= github.com/josharian/native v1.1.0 h1:uuaP0hAbW7Y4l0ZRQ6C9zfb7Mg1mbFKry/xzDAfmtLA= @@ -151,6 +188,7 @@ github.com/planetscale/vtprotobuf v0.6.1-0.20240917153116-6f2963f01587/go.mod h1 github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8= github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4= github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk= @@ -200,6 +238,7 @@ github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY= github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= @@ -231,15 +270,24 @@ golang.org/x/crypto v0.3.1-0.20221117191849-2c476679df9a/go.mod h1:hebNnKkNXi2Uz golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU= golang.org/x/crypto v0.28.0 h1:GBDwsMXVQi34v5CCYUm2jkJvu4cbtru2U4TN2PSyQnw= golang.org/x/crypto v0.28.0/go.mod h1:rmgy+3RHxRZMyY0jjAJShp2zgEdOqj2AO7U0pYmeQ7U= +golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20241009180824-f66d83c29e7c h1:7dEasQXItcW1xKJ2+gg5VOiBnqWrJc+rq0DPKyvvdbY= golang.org/x/exp v0.0.0-20241009180824-f66d83c29e7c/go.mod h1:NQtJDoLvd6faHhE7m4T/1IY708gDefGGjR/iUW8yQQ8= +golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= +golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= @@ -248,8 +296,11 @@ golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= golang.org/x/net v0.30.0 h1:AcW1SDZMkb8IpzCdQUaIq2sP4sZ4zw+55h6ynffypl4= golang.org/x/net v0.30.0/go.mod h1:2wGyMJ5iFasEhkwi13ChkO/t1ECNC4X4eBKkVFyYFlU= +golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.23.0 h1:PbgcYx2W7i4LvjJWEbf0ngHV6qJYr86PkAV3bXdLEbs= golang.org/x/oauth2 v0.23.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= +golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -257,8 +308,10 @@ golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -280,6 +333,7 @@ golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U= golang.org/x/term v0.25.0 h1:WtHI/ltw4NvSUig5KARz9h521QvRC8RmF/cuYqifU24= golang.org/x/term v0.25.0/go.mod h1:RPyXicDX+6vLxogjjRxjgD2TKtmAO6NZBsBRfrOLu7M= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= @@ -290,6 +344,10 @@ golang.org/x/text v0.19.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= golang.org/x/time v0.7.0 h1:ntUhktv3OPE6TgYxXWv9vKvUSJyIFJlyohwbkEwPrKQ= golang.org/x/time v0.7.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= +golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= @@ -301,12 +359,33 @@ golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8T golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= +google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= google.golang.org/genproto/googleapis/api v0.0.0-20241104194629-dd2ea8efbc28 h1:M0KvPgPmDZHPlbRbaNU1APr28TvwvvdUPlSv7PUvy8g= google.golang.org/genproto/googleapis/api v0.0.0-20241104194629-dd2ea8efbc28/go.mod h1:dguCy7UOdZhTvLzDyt15+rOrawrpM4q7DD9dQ1P11P4= google.golang.org/genproto/googleapis/rpc v0.0.0-20241104194629-dd2ea8efbc28 h1:XVhgTWWV3kGQlwJHR3upFWZeTsei6Oks1apkZSeonIE= google.golang.org/genproto/googleapis/rpc v0.0.0-20241104194629-dd2ea8efbc28/go.mod h1:GX3210XPVPUjJbTUbvwI8f2IpZDMZuPJWDzDuebbviI= +google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= +google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= +google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.38.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= google.golang.org/grpc v1.67.1 h1:zWnc1Vrcno+lHZCOofnIMvycFcc0QRGIzm9dhnDX68E= google.golang.org/grpc v1.67.1/go.mod h1:1gLDyUQU7CTLJI90u3nXZ9ekeghjeM7pTDZlqFNg2AA= +google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= +google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= +google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= +google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= +google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= +google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= +google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= +google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.35.1 h1:m3LfL6/Ca+fqnjnlqQXNpFPABW1UD7mjh8KO2mKFytA= google.golang.org/protobuf v1.35.1/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= @@ -319,6 +398,8 @@ gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= +honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= k8s.io/api v0.31.2 h1:3wLBbL5Uom/8Zy98GRPXpJ254nEFpl+hwndmk9RwmL0= k8s.io/api v0.31.2/go.mod h1:bWmGvrGPssSK1ljmLzd3pwCQ9MgoTsRCuK35u6SygUk= k8s.io/apimachinery v0.31.2 h1:i4vUt2hPK56W6mlT7Ry+AO8eEsyxMD1U44NR22CLTYw= diff --git a/client/pkg/client/client.go b/client/pkg/client/client.go index 3494a7e5..90c39afe 100644 --- a/client/pkg/client/client.go +++ b/client/pkg/client/client.go @@ -12,6 +12,8 @@ import ( "net/url" "slices" + "github.com/jhump/grpctunnel" + "github.com/jhump/grpctunnel/tunnelpb" "github.com/siderolabs/go-api-signature/pkg/client/auth" _ "github.com/siderolabs/proto-codec/codec" // for encoding.CodecV2 "google.golang.org/grpc" @@ -135,6 +137,13 @@ func (c *Client) Talos() *talos.Client { return talos.NewClient(c.conn) } +// Tunnel returns a GRPC reverse tunnel server. +func (c *Client) Tunnel() *grpctunnel.ReverseTunnelServer { + tunnelStub := tunnelpb.NewTunnelServiceClient(c.conn) + + return grpctunnel.NewReverseTunnelServer(tunnelStub) +} + // Endpoint returns the endpoint this client is configured to talk to. func (c *Client) Endpoint() string { return c.endpoint diff --git a/client/pkg/omni/resources/common/common.go b/client/pkg/omni/resources/common/common.go index 2c98bb14..f85f5c39 100644 --- a/client/pkg/omni/resources/common/common.go +++ b/client/pkg/omni/resources/common/common.go @@ -28,4 +28,5 @@ var UserManagedResourceTypes = []resource.Type{ omni.EtcdBackupS3ConfType, omni.ExtensionsConfigurationType, omni.MachineRequestSetType, + omni.InfraMachineConfigType, } diff --git a/client/pkg/omni/resources/infra/infra.go b/client/pkg/omni/resources/infra/infra.go index d704cb64..b7af5f63 100644 --- a/client/pkg/omni/resources/infra/infra.go +++ b/client/pkg/omni/resources/infra/infra.go @@ -5,11 +5,15 @@ // Package infra provides resources for managing infra resources. package infra -import "github.com/siderolabs/omni/client/pkg/omni/resources/registry" +import ( + "github.com/siderolabs/omni/client/pkg/omni/resources/registry" +) func init() { registry.MustRegisterResource(MachineRequestType, &MachineRequest{}) registry.MustRegisterResource(MachineRequestStatusType, &MachineRequestStatus{}) + registry.MustRegisterResource(InfraMachineType, &Machine{}) + registry.MustRegisterResource(InfraMachineStatusType, &MachineStatus{}) registry.MustRegisterResource(InfraProviderStatusType, &ProviderStatus{}) registry.MustRegisterResource(ConfigPatchRequestType, &ConfigPatchRequest{}) } diff --git a/client/pkg/omni/resources/infra/machine.go b/client/pkg/omni/resources/infra/machine.go new file mode 100644 index 00000000..18594e38 --- /dev/null +++ b/client/pkg/omni/resources/infra/machine.go @@ -0,0 +1,66 @@ +// 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 infra + +import ( + "github.com/cosi-project/runtime/pkg/resource" + "github.com/cosi-project/runtime/pkg/resource/meta" + "github.com/cosi-project/runtime/pkg/resource/protobuf" + "github.com/cosi-project/runtime/pkg/resource/typed" + + "github.com/siderolabs/omni/client/api/omni/specs" + "github.com/siderolabs/omni/client/pkg/omni/resources" +) + +// NewMachine creates a new Machine resource. +func NewMachine(id string) *Machine { + return typed.NewResource[MachineSpec, MachineExtension]( + resource.NewMetadata(resources.InfraProviderNamespace, InfraMachineType, id, resource.VersionUndefined), + protobuf.NewResourceSpec(&specs.InfraMachineSpec{}), + ) +} + +const ( + // InfraMachineType is the type of Machine resource. + // + // tsgen:InfraMachineType + InfraMachineType = resource.Type("InfraMachines.omni.sidero.dev") +) + +// Machine resource describes a machine request. +type Machine = typed.Resource[MachineSpec, MachineExtension] + +// MachineSpec wraps specs.MachineSpec. +type MachineSpec = protobuf.ResourceSpec[specs.InfraMachineSpec, *specs.InfraMachineSpec] + +// MachineExtension providers auxiliary methods for Machine resource. +type MachineExtension struct{} + +// ResourceDefinition implements [typed.Extension] interface. +func (MachineExtension) ResourceDefinition() meta.ResourceDefinitionSpec { + return meta.ResourceDefinitionSpec{ + Type: InfraMachineType, + Aliases: []resource.Type{}, + DefaultNamespace: resources.InfraProviderNamespace, + PrintColumns: []meta.PrintColumn{ + { + Name: "Power State", + JSONPath: "{.powerstate}", + }, + { + Name: "Accepted", + JSONPath: "{.accepted}", + }, + { + Name: "Allocated", + JSONPath: "{.allocated}", + }, + { + Name: "Installed", + JSONPath: "{.installed}", + }, + }, + } +} diff --git a/client/pkg/omni/resources/infra/machine_status.go b/client/pkg/omni/resources/infra/machine_status.go new file mode 100644 index 00000000..14d2e0dd --- /dev/null +++ b/client/pkg/omni/resources/infra/machine_status.go @@ -0,0 +1,58 @@ +// 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 infra + +import ( + "github.com/cosi-project/runtime/pkg/resource" + "github.com/cosi-project/runtime/pkg/resource/meta" + "github.com/cosi-project/runtime/pkg/resource/protobuf" + "github.com/cosi-project/runtime/pkg/resource/typed" + + "github.com/siderolabs/omni/client/api/omni/specs" + "github.com/siderolabs/omni/client/pkg/omni/resources" +) + +// NewMachineStatus creates a new MachineStatus resource. +func NewMachineStatus(id string) *MachineStatus { + return typed.NewResource[MachineStatusSpec, MachineStatusExtension]( + resource.NewMetadata(resources.InfraProviderNamespace, InfraMachineStatusType, id, resource.VersionUndefined), + protobuf.NewResourceSpec(&specs.InfraMachineStatusSpec{}), + ) +} + +const ( + // InfraMachineStatusType is the type of MachineStatus resource. + // + // tsgen:InfraMachineStatusType + InfraMachineStatusType = resource.Type("InfraMachineStatuses.omni.sidero.dev") +) + +// MachineStatus resource describes a machine request. +type MachineStatus = typed.Resource[MachineStatusSpec, MachineStatusExtension] + +// MachineStatusSpec wraps specs.MachineStatusSpec. +type MachineStatusSpec = protobuf.ResourceSpec[specs.InfraMachineStatusSpec, *specs.InfraMachineStatusSpec] + +// MachineStatusExtension providers auxiliary methods for MachineStatus resource. +type MachineStatusExtension struct{} + +// ResourceDefinition implements [typed.Extension] interface. +func (MachineStatusExtension) ResourceDefinition() meta.ResourceDefinitionSpec { + return meta.ResourceDefinitionSpec{ + Type: InfraMachineStatusType, + Aliases: []resource.Type{}, + DefaultNamespace: resources.InfraProviderNamespace, + PrintColumns: []meta.PrintColumn{ + { + Name: "Power State", + JSONPath: "{.powerstate}", + }, + { + Name: "Ready to Use", + JSONPath: "{.readytouse}", + }, + }, + } +} diff --git a/client/pkg/omni/resources/omni/infra_machine_config.go b/client/pkg/omni/resources/omni/infra_machine_config.go new file mode 100644 index 00000000..978c0f3f --- /dev/null +++ b/client/pkg/omni/resources/omni/infra_machine_config.go @@ -0,0 +1,58 @@ +// 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 omni + +import ( + "github.com/cosi-project/runtime/pkg/resource" + "github.com/cosi-project/runtime/pkg/resource/meta" + "github.com/cosi-project/runtime/pkg/resource/protobuf" + "github.com/cosi-project/runtime/pkg/resource/typed" + + "github.com/siderolabs/omni/client/api/omni/specs" + "github.com/siderolabs/omni/client/pkg/omni/resources" +) + +// NewInfraMachineConfig creates a new InfraMachineConfig resource. +func NewInfraMachineConfig(ns, id string) *InfraMachineConfig { + return typed.NewResource[InfraMachineConfigSpec, InfraMachineConfigExtension]( + resource.NewMetadata(ns, InfraMachineConfigType, id, resource.VersionUndefined), + protobuf.NewResourceSpec(&specs.InfraMachineConfigSpec{}), + ) +} + +const ( + // InfraMachineConfigType is the type of InfraMachineConfig resource. + // + // tsgen:InfraMachineConfigType + InfraMachineConfigType = resource.Type("InfraMachineConfigs.omni.sidero.dev") +) + +// InfraMachineConfig resource describes a machineConfig request. +type InfraMachineConfig = typed.Resource[InfraMachineConfigSpec, InfraMachineConfigExtension] + +// InfraMachineConfigSpec wraps specs.InfraMachineConfigSpec. +type InfraMachineConfigSpec = protobuf.ResourceSpec[specs.InfraMachineConfigSpec, *specs.InfraMachineConfigSpec] + +// InfraMachineConfigExtension providers auxiliary methods for InfraMachineConfig resource. +type InfraMachineConfigExtension struct{} + +// ResourceDefinition implements [typed.Extension] interface. +func (InfraMachineConfigExtension) ResourceDefinition() meta.ResourceDefinitionSpec { + return meta.ResourceDefinitionSpec{ + Type: InfraMachineConfigType, + Aliases: []resource.Type{}, + DefaultNamespace: resources.DefaultNamespace, + PrintColumns: []meta.PrintColumn{ + { + Name: "Power State", + JSONPath: "{.powerstate}", + }, + { + Name: "Accepted", + JSONPath: "{.accepted}", + }, + }, + } +} diff --git a/client/pkg/omni/resources/omni/labels.go b/client/pkg/omni/resources/omni/labels.go index 9240757c..6deb85fc 100644 --- a/client/pkg/omni/resources/omni/labels.go +++ b/client/pkg/omni/resources/omni/labels.go @@ -57,6 +57,14 @@ const ( // LabelInfraProviderID is the infra provider ID for the resources managed by infra providers, e.g., infra.MachineRequest, infra.MachineRequestStatus. LabelInfraProviderID = SystemLabelPrefix + "infra-provider-id" + // LabelIsStaticInfraProvider is set on the infra.ProviderStatus resources to mark them as static providers - they do not work with MachineRequests to + // allocate and de-allocate machines, but rather work with a static set of machines (e.g., bare-metal machines). + LabelIsStaticInfraProvider = SystemLabelPrefix + "is-static-infra-provider" + + // LabelManagedByStaticInfraProvider is set on the machines managed by static infra providers. + // tsgen:LabelManagedByStaticInfraProvider + LabelManagedByStaticInfraProvider = SystemLabelPrefix + "managed-by-static-infra-provider" + // LabelMachineClassName is the name of the machine class. LabelMachineClassName = SystemLabelPrefix + "machine-class-name" diff --git a/client/pkg/omni/resources/omni/omni.go b/client/pkg/omni/resources/omni/omni.go index fa8c8f44..49e24fb9 100644 --- a/client/pkg/omni/resources/omni/omni.go +++ b/client/pkg/omni/resources/omni/omni.go @@ -46,6 +46,7 @@ func init() { registry.MustRegisterResource(FeaturesConfigType, &FeaturesConfig{}) registry.MustRegisterResource(ImagePullRequestType, &ImagePullRequest{}) registry.MustRegisterResource(ImagePullStatusType, &ImagePullStatus{}) + registry.MustRegisterResource(InfraMachineConfigType, &InfraMachineConfig{}) registry.MustRegisterResource(InstallationMediaType, &InstallationMedia{}) registry.MustRegisterResource(ControlPlaneStatusType, &ControlPlaneStatus{}) registry.MustRegisterResource(KubeconfigType, &Kubeconfig{}) diff --git a/cmd/integration-test/pkg/tests/auth.go b/cmd/integration-test/pkg/tests/auth.go index e3661b76..5b09fd80 100644 --- a/cmd/integration-test/pkg/tests/auth.go +++ b/cmd/integration-test/pkg/tests/auth.go @@ -614,6 +614,7 @@ func AssertResourceAuthz(rootCtx context.Context, rootCli *client.Client, client machineSetNode := omni.NewMachineSetNode(resources.DefaultNamespace, uuid.New().String(), machineSet) machineClass := omni.NewMachineClass(resources.DefaultNamespace, uuid.New().String()) machineRequestSet := omni.NewMachineRequestSet(resources.DefaultNamespace, uuid.New().String()) + infraMachineConfig := omni.NewInfraMachineConfig(resources.DefaultNamespace, uuid.New().String()) extensionsConfiguration := omni.NewExtensionsConfiguration(resources.DefaultNamespace, uuid.New().String()) extensionsConfiguration.Metadata().Labels().Set(omni.LabelCluster, cluster.Metadata().ID()) @@ -673,6 +674,10 @@ func AssertResourceAuthz(rootCtx context.Context, rootCli *client.Client, client resource: machineRequestSet, allowedVerbSet: allVerbsSet, }, + { + resource: infraMachineConfig, + allowedVerbSet: allVerbsSet, + }, { resource: omni.NewEtcdManualBackup(uuid.New().String()), allowedVerbSet: allVerbsSet, @@ -1041,6 +1046,8 @@ func AssertResourceAuthz(rootCtx context.Context, rootCli *client.Client, client // infra provider resources have their custom authz logic, they are unit-tested in their package delete(untestedResourceTypes, infra.MachineRequestType) delete(untestedResourceTypes, infra.MachineRequestStatusType) + delete(untestedResourceTypes, infra.InfraMachineType) + delete(untestedResourceTypes, infra.InfraMachineStatusType) delete(untestedResourceTypes, infra.InfraProviderStatusType) delete(untestedResourceTypes, infra.ConfigPatchRequestType) diff --git a/frontend/src/api/omni/specs/infra.pb.ts b/frontend/src/api/omni/specs/infra.pb.ts index 001fcec1..811d347d 100644 --- a/frontend/src/api/omni/specs/infra.pb.ts +++ b/frontend/src/api/omni/specs/infra.pb.ts @@ -30,6 +30,18 @@ export type MachineRequestStatusSpec = { status?: string } +export type InfraMachineSpec = { + power_state?: SpecsOmni.MachinePowerState + accepted?: boolean + allocated?: boolean + installed?: boolean +} + +export type InfraMachineStatusSpec = { + power_state?: SpecsOmni.MachinePowerState + ready_to_use?: boolean +} + export type InfraProviderStatusSpec = { schema?: string name?: string diff --git a/frontend/src/api/omni/specs/omni.pb.ts b/frontend/src/api/omni/specs/omni.pb.ts index 27019c07..ab15240a 100644 --- a/frontend/src/api/omni/specs/omni.pb.ts +++ b/frontend/src/api/omni/specs/omni.pb.ts @@ -46,6 +46,12 @@ export enum GrpcTunnelMode { DISABLED = 2, } +export enum MachinePowerState { + POWER_STATE_UNKNOWN = 0, + POWER_STATE_OFF = 1, + POWER_STATE_ON = 2, +} + export enum MachineStatusSpecRole { NONE = 0, CONTROL_PLANE = 1, @@ -809,4 +815,9 @@ export type ClusterMachineRequestStatusSpec = { machine_uuid?: string provider_id?: string stage?: ClusterMachineRequestStatusSpecStage +} + +export type InfraMachineConfigSpec = { + power_state?: MachinePowerState + accepted?: boolean } \ No newline at end of file diff --git a/frontend/src/api/resources.ts b/frontend/src/api/resources.ts index 698902cb..df4438e4 100644 --- a/frontend/src/api/resources.ts +++ b/frontend/src/api/resources.ts @@ -29,6 +29,30 @@ export const ServicePortAnnotationKey = "omni-kube-service-exposer.sidero.dev/po export const ServiceIconAnnotationKey = "omni-kube-service-exposer.sidero.dev/icon"; export const installDiskMinSize = 5e+09; export const authPublicKeyIDQueryParam = "public-key-id"; +export const SecureBoot = "secureboot"; +export const DefaultTalosVersion = "1.7.6"; +export const PatchWeightInstallDisk = 0; +export const PatchBaseWeightCluster = 200; +export const PatchBaseWeightMachineSet = 400; +export const PatchBaseWeightClusterMachine = 400; +export const TalosServiceType = "Services.v1alpha1.talos.dev"; +export const TalosCPUType = "CPUStats.perf.talos.dev"; +export const TalosMemoryType = "MemoryStats.perf.talos.dev"; +export const TalosNodenameType = "Nodenames.kubernetes.talos.dev"; +export const TalosMemberType = "Members.cluster.talos.dev"; +export const TalosNodeAddressType = "NodeAddresses.net.talos.dev"; +export const TalosMountStatusType = "MountStatuses.runtime.talos.dev"; +export const TalosMachineStatusType = "MachineStatuses.runtime.talos.dev"; +export const TalosNodenameID = "nodename"; +export const TalosAddressRoutedNoK8s = "routed-no-k8s"; +export const TalosCPUID = "latest"; +export const TalosMemoryID = "latest"; +export const TalosMachineStatusID = "machine"; +export const TalosPerfNamespace = "perf"; +export const TalosClusterNamespace = "cluster"; +export const TalosRuntimeNamespace = "runtime"; +export const TalosK8sNamespace = "k8s"; +export const TalosNetworkNamespace = "network"; export const DefaultNamespace = "default"; export const EphemeralNamespace = "ephemeral"; export const MetricsNamespace = "metrics"; @@ -82,6 +106,7 @@ export const FeaturesConfigID = "features-config"; export const FeaturesConfigType = "FeaturesConfigs.omni.sidero.dev"; export const ImagePullRequestType = "ImagePullRequests.omni.sidero.dev"; export const ImagePullStatusType = "ImagePullStatuses.omni.sidero.dev"; +export const InfraMachineConfigType = "InfraMachineConfigs.omni.sidero.dev"; export const InstallationMediaType = "InstallationMedias.omni.sidero.dev"; export const KubernetesStatusType = "KubernetesStatuses.omni.sidero.dev"; export const KubernetesUpgradeManifestStatusType = "KubernetesUpgradeManifestStatuses.omni.sidero.dev"; @@ -98,6 +123,7 @@ export const LabelClusterMachine = "omni.sidero.dev/cluster-machine"; export const LabelMachine = "omni.sidero.dev/machine"; export const LabelSystemPatch = "omni.sidero.dev/system-patch"; export const LabelExposedServiceAlias = "omni.sidero.dev/exposed-service-alias"; +export const LabelManagedByStaticInfraProvider = "omni.sidero.dev/managed-by-static-infra-provider"; export const LabelMachineRequest = "omni.sidero.dev/machine-request"; export const LabelMachineRequestSet = "omni.sidero.dev/machine-request-set"; export const LabelNoManualAllocation = "omni.sidero.dev/no-manual-allocation"; @@ -127,7 +153,6 @@ export const MachineExtensionsType = "MachineExtensions.omni.sidero.dev"; export const MachineExtensionsStatusType = "MachineExtensionsStatuses.omni.sidero.dev"; export const MachineLabelsType = "MachineLabels.omni.sidero.dev"; export const MachineRequestSetType = "MachineRequestSets.omni.sidero.dev"; -export const MachineRequestSetPressureType = "MachineRequestSetPressures.omni.sidero.dev"; export const MachineRequestSetStatusType = "MachineRequestSetStatuses.omni.sidero.dev"; export const ControlPlanesIDSuffix = "control-planes"; export const DefaultWorkersIDSuffix = "workers"; @@ -158,8 +183,10 @@ export const LabelIdentityTypeServiceAccount = "type-service-account"; export const PublicKeyType = "PublicKeys.omni.sidero.dev"; export const SAMLLabelRuleType = "SAMLLabelRules.omni.sidero.dev"; export const UserType = "Users.omni.sidero.dev"; +export const InfraMachineType = "InfraMachines.omni.sidero.dev"; export const MachineRequestType = "MachineRequests.omni.sidero.dev"; export const MachineRequestStatusType = "MachineRequestStatuses.omni.sidero.dev"; +export const InfraMachineStatusType = "InfraMachineStatuses.omni.sidero.dev"; export const InfraProviderStatusType = "InfraProviderStatuses.omni.sidero.dev"; export const KubernetesResourceType = "KubernetesResources.omni.sidero.dev"; export const ConfigType = "Configs.omni.sidero.dev"; @@ -176,30 +203,6 @@ export const KubernetesUsageType = "KubernetesUsages.omni.sidero.dev"; export const LabelsCompletionType = "LabelsCompletions.omni.sidero.dev"; export const PermissionsID = "permissions"; export const PermissionsType = "Permissions.omni.sidero.dev"; -export const SecureBoot = "secureboot"; -export const DefaultTalosVersion = "1.7.6"; -export const PatchWeightInstallDisk = 0; -export const PatchBaseWeightCluster = 200; -export const PatchBaseWeightMachineSet = 400; -export const PatchBaseWeightClusterMachine = 400; -export const TalosServiceType = "Services.v1alpha1.talos.dev"; -export const TalosCPUType = "CPUStats.perf.talos.dev"; -export const TalosMemoryType = "MemoryStats.perf.talos.dev"; -export const TalosNodenameType = "Nodenames.kubernetes.talos.dev"; -export const TalosMemberType = "Members.cluster.talos.dev"; -export const TalosNodeAddressType = "NodeAddresses.net.talos.dev"; -export const TalosMountStatusType = "MountStatuses.runtime.talos.dev"; -export const TalosMachineStatusType = "MachineStatuses.runtime.talos.dev"; -export const TalosNodenameID = "nodename"; -export const TalosAddressRoutedNoK8s = "routed-no-k8s"; -export const TalosCPUID = "latest"; -export const TalosMemoryID = "latest"; -export const TalosMachineStatusID = "machine"; -export const TalosPerfNamespace = "perf"; -export const TalosClusterNamespace = "cluster"; -export const TalosRuntimeNamespace = "runtime"; -export const TalosK8sNamespace = "k8s"; -export const TalosNetworkNamespace = "network"; export const MetalNetworkPlatformConfig = 10; export const LabelsMeta = 12; export const NamespaceType = "Namespaces.meta.cosi.dev"; diff --git a/go.mod b/go.mod index a5cab111..372c4a23 100644 --- a/go.mod +++ b/go.mod @@ -3,6 +3,9 @@ module github.com/siderolabs/omni go 1.23.2 replace ( + // todo: remove when merged + github.com/siderolabs/omni-infra-provider-bare-metal v0.0.0-20241014092637-c3e892b87244 => github.com/utkuozdemir/sidero-omni-infra-provider-bare-metal v0.0.0-20241021213554-cc93e594a0d2 + // use nested module github.com/siderolabs/omni/client => ./client // forked go-yaml that introduces RawYAML interface, which can be used to populate YAML fields using bytes @@ -49,6 +52,7 @@ require ( github.com/hashicorp/vault/api v1.15.0 github.com/hashicorp/vault/api/auth/kubernetes v0.8.0 github.com/hexops/gotextdiff v1.0.3 + github.com/jhump/grpctunnel v0.3.0 github.com/johannesboyne/gofakes3 v0.0.0-20240930195952-2db7ccb81e19 github.com/jonboulle/clockwork v0.4.1-0.20241017232027-7e524bd2b238 github.com/julienschmidt/httprouter v1.3.0 @@ -75,6 +79,7 @@ require ( github.com/siderolabs/grpc-proxy v0.5.1 github.com/siderolabs/image-factory v0.5.0 github.com/siderolabs/kms-client v0.1.0 + github.com/siderolabs/omni-infra-provider-bare-metal v0.0.0-20241014092637-c3e892b87244 github.com/siderolabs/omni/client v0.42.1 github.com/siderolabs/proto-codec v0.1.1 github.com/siderolabs/siderolink v0.3.11 @@ -146,6 +151,7 @@ require ( github.com/emicklei/go-restful/v3 v3.12.1 // indirect github.com/evanphx/json-patch v5.9.0+incompatible // indirect github.com/fatih/color v1.18.0 // indirect + github.com/fullstorydev/grpchan v1.1.1 // indirect github.com/fxamacker/cbor/v2 v2.7.0 // indirect github.com/ghodss/yaml v1.0.0 // indirect github.com/go-chi/chi/v5 v5.1.0 // indirect diff --git a/go.sum b/go.sum index 5ccd2548..37ee0a81 100644 --- a/go.sum +++ b/go.sum @@ -93,6 +93,7 @@ github.com/cloudflare/circl v1.3.3/go.mod h1:5XYMA4rFBvNIrhs50XuiBJ15vF2pZn4nnUK github.com/cloudflare/circl v1.5.0 h1:hxIWksrX6XN5a1L2TI/h53AGPhNHoUBo+TD1ms9+pys= github.com/cloudflare/circl v1.5.0/go.mod h1:uddAzsPgqdMAYatqJ0lsjX1oECcQLIlRpzZh3pJrofs= github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= +github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= github.com/cockroachdb/datadriven v1.0.2 h1:H9MtNqVoVhvd9nCBwOyDjUEdZCREqbIdCJD93PBm/jA= github.com/cockroachdb/datadriven v1.0.2/go.mod h1:a9RdTaap04u637JoCzcUoIcDmvwSUtcUFtT/C3kJlTU= github.com/containerd/go-cni v1.1.10 h1:c2U73nld7spSWfiJwSh/8W9DK+/qQwYM2rngIhCyhyg= @@ -140,6 +141,7 @@ github.com/emicklei/go-restful/v3 v3.12.1/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRr github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= +github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= github.com/evanphx/json-patch v5.9.0+incompatible h1:fBXyNpNMuTTDdquAq/uisOr2lShz4oaXpDTX2bLe7ls= github.com/evanphx/json-patch v5.9.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= @@ -151,6 +153,8 @@ github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2 github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= github.com/fsnotify/fsnotify v1.8.0 h1:dAwr6QBTBZIkG8roQaJjGof0pp0EeF+tNV7YBP3F/8M= github.com/fsnotify/fsnotify v1.8.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0= +github.com/fullstorydev/grpchan v1.1.1 h1:heQqIJlAv5Cnks9a70GRL2EJke6QQoUB25VGR6TZQas= +github.com/fullstorydev/grpchan v1.1.1/go.mod h1:f4HpiV8V6htfY/K44GWV1ESQzHBTq7DinhzqQ95lpgc= github.com/fxamacker/cbor/v2 v2.7.0 h1:iM5WgngdRBanHcxugY4JySA0nk1wZorNOpTgCMedv5E= github.com/fxamacker/cbor/v2 v2.7.0/go.mod h1:pxXPTn3joSm21Gbwsv0w9OSA2y1HFR9qXEeXQVeNoDQ= github.com/gertd/go-pluralize v0.2.1 h1:M3uASbVjMnTsPb0PNqg+E/24Vwigyo/tvyMTtAlLgiA= @@ -193,6 +197,14 @@ github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+Licev github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= +github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= +github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= +github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= +github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= +github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= +github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= github.com/google/btree v1.1.3 h1:CVpQJjYgC4VbzxeGVHfvZrv1ctoYCAI8vbl07Fcxlyg= @@ -202,7 +214,11 @@ github.com/google/cel-go v0.21.0/go.mod h1:rHUlWCcBKgyEk+eV03RPdZUekPp6YcJwV0Fxu github.com/google/gnostic-models v0.6.9-0.20230804172637-c7be7c783f49 h1:0VpGH+cDhbDtdcweoyCVsF3fhN8kejK6rFe/2FFX2nU= github.com/google/gnostic-models v0.6.9-0.20230804172637-c7be7c783f49/go.mod h1:BkkQ4L1KS1xMt2aWSPStnn55ChGC0DPOn2FQYj+f25M= github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= +github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= @@ -270,6 +286,13 @@ github.com/imdario/mergo v0.3.16 h1:wwQJbIsHYGMUyLSPrEq1CT16AhnhNJQ51+4fdHUnCl4= github.com/imdario/mergo v0.3.16/go.mod h1:WBLT9ZmE3lPoWsEzCh9LPo3TiwVN+ZKEjmz+hD27ysY= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= +github.com/jhump/gopoet v0.0.0-20190322174617-17282ff210b3/go.mod h1:me9yfT6IJSlOL3FCfrg+L6yzUEZ+5jW6WHt4Sk+UPUI= +github.com/jhump/gopoet v0.1.0/go.mod h1:me9yfT6IJSlOL3FCfrg+L6yzUEZ+5jW6WHt4Sk+UPUI= +github.com/jhump/goprotoc v0.5.0/go.mod h1:VrbvcYrQOrTi3i0Vf+m+oqQWk9l72mjkJCYo7UvLHRQ= +github.com/jhump/grpctunnel v0.3.0 h1:itddWDKl7J4CeW4nzY3S/a1s7mPZUb8UtUzEhc/R8mg= +github.com/jhump/grpctunnel v0.3.0/go.mod h1:dn5zls1F+1ftPMkbh4kVTVgGuY5t/v3ZgdjtnSMC3f4= +github.com/jhump/protoreflect v1.11.0 h1:bvACHUD1Ua/3VxY4aAMpItKMhhwbimlKFJKsLsVgDjU= +github.com/jhump/protoreflect v1.11.0/go.mod h1:U7aMIjN0NWq9swDP7xDdoMfRHb35uiuTd3Z9nFXJf5E= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= @@ -484,6 +507,8 @@ github.com/tmc/grpc-websocket-proxy v0.0.0-20220101234140-673ab2c3ae75 h1:6fotK7 github.com/tmc/grpc-websocket-proxy v0.0.0-20220101234140-673ab2c3ae75/go.mod h1:KO6IkyS8Y3j8OdNO85qEYBsRPuteD+YciPomcXdrMnk= github.com/unix4ever/yaml v0.0.0-20220527175918-f17b0f05cf2c h1:Vn6nVVu9MdOYvXPkJP83iX5jVIfvxFC9v9xIKb+DlaQ= github.com/unix4ever/yaml v0.0.0-20220527175918-f17b0f05cf2c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +github.com/utkuozdemir/sidero-omni-infra-provider-bare-metal v0.0.0-20241021213554-cc93e594a0d2 h1:AB8yctFPA+eyjrinTMD4TVx5ohT58WbNke6e1A33GSM= +github.com/utkuozdemir/sidero-omni-infra-provider-bare-metal v0.0.0-20241021213554-cc93e594a0d2/go.mod h1:U9s+aKO11WbClgzM7xBTvZM5tZDbj3wD5bnk9tyNSIU= github.com/vbatts/tar-split v0.11.6 h1:4SjTW5+PU11n6fZenf2IPoV8/tz3AaYHMWjf23envGs= github.com/vbatts/tar-split v0.11.6/go.mod h1:dqKNtesIOr2j2Qv3W/cHjnvk9I8+G7oAkFDFN6TCBEI= github.com/vishvananda/netns v0.0.4 h1:Oeaw1EM2JMxD51g9uhtC0D7erkIjgmj8+JZc26m1YX8= @@ -580,6 +605,7 @@ golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201202161906-c7110b5ffcbb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= @@ -643,6 +669,7 @@ golang.org/x/term v0.7.0/go.mod h1:P32HKFT3hSsZrRxla30E9HqToFYAQPCMs/zFMBUFqPY= golang.org/x/term v0.25.0 h1:WtHI/ltw4NvSUig5KARz9h521QvRC8RmF/cuYqifU24= golang.org/x/term v0.25.0/go.mod h1:RPyXicDX+6vLxogjjRxjgD2TKtmAO6NZBsBRfrOLu7M= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= @@ -685,6 +712,7 @@ google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoA google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20200423170343-7949de9c1215/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= google.golang.org/genproto v0.0.0-20241104194629-dd2ea8efbc28 h1:KJjNNclfpIkVqrZlTWcgOOaVQ00LdBnoEaRfkUx760s= google.golang.org/genproto v0.0.0-20241104194629-dd2ea8efbc28/go.mod h1:mt9/MofW7AWQ+Gy179ChOnvmJatV8YHUmrcedo9CIFI= google.golang.org/genproto/googleapis/api v0.0.0-20241104194629-dd2ea8efbc28 h1:M0KvPgPmDZHPlbRbaNU1APr28TvwvvdUPlSv7PUvy8g= @@ -697,8 +725,20 @@ google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQ google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= +google.golang.org/grpc v1.38.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= google.golang.org/grpc v1.67.1 h1:zWnc1Vrcno+lHZCOofnIMvycFcc0QRGIzm9dhnDX68E= google.golang.org/grpc v1.67.1/go.mod h1:1gLDyUQU7CTLJI90u3nXZ9ekeghjeM7pTDZlqFNg2AA= +google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= +google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= +google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= +google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= +google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= +google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= +google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= +google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.35.1 h1:m3LfL6/Ca+fqnjnlqQXNpFPABW1UD7mjh8KO2mKFytA= google.golang.org/protobuf v1.35.1/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= diff --git a/go.work b/go.work index c19e773b..7f22275f 100644 --- a/go.work +++ b/go.work @@ -3,6 +3,6 @@ go 1.23.2 use ( . ./client - ./internal/e2e-tests ./hack/zstd-dict + ./internal/e2e-tests ) diff --git a/internal/backend/baremetal/baremetal.go b/internal/backend/baremetal/baremetal.go new file mode 100644 index 00000000..2d87541a --- /dev/null +++ b/internal/backend/baremetal/baremetal.go @@ -0,0 +1,113 @@ +// Copyright (c) 2024 Sidero Labs, Inc. +// +// Use of this software is governed by the Business Source License +// included in the LICENSE file. + +// Package baremetal provides a client to interact with the bare-metal infra provider. +package baremetal + +import ( + "context" + + "github.com/jhump/grpctunnel" + providerpb "github.com/siderolabs/omni-infra-provider-bare-metal/api/provider" + "go.uber.org/zap" + "google.golang.org/grpc/metadata" +) + +// MachineIDMetadataKey is the key used to identify the machine ID in the GRPC metadata (header). +const MachineIDMetadataKey = "machine-id" + +var unknownAffinityKey = AffinityKey{ID: "unknown"} + +// AffinityKey is the key used to identify the bare metal servers when making calls to the bare metal infra provider for that machine over the GRPC reverse tunnel. +type AffinityKey struct { + // ID is the machine UUID. + ID string +} + +func (a AffinityKey) String() string { + return "id=" + a.ID +} + +// Client is a client to interact with the bare-metal infra provider. +type Client struct { + tunnelHandler *grpctunnel.TunnelServiceHandler + + logger *zap.Logger +} + +// NewClient creates a new Client. +func NewClient(tunnelHandler *grpctunnel.TunnelServiceHandler, logger *zap.Logger) *Client { + return &Client{ + tunnelHandler: tunnelHandler, + logger: logger, + } +} + +// TODO: consider the case of multiple bare metal infra providers and/or duplicate machine IDs + +// ProvisionMachine provisions the machine with the given key. +func (c *Client) ProvisionMachine(ctx context.Context, affinityKey AffinityKey) error { + c.logger.Info("provision machine", zap.Stringer("affinity_key", affinityKey)) + + channel := c.tunnelHandler.KeyAsChannel(affinityKey) + cli := providerpb.NewProviderServiceClient(channel) + + _, err := cli.ProvisionMachine(ctx, &providerpb.ProvisionMachineRequest{ + Id: affinityKey.ID, + }) + + return err +} + +// DeprovisionMachine deprovisions the machine with the given key. +func (c *Client) DeprovisionMachine(ctx context.Context, affinityKey AffinityKey) error { + c.logger.Info("deprovision machine", zap.Stringer("affinity_key", affinityKey)) + + channel := c.tunnelHandler.KeyAsChannel(affinityKey) + cli := providerpb.NewProviderServiceClient(channel) + + _, err := cli.DeprovisionMachine(ctx, &providerpb.DeprovisionMachineRequest{ + Id: affinityKey.ID, + }) + + return err +} + +// PowerOnMachine powers on the machine with the given key. +func (c *Client) PowerOnMachine(ctx context.Context, affinityKey AffinityKey) error { + c.logger.Info("power on machine", zap.Stringer("affinity_key", affinityKey)) + + channel := c.tunnelHandler.KeyAsChannel(affinityKey) + cli := providerpb.NewProviderServiceClient(channel) + + _, err := cli.PowerOnMachine(ctx, &providerpb.PowerOnMachineRequest{ + Id: affinityKey.ID, + }) + + return err +} + +// GetAffinityKey extracts the AffinityKey from the given GRPC tunnel context. +func GetAffinityKey(channel grpctunnel.TunnelChannel, logger *zap.Logger) AffinityKey { + md, ok := metadata.FromIncomingContext(channel.Context()) + if !ok { + logger.Warn("no metadata found in channel context") + + return unknownAffinityKey + } + + vals := md.Get(MachineIDMetadataKey) + if len(vals) == 0 { + logger.Warn("no machine ID found in metadata") + + return unknownAffinityKey + } + + if len(vals) > 1 { + logger.Warn("multiple machine IDs found in metadata, using the first one", zap.Strings("machine_ids", vals)) + } + + return AffinityKey{ID: vals[0]} +} diff --git a/internal/backend/grpc/grpc.go b/internal/backend/grpc/grpc.go index 1bc0db00..3cd2805a 100644 --- a/internal/backend/grpc/grpc.go +++ b/internal/backend/grpc/grpc.go @@ -17,6 +17,7 @@ import ( "github.com/cosi-project/runtime/pkg/state" gateway "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" + "github.com/jhump/grpctunnel" "github.com/prometheus/client_golang/prometheus" "go.uber.org/zap" "google.golang.org/grpc" @@ -51,6 +52,7 @@ func MakeServiceServers( imageFactoryClient *imagefactory.Client, logger *zap.Logger, auditor AuditLogger, + tunnelHandler *grpctunnel.TunnelServiceHandler, ) iter.Seq2[ServiceServer, error] { dest, err := generateDest(config.Config.APIURL) if err != nil { @@ -82,6 +84,9 @@ func MakeServiceServers( State: cachedState, }, &machineService{}, + &tunnelServer{ + handler: tunnelHandler, + }, } return func(yield func(ServiceServer, error) bool) { diff --git a/internal/backend/grpc/tunnel.go b/internal/backend/grpc/tunnel.go new file mode 100644 index 00000000..16e77d0e --- /dev/null +++ b/internal/backend/grpc/tunnel.go @@ -0,0 +1,30 @@ +// 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 ( + "context" + + gateway "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" + "github.com/jhump/grpctunnel" + "github.com/jhump/grpctunnel/tunnelpb" + "google.golang.org/grpc" +) + +type tunnelServer struct { + handler *grpctunnel.TunnelServiceHandler +} + +func (t *tunnelServer) register(server grpc.ServiceRegistrar) { + service := t.handler.Service() + + tunnelpb.RegisterTunnelServiceServer(server, service) +} + +func (t *tunnelServer) gateway(context.Context, *gateway.ServeMux, string, []grpc.DialOption) error { + // no-op - don't register a gateway for the tunnel service + return nil +} diff --git a/internal/backend/runtime/omni/controllers/omni/infra_machine.go b/internal/backend/runtime/omni/controllers/omni/infra_machine.go new file mode 100644 index 00000000..b63de14b --- /dev/null +++ b/internal/backend/runtime/omni/controllers/omni/infra_machine.go @@ -0,0 +1,71 @@ +// Copyright (c) 2024 Sidero Labs, Inc. +// +// Use of this software is governed by the Business Source License +// included in the LICENSE file. + +package omni + +import ( + "context" + + "github.com/cosi-project/runtime/pkg/controller" + "github.com/cosi-project/runtime/pkg/controller/generic/qtransform" + "github.com/cosi-project/runtime/pkg/safe" + "github.com/cosi-project/runtime/pkg/state" + "github.com/siderolabs/gen/xerrors" + "go.uber.org/zap" + + "github.com/siderolabs/omni/client/pkg/omni/resources" + "github.com/siderolabs/omni/client/pkg/omni/resources/infra" + "github.com/siderolabs/omni/client/pkg/omni/resources/omni" +) + +// InfraMachineController manages InfraMachine resource lifecycle. +// +// InfraMachineController transforms an Omni Machine managed by a static infra provider to an infra.Machine, applying the user overrides in omni.InfraMachineConfig resource if present. +type InfraMachineController = qtransform.QController[*omni.MachineStatus, *infra.Machine] + +// NewInfraMachineController initializes InfraMachineController. +func NewInfraMachineController() *InfraMachineController { + return qtransform.NewQController( + qtransform.Settings[*omni.MachineStatus, *infra.Machine]{ + Name: "InfraMachineController", + MapMetadataFunc: func(omniMachine *omni.MachineStatus) *infra.Machine { + return infra.NewMachine(omniMachine.Metadata().ID()) + }, + UnmapMetadataFunc: func(infraMachine *infra.Machine) *omni.MachineStatus { + return omni.NewMachineStatus(resources.DefaultNamespace, infraMachine.Metadata().ID()) + }, + TransformFunc: func(ctx context.Context, r controller.Reader, _ *zap.Logger, status *omni.MachineStatus, infraMachine *infra.Machine) error { + _, isManagedByStaticInfraProvider := status.Metadata().Labels().Get(omni.LabelManagedByStaticInfraProvider) + if !isManagedByStaticInfraProvider { + return xerrors.NewTaggedf[qtransform.SkipReconcileTag]("machine is not managed by a static infra provider") + } + + _, isAllocated := status.Metadata().Labels().Get(omni.LabelCluster) + _, isInstalled := status.Metadata().Labels().Get(omni.MachineStatusLabelInstalled) + + infraMachine.TypedSpec().Value.Accepted = isAllocated + infraMachine.TypedSpec().Value.Installed = isAllocated && isInstalled // mark it as installed (should be booted from disk) only if it allocated and installed + + infraMachineConfig, err := safe.ReaderGetByID[*omni.InfraMachineConfig](ctx, r, infraMachine.Metadata().ID()) + if err != nil { + if state.IsNotFoundError(err) { + return nil // no override config, nothing to do + } + + return err + } + + // apply the overrides + infraMachine.TypedSpec().Value.PowerState = infraMachineConfig.TypedSpec().Value.PowerState + infraMachine.TypedSpec().Value.Accepted = infraMachineConfig.TypedSpec().Value.Accepted + + return nil + }, + }, + qtransform.WithExtraMappedInput( + qtransform.MapperSameID[*omni.InfraMachineConfig, *omni.MachineStatus](), + ), + ) +} diff --git a/internal/backend/runtime/omni/controllers/omni/machine.go b/internal/backend/runtime/omni/controllers/omni/machine.go index e86626a9..7d78edfc 100644 --- a/internal/backend/runtime/omni/controllers/omni/machine.go +++ b/internal/backend/runtime/omni/controllers/omni/machine.go @@ -17,6 +17,7 @@ import ( "go.uber.org/zap" "github.com/siderolabs/omni/client/pkg/omni/resources" + "github.com/siderolabs/omni/client/pkg/omni/resources/infra" "github.com/siderolabs/omni/client/pkg/omni/resources/omni" "github.com/siderolabs/omni/client/pkg/omni/resources/siderolink" "github.com/siderolabs/omni/internal/backend/runtime/omni/controllers/helpers" @@ -41,19 +42,30 @@ func NewMachineController() *MachineController { TransformFunc: func(ctx context.Context, r controller.Reader, _ *zap.Logger, link *siderolink.Link, machine *omni.Machine) error { var machineRequestSetID string - if _, ok := link.Metadata().Annotations().Get(omni.LabelInfraProviderID); ok { - _, ok = link.Metadata().Labels().Get(omni.LabelMachineRequest) - if !ok { - return xerrors.NewTaggedf[qtransform.SkipReconcileTag]( - "the link is created by the infra provider, but doesn't have the machine request label yet", - ) + infraProviderID, ok := link.Metadata().Annotations().Get(omni.LabelInfraProviderID) + if ok { + providerStatus, err := safe.ReaderGetByID[*infra.ProviderStatus](ctx, r, infraProviderID) + if err != nil { + return err } - machineRequestSetID, ok = link.Metadata().Labels().Get(omni.LabelMachineRequestSet) - if !ok { - return xerrors.NewTaggedf[qtransform.SkipReconcileTag]( - "the link is created by the infra provider, but doesn't have the machine request label yet", - ) + _, isStaticProvider := providerStatus.Metadata().Labels().Get(omni.LabelIsStaticInfraProvider) + if isStaticProvider { + machine.Metadata().Labels().Set(omni.LabelManagedByStaticInfraProvider, "") + } else { + _, ok = link.Metadata().Labels().Get(omni.LabelMachineRequest) + if !ok { + return xerrors.NewTaggedf[qtransform.SkipReconcileTag]( + "the link is created by the infra provider, but doesn't have the machine request label yet", + ) + } + + machineRequestSetID, ok = link.Metadata().Labels().Get(omni.LabelMachineRequestSet) + if !ok { + return xerrors.NewTaggedf[qtransform.SkipReconcileTag]( + "the link is created by the infra provider, but doesn't have the machine request label yet", + ) + } } } @@ -89,6 +101,9 @@ func NewMachineController() *MachineController { qtransform.WithExtraMappedInput( qtransform.MapperNone[*omni.MachineRequestSet](), ), + qtransform.WithExtraMappedInput( + qtransform.MapperNone[*infra.ProviderStatus](), + ), qtransform.WithConcurrency(4), ) } diff --git a/internal/backend/runtime/omni/infraprovider/state.go b/internal/backend/runtime/omni/infraprovider/state.go index a0439752..002740f0 100644 --- a/internal/backend/runtime/omni/infraprovider/state.go +++ b/internal/backend/runtime/omni/infraprovider/state.go @@ -108,8 +108,11 @@ func (st *State) Create(ctx context.Context, resource resource.Resource, option return err } - if infraProviderID != "" && resource.Metadata().Type() == infra.MachineRequestType { - return status.Errorf(codes.PermissionDenied, "infra providers are not allowed to create machine requests") + if infraProviderID != "" { + switch resource.Metadata().Type() { + case infra.MachineRequestType, infra.InfraMachineType: + return status.Errorf(codes.PermissionDenied, "infra providers are not allowed to create %q resources", resource.Metadata().Type()) + } } if infraProviderID == "" { @@ -137,7 +140,8 @@ func (st *State) Update(ctx context.Context, newResource resource.Resource, opts return st.innerState.Update(ctx, newResource, opts...) } - if newResource.Metadata().Type() == infra.MachineRequestType { + switch newResource.Metadata().Type() { + case infra.MachineRequestType, infra.InfraMachineType: oldMd := oldResource.Metadata().Copy() oldMd.Finalizers().Set(resource.Finalizers{}) @@ -145,7 +149,7 @@ func (st *State) Update(ctx context.Context, newResource resource.Resource, opts newMd.Finalizers().Set(resource.Finalizers{}) if !oldMd.Equal(newMd) { - return status.Errorf(codes.PermissionDenied, "infra providers are not allowed to update machine requests other than setting finalizers") + return status.Errorf(codes.PermissionDenied, "infra providers are not allowed to update %q resources other than setting finalizers", newResource.Metadata().Type()) } } diff --git a/internal/backend/runtime/omni/infraprovider/state_test.go b/internal/backend/runtime/omni/infraprovider/state_test.go index aa607a6a..a3c44bef 100644 --- a/internal/backend/runtime/omni/infraprovider/state_test.go +++ b/internal/backend/runtime/omni/infraprovider/state_test.go @@ -7,6 +7,7 @@ package infraprovider_test import ( "context" + "fmt" "testing" "time" @@ -38,7 +39,6 @@ import ( const ( infraProviderID = "qemu-1" talosVersion = "v1.2.3" - schematicID = "1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef" infraProviderResNamespace = resources.InfraProviderSpecificNamespacePrefix + infraProviderID ) @@ -58,66 +58,47 @@ func TestInfraProviderAccess(t *testing.T) { mr := infra.NewMachineRequest("test-mr") - // create - err := st.Create(ctx, mr) - assert.ErrorContains(t, err, "infra providers are not allowed to create machine requests") - - // prepare for update - mr.Metadata().Labels().Set(omni.LabelInfraProviderID, infraProviderID) - - mr.TypedSpec().Value.TalosVersion = talosVersion - - require.NoError(t, innerSt.Create(ctx, mr)) - - // update spec - _, err = safe.StateUpdateWithConflicts(ctx, st, mr.Metadata(), func(res *infra.MachineRequest) error { + testInfraProviderAccessInputResource(ctx, t, st, innerSt, mr, func(res *infra.MachineRequest) { + res.TypedSpec().Value.TalosVersion = talosVersion + }, func(res *infra.MachineRequest) error { res.TypedSpec().Value.TalosVersion = "v1.2.4" return nil + }, func(t *testing.T, err error) { + assert.True(t, validated.IsValidationError(err)) + assert.ErrorContains(t, err, "machine request spec is immutable") }) - assert.True(t, validated.IsValidationError(err)) - assert.ErrorContains(t, err, "machine request spec is immutable") - // update metadata labels - _, err = safe.StateUpdateWithConflicts(ctx, st, mr.Metadata(), func(res *infra.MachineRequest) error { - res.Metadata().Labels().Set("foo", "bar") + // InfraMachine - return nil - }) - assert.ErrorContains(t, err, "infra providers are not allowed to update machine requests other than setting finalizers") + infraMachine := infra.NewMachine("test-im") - // update metadata - add finalizer - _, err = safe.StateUpdateWithConflicts(ctx, st, mr.Metadata(), func(res *infra.MachineRequest) error { - res.Metadata().Finalizers().Add("foobar") + testInfraProviderAccessInputResource(ctx, t, st, innerSt, infraMachine, func(res *infra.Machine) { + res.TypedSpec().Value.PowerState = specs.MachinePowerState_POWER_STATE_ON + }, func(res *infra.Machine) error { + res.TypedSpec().Value.PowerState = specs.MachinePowerState_POWER_STATE_OFF return nil + }, func(t *testing.T, err error) { + require.NoError(t, err) }) - assert.NoError(t, err) // MachineRequestStatus - mrs := infra.NewMachineRequestStatus("test-mrs") - - // create - assert.NoError(t, st.Create(ctx, mrs)) - - // assert that the label is set - res, err := innerSt.Get(ctx, mrs.Metadata()) - require.NoError(t, err) + testInfraProviderAccessOutputResource(ctx, t, st, innerSt, infra.NewMachineRequestStatus("test-mrs"), func(res *infra.MachineRequestStatus) error { + res.TypedSpec().Value.Id = "12345" + res.TypedSpec().Value.Stage = specs.MachineRequestStatusSpec_PROVISIONING - cpID, _ := res.Metadata().Labels().Get(omni.LabelInfraProviderID) - assert.Equal(t, infraProviderID, cpID) + return nil + }) - // update - _, err = safe.StateUpdateWithConflicts(ctx, st, mrs.Metadata(), func(res *infra.MachineRequestStatus) error { - res.Metadata().Labels().Set("foo", "bar") + // InfraMachineStatus - res.TypedSpec().Value.Id = "12345" - res.TypedSpec().Value.Stage = specs.MachineRequestStatusSpec_PROVISIONING + testInfraProviderAccessOutputResource(ctx, t, st, innerSt, infra.NewMachineStatus("test-ims"), func(res *infra.MachineStatus) error { + res.TypedSpec().Value.PowerState = specs.MachinePowerState_POWER_STATE_ON return nil }) - assert.NoError(t, err) // InfraProviderStatus @@ -154,6 +135,58 @@ func TestInfraProviderAccess(t *testing.T) { assert.NoError(t, err) } +func testInfraProviderAccessInputResource[T resource.Resource](ctx context.Context, t *testing.T, st state.State, innerSt state.CoreState, + res T, prepareRes func(res T), updateRes func(res T) error, assertUpdateResult func(*testing.T, error), +) { + // create + err := st.Create(ctx, res) + assert.ErrorContains(t, err, fmt.Sprintf("infra providers are not allowed to create %q resources", res.Metadata().Type())) + + // prepare for update + res.Metadata().Labels().Set(omni.LabelInfraProviderID, infraProviderID) + + prepareRes(res) + + require.NoError(t, innerSt.Create(ctx, res)) + + // update spec + _, err = safe.StateUpdateWithConflicts(ctx, st, res.Metadata(), updateRes) + + assertUpdateResult(t, err) + + // update metadata labels + _, err = st.UpdateWithConflicts(ctx, res.Metadata(), func(res resource.Resource) error { + res.Metadata().Labels().Set("foo", "bar") + + return nil + }) + assert.ErrorContains(t, err, fmt.Sprintf("infra providers are not allowed to update %q resources other than setting finalizers", res.Metadata().Type())) + + // update metadata - add finalizer + _, err = st.UpdateWithConflicts(ctx, res.Metadata(), func(res resource.Resource) error { + res.Metadata().Finalizers().Add("foobar") + + return nil + }) + assert.NoError(t, err) +} + +func testInfraProviderAccessOutputResource[T resource.Resource](ctx context.Context, t *testing.T, st state.State, innerSt state.CoreState, res T, updateRes func(res T) error) { + // create + assert.NoError(t, st.Create(ctx, res)) + + // assert that the label is set + resAfterCreate, err := innerSt.Get(ctx, res.Metadata()) + require.NoError(t, err) + + cpID, _ := resAfterCreate.Metadata().Labels().Get(omni.LabelInfraProviderID) + assert.Equal(t, infraProviderID, cpID) + + // update + _, err = safe.StateUpdateWithConflicts(ctx, st, res.Metadata(), updateRes) + assert.NoError(t, err) +} + func TestInternalAccess(t *testing.T) { t.Parallel() diff --git a/internal/backend/runtime/omni/omni.go b/internal/backend/runtime/omni/omni.go index dcb841cf..2de035f1 100644 --- a/internal/backend/runtime/omni/omni.go +++ b/internal/backend/runtime/omni/omni.go @@ -257,6 +257,7 @@ func New(talosClientFactory *talos.ClientFactory, dnsService *dns.Service, workl omnictrl.NewMachineRequestSetStatusController(), omnictrl.NewClusterMachineRequestStatusController(), omnictrl.NewMachineTeardownController(), + omnictrl.NewInfraMachineController(), omnictrl.NewInfraProviderConfigPatchController(), } diff --git a/internal/backend/runtime/omni/state_access.go b/internal/backend/runtime/omni/state_access.go index 520708e8..0509c7c9 100644 --- a/internal/backend/runtime/omni/state_access.go +++ b/internal/backend/runtime/omni/state_access.go @@ -392,6 +392,7 @@ func filterAccess(ctx context.Context, access state.Access) error { omni.EtcdManualBackupType, omni.ImagePullRequestType, omni.ImagePullStatusType, + omni.InfraMachineConfigType, omni.KubernetesStatusType, omni.KubernetesUpgradeManifestStatusType, omni.KubernetesUpgradeStatusType, @@ -505,6 +506,8 @@ func filterAccessByType(access state.Access) error { case infra.MachineRequestType, // read-only for all except for InfraProvider role (checked in filterAccess) infra.MachineRequestStatusType, // read-only for all except for InfraProvider role (checked in filterAccess) + infra.InfraMachineType, // read-only for all except for InfraProvider role (checked in filterAccess) + infra.InfraMachineStatusType, // read-only for all except for InfraProvider role (checked in filterAccess) infra.InfraProviderStatusType, // read-only for all except for InfraProvider role (checked in filterAccess) omni.ClusterBootstrapStatusType, omni.ClusterDestroyStatusType, diff --git a/internal/backend/server.go b/internal/backend/server.go index ec292197..b9a7bca2 100644 --- a/internal/backend/server.go +++ b/internal/backend/server.go @@ -41,6 +41,7 @@ import ( grpc_recovery "github.com/grpc-ecosystem/go-grpc-middleware/recovery" grpc_ctxtags "github.com/grpc-ecosystem/go-grpc-middleware/tags" grpc_prometheus "github.com/grpc-ecosystem/go-grpc-prometheus" + "github.com/jhump/grpctunnel" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promhttp" service "github.com/siderolabs/discovery-service/pkg/service" @@ -64,6 +65,7 @@ import ( authres "github.com/siderolabs/omni/client/pkg/omni/resources/auth" omnires "github.com/siderolabs/omni/client/pkg/omni/resources/omni" "github.com/siderolabs/omni/client/pkg/panichandler" + "github.com/siderolabs/omni/internal/backend/baremetal" "github.com/siderolabs/omni/internal/backend/debug" "github.com/siderolabs/omni/internal/backend/dns" "github.com/siderolabs/omni/internal/backend/factory" @@ -206,6 +208,11 @@ func (s *Server) Run(ctx context.Context) error { return err } + tunnelHandler := s.buildGRPCTunnelHandler() //nolint:contextcheck + bareMetalClient := baremetal.NewClient(tunnelHandler, s.logger.With(logging.Component("baremetal_client"))) + + _ = bareMetalClient // todo: to be used later + services := grpcomni.MakeServiceServers( s.omniRuntime.State(), s.omniRuntime.CachedState(), @@ -216,6 +223,7 @@ func (s *Server) Run(ctx context.Context) error { s.imageFactoryClient, s.logger, s.auditor, + tunnelHandler, ) actualSrv, gtwyDialsTo, err := s.serverAndGateway(ctx, services, mux, serverOptions...) @@ -286,6 +294,37 @@ func (s *Server) Run(ctx context.Context) error { return eg.Wait() } +func (s *Server) buildGRPCTunnelHandler() *grpctunnel.TunnelServiceHandler { + debugLevel := s.logger.Level().Enabled(zap.DebugLevel) + + // todo: add auth to reject connections without proper headers + return grpctunnel.NewTunnelServiceHandler( + grpctunnel.TunnelServiceHandlerOptions{ + OnReverseTunnelOpen: func(channel grpctunnel.TunnelChannel) { + if !debugLevel { + return + } + + affinityKey := baremetal.GetAffinityKey(channel, s.logger) + + s.logger.Debug("reverse tunnel opened", zap.Stringer("affinity_key", affinityKey)) + }, + OnReverseTunnelClose: func(channel grpctunnel.TunnelChannel) { + if !debugLevel { + return + } + + affinityKey := baremetal.GetAffinityKey(channel, s.logger) + + s.logger.Debug("reverse tunnel closed", zap.Stringer("affinity_key", affinityKey)) + }, + AffinityKey: func(channel grpctunnel.TunnelChannel) any { + return baremetal.GetAffinityKey(channel, s.logger) + }, + }, + ) +} + func (s *Server) makeMux(oidcProvider *oidc.Provider) (*http.ServeMux, error) { imageFactoryHandler := handler.NewAuthConfig( handler.NewSignature(