mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-26 08:49:36 +08:00
14 lines
467 B
Go
14 lines
467 B
Go
package pods
|
|
|
|
import (
|
|
"k8s.io/client-go/kubernetes"
|
|
"pandax/apps/devops/services/k8s/common"
|
|
"pandax/apps/devops/services/k8s/dataselect"
|
|
"pandax/apps/devops/services/k8s/event"
|
|
)
|
|
|
|
// GetEventsForPod gets events that are associated with this pod.
|
|
func GetEventsForPod(client *kubernetes.Clientset, dsQuery *dataselect.DataSelectQuery, namespace, podName string) (*common.EventList, error) {
|
|
return event.GetResourceEvents(client, dsQuery, namespace, podName)
|
|
}
|