config

package
v0.6.0-alpha.5 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ConfigName = "rio-config"

	ConfigController = ControllerConfig{}
)

Functions

func SetConfig

func SetConfig(cm *v1.ConfigMap, config Config) (*v1.ConfigMap, error)

Types

type Address

type Address struct {
	IP       string `json:"ip,omitempty"`
	Hostname string `json:"hostname,omitempty"`
}

type Config

type Config struct {
	Features    map[string]FeatureConfig `json:"features,omitempty"`
	LetsEncrypt LetsEncrypt              `json:"letsEncrypt,omitempty"`
	Gateway     Gateway                  `json:"gateway,omitempty"`
}

func FromConfigMap

func FromConfigMap(cm *v1.ConfigMap) (result Config, err error)

type ControllerConfig

type ControllerConfig struct {
	RunAPIValidatorWebhook bool
	WebhookPort            string
	WebhookHost            string
	IPAddresses            string
}

type FeatureConfig

type FeatureConfig struct {
	Enabled *bool             `json:"enabled,omitempty"`
	Options map[string]string `json:"options,omitempty"`
}

type Gateway

type Gateway struct {
	StaticAddresses  []adminv1.Address `json:"staticAddresses,omitempty"`
	ServiceName      string            `json:"serviceName,omitempty"`
	ServiceNamespace string            `json:"serviceNamespace,omitempty"`
}

type LetsEncrypt

type LetsEncrypt struct {
	Account   string `json:"account,omitempty"`
	Email     string `json:"email,omitempty"`
	ServerURL string `json:"serverURL,omitempty"`
}

Jump to

Keyboard shortcuts

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