config

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2019 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigFileName = "config.yaml"

ConfigFileName is a name of botkube configuration file

View Source
var Notify = true

Notify flag to toggle event notification

Functions

This section is empty.

Types

type Communications

type Communications struct {
	Slack         Slack
	ElasticSearch ElasticSearch
	Mattermost    Mattermost
}

Communications channels to send events to

type Config

type Config struct {
	Resources       []Resource
	Recommendations bool
	Communications  Communications
	Events          K8SEvents
	Settings        Settings
}

Config structure of configuration yaml file

func New

func New() (*Config, error)

New returns new Config

type ElasticSearch added in v0.7.0

type ElasticSearch struct {
	Enabled  bool
	Username string
	Password string `yaml:",omitempty"`
	Server   string
	Index    Index
}

ElasticSearch config auth settings

type Index added in v0.7.0

type Index struct {
	Name     string
	Type     string
	Shards   int
	Replicas int
}

Index settings for ELS

type K8SEvents

type K8SEvents struct {
	Types []string
}

K8SEvents contains event types

type Mattermost added in v0.7.0

type Mattermost struct {
	Enabled bool
	URL     string
	Token   string
	Team    string
	Channel string
}

Mattermost configuration to authentication and send notifications

type Resource

type Resource struct {
	Name       string
	Namespaces []string
	Events     []string
}

Resource contains resources to watch

type Settings added in v0.2.0

type Settings struct {
	ClusterName  string
	AllowKubectl bool
}

Settings for multicluster support

type Slack

type Slack struct {
	Enabled bool
	Channel string
	Token   string `yaml:",omitempty"`
}

Slack configuration to authentication and send notifications

Jump to

Keyboard shortcuts

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