I can now kubectl get pods. HELL YEEEAAAAHH!!!!

This commit is contained in:
2026-03-25 05:27:25 +08:00
parent 8d91b5546e
commit befd1a470e
9 changed files with 434 additions and 2 deletions

View File

@@ -202,6 +202,21 @@ $(RELEASE_IMAGE): $(RELEASE_DEPS) | $(OUT_DIR)
test -f $@
check-functions:
@echo "Checking function calls vs definitions..."
@awk '/^main\(\)/ { in_main=1; next } \
in_main && /^\}/ { in_main=0 } \
in_main && /^[[:space:]]*[a-zA-Z_][a-zA-Z0-9_]*[[:space:]]*$$/ { \
gsub(/^[ \t]+/, "", $$0); \
print $$0 \
}' ./alpine/rootfs-extra/opt/scripts/bootstrap-control-plane.sh \
| sort -u > /tmp/called.txt
@grep -E '^[a-zA-Z_][a-zA-Z0-9_]*\(\)' ./alpine/rootfs-extra/opt/scripts/bootstrap-control-plane.sh \
| sed 's/().*//' \
| sort -u > /tmp/defined.txt
@echo "Missing functions:"
@comm -23 /tmp/called.txt /tmp/defined.txt || true
# ---- User targets ------------------------------------------------------------
release: $(RELEASE_IMAGE)