chore: initialize containerized Python learning workbook (2026 DevOps/SRE)

This commit is contained in:
soda64 committed 2026-11-30 22:55:56 +01:00
commit ae4c421815
63 files changed
+1273

No files matched your search

@@ -0,0 +1,11 @@
# 03 — Automatyzacja DevOps/SRE (YAML, analiza logów, retry)
## Zadania (`devops_ops.py`)
1. `extract_k8s_images(manifest_yaml: str) -> list[str]` — wyciągnij nazwy obrazów (`image`) z kontenerów w manifeście Deployment YAML (`yaml.safe_load`).
2. `count_error_lines(log_text: str) -> int` — policz linie zawierające poziom `ERROR` lub `CRITICAL`.
3. `retry_call(fn: Callable[[], T], attempts: int) -> T` — ponawiaj wywołanie do `attempts` razy przy wyjątku `RuntimeError`.
## Uruchomienie testów
```bash
make test MOD=03-ecosystems/03-devops-automation
```