Skip to content

Add poller secrets example manifest - #31

Merged
surrealwolf merged 7 commits into
mainfrom
feat/add-poller-secrets-example
Jan 12, 2026
Merged

Add poller secrets example manifest#31
surrealwolf merged 7 commits into
mainfrom
feat/add-poller-secrets-example

Conversation

@surrealwolf

Copy link
Copy Markdown
Collaborator

Summary

Adds example Kubernetes Secret manifest for the High Command Poller service.

Changes

New File

  • k8s/poller-secrets-example.yaml - Example secret manifest with instructions

Secret Contents

The secret contains all sensitive environment variables for the poller:

  • 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 (seconds)

Usage

Create the 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

Related

This secret is used by the poller deployment (see k8s/poller-deployment.yaml in the main k8s directory).

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
- 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
- Change helldivers-api-contact from actual email to example value
- Use 'your-email@example.com' as placeholder
@surrealwolf
surrealwolf merged commit 599fd58 into main Jan 12, 2026
8 checks passed
@surrealwolf
surrealwolf deleted the feat/add-poller-secrets-example branch January 12, 2026 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant