@@ -52,10 +52,9 @@ type ServerBootConfigurationPXEReconciler struct {
5252}
5353
5454const (
55- MediaTypeKernel = "application/io.gardenlinux.kernel"
56- MediaTypeInitrd = "application/io.gardenlinux.initrd"
57- MediaTypeSquashFS = "application/io.gardenlinux.squashfs"
58- CNAMEPrefixMetalPXE = "metal_pxe"
55+ MediaTypeKernel = "application/vnd.ironcore.image.kernel"
56+ MediaTypeInitrd = "application/vnd.ironcore.image.initramfs"
57+ MediaTypeSquashFS = "application/vnd.ironcore.image.squashfs"
5958)
6059
6160//+kubebuilder:rbac:groups=metal.ironcore.dev,resources=serverbootconfigurations,verbs=get;list;watch
@@ -243,15 +242,16 @@ func (r *ServerBootConfigurationPXEReconciler) getLayerDigestsFromNestedManifest
243242 }
244243
245244 for _ , manifest := range indexManifest .Manifests {
246- if strings .HasPrefix (manifest .Annotations ["cname" ], CNAMEPrefixMetalPXE ) {
247- if manifest .Annotations ["architecture" ] == r .Architecture {
245+ platform := manifest .Platform
246+ if manifest .Platform != nil {
247+ if platform .Architecture == r .Architecture {
248248 targetManifestDesc = manifest
249249 break
250250 }
251251 }
252252 }
253253 if targetManifestDesc .Digest == "" {
254- return "" , "" , "" , fmt .Errorf ("failed to find target manifest with cname annotation" )
254+ return "" , "" , "" , fmt .Errorf ("failed to find target manifest with architecture %s" , r . Architecture )
255255 }
256256
257257 nestedData , err := fetchContent (ctx , resolver , name , targetManifestDesc )
0 commit comments