In old Kubernetes version the configmapsleases resources doesn't
exist.
To keep the backward compatibility on old k8s version. The PR keep
the previous behavior which is using configmaps for managing
the leader election token.
Motivation
What inspired you to submit this pull request?
Additional Notes
Anything else we should know when reviewing?
Describe your test plan
Try to deploy the extendeddaemonset in a kubernetes cluster in version 1.10.
check that the controller start properly.
Check also that the controller works on a recent k8s version.
What does this PR do?
In old Kubernetes version the
configmapsleases
resources doesn't exist. To keep the backward compatibility on old k8s version. The PR keep the previous behavior which is usingconfigmaps
for managing the leader election token.Motivation
What inspired you to submit this pull request?
Additional Notes
Anything else we should know when reviewing?
Describe your test plan