config

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

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

Go to latest
Published: Oct 15, 2018 License: Apache-2.0 Imports: 1 Imported by: 6

Documentation

Overview

EnvConfig definitions for midonet-kube-controllers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Minimum log level to emit.
	LogLevel string `default:"info" split_words:"true"`

	// Which controllers to run.
	EnabledControllers string `default:"node,pod,service,endpoints,pusher,nodeannotator" split_words:"true"`

	// Path to a kubeconfig file to use for accessing the k8s API.
	Kubeconfig string `default:"" split_words:"false"`

	// MidoNet API URL and credential
	MidoNetAPI      string `envconfig:"midonet_api" default:"https://localhost:8181/midonet-api"`
	MidoNetUserName string `envconfig:"midonet_username" default:"admin"`
	MidoNetPassword string `envconfig:"midonet_password" default:""`
	MidoNetProject  string `envconfig:"midonet_project" default:""`

	// MidoNet tenantId to group resources maintained by our controllers
	Tenant string `default:"midonetkube"`
}

Config is an envconfig definition for midonet-kube-controllers.

func (*Config) Parse

func (c *Config) Parse() error

Parse parses envconfig and stores in Config struct

Jump to

Keyboard shortcuts

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