config

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReplaceDefaultConfigWithProvidedServiceConfig

func ReplaceDefaultConfigWithProvidedServiceConfig(currentAnnotations map[string]interface{}, serviceObj *v1.Service) map[string]interface{}

currentAnnotations contains default config. This method replaces all default config annotations with those annotations provided in given service.

func WriteConfig

func WriteConfig(config Configuration, path string) error

WriteConfig function that can write to the yaml file

Types

type Configuration

type Configuration struct {
	Domain              string `yaml:"domain"`
	IngressURLTemplate  string `yaml:"ingressURLTemplate"`
	IngressURLPath      string `yaml:"ingressURLPath"`
	IngressNameTemplate string `yaml:"ingressNameTemplate"`
	TLS                 bool   `yaml:"tls"`
}

func GetControllerConfig

func GetControllerConfig() Configuration

func ReadConfig

func ReadConfig(filePath string) (Configuration, error)

ReadConfig function that reads the yaml file

Jump to

Keyboard shortcuts

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