AKSFlexNode
AGENTS.md17 starsChanged 59 days agoMITView on GitHub
Go agent that extends AKS to non-Azure VMs, transforming Ubuntu machines into semi-managed AKS worker nodes. Run make help to discover all available build, test, and lint targets.
- Reads credentials
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
The file
We split this AGENTS.md into the rules it gives an agent
5 rules. About 0 are common, 0 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 15
Sensitive data: never log or return tokens/secrets.
- Very specific: line 22
Parallel execution: call t.Parallel() in both top-level and sub-tests.
- Very specific: line 23
Filesystem isolation: use t.TempDir() for any file I/O.
- Very specific: line 26
No external test frameworks: use the standard testing package only.
- Very specific: line 30
Run make help to discover all available build, test, and lint targets.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AKS FlexNode Agent
Go agent that extends AKS to non-Azure VMs, transforming Ubuntu machines into semi-managed AKS worker nodes.
Coding Conventions
- Language: Go 1.25+. Standard
gofmt/goimportsformatting. - Linting:
golangci-lintwith errcheck (type assertions checked), gosec, govet, ineffassign, staticcheck, unused. Runmake lint. - Quality gate:
make checkruns formatting, vetting, linting, and tests in sequence. - Naming: packages lowercase; files snake_case; unexported types/vars camelCase; exported PascalCase.
- Errors: wrap with context via
fmt.Errorf("context: %w", err). Use gRPC status codes incomponents/. Never panic in runtime logic. - Logging: logrus with context propagation (
pkg/logger). Log at appropriate levels — debug for verbose, info for state changes, error for failures. - Comments: explain why, not what. Reference upstream docs with URLs where relevant.
- Protobuf: edition 2024, opaque API with builder pattern. Run
make generateto regenerate.pb.gofiles. - Sensitive data: never log or return tokens/secrets. Use
Redact()in components; avoid committing.envor credential files.
Testing
Conventions
- Table-driven tests with named subtests (
t.Run(name, ...)). - Parallel execution: call
t.Parallel()in both top-level and sub-tests. - Filesystem isolation: use
t.TempDir()for any file I/O. - Dependency injection: accept interfaces on structs; use mock implementations in tests (see
pkg/components/arc/for example). - Idempotency: explicitly test that operations are safe to re-run.
- No external test frameworks: use the standard
testingpackage only.
Makefile Targets
Run make help to discover all available build, test, and lint targets.
Key Design Patterns
- Idempotent reconciliation — compare current state with desired state; only mutate when they differ.
- Bootstrapper executor — sequential step execution with fail-fast (bootstrap) or best-effort (unbootstrap) semantics.
- Action hub — single gRPC endpoint dispatches to versioned component handlers by protobuf type URL.
- Interface-driven — depend on interfaces, not concrete types, to enable testing and extensibility.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

