File tree Expand file tree Collapse file tree 11 files changed +115
-0
lines changed
common/kustomize/v1/scaffolds/internal/templates/config/manager
golang/v3/scaffolds/internal/templates
project-v3-config/config/manager Expand file tree Collapse file tree 11 files changed +115
-0
lines changed Original file line number Diff line number Diff line change @@ -55,4 +55,14 @@ webhook:
55
55
leaderElection:
56
56
leaderElect: true
57
57
resourceName: {{ hashFNV .Repo }}.{{ .Domain }}
58
+ # leaderElectionReleaseOnCancel defines if the leader should step down volume
59
+ # when the Manager ends. This requires the binary to immediately end when the
60
+ # Manager is stopped, otherwise, this setting is unsafe. Setting this significantly
61
+ # speeds up voluntary leader transitions as the new leader don't have to wait
62
+ # LeaseDuration time first.
63
+ # In the default scaffold provided, the program ends immediately after
64
+ # the manager stops, so would be fine to enable this option. However,
65
+ # if you are doing or is intended to do any operation such as perform cleanups
66
+ # after the manager stops then its usage might be unsafe.
67
+ # leaderElectionReleaseOnCancel: true
58
68
`
Original file line number Diff line number Diff line change @@ -245,6 +245,17 @@ func main() {
245
245
HealthProbeBindAddress: probeAddr,
246
246
LeaderElection: enableLeaderElection,
247
247
LeaderElectionID: "{{ hashFNV .Repo }}.{{ .Domain }}",
248
+ // LeaderElectionReleaseOnCancel defines if the leader should step down voluntarily
249
+ // when the Manager ends. This requires the binary to immediately end when the
250
+ // Manager is stopped, otherwise, this setting is unsafe. Setting this significantly
251
+ // speeds up voluntary leader transitions as the new leader don't have to wait
252
+ // LeaseDuration time first.
253
+ //
254
+ // In the default scaffold provided, the program ends immediately after
255
+ // the manager stops, so would be fine to enable this option. However,
256
+ // if you are doing or is intended to do any operation such as perform cleanups
257
+ // after the manager stops then its usage might be unsafe.
258
+ // LeaderElectionReleaseOnCancel: true,
248
259
})
249
260
{{- else }}
250
261
var err error
Original file line number Diff line number Diff line change @@ -9,3 +9,13 @@ webhook:
9
9
leaderElection :
10
10
leaderElect : true
11
11
resourceName : 52ea9610.testproject.org
12
+ # leaderElectionReleaseOnCancel defines if the leader should step down volume
13
+ # when the Manager ends. This requires the binary to immediately end when the
14
+ # Manager is stopped, otherwise, this setting is unsafe. Setting this significantly
15
+ # speeds up voluntary leader transitions as the new leader don't have to wait
16
+ # LeaseDuration time first.
17
+ # In the default scaffold provided, the program ends immediately after
18
+ # the manager stops, so would be fine to enable this option. However,
19
+ # if you are doing or is intended to do any operation such as perform cleanups
20
+ # after the manager stops then its usage might be unsafe.
21
+ # leaderElectionReleaseOnCancel: true
Original file line number Diff line number Diff line change @@ -72,6 +72,17 @@ func main() {
72
72
HealthProbeBindAddress : probeAddr ,
73
73
LeaderElection : enableLeaderElection ,
74
74
LeaderElectionID : "52ea9610.testproject.org" ,
75
+ // LeaderElectionReleaseOnCancel defines if the leader should step down voluntarily
76
+ // when the Manager ends. This requires the binary to immediately end when the
77
+ // Manager is stopped, otherwise, this setting is unsafe. Setting this significantly
78
+ // speeds up voluntary leader transitions as the new leader don't have to wait
79
+ // LeaseDuration time first.
80
+ //
81
+ // In the default scaffold provided, the program ends immediately after
82
+ // the manager stops, so would be fine to enable this option. However,
83
+ // if you are doing or is intended to do any operation such as perform cleanups
84
+ // after the manager stops then its usage might be unsafe.
85
+ // LeaderElectionReleaseOnCancel: true,
75
86
})
76
87
if err != nil {
77
88
setupLog .Error (err , "unable to start manager" )
Original file line number Diff line number Diff line change @@ -9,3 +9,13 @@ webhook:
9
9
leaderElection :
10
10
leaderElect : true
11
11
resourceName : 6858fb70.testproject.org
12
+ # leaderElectionReleaseOnCancel defines if the leader should step down volume
13
+ # when the Manager ends. This requires the binary to immediately end when the
14
+ # Manager is stopped, otherwise, this setting is unsafe. Setting this significantly
15
+ # speeds up voluntary leader transitions as the new leader don't have to wait
16
+ # LeaseDuration time first.
17
+ # In the default scaffold provided, the program ends immediately after
18
+ # the manager stops, so would be fine to enable this option. However,
19
+ # if you are doing or is intended to do any operation such as perform cleanups
20
+ # after the manager stops then its usage might be unsafe.
21
+ # leaderElectionReleaseOnCancel: true
Original file line number Diff line number Diff line change @@ -9,3 +9,13 @@ webhook:
9
9
leaderElection :
10
10
leaderElect : true
11
11
resourceName : 14be1926.testproject.org
12
+ # leaderElectionReleaseOnCancel defines if the leader should step down volume
13
+ # when the Manager ends. This requires the binary to immediately end when the
14
+ # Manager is stopped, otherwise, this setting is unsafe. Setting this significantly
15
+ # speeds up voluntary leader transitions as the new leader don't have to wait
16
+ # LeaseDuration time first.
17
+ # In the default scaffold provided, the program ends immediately after
18
+ # the manager stops, so would be fine to enable this option. However,
19
+ # if you are doing or is intended to do any operation such as perform cleanups
20
+ # after the manager stops then its usage might be unsafe.
21
+ # leaderElectionReleaseOnCancel: true
Original file line number Diff line number Diff line change @@ -97,6 +97,17 @@ func main() {
97
97
HealthProbeBindAddress : probeAddr ,
98
98
LeaderElection : enableLeaderElection ,
99
99
LeaderElectionID : "14be1926.testproject.org" ,
100
+ // LeaderElectionReleaseOnCancel defines if the leader should step down voluntarily
101
+ // when the Manager ends. This requires the binary to immediately end when the
102
+ // Manager is stopped, otherwise, this setting is unsafe. Setting this significantly
103
+ // speeds up voluntary leader transitions as the new leader don't have to wait
104
+ // LeaseDuration time first.
105
+ //
106
+ // In the default scaffold provided, the program ends immediately after
107
+ // the manager stops, so would be fine to enable this option. However,
108
+ // if you are doing or is intended to do any operation such as perform cleanups
109
+ // after the manager stops then its usage might be unsafe.
110
+ // LeaderElectionReleaseOnCancel: true,
100
111
})
101
112
if err != nil {
102
113
setupLog .Error (err , "unable to start manager" )
Original file line number Diff line number Diff line change @@ -9,3 +9,13 @@ webhook:
9
9
leaderElection :
10
10
leaderElect : true
11
11
resourceName : 2eab85d8.testproject.org
12
+ # leaderElectionReleaseOnCancel defines if the leader should step down volume
13
+ # when the Manager ends. This requires the binary to immediately end when the
14
+ # Manager is stopped, otherwise, this setting is unsafe. Setting this significantly
15
+ # speeds up voluntary leader transitions as the new leader don't have to wait
16
+ # LeaseDuration time first.
17
+ # In the default scaffold provided, the program ends immediately after
18
+ # the manager stops, so would be fine to enable this option. However,
19
+ # if you are doing or is intended to do any operation such as perform cleanups
20
+ # after the manager stops then its usage might be unsafe.
21
+ # leaderElectionReleaseOnCancel: true
Original file line number Diff line number Diff line change @@ -72,6 +72,17 @@ func main() {
72
72
HealthProbeBindAddress : probeAddr ,
73
73
LeaderElection : enableLeaderElection ,
74
74
LeaderElectionID : "2eab85d8.testproject.org" ,
75
+ // LeaderElectionReleaseOnCancel defines if the leader should step down voluntarily
76
+ // when the Manager ends. This requires the binary to immediately end when the
77
+ // Manager is stopped, otherwise, this setting is unsafe. Setting this significantly
78
+ // speeds up voluntary leader transitions as the new leader don't have to wait
79
+ // LeaseDuration time first.
80
+ //
81
+ // In the default scaffold provided, the program ends immediately after
82
+ // the manager stops, so would be fine to enable this option. However,
83
+ // if you are doing or is intended to do any operation such as perform cleanups
84
+ // after the manager stops then its usage might be unsafe.
85
+ // LeaderElectionReleaseOnCancel: true,
75
86
})
76
87
if err != nil {
77
88
setupLog .Error (err , "unable to start manager" )
Original file line number Diff line number Diff line change @@ -9,3 +9,13 @@ webhook:
9
9
leaderElection :
10
10
leaderElect : true
11
11
resourceName : dd1da13f.testproject.org
12
+ # leaderElectionReleaseOnCancel defines if the leader should step down volume
13
+ # when the Manager ends. This requires the binary to immediately end when the
14
+ # Manager is stopped, otherwise, this setting is unsafe. Setting this significantly
15
+ # speeds up voluntary leader transitions as the new leader don't have to wait
16
+ # LeaseDuration time first.
17
+ # In the default scaffold provided, the program ends immediately after
18
+ # the manager stops, so would be fine to enable this option. However,
19
+ # if you are doing or is intended to do any operation such as perform cleanups
20
+ # after the manager stops then its usage might be unsafe.
21
+ # leaderElectionReleaseOnCancel: true
You can’t perform that action at this time.
0 commit comments