Comments (6)
I realized that this works out of the box when specifying the finalizers field in metadata:
apiVersion: batch/v1
kind: Job
metadata:
finalizers:
- foregroundDeletion
At this point, I wonder:
- Should this be the default behaviour for this operator? Ex: finalizers are not specified -> default to foreground deletion ?
- Other option, add some documentation on this topic and call it a day?
from kubernetesjoboperator.
Hi, this should be already happening. Notice in the operator help,
Added yaml values:
metadata.finalizers += foregroundDeletion
Location in code,
If this is not happening then it's a bug. Can you please post your Job yaml? This feature is working in my cluster.
from kubernetesjoboperator.
Just tried, on a Kubernetes v1.17.4 cluster:
This works:
apiVersion: batch/v1
kind: Job
metadata:
finalizers:
- foregroundDeletion
This doesn't delete pods.
apiVersion: batch/v1
kind: Job
#metadata:
# finalizers:
# - foregroundDeletion
from kubernetesjoboperator.
There was a bug there.
Will send a PR soon.
from kubernetesjoboperator.
Please see PR: #29
from kubernetesjoboperator.
Hi, been a while. If you can add a testimonial, that would be fantastic. Here: #40
from kubernetesjoboperator.
Related Issues (20)
- Duplicate pod logs HOT 4
- Connection reset by peer on long job run HOT 14
- Get pod logs when multiple containers are used HOT 7
- Uses cases and testimonials HOT 3
- Executing each task without restarting pods for every task HOT 7
- Is KubernetesJobOperator compatible with Apache Airflow >= v2.0? HOT 10
- FEATURE: Delete all completed tasks, regardless the final result of the task (successful or failed). HOT 24
- Investigate warnings HOT 3
- Secrets not found HOT 1
- FEATURE: Refresh aws token HOT 13
- Error after upgrading to airflow 2.3.3 HOT 2
- Cannot create resource "jobs" HOT 1
- No logs from pod HOT 3
- Any specific setup on kubernetes? HOT 22
- ConnectionResetError: [Errno 104] Connection reset by peer HOT 5
- Running task logs is incomplete HOT 12
- FEATURE: need 'templates_dict' to ensure proper rendering of time macros. HOT 2
- FEATURE: TaskFlow / Decorated Task HOT 1
- Delete the job due to an error triggered by chunk.decode("utf8"). HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kubernetesjoboperator.