@@ -209,29 +209,29 @@ tests:
209
209
path : spec.template.spec.runtimeClassName
210
210
value : myClass
211
211
212
- - it : should create a DaemonSet with the electionID label on the pod template when leader election is enabled
212
+ - it : should create a DaemonSet with election ID label
213
213
set :
214
214
controller.kind : DaemonSet
215
215
controller.disableLeaderElection : false
216
216
asserts :
217
217
- equal :
218
- path : spec.template.metadata.labels[' nginx.ingress.kubernetes.io/electionID' ]
218
+ path : spec.template.metadata.labels[" nginx.ingress.kubernetes.io/election-id" ]
219
219
value : RELEASE-NAME-ingress-nginx-leader
220
220
221
- - it : should create a DaemonSet with the custom electionID label on the pod template when controller.electionID is set and leader election is enabled
221
+ - it : should create a DaemonSet with custom election ID label if ` controller.electionID` is set
222
222
set :
223
223
controller.kind : DaemonSet
224
224
controller.disableLeaderElection : false
225
225
controller.electionID : custom-election-id
226
226
asserts :
227
227
- equal :
228
- path : spec.template.metadata.labels[' nginx.ingress.kubernetes.io/electionID' ]
228
+ path : spec.template.metadata.labels[" nginx.ingress.kubernetes.io/election-id" ]
229
229
value : custom-election-id
230
230
231
- - it : should create a DaemonSet without the electionID label on the pod template when leader election is disabled
231
+ - it : should create a DaemonSet without election ID label if `controller.disableLeaderElection` is true
232
232
set :
233
233
controller.kind : DaemonSet
234
234
controller.disableLeaderElection : true
235
235
asserts :
236
236
- notExists :
237
- path : spec.template.metadata.labels[' nginx.ingress.kubernetes.io/electionID' ]
237
+ path : spec.template.metadata.labels[" nginx.ingress.kubernetes.io/election-id" ]
0 commit comments