Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docs for Job managedBy field (alpha) #45132

Merged
merged 4 commits into from Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
21 changes: 21 additions & 0 deletions content/en/docs/concepts/workloads/controllers/job.md
Expand Up @@ -1006,6 +1006,27 @@ 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" >}}
mimowo marked this conversation as resolved.
Show resolved Hide resolved

This feature allows you to disable the built-in Job controller, for a specific
Job, and delegate reconciliation of the Job to an external controller.

By setting a custom value of the `spec.managedBy` field - any value
mimowo marked this conversation as resolved.
Show resolved Hide resolved
other than `kubernetes.io/job-controller` - you indicate the controller which
reconciles the Job. The value of the field is immutable.
mimowo marked this conversation as resolved.
Show resolved Hide resolved

{{< note >}}
When using this feature make sure the controller indicated by the field is
mimowo marked this conversation as resolved.
Show resolved Hide resolved
installed, otherwise the Job may not be reconciled at all.
{{< /note >}}

{{< note >}}
When developing an external Job controller make sure it does not use the
mimowo marked this conversation as resolved.
Show resolved Hide resolved
`batch.kubernetes.io/job-tracking` finalizer, reserved for the built-in controller.
mimowo marked this conversation as resolved.
Show resolved Hide resolved
{{< /note >}}

## Alternatives

### Bare Pods
Expand Down
@@ -0,0 +1,14 @@
---
title: JobManagedBy
content_type: feature_gate

_build:
list: never
render: false

stages:
- stage: alpha
defaultValue: false
fromVersion: "1.30"
---
Allows to delegate reconciliation of a Job object to an external controller.