fix: add request_upgrades.py to image, add web dashboard
CI/CD / lint-test (push) Failing after 1m40s
CI/CD / build-push (push) Has been skipped

- Dockerfile: add COPY for request_upgrades.py (was missing — root cause
  of Monday upgrade CronJob failing with 'No such file'), add git (needed
  for repo cloning in upgrade workflow), copy web.py + templates/
- requirements.txt: add fastapi, uvicorn, jinja2 for web dashboard
- web.py: FastAPI dashboard with image inventory and upgrade trigger pages
- templates/: base layout, images page (namespace→app→container grouped
  with live version status), upgrade page (outdated list + trigger button
  + job history)
- kubernetes/web-deployment.yaml: Deployment + LoadBalancer at 192.168.87.13
- kubernetes/rbac.yaml: add version-tracker-web ServiceAccount, ClusterRole
  (read pods/deployments/replicasets/statefulsets/daemonsets/jobs/cronjobs),
  and namespace Role to create upgrade Jobs
- kubernetes/upgrade-cronjob.yaml: fix YAML indentation bug on GITEA_USERNAME
  and GITEA_COMMITTER_NAME env vars
This commit is contained in:
claude-code
2026-07-12 16:15:15 +00:00
parent cb7a2abf17
commit 5ac7b2f5c5
9 changed files with 985 additions and 3 deletions
+4
View File
@@ -2,6 +2,7 @@ FROM python:3.12-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
skopeo \
git \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
@@ -9,5 +10,8 @@ COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY check_versions.py .
COPY request_upgrades.py .
COPY web.py .
COPY templates/ templates/
CMD ["python", "check_versions.py"]