Skip to content

Conversation

@STRRL
Copy link
Owner

@STRRL STRRL commented Nov 8, 2025

No description provided.

STRRL and others added 2 commits November 7, 2025 20:43
…rnal package

Move webhook implementation from api/v1alpha1 to internal/webhook package
following Kubebuilder best practices for webhook organization. Implement
proper defaulting for component images through webhook defaulter instead
of hardcoding fallbacks in controller.

Changes:
- Move SupabaseProjectWebhook to internal/webhook package
- Add wellknown_supabase_images.go with centralized default image constants
- Implement Default() method to set component image defaults
- Simplify controller by using spec.Component.Image directly
- Update webhook registration in main.go

This improves separation of concerns and ensures image defaults are set
at admission time rather than reconciliation time.

Co-Authored-By: Claude <noreply@anthropic.com>
Restructure resource management by introducing a ComponentBuilder
interface and ComponentReconciler to standardize component lifecycle
management across all Supabase services.

Changes:
- Rename internal/resources package to internal/component
- Add ComponentBuilder interface with BuildDeployment/BuildService
- Create ComponentReconciler for unified reconciliation logic
- Update all component implementations to use new abstraction
- Refactor SupabaseProjectController to leverage ComponentReconciler

This improves code maintainability and reduces duplication in the
reconciliation logic for Kong, Auth, PostgREST, Realtime, Storage,
Meta, and Studio components.

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants