Compare commits
27 Commits
feature/at
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 24f954ecd6 | |||
| 92bdd099fc | |||
| 5cf80feb33 | |||
| bdb94ffbe1 | |||
| a5b35848d0 | |||
| 8571ef6f4d | |||
| 69fd48d45b | |||
| bd732883b1 | |||
| 7ee450228f | |||
| 4c011ca6f1 | |||
| 37284ea7ac | |||
| 0ad5f2afae | |||
| 8446c1f032 | |||
| 9276d2538a | |||
| d5086a0b98 | |||
| 56ea582c97 | |||
| 3d21506ff0 | |||
| ef2ede2443 | |||
| ccf89bc2e7 | |||
| fc2a482df1 | |||
| 29575baeb0 | |||
| d4a632d2e4 | |||
| a6062be60e | |||
| c9708a83ea | |||
| bdb7cc4fcd | |||
| fbfa701d42 | |||
| 6bc8c4c84d |
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@ -49,7 +49,7 @@ spec:
|
|||||||
- name: harbor-config
|
- name: harbor-config
|
||||||
mountPath: /docker-config
|
mountPath: /docker-config
|
||||||
- name: tester
|
- name: tester
|
||||||
image: registry.bstein.dev/bstein/ariadne-ci:py312
|
image: python:3.12-slim
|
||||||
command: ["cat"]
|
command: ["cat"]
|
||||||
tty: true
|
tty: true
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
@ -61,7 +61,8 @@ spec:
|
|||||||
- name: docker-config-writable
|
- name: docker-config-writable
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
- name: dind-storage
|
- name: dind-storage
|
||||||
emptyDir: {}
|
persistentVolumeClaim:
|
||||||
|
claimName: jenkins-dind-cache
|
||||||
- name: harbor-config
|
- name: harbor-config
|
||||||
secret:
|
secret:
|
||||||
secretName: harbor-bstein-robot
|
secretName: harbor-bstein-robot
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -189,6 +189,7 @@ class Settings:
|
|||||||
k8s_api_timeout_sec: float
|
k8s_api_timeout_sec: float
|
||||||
vm_url: str
|
vm_url: str
|
||||||
cluster_state_vm_timeout_sec: float
|
cluster_state_vm_timeout_sec: float
|
||||||
|
alertmanager_url: str
|
||||||
|
|
||||||
mailu_sync_cron: str
|
mailu_sync_cron: str
|
||||||
nextcloud_sync_cron: str
|
nextcloud_sync_cron: str
|
||||||
@ -469,6 +470,7 @@ class Settings:
|
|||||||
"http://victoria-metrics-single-server.monitoring.svc.cluster.local:8428",
|
"http://victoria-metrics-single-server.monitoring.svc.cluster.local:8428",
|
||||||
).rstrip("/"),
|
).rstrip("/"),
|
||||||
"cluster_state_vm_timeout_sec": _env_float("ARIADNE_CLUSTER_STATE_VM_TIMEOUT_SEC", 5.0),
|
"cluster_state_vm_timeout_sec": _env_float("ARIADNE_CLUSTER_STATE_VM_TIMEOUT_SEC", 5.0),
|
||||||
|
"alertmanager_url": _env("ARIADNE_ALERTMANAGER_URL", "").rstrip("/"),
|
||||||
"cluster_state_cron": _env("ARIADNE_SCHEDULE_CLUSTER_STATE", "*/15 * * * *"),
|
"cluster_state_cron": _env("ARIADNE_SCHEDULE_CLUSTER_STATE", "*/15 * * * *"),
|
||||||
"cluster_state_keep": _env_int("ARIADNE_CLUSTER_STATE_KEEP", 168),
|
"cluster_state_keep": _env_int("ARIADNE_CLUSTER_STATE_KEEP", 168),
|
||||||
}
|
}
|
||||||
|
|||||||
@ -143,6 +143,19 @@ def test_collect_cluster_state(monkeypatch) -> None:
|
|||||||
assert snapshot["metrics"]["pod_mem_top"] == []
|
assert snapshot["metrics"]["pod_mem_top"] == []
|
||||||
assert snapshot["metrics"]["job_failures_24h"] == []
|
assert snapshot["metrics"]["job_failures_24h"] == []
|
||||||
assert snapshot["metrics"]["pvc_usage_top"] == []
|
assert snapshot["metrics"]["pvc_usage_top"] == []
|
||||||
|
assert snapshot["summary"]["counts"]["nodes_total"] == 5.0
|
||||||
|
assert snapshot["summary"]["counts"]["nodes_ready"] == 5.0
|
||||||
|
assert snapshot["summary"]["counts"]["pods_running"] == 5.0
|
||||||
|
assert snapshot["summary"]["top"]["namespace_pods"][0]["namespace"] == "media"
|
||||||
|
assert snapshot["summary"]["baseline_window"]
|
||||||
|
assert "workload_not_ready" in snapshot["summary"]["top"]
|
||||||
|
assert "pod_restarts" in snapshot["summary"]["top"]
|
||||||
|
assert "attention_ranked" in snapshot["summary"]
|
||||||
|
assert snapshot["summary"]["health_bullets"]
|
||||||
|
assert snapshot["summary"]["unknowns"] == []
|
||||||
|
assert snapshot["context"]["nodes"]
|
||||||
|
assert snapshot["context"]["namespaces"]
|
||||||
|
assert "baseline" in snapshot["context"]["nodes"][0]
|
||||||
assert summary.nodes_total == 2
|
assert summary.nodes_total == 2
|
||||||
assert summary.nodes_ready == 1
|
assert summary.nodes_ready == 1
|
||||||
assert summary.pods_running == 5.0
|
assert summary.pods_running == 5.0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user