parser

package
v0.202611101503057914.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Parser helpers are used to get values of the env variables and pass to the provision scripts execution. For example, default values, values computed by others, etc.

Index

Constants

View Source
const (
	MinArgs = 2
)

Variables

This section is empty.

Functions

func BuildCSECmd

func BuildCSECmd(ctx context.Context, config *aksnodeconfigv1.Configuration, gpuConfig *gpu.GPUConfiguration) (*exec.Cmd, error)

func GenerateLocalDnsCorefileFromAKSNodeConfig added in v0.202610161503057914.0

func GenerateLocalDnsCorefileFromAKSNodeConfig(aksnodeconfig *aksnodeconfigv1.Configuration, includeHostsPlugin bool) (string, error)

Corefile is created using localdns.toml.gtpl template and aksnodeconfig values. includeHostsPlugin controls whether the hosts plugin block is included in the generated Corefile. Exported so the live-patching path can re-render the Corefile from a profile delivered by LPC/LPS and get output identical to what bootstrap bakes.

func GetCSETimeout added in v0.20260729.0

func GetCSETimeout(cseTimeout int) string

returns the CSE timeout value in seconds. if empty or invalid value is provided, it returns the default timeout value of 15minutes or 900 seconds. Maximum allowed timeout is 360 minutes or 6 hours or 21600 seconds.

func GetLocalDnsCpuLimitInPercentage added in v0.202611041503057914.0

func GetLocalDnsCpuLimitInPercentage(aksnodeconfig *aksnodeconfigv1.Configuration) string

GetLocalDnsCpuLimitInPercentage returns CPU limit in percentage unit that will be used in localdns systemd unit.

func GetLocalDnsMemoryLimitInMb added in v0.202611041503057914.0

func GetLocalDnsMemoryLimitInMb(aksnodeconfig *aksnodeconfigv1.Configuration) string

GetLocalDnsMemoryLimitInMb returns memory limit in MB that will be used in localdns systemd unit.

func IsKubernetesVersionGe added in v0.20260729.0

func IsKubernetesVersionGe(actualVersion, version string) bool

IsKubernetesVersionGe returns true if actualVersion is greater than or equal to version.

Types

This section is empty.

Jump to

Keyboard shortcuts

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