@@ -11,17 +11,17 @@ This is a Kubernetes operator that automates external load-balancer configuratio
1111### Component Structure
1212
1313```
14+ api/v1 # API Objects
1415internal/controller/
15- ├── lb.lbconfig.carlosedp.com/ # Main reconciler
16- │ └── externalloadbalancer_controller.go
17- ├── backend/
16+ ├── externalloadbalancer_controller.go # Main reconciler
17+ ├── backend/ # Backend management
1818│ ├── backend_controller/ # Provider interface & orchestration
1919│ ├── backend_loader/ # Auto-registers all providers via init()
20- │ ├── f5/ # F5 BigIP implementation
21- │ ├── netscaler/ # Citrix ADC implementation
22- │ ├── haproxy/ # HAProxy Dataplane API implementation
23- │ └── dummy/ # Testing provider
24- api/lb.lbconfig.carlosedp.com/ v1/ # CRD types
20+ │ ├── f5/ # F5 BigIP implementation
21+ │ ├── netscaler/ # Citrix ADC implementation
22+ │ ├── haproxy/ # HAProxy Dataplane API implementation
23+ │ └── dummy/ # Testing provider
24+ api/v1/ # CRD types
2525```
2626
2727### Provider Plugin Architecture
@@ -70,7 +70,7 @@ kubectl create secret generic dummy-creds \
7070 --from-literal=username=admin \
7171 --from-literal=password=admin \
7272 -n lbconfig-operator-system
73- kubectl apply -f config/samples /lb_v1_externalloadbalancer-dummy.yaml
73+ kubectl apply -n lbconfig-operator-system -f examples /lb_v1_externalloadbalancer-dummy.yaml
7474```
7575
7676### Testing
@@ -81,6 +81,7 @@ kubectl apply -f config/samples/lb_v1_externalloadbalancer-dummy.yaml
8181- ** Scorecard** : ` make scorecard-run ` - Validates operator with OLM scorecard tests
8282
8383** E2E Test Flow** :
84+
84851 . ` e2e-build ` - Builds operator binary, Docker image, bundle manifests, and bundle image (local arch only)
8586 - Uses dev version: sets patch to 0 and adds ` -dev ` suffix (e.g., ` 0.5.1 ` → ` v0.5.0-dev ` ) to distinguish from published releases
8687 - Images tagged as ` E2E_IMG ` and ` E2E_BUNDLE_IMG ` variables
@@ -155,10 +156,10 @@ Prometheus metrics:
155156
156157### Modifying CRD Spec
157158
158- 1 . Edit ` api/lb.lbconfig.carlosedp.com/ v1/externalloadbalancer_types.go `
159+ 1 . Edit ` api/v1/externalloadbalancer_types.go `
1591602 . Add kubebuilder markers for validation/documentation
1601613 . Run ` make generate ` then ` make manifests ` then ` make bundle `
161- 4 . Update samples in ` config/samples /`
162+ 4 . Update samples in ` ./examples /`
162163
163164### Debugging Backend Issues
164165
0 commit comments