Skip to content

Commit 63a7865

Browse files
committed
DRA CEL: properly define IntroducedVersion
Using 1.0 was a workaround to grant Kubernetes 1.31 access to things introduce in that same release. In Kubernetes 1.32 we don't need that workaround anymore because everything is still available after a downgrade and thus usable.
1 parent ea51d97 commit 63a7865

File tree

1 file changed

+1
-6
lines changed
  • staging/src/k8s.io/dynamic-resource-allocation/cel

1 file changed

+1
-6
lines changed

staging/src/k8s.io/dynamic-resource-allocation/cel/compile.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -261,12 +261,7 @@ func mustBuildEnv() *environment.EnvSet {
261261

262262
versioned := []environment.VersionedOptions{
263263
{
264-
// Feature epoch was actually 1.31, but we artificially set it to 1.0 because these
265-
// options should always be present.
266-
//
267-
// TODO (https://github.com/kubernetes/kubernetes/issues/123687): set this
268-
// version properly before going to beta.
269-
IntroducedVersion: version.MajorMinor(1, 0),
264+
IntroducedVersion: version.MajorMinor(1, 31),
270265
EnvOptions: []cel.EnvOption{
271266
cel.Variable(deviceVar, deviceType.CelType()),
272267

0 commit comments

Comments
 (0)