informer

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CLUSTER_MODIFY_EVENT_SECRET_TYPE = "cluster.request/modify"
	DEFAULT_CLUSTER                  = "default_cluster"
	INFORMER_ALREADY_EXIST_MESSAGE   = "INFORMER_ALREADY_EXIST"
	ADD                              = "add"
	UPDATE                           = "update"
	POD_DELETED_MESSAGE              = "pod deleted"
	EXIT_CODE_143_ERROR              = "Error (exit code 143)"
	CI_WORKFLOW_NAME                 = "ci"
	CD_WORKFLOW_NAME                 = "cd"
	WORKFLOW_TYPE_LABEL_KEY          = "workflowType"
	JobKind                          = "Job"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterInfo

type ClusterInfo struct {
	ClusterId   int    `json:"clusterId"`
	ClusterName string `json:"clusterName"`
	BearerToken string `json:"bearerToken"`
	ServerUrl   string `json:"serverUrl"`
}

type K8sInformer

type K8sInformer interface {
	BuildInformerForAllClusters() error
}

type K8sInformerImpl

type K8sInformerImpl struct {
	DefaultK8sConfig *rest.Config
	// contains filtered or unexported fields
}

func NewK8sInformerImpl

func NewK8sInformerImpl(logger *zap.SugaredLogger, clusterRepository repository.ClusterRepository, client *pubsub.PubSubClientServiceImpl, httpTransportConfig *k8s1.CustomK8sHttpTransportConfig) *K8sInformerImpl

func (*K8sInformerImpl) BuildInformerForAllClusters

func (impl *K8sInformerImpl) BuildInformerForAllClusters() error

func (*K8sInformerImpl) StopAllSystemWorkflowInformer

func (impl *K8sInformerImpl) StopAllSystemWorkflowInformer()

Jump to

Keyboard shortcuts

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