Skip to content

Commit

Permalink
set format key in default ignition secret (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
defo89 authored Aug 7, 2024
1 parent 4425e4a commit 2289cae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/controller/server_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ import (

const (
DefaultIgnitionSecretKeyName = "ignition"
DefaultIgnitionFormatKey = "format"
DefaultIgnitionFormatValue = "fcos"
ServerFinalizer = "metal.ironcore.dev/server"
InternalAnnotationTypeKeyName = "metal.ironcore.dev/type"
InternalAnnotationTypeValue = "Internal"
Expand Down Expand Up @@ -408,6 +410,7 @@ func (r *ServerReconciler) applyDefaultIgnitionForServer(ctx context.Context, lo
Name: bootConfig.Name,
},
Data: map[string][]byte{
DefaultIgnitionFormatKey: []byte(DefaultIgnitionFormatValue),
DefaultIgnitionSecretKeyName: ignitionData,
},
}
Expand Down

0 comments on commit 2289cae

Please sign in to comment.