kaas

package
v0.0.0-...-0f88525 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorContainerLog = errors.New("failed to start prometheus")
)

Functions

func TryLogin

func TryLogin(kubeconfigPath string) (*k8s.Clientset, *routeClient.RouteV1Client, error)

TryLogin returns k8s clientset and route client

Types

type ProwInfo

type ProwInfo struct {
	ClusterDumpURLs []string
}

ProwInfo stores all links and data collected via scanning for must gather

type ProwJSON

type ProwJSON struct {
	Timestamp int `json:"timestamp"`
}

ProwJSON stores test start / finished timestamp

type RQuotaStatus

type RQuotaStatus struct {
	Used int64 `json:"used"`
	Hard int64 `json:"hard"`
}

RQuotaStatus stores ResourceQuota info

type ServerSettings

type ServerSettings struct {
	K8sClient   *k8s.Clientset
	RouteClient *routeClient.RouteV1Client
	Namespace   string
	RQuotaName  string
	RQStatus    *RQuotaStatus
	Conns       map[string]*websocket.Conn
	Datasources map[string]int
}

ServerSettings stores info about the server

func (*ServerSettings) CleanupOldDeployements

func (s *ServerSettings) CleanupOldDeployements()

CleanupOldDeployements periodically removes old deployments

func (*ServerSettings) GetResourceQuota

func (s *ServerSettings) GetResourceQuota() error

GetResourceQuota updates current resource quota setting

func (*ServerSettings) HandleStatusViaWS

func (s *ServerSettings) HandleStatusViaWS(c *gin.Context)

HandleStatusViaWS reads websocket events and runs actions

func (*ServerSettings) WatchResourceQuota

func (s *ServerSettings) WatchResourceQuota()

WatchResourceQuota passes RQ updates from k8s to UI

type WSMessage

type WSMessage struct {
	Message string            `json:"message"`
	Action  string            `json:"action"`
	Data    map[string]string `json:"data,omitempty"`
}

WSMessage represents websocket message format

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL