pkg/leaderelection
Knative Prow Robot a637a96a1b
[release-1.3] Take pointer to map in AsOptionalMap for consistency (#2462)
* Take pointer to map in AsOptionalMap for consistency

- Other `As*` functions take pointers.
- It avoids having to initialize the map passed to the function

Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>

* Remove double pointer

Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>

* AsOptionalMap -> CollectMapEntriesWithPrefix

Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>

Co-authored-by: Pierangelo Di Pilato <pierdipi@redhat.com>
2022-03-14 09:56:18 -07:00
..
chaosduck Replace golint with revive (#2126) 2021-05-18 06:10:15 -07:00
config.go [release-1.3] Take pointer to map in AsOptionalMap for consistency (#2462) 2022-03-14 09:56:18 -07:00
config_test.go [release-1.3] Take pointer to map in AsOptionalMap for consistency (#2462) 2022-03-14 09:56:18 -07:00
context.go Allow overriding lease name for a reconciler (#2435) 2022-02-28 11:55:09 -08:00
context_test.go Allow overriding lease name for a reconciler (#2435) 2022-02-28 11:55:09 -08:00
doc.go Adjust leaderelection defaults, add documentation. (#2391) 2022-01-12 20:43:12 -08:00