Skip to content

Latest commit

 

History

History
49 lines (42 loc) · 1.83 KB

CHANGELOG.md

File metadata and controls

49 lines (42 loc) · 1.83 KB

Changelog

[Unreleased]

Added

  • httpbin/ image, migrated from platform-mesh/custom-images, built and pushed as ghcr.io/platform-mesh/example-httpbin-operator/httpbin tagged with the operator's version
  • --httpbin-image flag to override the httpbin image the operator deploys
  • make httpbin-build for local builds of the httpbin image

Added

  • Multi-cluster support for HttpBin operator
    • Added RemoteClient field to HttpBinReconciler struct
    • Added --remote-kubeconfig flag to specify remote cluster configuration
    • Implemented remote cluster resource management in Reconcile function
    • Added remote cluster cleanup in finalizer

Changed

  • Redesigned HttpBinReconciler to operate exclusively on remote cluster
    • Removed local cluster operations completely
    • Controller now watches and manages HttpBin resources in remote cluster
    • Creates HttpBinDeployments in remote cluster when HttpBin is detected
    • Simplified design with single RemoteClient for all operations

Technical Details

  • Modified files:
    • internal/controller/httpbin_controller.go
      • Added RemoteClient field to HttpBinReconciler
      • Updated Reconcile function to handle remote cluster operations
      • Enhanced finalizer to clean up remote resources
    • cmd/main.go
      • Added remote-kubeconfig flag
      • Implemented remote client creation
      • Updated HttpBinReconciler initialization

Usage

To use the multi-cluster feature:

  1. Start the operator with the remote-kubeconfig flag:
    ./bin/manager --remote-kubeconfig=/path/to/remote/kubeconfig
    
  2. The operator will automatically:
    • Sync HttpBin resources to the remote cluster
    • Clean up remote resources when local resources are deleted
    • Maintain consistency between clusters

Remaining Tasks

None - All planned multi-cluster functionality has been implemented