Causa backend changes - #32
Draft
gulati-aakriti wants to merge 16 commits into
Draft
Conversation
- Add INSTALL_TARGET=openshift to CLI (--target openshift) - Add _is_openshift_target() helper - Split validate_prerequisites for openshift (no kind/docker needed) - Split validate_cluster_access for openshift (trust current kubeconfig context) - Add POSTGRES_KIND_IMAGE / POSTGRES_OCP_IMAGE CLI flags and env vars - Add postgres image overrides to validate_image_overrides - Add post_component_validation CNPG health check for OpenShift - Source install_openshift_infra.sh and install_openshift_monitoring.sh - Add .gitignore entries for OCP TLS cert/kubeconfig files - Update usage docs and help text for openshift target
- Add lib/install_openshift_infra.sh (namespace/SCC setup for OCP) - Add lib/install_openshift_monitoring.sh (configure UWM Alertmanager webhook + PrometheusRule) - Add manifests/openshift/ Route and SCC manifests - Wire install_openshift_infra + install_openshift_prometheus into main install/uninstall flow - Add _print_access_summary OpenShift Route output - Renumber install steps (2a/2b, 3b) for kind vs openshift divergence
- Add CNPG operator install/uninstall (OLM Subscription, OperatorGroup, InstallPlan approval) - Add CNPG Cluster CRD management with idempotent healthy-cluster check (preserves data on re-run) - Add _cnpg_create_causa_db_secrets — always syncs causa-db-secrets from live iri-db-app secret - Add manifests/postgres/operator/ and manifests/postgres/database-cluster/ - Fix kind path: switch to pgvector/pgvector:pg17; remove shared_preload_libraries=vector arg - Add CNPG credential resync in install_causa (handles password rotation between install steps) - Add uninstall_postgres OpenShift path (delete Cluster, Subscription, CSV, OperatorGroup)
…branch Jafra Ecosystem, Jafra MCP Server, and Quarkus MCP are not deployed on OpenShift in feat/openshift-postgres (kind-only via _install_kind_components). Remove the stale OpenShift manifests that were added prematurely: - manifests/openshift/jafra-mcp-route.yaml - manifests/openshift/jafra/jafra-agent-scc.yaml
Replace the single causa-backend-manifests.yaml with individual files under manifests/openshift/causa-backend/: - serviceaccount.yaml - configmap.yaml - deployment.yaml - service.yaml - route.yaml (moved from causa-backend-route.yaml) Update install_causa.sh to apply/delete each file individually.
…xt switch, fix Ctrl+C trap, expand access summary
Reviewer's GuideExtends the installer for OpenShift alongside Kind by adding target-specific manifests, Routes, SCC and CNPG-based PostgreSQL provisioning, wires Causa Backend MCP endpoints including a configurable analyzed-Quarkus URL, and strengthens readiness, uninstall, access-summary, and signal-handling behavior. Sequence diagram for Causa Backend installation and endpoint wiringsequenceDiagram
participant Installer
participant Kubernetes
participant CausaBackend
participant QuarkusMCP
participant JafraMCP
Installer->>Kubernetes: install_causa
Kubernetes-->>Installer: causa-backend ready
Installer->>Kubernetes: _set_causa_env_vars
Kubernetes->>CausaBackend: set CAUSA_MCP_QUARKUS_ENDPOINT
Kubernetes->>CausaBackend: set CAUSA_MCP_QUARKUS_METRICS_BASE_URL
Kubernetes->>CausaBackend: set CAUSA_MCP_ASYNC_PROFILER_ENDPOINT
Installer->>Kubernetes: _rollout_causa
Kubernetes-->>Installer: rollout complete
CausaBackend->>QuarkusMCP: CAUSA_MCP_QUARKUS_ENDPOINT
CausaBackend->>JafraMCP: CAUSA_MCP_ASYNC_PROFILER_ENDPOINT
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary by Sourcery
Extend the installer to deploy and manage the Causa RCA stack consistently on Kind and OpenShift with configurable integrations, platform-native networking, and database provisioning.
New Features:
Bug Fixes:
Enhancements:
Deployment:
Documentation: