feat: Introduce K8sAnywhereTopology and refactor Kubernetes interactions

This commit introduces a new topology, `K8sAnywhereTopology`, designed to handle Kubernetes deployments more flexibly.

Key changes include:

- Introduced `K8sAnywhereTopology` to encapsulate Kubernetes client management and configuration.
- Refactored existing Kubernetes-related code to utilize the new topology.
- Updated `OcK8sclient` to `K8sclient` across modules (k8s, lamp, deployment, resource) for consistency.
- Ensured all relevant modules now interface with Kubernetes through the `K8sclient` trait.

This change promotes a more modular and maintainable codebase for Kubernetes integrations within Harmony.
This commit is contained in:
2025-04-14 14:57:01 -04:00
parent 027114c48c
commit 6812d05849
8 changed files with 145 additions and 18 deletions

View File

@@ -1,8 +1,10 @@
mod ha_cluster;
mod host_binding;
mod http;
mod k8s_anywhere;
pub use k8s_anywhere::*;
mod load_balancer;
pub mod openshift;
pub mod k8s;
mod router;
mod tftp;
use async_trait::async_trait;