utils

package
v4.2.712+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EventEmailSubject

func EventEmailSubject(evt *datahub_events.Event) string

func EventHTMLMsg

func EventHTMLMsg(evt *datahub_events.Event, clusterInfo *ClusterInfo) string

func RemoveEmptyStr

func RemoveEmptyStr(strList []string) []string

Types

type ClusterInfo

type ClusterInfo struct {
	UID                string
	Nodes              []NodeInfo
	MasterNodeHostname string
	MasterNodeIP       string
	MasterNodeUID      string
}

func GetClusterInfo

func GetClusterInfo(k8sClient client.Client) (ClusterInfo, error)

type NodeInfo

type NodeInfo struct {
	UID         string
	Name        string
	RoleMaster  bool
	RoleCompute bool
	RoleInfra   bool
	Hostname    string
	IPInternal  []string
	IPExternal  []string
}

Jump to

Keyboard shortcuts

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