I can now kubectl get pods. HELL YEEEAAAAHH!!!!
This commit is contained in:
15
makefile
15
makefile
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user