Delete K8S Lease using Condition #6136
Replies: 2 comments
-
@Wallenstein7 : Could you please elaborate on your question? Are you asking about how to delete the Lease resource or add a precondition using the finalizer? |
Beta Was this translation helpful? Give feedback.
-
Hello, i want to delete a lease by defining a condition like "if lease has resource version = X" (what currently works only for "patch"). If the condition is fulfilled, the lease would be deleted, otherwise not. The reason for my question is the fact (as i understood), that the leases have NO TTL time which would delete them automatically (am i wrong here?) The standard java kubernetes-client provides DeleteOptions class which can be used to setup preconditions in the context of delete operation. |
Beta Was this translation helpful? Give feedback.
-
Hello,
K8S spec defines for leases a way to define condition when deleting the lease.
But how can i achive it using Fabric8 ?
Thx.
Beta Was this translation helpful? Give feedback.
All reactions