Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update config map key for Ignition #13

Merged
merged 1 commit into from
Mar 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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