Agent Baker is aiming to provide a centralized, portable k8s agent node provisioning lib as well as rich support on different OS image with optimized k8s binaries.
Перейти к файлу
Junjie Zhang 0afa7248ae
feat: bump AKS Windows CSE script package to v0.0.36 (#3879)
2023-11-30 13:28:05 +08:00
.clusterfuzzlite fix: remove clusterfuzzlite dockerfile to fix build warnings (#3608) 2023-09-12 09:14:35 -07:00
.devcontainer feat: Revising the contract ln 1- 85 between the VHD and AKS-RP, for self-contained VHD feature. (#3708) 2023-10-17 19:43:33 -07:00
.github chore: use workflow to check files on mooncake (#3764) 2023-11-09 15:34:15 +08:00
.pipelines feat: add captured SIG image version resource ID to VHD publishing info for linux SKUs (#3867) 2023-11-29 17:21:39 +00:00
apiserver refactor: lint errors; strings, undefinied nums, global vars (#3073) 2023-05-11 14:58:23 -07:00
cmd refactor: lint errors; strings, undefinied nums, global vars (#3073) 2023-05-11 14:58:23 -07:00
doc Cache Windows gMSA CCGAKVPlugin package v1.1.5 (#1708) 2022-04-11 12:43:03 +08:00
e2e fix: use the latest Windows image in Windows E2E (#3868) 2023-11-29 15:32:57 +08:00
example Fix cse command 2020-02-13 09:41:54 -08:00
fuzz docs: fix fuzz docs 2023-03-29 15:09:55 -07:00
hack/tools feat: Revising the contract ln 1- 85 between the VHD and AKS-RP, for self-contained VHD feature. (#3708) 2023-10-17 19:43:33 -07:00
parts feat: bump AKS Windows CSE script package to v0.0.36 (#3879) 2023-11-30 13:28:05 +08:00
pkg feat: bump AKS Windows CSE script package to v0.0.36 (#3879) 2023-11-30 13:28:05 +08:00
schemas chore: add binaries for k8s 1.25.15, 1.26.10, 1.27.7, 1.28.3 (#3726) 2023-10-27 12:52:33 +08:00
self-contained cleanup: remove NEEDS_DOCKER_LOGIN from new bootstrap scripts (#3715) 2023-10-19 11:46:38 -07:00
staging/cse/windows feat: bump AKS Windows CSE script package to v0.0.36 (#3879) 2023-11-30 13:28:05 +08:00
tools Add script to enable anonymous auth for non rbac 2021-05-05 22:45:29 -07:00
vhdbuilder feat: bump AKS Windows CSE script package to v0.0.36 (#3879) 2023-11-30 13:28:05 +08:00
.gitignore chore: install containerd from manifest in cse (#1491) 2022-02-05 00:24:34 -05:00
.golangci.yaml feat: containerd config change for artifact streaming (#3660) 2023-10-03 15:28:33 -07:00
CODEOWNERS feat: Re-Add CODEOWNERS (#3855) 2023-11-28 05:14:14 +00:00
CODE_OF_CONDUCT.md Initial CODE_OF_CONDUCT.md commit 2020-02-21 23:02:52 -08:00
LICENSE Initial LICENSE commit 2020-02-21 23:02:53 -08:00
Makefile feat: exporting Node Bootstrapping Contract and helper library packages for external use (#3728) 2023-11-01 16:27:16 -07:00
NOTICE.md chore: register containerd component using Component Governance (#746) 2021-04-20 13:08:42 +08:00
README.md docs: add initial abe2e docs (#3025) 2023-04-18 15:03:02 +00:00
SECURITY.md Initial SECURITY.md commit 2020-02-21 23:02:56 -08:00
commitlint.config.js ci: add version bump as commit type 2023-05-11 12:30:28 -04:00
go.mod bug: fix vulnerability in golang.org/x/net (#3824) 2023-11-13 10:15:14 -08:00
go.sum bug: fix vulnerability in golang.org/x/net (#3824) 2023-11-13 10:15:14 -08:00
packer.mk feat: allow for specifying managed identity when more than one is pre… (#3635) 2023-09-27 08:23:34 -07:00
test.mk test: validate the existence of VHD cached file (#332) 2020-09-23 10:41:08 +08:00
versioning.mk remove client-go dep; cleanup aks-engine legacy code (#1015) 2021-08-12 15:23:44 -07:00

README.md

Agentbaker

Coverage Status

Agentbaker is a collection of components used to provision Kubernetes nodes in Azure.

Agentbaker has a few pieces

  • Packer templates and scripts to build VM images.
  • A set of templates and a public API to render those templates given input config.
  • An API to retrieve the latest VM image version for new clusters.

The primary consumer of Agentbaker is Azure Kubernetes Service (AKS).

AKS uses Agentbaker to provision Linux and Windows Kubernetes nodes.

Contributing

Developing agentbaker requires a few basic requisites:

  • Go (at least version 1.19)
  • Make

Run make -C hack/tools install to install all development tools.

If you change code or artifacts used to generate custom data or custom script extension payloads, you should run make.

This re-runs code to embed static files in Go code, which is what will actually be used at runtime.

This additionally runs unit tests (equivalent of go test ./...) and regenerates snapshot testdata.

Style

We use golangci-lint to enforce style.

Run make -C hack/tools install to install the linter.

Run ./hack/tools/bin/golangci-lint run to run the linter.

We currently have many failures we hope to eliminate.

We have job to run golangci-lint on pull requests.

This job uses the linters "no-new-issues" feature.

As long as PRs don't introduce net new issues, they should pass.

We also have a linting job to enforce commit message style.

We adhere to conventional commits.

Prefer pull requests with single commits.

To clean up in-progress commits, you can use git rebase -i to fixup commits.

See the git documentation for more details.

Testing

Most code may be tested with vanilla Go unit tests.

Snapshot

We also have snapshot data tests, which store the output of key APIs as files on disk.

We can manually verify the snapshot content looks correct.

We now have unit tests which can directly validate the content without leaving generated files on disk.

See ./pkg/agent/baker_test.go for examples (search for dynamic-config-dir to see a validation sample.).

E2E

Checkout the e2e directory.

Contributor License Agreement (CLA)

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

CGManifest File

A cgmanifest file is a json file used to register components manually when the component type is not supported by governance. The file name is "cgmanifest.json" and you can have as many as you need and can be anywhere in your repository.

File path: ./vhdbuilder/cgmanifest.json

Reference: https://docs.opensource.microsoft.com/tools/cg/cgmanifest.html

Package: