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.
This commit is contained in:
Patrick Ohly 2024-11-01 13:11:19 +01:00
parent ea51d975fc
commit 63a7865736

View File

@ -261,12 +261,7 @@ func mustBuildEnv() *environment.EnvSet {
versioned := []environment.VersionedOptions{
{
// Feature epoch was actually 1.31, but we artificially set it to 1.0 because these
// options should always be present.
//
// TODO (https://github.com/kubernetes/kubernetes/issues/123687): set this
// version properly before going to beta.
IntroducedVersion: version.MajorMinor(1, 0),
IntroducedVersion: version.MajorMinor(1, 31),
EnvOptions: []cel.EnvOption{
cel.Variable(deviceVar, deviceType.CelType()),