Skip to content

Commit 52e7d09

Browse files
committed
Fix handling of the new OCI spec
1 parent b6aab5f commit 52e7d09

File tree

4 files changed

+31
-4
lines changed

4 files changed

+31
-4
lines changed

api/v1alpha1/zz_generated.deepcopy.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go.mod

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,21 @@ require (
9595
go.uber.org/zap v1.27.0 // indirect
9696
go.yaml.in/yaml/v2 v2.4.2 // indirect
9797
golang.org/x/exp v0.0.0-20250506013437-ce4c2cf36ca6 // indirect
98+
<<<<<<< Updated upstream
9899
golang.org/x/net v0.42.0 // indirect
100+
=======
101+
golang.org/x/net v0.41.0 // indirect
102+
>>>>>>> Stashed changes
99103
golang.org/x/oauth2 v0.30.0 // indirect
100104
golang.org/x/sync v0.16.0 // indirect
101105
golang.org/x/sys v0.34.0 // indirect
102106
golang.org/x/term v0.33.0 // indirect
103107
golang.org/x/text v0.27.0 // indirect
108+
<<<<<<< Updated upstream
104109
golang.org/x/time v0.12.0 // indirect
110+
=======
111+
golang.org/x/time v0.11.0 // indirect
112+
>>>>>>> Stashed changes
105113
golang.org/x/tools v0.34.0 // indirect
106114
gomodules.xyz/jsonpatch/v2 v2.5.0 // indirect
107115
google.golang.org/genproto/googleapis/api v0.0.0-20250528174236-200df99c418a // indirect
@@ -120,5 +128,11 @@ require (
120128
sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8 // indirect
121129
sigs.k8s.io/randfill v1.0.0 // indirect
122130
sigs.k8s.io/structured-merge-diff/v4 v4.7.0 // indirect
131+
<<<<<<< Updated upstream
123132
sigs.k8s.io/yaml v1.5.0 // indirect
133+
=======
134+
sigs.k8s.io/yaml v1.6.0 // indirect
135+
>>>>>>> Stashed changes
124136
)
137+
138+
replace github.com/ironcore-dev/metal-operator => ../metal-operator

go.sum

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,6 @@ github.com/ironcore-dev/controller-utils v0.10.0 h1:nG+TsVMtxt6PLJrlLr2LePYd8cOx
107107
github.com/ironcore-dev/controller-utils v0.10.0/go.mod h1:ZGv1A78M0X2G20ex/7F5BbyHoG0+7U2IWfqvzHh8T+4=
108108
github.com/ironcore-dev/metal v0.0.0-20240624131301-18385f342755 h1:EmR3Ngg2wmOXJkxgsdYVuPXLRfwWmO2Fi+htjih6QGY=
109109
github.com/ironcore-dev/metal v0.0.0-20240624131301-18385f342755/go.mod h1:+/bmkghOE7acqXDT/LDH57RemaUzlVwnQjttsOjdoyg=
110-
github.com/ironcore-dev/metal-operator v0.0.0-20250610133926-d98b2dc3490d h1:tjgsCdPAIxSVXFltvZJMwsmDV9HwWmTIWT7IHB75tX4=
111-
github.com/ironcore-dev/metal-operator v0.0.0-20250610133926-d98b2dc3490d/go.mod h1:fg7UQdLK3+VSEf6wIRggUkjOgErZlnq+12IAJJZ04bY=
112110
github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY=
113111
github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y=
114112
github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM=
@@ -238,8 +236,13 @@ golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn
238236
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
239237
golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
240238
golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
239+
<<<<<<< Updated upstream
241240
golang.org/x/net v0.42.0 h1:jzkYrhi3YQWD6MLBJcsklgQsoAcw89EcZbJw8Z614hs=
242241
golang.org/x/net v0.42.0/go.mod h1:FF1RA5d3u7nAYA4z2TkclSCKh68eSXtiFwcWQpPXdt8=
242+
=======
243+
golang.org/x/net v0.41.0 h1:vBTly1HeNPEn3wtREYfy4GZ/NECgw2Cnl+nK6Nz3uvw=
244+
golang.org/x/net v0.41.0/go.mod h1:B/K4NNqkfmg07DQYrbwvSluqCJOOXwUjeb/5lOisjbA=
245+
>>>>>>> Stashed changes
243246
golang.org/x/oauth2 v0.30.0 h1:dnDm7JmhM45NNpd8FDDeLhK6FwqbOf4MLCM9zb1BOHI=
244247
golang.org/x/oauth2 v0.30.0/go.mod h1:B++QgG3ZKulg6sRPGD/mqlHQs5rB3Ml9erfeDY7xKlU=
245248
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
@@ -259,8 +262,13 @@ golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
259262
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
260263
golang.org/x/text v0.27.0 h1:4fGWRpyh641NLlecmyl4LOe6yDdfaYNrGb2zdfo4JV4=
261264
golang.org/x/text v0.27.0/go.mod h1:1D28KMCvyooCX9hBiosv5Tz/+YLxj0j7XhWjpSUF7CU=
265+
<<<<<<< Updated upstream
262266
golang.org/x/time v0.12.0 h1:ScB/8o8olJvc+CQPWrK3fPZNfh7qgwCrY0zJmoEQLSE=
263267
golang.org/x/time v0.12.0/go.mod h1:CDIdPxbZBQxdj6cxyCIdrNogrJKMJ7pr37NYpMcMDSg=
268+
=======
269+
golang.org/x/time v0.11.0 h1:/bpjEDfN9tkoN/ryeYHnv5hcMlc8ncjMcM4XBk5NWV0=
270+
golang.org/x/time v0.11.0/go.mod h1:CDIdPxbZBQxdj6cxyCIdrNogrJKMJ7pr37NYpMcMDSg=
271+
>>>>>>> Stashed changes
264272
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
265273
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
266274
golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
@@ -321,5 +329,10 @@ sigs.k8s.io/randfill v1.0.0/go.mod h1:XeLlZ/jmk4i1HRopwe7/aU3H5n1zNUcX6TM94b3QxO
321329
sigs.k8s.io/structured-merge-diff/v4 v4.7.0 h1:qPeWmscJcXP0snki5IYF79Z8xrl8ETFxgMd7wez1XkI=
322330
sigs.k8s.io/structured-merge-diff/v4 v4.7.0/go.mod h1:dDy58f92j70zLsuZVuUX5Wp9vtxXpaZnkPGWeqDfCps=
323331
sigs.k8s.io/yaml v1.4.0/go.mod h1:Ejl7/uTz7PSA4eKMyQCUTnhZYNmLIl+5c2lQPGR2BPY=
332+
<<<<<<< Updated upstream
324333
sigs.k8s.io/yaml v1.5.0 h1:M10b2U7aEUY6hRtU870n2VTPgR5RZiL/I6Lcc2F4NUQ=
325334
sigs.k8s.io/yaml v1.5.0/go.mod h1:wZs27Rbxoai4C0f8/9urLZtZtF3avA3gKvGyPdDqTO4=
335+
=======
336+
sigs.k8s.io/yaml v1.6.0 h1:G8fkbMSAFqgEFgh4b1wmtzDnioxFCUgTZhlbj5P9QYs=
337+
sigs.k8s.io/yaml v1.6.0/go.mod h1:796bPqUfzR/0jLAl6XjHl3Ck7MiyVv8dbTdyT3/pMf4=
338+
>>>>>>> Stashed changes

internal/controller/serverbootconfiguration_pxe_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,12 +228,12 @@ func (r *ServerBootConfigurationPXEReconciler) getLayerDigestsFromNestedManifest
228228
return "", "", "", fmt.Errorf("failed to resolve image reference: %w", err)
229229
}
230230

231-
targetManifestDesc := desc
232231
manifestData, err := fetchContent(ctx, resolver, name, desc)
233232
if err != nil {
234233
return "", "", "", fmt.Errorf("failed to fetch manifest data: %w", err)
235234
}
236235

236+
var targetManifestDesc ocispec.Descriptor
237237
var manifest ocispec.Manifest
238238
if err := json.Unmarshal(manifestData, &manifest); err != nil {
239239
return "", "", "", fmt.Errorf("failed to unmarshal index manifest: %w", err)

0 commit comments

Comments
 (0)