https://github.com/podmortem/common-lib
A common library for the Quarkus components of podmortem
https://github.com/podmortem/common-lib
Last synced: 3 months ago
JSON representation
A common library for the Quarkus components of podmortem
- Host: GitHub
- URL: https://github.com/podmortem/common-lib
- Owner: podmortem
- License: apache-2.0
- Created: 2025-06-20T05:30:19.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-08-07T19:18:39.000Z (11 months ago)
- Last Synced: 2025-08-07T21:19:31.214Z (11 months ago)
- Language: Java
- Size: 115 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# common-lib
A Quarkus-based common library providing shared models and interfaces for the Podmortem system.
## Overview
This library contains the core data models, interfaces, and Kubernetes Custom Resource Definitions (CRDs) used across all Podmortem components. It provides a unified foundation for pod failure analysis, AI provider integration, and pattern library management.
## Key Components
- **Provider Models** - Common interfaces and data models for AI provider integration
- **Analysis Models** - Data structures for log analysis results and failure pattern matching
- **Pattern Models** - Definitions for failure patterns, remediation steps, and pattern libraries
- **Kubernetes CRDs** - Custom Resource Definitions for AI providers, pattern libraries, and pod monitoring
## Kubernetes Resources
- **AIProvider** - Configuration for AI services (OpenAI, Ollama, etc.)
- **PatternLibrary** - Management of failure pattern repositories
- **Podmortem** - Pod failure monitoring and analysis configuration
## Usage
This library is consumed as a dependency by other Podmortem components:
- `ai-interface` - Uses provider models and analysis interfaces
- `log-parser` - Uses analysis and pattern models for log processing
- `operator` - Uses all CRD models for Kubernetes resource management
## Building
```bash
./mvnw package
```
For native compilation:
```bash
./mvnw package -Dnative
```