- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for cloneAndRemoveKeys (0.57 sec)
-
pkg/controller/endpointslicemirroring/utils.go
func hasLeaderElection(annotations map[string]string) bool { _, ok := annotations[resourcelock.LeaderElectionRecordAnnotationKey] return ok } // cloneAndRemoveKeys is a copy of CloneAndRemoveLabels // it is used here for annotations and labels func cloneAndRemoveKeys(a map[string]string, keys ...string) map[string]string { if len(keys) == 0 { // Don't need to remove a key. return a } // Clone.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 11 18:08:12 UTC 2023 - 8.8K bytes - Viewed (0) -
pkg/controller/endpointslicemirroring/reconciler.go
// generated slices must mirror all endpoints annotations but EndpointsLastChangeTriggerTime and LastAppliedConfigAnnotation compareAnnotations := cloneAndRemoveKeys(endpoints.Annotations, corev1.EndpointsLastChangeTriggerTime, corev1.LastAppliedConfigAnnotation) compareLabels := cloneAndRemoveKeys(existingSlices[0].Labels, discovery.LabelManagedBy, discovery.LabelServiceName) // Return early if first slice matches desired endpoints, labels and annotations
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 11 18:08:12 UTC 2023 - 13.1K bytes - Viewed (0)