kubesync

package
v0.0.0-...-8eabfc6 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: MIT Imports: 16 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterPrometheusMetrics

func RegisterPrometheusMetrics(s *KubeSync) error

RegisterPrometheusMetrics is a convenient function to create and register prometheus metrics

Types

type Config

type Config struct {
	SyncInterval                  time.Duration
	SourceConfigmapName           string
	SourceConfigmapNamespace      string
	PrometheusExporterBindAddress string
}

Config contains static configuration

type KubeSync

type KubeSync struct {
	Conf *Config
	// contains filtered or unexported fields
}

KubeSync contains the state

func NewKubeSync

func NewKubeSync(kubeConfigPath string, conf *Config) (*KubeSync, error)

NewKubeSync creates a new KubeSync

func (*KubeSync) Sync

func (s *KubeSync) Sync() error

Sync start the loop

Jump to

Keyboard shortcuts

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