httpbin/image, migrated from platform-mesh/custom-images, built and pushed asghcr.io/platform-mesh/example-httpbin-operator/httpbintagged with the operator's version--httpbin-imageflag to override the httpbin image the operator deploysmake httpbin-buildfor local builds of the httpbin image
- 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
- 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
- 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
- internal/controller/httpbin_controller.go
To use the multi-cluster feature:
- Start the operator with the remote-kubeconfig flag:
./bin/manager --remote-kubeconfig=/path/to/remote/kubeconfig - The operator will automatically:
- Sync HttpBin resources to the remote cluster
- Clean up remote resources when local resources are deleted
- Maintain consistency between clusters
None - All planned multi-cluster functionality has been implemented