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
- func BuildCSECmd(ctx context.Context, config *aksnodeconfigv1.Configuration, ...) (*exec.Cmd, error)
- func GenerateLocalDnsCorefileFromAKSNodeConfig(aksnodeconfig *aksnodeconfigv1.Configuration, includeHostsPlugin bool) (string, error)
- func GetCSETimeout(cseTimeout int) string
- func GetLocalDnsCpuLimitInPercentage(aksnodeconfig *aksnodeconfigv1.Configuration) string
- func GetLocalDnsMemoryLimitInMb(aksnodeconfig *aksnodeconfigv1.Configuration) string
- func IsKubernetesVersionGe(actualVersion, version string) bool
Constants ¶
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
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
IsKubernetesVersionGe returns true if actualVersion is greater than or equal to version.
Types ¶
This section is empty.