Skip to content

Commit

Permalink
Merge branch 'master' into renovate/oss-kubernetes-azure-cloud-node-m…
Browse files Browse the repository at this point in the history
…anager-1.29.x
  • Loading branch information
Devinwong authored Sep 26, 2024
2 parents 0d3696c + e9cd17a commit 36d9464
Show file tree
Hide file tree
Showing 485 changed files with 75,851 additions and 25,764 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ generate: bootstrap
@echo "Error will be shown if any."
@$(MAKE) validate-components

.PHONY: validate-prefetch
validate-prefetch:
make -C ./vhdbuilder/prefetch generate

.PHONY: generate-azure-constants
generate-azure-constants:
python pkg/helpers/generate_azure_constants.py
Expand Down
2 changes: 1 addition & 1 deletion packer.mk
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ evaluate-build-performance: az-login
generate-prefetch-scripts:
ifeq (${MODE},linuxVhdMode)
@echo "${MODE}: Generating prefetch scripts"
@bash -c "pushd vhdbuilder/prefetch; go run main.go --components-path=../../parts/linux/cloud-init/artifacts/components.json --output-path=../packer/prefetch.sh || exit 1; popd"
@bash -c "pushd vhdbuilder/prefetch; go run cmd/main.go --components-path=../../parts/linux/cloud-init/artifacts/components.json --output-path=../packer/prefetch.sh || exit 1; popd"
endif

build-nbcparser-all:
Expand Down
21 changes: 16 additions & 5 deletions parts/linux/cloud-init/artifacts/README-COMPONENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,26 @@ Please refer to [components.cue](../../../../schemas/components.cue) for the mos
downloadURL: string
amd64OnlyVersions: [...string]
multiArchVersionsV2: [...#VersionV2]
prefetchOptimizations: [...#ContainerImagePrefetchOptimization]
}
```
```
#ContainerImagePrefetchOptimization: {
binaries: [...string]
}
#ContainerImagePrefetchOptimizations: {
latestVersion: #ContainerImagePrefetchOptimization
previousLatestVersion?: #ContainerImagePrefetchOptimization
}
#VersionV2: {
k8sVersion?: string
renovateTag?: string
latestVersion: string
previousLatestVersion?: string
k8sVersion?: string
renovateTag?: string
latestVersion: string
previousLatestVersion?: string
containerImagePrefetch?: #ContainerImagePrefetchOptimizations
}
```
`multiArchVersionsV2` is updated from `multiArchVersions` and is a list of `VersionV2`.
1. In `versionV2`, there are a few keys.
Expand All @@ -60,6 +70,7 @@ Please refer to [components.cue](../../../../schemas/components.cue) for the mos
- `renovateTag` must be exactly one line before `latestVersion` and the optional `previousLatestVersion`. `Renovate.json` requires this tag to parse the versions correctly.
- If you add anything other than the 2 types mentioned above, it won't be monitered by the current configurations of `renovate.json`. For example, you might see `"renovateTag": "<DO_NOT_UPDATE>"` which is actually equivalent to not having any `renovateTag`. Placing `"<DO_NOT_UPDATE>"` here is simply for human readability, but we still recommend including it for consistency and readability.
- `latestVersion` and `previousLatestVersion`: to keep the last 2 patch versions in the components.json as well as VHD and keep them auto-updated by Renovate, we will put the latest version in `latestVersion` and the previous latest version `previousLatestVersion`.
- `containerImagePrefetch` defines the prefetch optimization for the particular container image, if any. Each `ContainerImagePrefetchOptimizations` object must define a prefetch optimization _at least_ for the `latestVersion`, while optionally defining one of the `previousLatestVersion`. At the end of the day, a prefetch optimization is parameterized by an array of file paths pointing to binaries (relative to the FS of the container image, starting with `/`) to be prefetched during image builder optimization. NOTE: if ever updating prefetch optimizations for container images, please run `make generate` within vhdbuilder/prefetch to update the corresponding test data and re-run prefetch script generation tests.

### Packages
`Packages` is a list of `Package` where a `package` has the following scehma:
Expand Down
1 change: 1 addition & 0 deletions parts/linux/cloud-init/artifacts/bind-mount.service
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Description=Bind mount kubelet data
[Service]
Restart=on-failure
RemainAfterExit=yes
Type=oneshot
ExecStart=/bin/bash /opt/azure/containers/bind-mount.sh

[Install]
Expand Down
Loading

0 comments on commit 36d9464

Please sign in to comment.