Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Feature: Allow users of LeaseLock to add custom object metadata that updates on leader election #1413

Copy link
Copy link
Open
kubernetes/kubernetes
#131632
kubernetes/kubernetes#131632
@DerekFrank

Description

@DerekFrank
Issue body actions

What Problem are you trying to solve?

We have a use case where we would like to dynamically label a lease with the availability zone of the holder. This would allow us to be able to easily identify which replica holds the lease.

This would be a non-breaking change as users would need to opt in to setting custom metadata.

Are there any workarounds?

We can implement a custom controller that reconciles against the lease and tries to modify the existing labels, but this reconciliation would need be guaranteed to happen within the LeaseDuration in order to avoid race conditions. This is not ideal.

If there are no objections, I will be working to add this functionality in a follow up PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.