Skip to content

Commit 1fcbaf7

Browse files
authored
Merge pull request #32333 from tengqm/suspendjob-ga
Promote SuspendJob to GA
2 parents d9152cd + bccba87 commit 1fcbaf7

File tree

2 files changed

+16
-11
lines changed

2 files changed

+16
-11
lines changed

content/en/docs/concepts/workloads/controllers/job.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ You can run the example with this command:
4242
```shell
4343
kubectl apply -f https://kubernetes.io/examples/controllers/job.yaml
4444
```
45+
4546
The output is similar to this:
47+
4648
```
4749
job.batch/pi created
4850
```
@@ -52,7 +54,9 @@ Check on the status of the Job with `kubectl`:
5254
```shell
5355
kubectl describe jobs/pi
5456
```
57+
5558
The output is similar to this:
59+
5660
```
5761
Name: pi
5862
Namespace: default
@@ -97,7 +101,9 @@ To list all the Pods that belong to a Job in a machine readable form, you can us
97101
pods=$(kubectl get pods --selector=job-name=pi --output=jsonpath='{.items[*].metadata.name}')
98102
echo $pods
99103
```
104+
100105
The output is similar to this:
106+
101107
```
102108
pi-5rwd7
103109
```
@@ -110,7 +116,9 @@ View the standard output of one of the pods:
110116
```shell
111117
kubectl logs $pods
112118
```
119+
113120
The output is similar to this:
121+
114122
```shell
115123
3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632788659361533818279682303019520353018529689957736225994138912497217752834791315155748572424541506959508295331168617278558890750983817546374649393192550604009277016711390098488240128583616035637076601047101819429555961989467678374494482553797747268471040475346462080466842590694912933136770289891521047521620569660240580381501935112533824300355876402474964732639141992726042699227967823547816360093417216412199245863150302861829745557067498385054945885869269956909272107975093029553211653449872027559602364806654991198818347977535663698074265425278625518184175746728909777727938000816470600161452491921732172147723501414419735685481613611573525521334757418494684385233239073941433345477624168625189835694855620992192221842725502542568876717904946016534668049886272327917860857843838279679766814541009538837863609506800642251252051173929848960841284886269456042419652850222106611863067442786220391949450471237137869609563643719172874677646575739624138908658326459958133904780275901
116124
```
@@ -425,13 +433,7 @@ Here, `W` is the number of work items.
425433

426434
### Suspending a Job
427435

428-
{{< feature-state for_k8s_version="v1.22" state="beta" >}}
429-
430-
{{< note >}}
431-
In Kubernetes version 1.21, this feature was in alpha, which required additional
432-
steps to enable this feature; make sure to read the [right documentation for the
433-
version of Kubernetes you're using](/docs/home/supported-doc-versions/).
434-
{{< /note >}}
436+
{{< feature-state for_k8s_version="v1.24" state="stable" >}}
435437

436438
When a Job is created, the Job controller will immediately begin creating Pods
437439
to satisfy the Job's requirements and will continue to do so until the Job is
@@ -482,7 +484,7 @@ suspended in the past:
482484
kubectl get jobs/myjob -o yaml
483485
```
484486

485-
```json
487+
```yaml
486488
apiVersion: batch/v1
487489
kind: Job
488490
# .metadata and .spec omitted
@@ -581,7 +583,9 @@ Before deleting it, you make a note of what selector it uses:
581583
```shell
582584
kubectl get job old -o yaml
583585
```
586+
584587
The output is similar to this:
588+
585589
```yaml
586590
kind: Job
587591
metadata:
@@ -706,4 +710,4 @@ object, but maintains complete control over what Pods are created and how work i
706710
object definition to understand the API for jobs.
707711
* Read about [`CronJob`](/docs/concepts/workloads/controllers/cron-jobs/), which you
708712
can use to define a series of Jobs that will run based on a schedule, similar to
709-
the Unix tool `cron`.
713+
the UNIX tool `cron`.

content/en/docs/reference/command-line-tools-reference/feature-gates.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,6 @@ different Kubernetes components.
199199
| `StorageVersionAPI` | `false` | Alpha | 1.20 | |
200200
| `StorageVersionHash` | `false` | Alpha | 1.14 | 1.14 |
201201
| `StorageVersionHash` | `true` | Beta | 1.15 | |
202-
| `SuspendJob` | `false` | Alpha | 1.21 | 1.21 |
203-
| `SuspendJob` | `true` | Beta | 1.22 | |
204202
| `TopologyAwareHints` | `false` | Alpha | 1.21 | 1.22 |
205203
| `TopologyAwareHints` | `false` | Beta | 1.23 | |
206204
| `TopologyManager` | `false` | Alpha | 1.16 | 1.17 |
@@ -469,6 +467,9 @@ different Kubernetes components.
469467
| `SupportPodPidsLimit` | `false` | Alpha | 1.10 | 1.13 |
470468
| `SupportPodPidsLimit` | `true` | Beta | 1.14 | 1.19 |
471469
| `SupportPodPidsLimit` | `true` | GA | 1.20 | - |
470+
| `SuspendJob` | `false` | Alpha | 1.21 | 1.21 |
471+
| `SuspendJob` | `true` | Beta | 1.22 | 1.23 |
472+
| `SuspendJob` | `true` | GA | 1.24 | |
472473
| `Sysctls` | `true` | Beta | 1.11 | 1.20 |
473474
| `Sysctls` | `true` | GA | 1.21 | |
474475
| `TTLAfterFinished` | `false` | Alpha | 1.12 | 1.20 |

0 commit comments

Comments
 (0)