mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-26 17:49:36 +08:00
【修改】k8s 配置
This commit is contained in:
13
apps/devops/services/k8s/pods/events.go
Normal file
13
apps/devops/services/k8s/pods/events.go
Normal file
@@ -0,0 +1,13 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user