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
Click to show internal directories.
Click to hide internal directories.