You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the operator SDK for the Ansible operator lacks options to customize the leader election resource lock behavior. This limits the flexibility of the operator and prevents users from adjusting lease duration and renew deadline according to their specific needs.
6
+
7
+
Changes:
8
+
Implemented enhancements to the operator SDK to include additional flags for configuring leader election resource lock options. These changes provide users with the ability to specify the type of resource object used for locking during leader election and customize the lease duration and renew deadline.
9
+
10
+
Introduced --leader-elect-lease-duration flag to allow users to define the duration that non-leader candidates will wait to force acquire leadership. The default duration is set to 15 seconds.
11
+
12
+
Introduced --leader-elect-renew-deadline flag, enabling users to set the renew deadline, which determines the duration that the acting control plane will retry refreshing leadership before giving up. The default duration is set to 10 seconds.
13
+
14
+
Introduced --leader-elect-resource-lock flag to allow users to define the type of resource object that is used for locking during leader election. Supported options are 'leases', 'endpointsleases', and 'configmapsleases'. The default option is 'leases'.
15
+
16
+
These changes provide more flexibility and control over leader election behavior, allowing operators to adapt to various deployment scenarios and specific requirements.
17
+
18
+
# kind is one of:
19
+
# - addition
20
+
# - change
21
+
# - deprecation
22
+
# - removal
23
+
# - bugfix
24
+
kind: "addition"
25
+
26
+
# Is this a breaking change?
27
+
breaking: false
28
+
29
+
# NOTE: ONLY USE `pull_request_override` WHEN ADDING THIS
30
+
# FILE FOR A PREVIOUSLY MERGED PULL_REQUEST!
31
+
#
32
+
# The generator auto-detects the PR number from the commit
33
+
# message in which this file was originally added.
34
+
#
35
+
# What is the pull request number (without the "#")?
36
+
# pull_request_override: 0
37
+
38
+
39
+
# Migration can be defined to automatically add a section to
40
+
# the migration guide. This is required for breaking changes.
41
+
migration:
42
+
header: Header text for the migration section
43
+
body: |
44
+
Body of the migration section. This should be formatted as markdown and can
45
+
span multiple lines.
46
+
47
+
Using the YAML string '|' operator means that newlines in this string will
48
+
be honored and interpretted as newlines in the rendered markdown.
0 commit comments