config

package
v0.2.14 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Annotations

type Annotations map[string]string

Annotations are used as annotations

type Config

type Config struct {
	Deployment Deployment `yaml:"deployment,omitempty"`
	HPA        HPA        `yaml:"hpa,omitempty"`
	Secrets    Secrets    `yaml:"secrets,omitempty"`
}

Config is used to configure goflux

func LoadConfig

func LoadConfig(path string) (*Config, error)

LoadConfig tries to load the config from the given path

type Deployment

type Deployment struct {
	ImagePullSecret string      `yaml:"imagePullSecret,omitempty"`
	Annotations     Annotations `yaml:"annotations,omitempty"`
	Ressources      Ressources  `yaml:"ressources,omitempty"`
}

Deployment is used to configure the creation of deployment files

type HPA

type HPA struct {
	MinReplicas int `yaml:"minReplicas,omitempty"`
	MaxReplicas int `yaml:"maxReplicas,omitempty"`
}

HPA is used to configure the creation of hpa files

type Ressource

type Ressource struct {
	CPU    string `yaml:"cpu,omitempty"`
	Memory string `yaml:"memory,omitempty"`
}

Ressource is used inside ressources

type Ressources

type Ressources struct {
	Limits   Ressource `yaml:"limits,omitempty"`
	Requests Ressource `yaml:"requests,omitempty"`
}

Ressources are used as ressources

type Secrets

type Secrets struct {
	SecretFolderName string `yaml:"secretFolderName,omitempty"`
	DevCertURL       string `yaml:"devCertURL,omitempty"`
	TestCertURL      string `yaml:"testCertURL,omitempty"`
	ProdCertURL      string `yaml:"prodCertURL,omitempty"`
}

Secrets is used to seal and find secrets

Jump to

Keyboard shortcuts

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