mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-30 17:53:21 -04:00 
			
		
		
		
	add client labels to k8s plugin metadata (#6475)
Signed-off-by: Nolan Miles <nolanpmiles@gmail.com>
This commit is contained in:
		| @@ -16,6 +16,7 @@ type Pod struct { | ||||
| 	PodIP     string | ||||
| 	Name      string | ||||
| 	Namespace string | ||||
| 	Labels    map[string]string | ||||
|  | ||||
| 	*Empty | ||||
| } | ||||
| @@ -33,6 +34,7 @@ func ToPod(obj meta.Object) (meta.Object, error) { | ||||
| 		PodIP:     apiPod.Status.PodIP, | ||||
| 		Namespace: apiPod.GetNamespace(), | ||||
| 		Name:      apiPod.GetName(), | ||||
| 		Labels:    apiPod.GetLabels(), | ||||
| 	} | ||||
| 	t := apiPod.ObjectMeta.DeletionTimestamp | ||||
| 	if t != nil && !(*t).Time.IsZero() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user