Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -187,3 +187,4 @@ aicr-e2e.xml
# Resolved MDX toolchain for tools/check-docs-mdx-parse. The manifest and
# lockfile in tools/mdx/ ARE committed; only the installed tree is not.
tools/mdx/node_modules/
*.pyc
21 changes: 21 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,27 @@ coverage-check: ## Verifies $(COVERAGE_DOC_PATH) is up to date (run by qualify a
fi; \
echo "$(COVERAGE_DOC_PATH) is up to date"

VERSION_MATRIX_DOC_PATH := docs/user/component-version-matrix.md

.PHONY: version-matrix-docs
version-matrix-docs: ## Regenerates the component version matrix in $(VERSION_MATRIX_DOC_PATH) from git history
@set -e; \
if ! grep -q '<!-- BEGIN AICR-VERSION-MATRIX -->' $(VERSION_MATRIX_DOC_PATH) || \
! grep -q '<!-- END AICR-VERSION-MATRIX -->' $(VERSION_MATRIX_DOC_PATH); then \
echo "ERROR: $(VERSION_MATRIX_DOC_PATH) is missing AICR-VERSION-MATRIX markers." >&2; exit 1; \
fi; \
TMP="$$(mktemp -d)"; \
trap 'rm -rf "$$TMP"' EXIT; \
{ ./tools/upgrade-matrix --releases 8; echo; echo "## Transitions"; echo; \
./tools/upgrade-matrix --releases 8 --transitions; } > "$$TMP/matrix.md"; \
awk -v body="$$TMP/matrix.md" ' \
/<!-- BEGIN AICR-VERSION-MATRIX -->/ { print; while ((getline line < body) > 0) print line; close(body); skip = 1; next } \
/<!-- END AICR-VERSION-MATRIX -->/ { skip = 0 } \
!skip { print } \
' $(VERSION_MATRIX_DOC_PATH) > "$$TMP/merged.md"; \
mv "$$TMP/merged.md" $(VERSION_MATRIX_DOC_PATH); \
echo "Updated $(VERSION_MATRIX_DOC_PATH)"

.PHONY: bom-pinning-check
bom-pinning-check: ## Verifies every Helm component in the registry has a pinned chart version (per ADR-006)
@set -e; \
Expand Down
Loading
Loading