From b391fd017bc3b77ca40c12e7b744aeddbda54b66 Mon Sep 17 00:00:00 2001 From: Lee Chapman Date: Sun, 11 Jan 2026 12:47:02 -0800 Subject: [PATCH 1/3] fix: add build target to Makefile The CI pipeline uses 'make build' but the Makefile didn't have a build target for Python projects. Error: make: *** No rule to make target 'build'. Stop. Changes: - Added build target that runs 'pip install --upgrade pip build' and 'python -m build' - Build depends on clean target to ensure fresh builds - Updated .PHONY declaration to include build - Updated help text to include build target --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index cfd1d07..b58bede 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: help install dev test lint format clean docker-build docker-login docker-push docker-pull docker-run run check check-all commit-changes release venv +.PHONY: help install dev test lint format clean build docker-build docker-login docker-push docker-pull docker-run run check check-all commit-changes release venv # Force use of bash shell (required for make to work properly with line continuations) SHELL := /bin/bash @@ -67,6 +67,10 @@ format: $(BLACK) src tests $(RUFF) check --fix src tests +build: clean + pip install --upgrade pip build + python -m build + clean: find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true find . -type f -name "*.pyc" -delete From 6efe0af790f716d9cf3608ec464bbe35d1ad8c80 Mon Sep 17 00:00:00 2001 From: Lee Chapman Date: Sun, 11 Jan 2026 23:13:01 -0800 Subject: [PATCH 2/3] Add poller secrets example manifest - Add poller-secrets-example.yaml with all poller environment variables - Includes instructions for creating the secret via kubectl - Documents all required secret keys for poller deployment Secret contains: - database-url: PostgreSQL connection string - helldivers-api-base: Hell Divers 2 API endpoint - helldivers-api-client-name: Client identifier - helldivers-api-contact: Contact information - scrape-interval: Data collection interval --- k8s/poller-secrets-example.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 k8s/poller-secrets-example.yaml diff --git a/k8s/poller-secrets-example.yaml b/k8s/poller-secrets-example.yaml new file mode 100644 index 0000000..3b4ebf4 --- /dev/null +++ b/k8s/poller-secrets-example.yaml @@ -0,0 +1,33 @@ +apiVersion: v1 +kind: Secret +metadata: + name: high-command-poller-secrets + namespace: high-command +type: Opaque +stringData: + # PostgreSQL database connection string + # Format: postgresql://username:password@host:port/database + database-url: "postgresql://highcommand:CHANGE_ME_TO_SECURE_PASSWORD@high-command-postgres-rw.high-command.svc.cluster.local:5432/highcommand" + + # Hell Divers 2 API configuration + helldivers-api-base: "https://api.helldivers2.dev/api/v1" + helldivers-api-client-name: "High Command" + helldivers-api-contact: "lee@fullmetal.dev" + + # Poller configuration + scrape-interval: "300" +--- +# Example: Create this secret using kubectl: +# +# kubectl create secret generic high-command-poller-secrets \ +# --from-literal=database-url='postgresql://highcommand:password@high-command-postgres-rw.high-command.svc.cluster.local:5432/highcommand' \ +# --from-literal=helldivers-api-base='https://api.helldivers2.dev/api/v1' \ +# --from-literal=helldivers-api-client-name='High Command' \ +# --from-literal=helldivers-api-contact='lee@fullmetal.dev' \ +# --from-literal=scrape-interval='300' \ +# -n high-command +# +# Or generate from a file: +# kubectl create secret generic high-command-poller-secrets \ +# --from-env-file=/path/to/poller.env \ +# -n high-command From dcf9155f2c40068121eb6a0794f5aed1de94a4e1 Mon Sep 17 00:00:00 2001 From: Lee Chapman Date: Sun, 11 Jan 2026 23:15:04 -0800 Subject: [PATCH 3/3] Update poller secrets example to use example API contact - Change helldivers-api-contact from actual email to example value - Use 'your-email@example.com' as placeholder --- k8s/poller-secrets-example.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/k8s/poller-secrets-example.yaml b/k8s/poller-secrets-example.yaml index 3b4ebf4..f4f73a1 100644 --- a/k8s/poller-secrets-example.yaml +++ b/k8s/poller-secrets-example.yaml @@ -12,7 +12,7 @@ stringData: # Hell Divers 2 API configuration helldivers-api-base: "https://api.helldivers2.dev/api/v1" helldivers-api-client-name: "High Command" - helldivers-api-contact: "lee@fullmetal.dev" + helldivers-api-contact: "your-email@example.com" # Poller configuration scrape-interval: "300" @@ -23,7 +23,7 @@ stringData: # --from-literal=database-url='postgresql://highcommand:password@high-command-postgres-rw.high-command.svc.cluster.local:5432/highcommand' \ # --from-literal=helldivers-api-base='https://api.helldivers2.dev/api/v1' \ # --from-literal=helldivers-api-client-name='High Command' \ -# --from-literal=helldivers-api-contact='lee@fullmetal.dev' \ +# --from-literal=helldivers-api-contact='your-email@example.com' \ # --from-literal=scrape-interval='300' \ # -n high-command #