Skip to content

Commit

Permalink
Update config map key for Ignition (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gchbg authored Mar 11, 2024
1 parent 9226d34 commit a4fb43f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions servers/grpc_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -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{
Expand Down

0 comments on commit a4fb43f

Please sign in to comment.