cluster

package
v0.0.0-...-9a5d330 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrLostQuorum = errors.New("lost quorum")

ErrLostQuorum indicates that the etcd cluster lost its quorum.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	// contains filtered or unexported fields
}

Cluster is the type for a SensuCluster inside the operator

func New

func New(config Config, cl *api.SensuCluster) *Cluster

New makes a new cluster

func (*Cluster) ClientURLs

func (c *Cluster) ClientURLs(m *etcdutil.MemberConfig) (urls []string)

func (*Cluster) Delete

func (c *Cluster) Delete()

Delete triggers the delete of a cluster

func (*Cluster) PeerURL

func (c *Cluster) PeerURL(m *etcdutil.MemberConfig, ordinalID int) string

func (*Cluster) Update

func (c *Cluster) Update(cl *api.SensuCluster)

Update triggers a Cluster update

type Config

type Config struct {
	ServiceAccount string

	KubeCli    kubernetes.Interface
	SensuCRCli versioned.Interface
}

Config is the Kubernetes related configuration for the Cluster

Jump to

Keyboard shortcuts

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