Skip to content

Commit

Permalink
Add the information about the managedBy field
Browse files Browse the repository at this point in the history
  • Loading branch information
mimowo committed Mar 6, 2024
1 parent 6959fc0 commit 6a03f68
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions content/en/docs/concepts/workloads/controllers/job.md
Expand Up @@ -1006,6 +1006,23 @@ status:
terminating: 3 # three Pods are terminating and have not yet reached the Failed phase
```

### Delegation of managing a Job object to external controller

{{< feature-state for_k8s_version="v1.30" state="alpha" >}}

This feature allows delegating reconciliation of a Job object to an external
controller. Jobs with a custom value of the `spec.managedBy` field - any value
other than `kubernetes.io/job-controller` - are skipped by the job controller,
and their reconciliation is delegated to an external controller, indicated by
the value of the field. Jobs that don't have this field at all, or where the
field value is the reserved string `kubernetes.io/job-controller`, are reconciled
by the built-in job controller. The value of the field is immutable.

{{< note >}}
The external controller should not create pods with the finalizer name
`batch.kubernetes.io/job-tracking` reserved for the built-in controller.
{{< /note >}}

## Alternatives

### Bare Pods
Expand Down
@@ -1,5 +1,5 @@
---
title: JobManagedByLabel
title: JobManagedBy
content_type: feature_gate

_build:
Expand Down

0 comments on commit 6a03f68

Please sign in to comment.