Skip to content

Commit 47490b8

Browse files
committed
Add the information about the managedBy field
1 parent 6959fc0 commit 47490b8

File tree

2 files changed

+23
-2
lines changed
  • content/en/docs

2 files changed

+23
-2
lines changed

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,6 +1006,27 @@ status:
10061006
terminating: 3 # three Pods are terminating and have not yet reached the Failed phase
10071007
```
10081008
1009+
### Delegation of managing a Job object to external controller
1010+
1011+
{{< feature-state for_k8s_version="v1.30" state="alpha" >}}
1012+
1013+
This feature allows you to disable the built-in Job controller, for a specific
1014+
Job, and delegate reconciliation of the Job to an external controller.
1015+
1016+
By setting a custom value of the `spec.managedBy` field - any value
1017+
other than `kubernetes.io/job-controller` - you indicate the controller which
1018+
reconciles the Job. The value of the field is immutable.
1019+
1020+
{{< note >}}
1021+
When using this feature make sure the controller indicated by the field is
1022+
installed, otherwise the Job may not be reconciled at all.
1023+
{{< /note >}}
1024+
1025+
{{< note >}}
1026+
When developing an external Job controller make sure it does not use the
1027+
`batch.kubernetes.io/job-tracking` finalizer, reserved for the built-in controller.
1028+
{{< /note >}}
1029+
10091030
## Alternatives
10101031

10111032
### Bare Pods

content/en/docs/reference/command-line-tools-reference/feature-gates/job-managed-by-label.md renamed to content/en/docs/reference/command-line-tools-reference/feature-gates/job-managed-by.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
2-
title: JobManagedByLabel
2+
title: JobManagedBy
33
content_type: feature_gate
44

55
_build:
66
list: never
77
render: false
88

99
stages:
10-
- stage: beta
10+
- stage: alpha
1111
defaultValue: false
1212
fromVersion: "1.30"
1313
---

0 commit comments

Comments
 (0)