Promote job creation timestamp annotation to stable

Signed-off-by: Maciej Szulik <soltysh@gmail.com>
This commit is contained in:
Maciej Szulik 2024-10-25 16:09:54 +02:00
parent d9b95ea94f
commit db94009981
No known key found for this signature in database
GPG Key ID: F15E55D276FA84C4
4 changed files with 7 additions and 1 deletions

View File

@ -147,6 +147,8 @@ const (
ContainerCheckpoint featuregate.Feature = "ContainerCheckpoint" ContainerCheckpoint featuregate.Feature = "ContainerCheckpoint"
// owner: @helayoty // owner: @helayoty
// kep: https://kep.k8s.io/4026
//
// Set the scheduled time as an annotation in the job. // Set the scheduled time as an annotation in the job.
CronJobsScheduledAnnotation featuregate.Feature = "CronJobsScheduledAnnotation" CronJobsScheduledAnnotation featuregate.Feature = "CronJobsScheduledAnnotation"

View File

@ -114,6 +114,7 @@ var defaultVersionedKubernetesFeatureGates = map[featuregate.Feature]featuregate
CronJobsScheduledAnnotation: { CronJobsScheduledAnnotation: {
{Version: version.MustParse("1.28"), Default: true, PreRelease: featuregate.Beta}, {Version: version.MustParse("1.28"), Default: true, PreRelease: featuregate.Beta},
{Version: version.MustParse("1.32"), Default: true, PreRelease: featuregate.GA, LockToDefault: true}, // remove in 1.35
}, },
// inherited features from apiextensions-apiserver, relisted here to get a conflict if it is changed // inherited features from apiextensions-apiserver, relisted here to get a conflict if it is changed

View File

@ -29,7 +29,6 @@ const (
// CronJobScheduledTimestampAnnotation is the scheduled timestamp annotation for the Job. // CronJobScheduledTimestampAnnotation is the scheduled timestamp annotation for the Job.
// It records the original/expected scheduled timestamp for the running job, represented in RFC3339. // It records the original/expected scheduled timestamp for the running job, represented in RFC3339.
// The CronJob controller adds this annotation if the CronJobsScheduledAnnotation feature gate (beta in 1.28) is enabled.
CronJobScheduledTimestampAnnotation = labelPrefix + "cronjob-scheduled-timestamp" CronJobScheduledTimestampAnnotation = labelPrefix + "cronjob-scheduled-timestamp"
JobCompletionIndexAnnotation = labelPrefix + "job-completion-index" JobCompletionIndexAnnotation = labelPrefix + "job-completion-index"

View File

@ -286,6 +286,10 @@
lockToDefault: false lockToDefault: false
preRelease: Beta preRelease: Beta
version: "1.28" version: "1.28"
- default: true
lockToDefault: true
preRelease: GA
version: "1.32"
- name: CrossNamespaceVolumeDataSource - name: CrossNamespaceVolumeDataSource
versionedSpecs: versionedSpecs:
- default: false - default: false