config

package
v0.0.1-alpha4 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2019 License: Apache-2.0 Imports: 12 Imported by: 42

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateContext

func CreateContext(masterURL, kubeconfig string) (awsclient.ServiceoperatorV1alpha1Interface, kubernetes.Interface, *rest.Config, error)

CreateContext will create all the contexts for the informers

func CreateRecorder

func CreateRecorder(logger *logrus.Entry, kubeclientset kubernetes.Interface) record.EventRecorder

Types

type Config

type Config struct {
	Version          *goVersion.Info
	Region           string
	Kubeconfig       string
	MasterURL        string
	QueueURL         string
	QueueARN         string
	AWSSession       *session.Session
	AWSClientset     awsclient.ServiceoperatorV1alpha1Interface
	KubeClientset    kubernetes.Interface
	RESTConfig       *rest.Config
	LoggingConfig    LoggingConfig
	Logger           *logrus.Entry
	Resources        map[string]bool
	ClusterName      string
	Bucket           string
	AccountID        string
	DefaultNamespace string
	Recorder         record.EventRecorder
}

Config defines the configuration for the operator

type LoggingConfig

type LoggingConfig struct {
	File              string
	Level             string
	DisableTimestamps bool
	FullTimestamps    bool
}

LoggingConfig defines the attributes for the logger

Jump to

Keyboard shortcuts

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