From 525ff1937e5f9e7fa1c8c22a53d3a020b498b32a Mon Sep 17 00:00:00 2001 From: Georgi Chulkov Date: Mon, 11 Mar 2024 16:49:16 +0100 Subject: [PATCH] Update config map key for Ignition --- servers/grpc_server.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/servers/grpc_server.go b/servers/grpc_server.go index 72931cb..041dd2c 100644 --- a/servers/grpc_server.go +++ b/servers/grpc_server.go @@ -162,9 +162,9 @@ func (s *GRPCServer) ListMachines(ctx context.Context, req *irimachinev1alpha1.L continue } var ignition []byte - ignition, ok = bootMap.BinaryData["ignition-customer"] + ignition, ok = bootMap.BinaryData["ignition-custom"] if !ok { - _ = internalError(ctx, fmt.Errorf("reserved machine has no ignition-customer in boot configmap")) + _ = internalError(ctx, fmt.Errorf("reserved machine has no ignition-custom in boot configmap")) continue } @@ -311,7 +311,7 @@ func (s *GRPCServer) CreateMachine(ctx context.Context, req *irimachinev1alpha1. "image": image, } bootMapBinaryData := map[string][]byte{ - "ignition-customer": reqSpec.GetIgnitionData(), + "ignition-custom": reqSpec.GetIgnitionData(), } bootMapApply := v1apply.ConfigMap(fmt.Sprintf("ipxe-%s", machine.Name), machine.Namespace).WithData(bootMapData).WithBinaryData(bootMapBinaryData) bootMap := &v1.ConfigMap{