config

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogLevelFromPath added in v0.7.0

func GetLogLevelFromPath(path string) (zapcore.Level, error)

Types

type CFProcessDefaults

type CFProcessDefaults struct {
	MemoryMB    int64  `yaml:"memoryMB"`
	DiskQuotaMB int64  `yaml:"diskQuotaMB"`
	Timeout     *int32 `yaml:"timeout"`
}

type CFStagingResources added in v0.8.0

type CFStagingResources struct {
	BuildCacheMB int64 `yaml:"buildCacheMB"`
	DiskMB       int64 `yaml:"diskMB"`
	MemoryMB     int64 `yaml:"memoryMB"`
}

type ControllerConfig

type ControllerConfig struct {
	// core controllers
	CFProcessDefaults                CFProcessDefaults  `yaml:"cfProcessDefaults"`
	CFStagingResources               CFStagingResources `yaml:"cfStagingResources"`
	CFRootNamespace                  string             `yaml:"cfRootNamespace"`
	ContainerRegistrySecretNames     []string           `yaml:"containerRegistrySecretNames"`
	TaskTTL                          string             `yaml:"taskTTL"`
	BuilderName                      string             `yaml:"builderName"`
	RunnerName                       string             `yaml:"runnerName"`
	NamespaceLabels                  map[string]string  `yaml:"namespaceLabels"`
	ExtraVCAPApplicationValues       map[string]any     `yaml:"extraVCAPApplicationValues"`
	MaxRetainedPackagesPerApp        int                `yaml:"maxRetainedPackagesPerApp"`
	MaxRetainedBuildsPerApp          int                `yaml:"maxRetainedBuildsPerApp"`
	LogLevel                         zapcore.Level      `yaml:"logLevel"`
	SpaceFinalizerAppDeletionTimeout *int32             `yaml:"spaceFinalizerAppDeletionTimeout"`

	Networking Networking `yaml:"networking"`

	ExperimentalManagedServicesEnabled bool `yaml:"experimentalManagedServicesEnabled"`
	TrustInsecureServiceBrokers        bool `yaml:"trustInsecureServiceBrokers"`
}

func LoadFromPath

func LoadFromPath(path string) (*ControllerConfig, error)

func (ControllerConfig) ParseTaskTTL added in v0.2.0

func (c ControllerConfig) ParseTaskTTL() (time.Duration, error)

type Networking added in v0.11.0

type Networking struct {
	GatewayName      string `yaml:"gatewayName"`
	GatewayNamespace string `yaml:"gatewayNamespace"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳