Merge pull request #41857 from helayoty/job-annotation

Update docs with the new Job annotation
pull/42471/head
Kubernetes Prow Robot 2023-08-08 20:29:50 -07:00 committed by GitHub
commit 686bfdcf62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

View File

@ -1060,6 +1060,19 @@ created with Indexed [completion mode](/docs/concepts/workloads/controllers/job/
Note the [PodIndexLabel](content/en/docs/reference/command-line-tools-reference/feature-gates.md) feature gate must be enabled
for this to be added as a pod **label**, otherwise it will just be an annotation.
### batch.kubernetes.io/cronjob-scheduled-timestamp
Type: Annotation
Example: `batch.kubernetes.io/cronjob-scheduled-timestamp: "2016-05-19T03:00:00-07:00"`
Used on: Jobs and Pods controlled by CronJobs
This annotation is used to record the original (expected) creation timestamp for a Job,
when that Job is part of a CronJob.
The control plane sets the value to that timestamp in RFC3339 format. If the Job belongs to a CronJob
with a timezone specified, then the timestamp is in that timezone. Otherwise, the timestamp is in controller-manager's local time.
### kubectl.kubernetes.io/default-container
Type: Annotation