@@ -52,10 +52,9 @@ type ServerBootConfigurationPXEReconciler struct {
52
52
}
53
53
54
54
const (
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"
59
58
)
60
59
61
60
//+kubebuilder:rbac:groups=metal.ironcore.dev,resources=serverbootconfigurations,verbs=get;list;watch
@@ -243,15 +242,16 @@ func (r *ServerBootConfigurationPXEReconciler) getLayerDigestsFromNestedManifest
243
242
}
244
243
245
244
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 {
248
248
targetManifestDesc = manifest
249
249
break
250
250
}
251
251
}
252
252
}
253
253
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 )
255
255
}
256
256
257
257
nestedData , err := fetchContent (ctx , resolver , name , targetManifestDesc )
0 commit comments