d8env

package
v1.76.11 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DownloadedModulesDir = "DOWNLOADED_MODULES_DIR"
	EmbeddedModulesDir   = "EMBEDDED_MODULES_DIR"

	// DocumentationBuildTimeout caps a single upload+build round-trip from the
	// module-documentation controller to a docs-builder. Every build triggers a
	// full-site Hugo rebuild serialized across all modules, so this must exceed
	// the worst-case build time; too low a value cancels healthy builds and
	// churns the builder. A Go duration string (e.g. "120s", "2m").
	DocumentationBuildTimeout = "DOCUMENTATION_BUILD_TIMEOUT"
)

Variables

This section is empty.

Functions

func GetDocumentationBuildTimeout added in v1.76.10

func GetDocumentationBuildTimeout() time.Duration

GetDocumentationBuildTimeout is the per-request timeout the module-documentation controller applies to docs-builder upload/build calls. It parses DOCUMENTATION_BUILD_TIMEOUT as a Go duration (per time.ParseDuration) and falls back to 120s when the variable is unset, empty, or unparseable.

func GetDownloadedModulesDir

func GetDownloadedModulesDir() string

func GetEmbeddedModulesDir added in v1.76.3

func GetEmbeddedModulesDir() string

GetEmbeddedModulesDir returns the directory where embedded (built-in) modules are shipped within the Deckhouse image. It is the first entry of the module search path, so a module present here always wins over a downloaded one.

Types

This section is empty.

Jump to

Keyboard shortcuts

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