Skip to content

Commit fb2ca95

Browse files
butler54claude
andcommitted
feat: automate firmware reference value collection with full pod lifecycle
Replace direct Vault push script with full lifecycle automation following the established Pattern A (local file → values-secret.yaml → Vault): - Rewrite collect-firmware-refvals.sh to manage complete pod lifecycle: launch kata pod, install veritas, collect measurements, save locally, cleanup pod via trap handlers - Change output format from multi-key Vault secret to single JSON blob saved to ~/.coco-pattern/firmware-reference-values.json - Add --merge option to support multi-OCP-version reference values - Add --namespace, --output, --runtime-class, --pod-image options - Update values-secret.yaml.template to reference local JSON file - Update Makefile targets: collect-firmware-refvals and collect-firmware-refvals-merge - Update gen-secrets.sh bare metal messaging - Rewrite docs/firmware-reference-values.md for automated workflow This aligns firmware reference value management with pcrStash and KBS keys patterns, eliminating manual Vault interaction. Requires trustee-chart PR #30 (single JSON blob consumption). Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 6d1d5de commit fb2ca95

5 files changed

Lines changed: 350 additions & 260 deletions

File tree

Makefile

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@
55
include Makefile-common
66

77
##@ Firmware Reference Values
8-
.PHONY: push-firmware-refvals
9-
push-firmware-refvals: ## Push firmware reference values to Vault (REFVALS_FILE=<path>)
10-
@if [ -z "$(REFVALS_FILE)" ]; then \
11-
echo "Error: REFVALS_FILE not specified" >&2; \
12-
echo "Usage: make push-firmware-refvals REFVALS_FILE=./refvals.json" >&2; \
13-
exit 1; \
14-
fi
15-
@scripts/collect-firmware-refvals.sh $(REFVALS_FILE)
8+
.PHONY: collect-firmware-refvals
9+
collect-firmware-refvals: ## Collect firmware reference values from bare metal cluster
10+
@scripts/collect-firmware-refvals.sh
11+
12+
.PHONY: collect-firmware-refvals-merge
13+
collect-firmware-refvals-merge: ## Collect and merge with existing firmware refvals
14+
@scripts/collect-firmware-refvals.sh --merge

0 commit comments

Comments
 (0)