mirror of
https://github.com/dredx/prole.git
synced 2026-09-27 03:14:29 +00:00
- Monitoring: Migrated from manual Grafana/Prometheus manifests to kube-prometheus-stack based setup in etc/init_monitoring.sh. Removed old manifest files from deploy/ and k8s/. - Installer Core: Refactored installer with new modules for actions, environment handling, and UI screens. Enhanced Milestone logic to support advanced configuration (ArgoCD, Registry namespaces, Kerberos flags, etc.). - Service & Init Scripts: Updated multiple initialization scripts (init_*.sh) for better integration with OpenBao, Kerberos, and the new monitoring stack. Added new scripts for Nginx Ingress, Ollama parsing, and K3D route fixes. - Infrastructure: Enhanced Samba AD DC Ansible role with realm derivation, provisioning guidance, and group management. Updated K3s role tasks. - Configuration: Refined default settings in conf/ to align with the new deployment architecture. - App & Tools: Updated prole-app Swift code and prole.sh for improved environment variable handling and installation flow.
31 lines
781 B
Python
31 lines
781 B
Python
import json
|
|
import sys
|
|
try:
|
|
data = sys.stdin.read().strip()
|
|
if not data:
|
|
sys.exit(1)
|
|
payload = json.loads(data)
|
|
if isinstance(payload, list):
|
|
models_list = payload
|
|
elif isinstance(payload, dict):
|
|
models_list = payload.get("models", payload.get("tags", payload.get("models_list", [])))
|
|
else:
|
|
sys.exit(1)
|
|
|
|
if not isinstance(models_list, list):
|
|
sys.exit(1)
|
|
|
|
names = []
|
|
for entry in models_list:
|
|
if isinstance(entry, dict):
|
|
name = entry.get("name") or entry.get("model")
|
|
elif isinstance(entry, str):
|
|
name = entry
|
|
else:
|
|
continue
|
|
if name:
|
|
names.append(name)
|
|
print(",".join(names))
|
|
except Exception:
|
|
sys.exit(1)
|