19 lines
514 B
Python
19 lines
514 B
Python
from collections.abc import Callable
|
|
|
|
import yaml
|
|
|
|
|
|
def extract_k8s_images(manifest_yaml: str) -> list[str]:
|
|
_ = yaml
|
|
raise NotImplementedError(
|
|
"Użyj yaml.safe_load i wyciągnij image z spec.template.spec.containers"
|
|
)
|
|
|
|
|
|
def count_error_lines(log_text: str) -> int:
|
|
raise NotImplementedError("Policz linie zawierające 'ERROR' lub 'CRITICAL'")
|
|
|
|
|
|
def retry_call[T](fn: Callable[[], T], attempts: int) -> T:
|
|
raise NotImplementedError("Wywołuj fn() do attempts razy przy RuntimeError")
|