Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultKubeConfigLocation = "/.kube/config"
DefaultKubeConfigLocation is the default location of the KubeConfig file.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { // AuthType defines if Trireme uses PSK or PKI AuthType string // KubeNodeName is the identifier used for this Trireme instance KubeNodeName string // PKIDirectory is the directory where the Key files are stored (is using PKI) PKIDirectory string // TriremePSK is the PSK used for Trireme (if using PSK) TriremePSK string // RemoteEnforcer defines if the enforcer is spawned into each POD namespace // or into the host default namespace. RemoteEnforcer bool TriremeNetworks string ParsedTriremeNetworks []string KubeconfigPath string LogLevel string // Enforce defines if this process is an enforcer process (spawned into POD namespaces) Enforce bool `mapstructure:"Enforce"` }
Configuration contains all the User Parameter for Trireme-Kubernetes.
func LoadConfig ¶
func LoadConfig() (*Configuration, error)
LoadConfig loads a Configuration struct: 1) If presents flags are used 2) If no flags, Env Variables are used 3) If no Env Variables, defaults are used when possible.
Click to show internal directories.
Click to hide internal directories.