mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 07:19:41 +02:00
fix(kubernetes): events api to call the backend [R8S-243] (#563)
This commit is contained in:
parent
32ef208278
commit
07dfd981a2
26 changed files with 750 additions and 217 deletions
19
api/internal/testhelpers/kube_client.go
Normal file
19
api/internal/testhelpers/kube_client.go
Normal file
|
@ -0,0 +1,19 @@
|
|||
package testhelpers
|
||||
|
||||
import (
|
||||
portainer "github.com/portainer/portainer/api"
|
||||
models "github.com/portainer/portainer/api/http/models/kubernetes"
|
||||
)
|
||||
|
||||
type testKubeClient struct {
|
||||
portainer.KubeClient
|
||||
}
|
||||
|
||||
func NewKubernetesClient() portainer.KubeClient {
|
||||
return &testKubeClient{}
|
||||
}
|
||||
|
||||
// Event
|
||||
func (kcl *testKubeClient) GetEvents(namespace string, resourceId string) ([]models.K8sEvent, error) {
|
||||
return nil, nil
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue