scripthotfix

package
v0.20260820.1 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package scripthotfix applies generated provisioning script hotfixes embedded in the aks-node-controller binary.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Source       string     `json:"source"`
	EmbeddedPath string     `json:"embedded_path"`
	Destination  string     `json:"destination"`
	Mode         string     `json:"mode"`
	Platforms    []Platform `json:"platforms"`
}

type Manifest

type Manifest struct {
	SchemaVersion int     `json:"schema_version"`
	Entries       []Entry `json:"entries"`
}

type Platform

type Platform string
const (
	PlatformUbuntu     Platform = "ubuntu"
	PlatformMariner    Platform = "mariner"
	PlatformAzlOSGuard Platform = "azlosguard"
	PlatformFlatcar    Platform = "flatcar"
	PlatformACL        Platform = "acl"
)

func ClassifyPlatform

func ClassifyPlatform(osReleasePath string) (Platform, error)

ClassifyPlatform maps /etc/os-release to the existing nodecustomdata distro branch semantics used by the generator.

type Result

type Result struct {
	Applied int
	Skipped int
}

func ApplyEmbedded

func ApplyEmbedded(osReleasePath string) (Result, error)

ApplyEmbedded applies the payload compiled into this ANC binary.

Jump to

Keyboard shortcuts

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