config

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Instances  instanceConfig   `yaml:"instance"`
	Backup     backupConfig     `yaml:"backup"`
	Monitoring monitoringConfig `yaml:"monitoring"`
}

Config defines configurations needed by db-operator

func LoadConfig

func LoadConfig() Config

LoadConfig reads config file for db-operator from defined path and parse

type ResourceList added in v1.7.0

type ResourceList struct {
	Cpu    string `yaml:"cpu,omitempty"`
	Memory string `yaml:"memory,omitempty"`
}

type ResourceRequirements added in v1.7.0

type ResourceRequirements struct {
	Limits   ResourceList `yaml:"limits,omitempty"`
	Requests ResourceList `yaml:"requests,omitempty"`
}

Jump to

Keyboard shortcuts

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