promote EnvFiles to beta

This commit is contained in:
HirazawaUi 2025-10-04 17:42:17 +08:00
parent 0976b6ada3
commit 879d81ff06
3 changed files with 5 additions and 12 deletions

View file

@ -1232,6 +1232,7 @@ var defaultVersionedKubernetesFeatureGates = map[featuregate.Feature]featuregate
},
EnvFiles: {
{Version: version.MustParse("1.34"), Default: false, PreRelease: featuregate.Alpha},
{Version: version.MustParse("1.35"), Default: true, PreRelease: featuregate.Beta},
},
EventedPLEG: {
{Version: version.MustParse("1.26"), Default: false, PreRelease: featuregate.Alpha},

View file

@ -932,12 +932,6 @@ func (kl *Kubelet) makeEnvironmentVariables(pod *v1.Pod, container *v1.Container
return result, fmt.Errorf("failed to get host path for volume %q: %w", volume, err)
}
// Validate key length, must not exceed 128 characters.
// TODO: @HirazawaUi This limit will be relaxed after the EnvFiles feature gate beta stage.
if len(key) > 128 {
return result, fmt.Errorf("environment variable key %q exceeds maximum length of 128 characters", key)
}
// Construct the full path to the environment variable file
// by combining hostPath with the specified path in FileKeyRef
envFilePath, err := securejoin.SecureJoin(hostPath, f.Path)
@ -951,12 +945,6 @@ func (kl *Kubelet) makeEnvironmentVariables(pod *v1.Pod, container *v1.Container
return result, fmt.Errorf("couldn't parse env file")
}
// Validate value size, must not exceed 32KB.
// TODO: @HirazawaUi This limit will be relaxed after the EnvFiles feature gate beta stage.
if len(runtimeVal) > 32*1024 {
return result, fmt.Errorf("environment variable value for key %q exceeds maximum size of 32KB", key)
}
// If the key was not found, and it's not optional, return an error
if runtimeVal == "" {
if optional {

View file

@ -563,6 +563,10 @@
lockToDefault: false
preRelease: Alpha
version: "1.34"
- default: true
lockToDefault: false
preRelease: Beta
version: "1.35"
- name: EventedPLEG
versionedSpecs:
- default: false