Commit Graph

10 Commits

Author SHA1 Message Date
Jonathan Stacks aa1781d348 Dependency updates (#785)
* chore: Update to go 1.26.1

Signed-off-by: Jonathan Stacks <jonstacks@users.noreply.github.com>

* chore: Run 'go fix ./...' for go 1.26.1

Signed-off-by: Jonathan Stacks <jonstacks@users.noreply.github.com>

* chore: Upgrade go modules

Signed-off-by: Jonathan Stacks <jonstacks@users.noreply.github.com>

* chore: Fix deprecations and linter warnings

Signed-off-by: Jonathan Stacks <jonstacks@users.noreply.github.com>

---------

Signed-off-by: Jonathan Stacks <jonstacks@users.noreply.github.com>
2026-03-23 16:50:43 +00:00
alex bezek 9265a22cfc Fix test flake in service controller (#784)
Fix test flake in service controlle
2026-03-17 20:06:17 +00:00
alex bezek a1c728e431 Allow helm uninstall to be configured to handle cleaning up api resou… (#750)
* Allow helm uninstall to be configured to handle cleaning up api resources and removing finalizers

* update helm values readme

* fix lint in drain.go

* Update helm snapshots

* use endpoints-verbose in tests and add a tiny sleep to the drain

* add more go tests

* code review comments addressed: move dockerfile args back, simplify api-manager.go kubernetesoperator changes, and add type of drainstatus in type
2026-02-05 15:59:25 +00:00
Jonathan Stacks 379d2bd702 feat: Label operator created resources consistently with k8s.ngrok.com/controller-name and k8s.ngrok.com/controller-namespace labels. (#741)
* chore: Remove old migration code for kubernetes-operator -> ngrok-operator

Signed-off-by: Jonathan Stacks <jonstacks@users.noreply.github.com>

* refactor(labels): Add label helpers to controller package

Remove duplicated logic in the driver package

Signed-off-by: Jonathan Stacks <jonstacks@users.noreply.github.com>

* feat(lb-services): Add controller labels to owned resources

Signed-off-by: Jonathan Stacks <jonstacks@users.noreply.github.com>

* fix: Add labels for cloud & agent endpoint controllers

Signed-off-by: Jonathan Stacks <jonstacks@users.noreply.github.com>

---------

Signed-off-by: Jonathan Stacks <jonstacks@users.noreply.github.com>
2026-01-13 17:45:38 +00:00
alex bezek ea488a0d10 Fix race condition in env test for service controller (#733) 2025-12-16 19:18:32 +00:00
alex bezek a956d80377 Remove the deprecated domain annotation on Load balancer services in … (#722)
* Remove the deprecated domain annotation on Load balancer services in favor of the url annotation

* Fix status calculation and update tests

* remove default behavior of trying to parse annotation to set status and isntead derive it from the computed url satus

* Set computed URL even for tls connections

* lint

* handle setting service status field based on domainRef to get CNAME value for custom domains

* remove chainsaw test for now

* remove chainsaw asserts as well...
2025-12-15 21:13:30 +00:00
Jonathan Stacks 9d5a280a2c fix: kginkgo helpers (#706)
* chore: Add kginkgo helper for adding annotations

Signed-off-by: Jonathan Stacks <jonstacks@users.noreply.github.com>

* fix: kginkgo hardcoding service

Some of the helpers were harding to service when they should be more flexible

Signed-off-by: Jonathan Stacks <jonstacks@users.noreply.github.com>

---------

Signed-off-by: Jonathan Stacks <jonstacks@users.noreply.github.com>
2025-11-06 22:38:48 +00:00
Jonathan Stacks ec341442ba Test cleanup (#696)
* test: Fix inconsistencies in documentation with By()

* test(lb-services): Use a namespace for each test

Cleans up the code a bit
2025-10-27 21:19:44 +00:00
Jonathan Stacks 1bfa096254 fix(lb-services): Fix too frequent reconciles for lb-services (#694)
The change in #693 to fix a bug with Cloud/Agent Endpoint changes
not triggering re-reconciles had the adverse affect of watching
for all changes on cloud/agent endpoints and re-conciling too
frequently. We now use a better predicate filter on the service
to determine if it needs to be updated.

The status update was also not deterministic since the cloud and
agent endpoint status are different. We now correctly determine
the right object to use for status update.

In addition, we now also guard against trying to update the status
if it is already up to date.

Signed-off-by: Jonathan Stacks <jonstacks@users.noreply.github.com>
2025-10-27 06:28:54 +00:00
Jonathan Stacks 92b135c9c2 fix: Load Balancer service status not working when using default mapping strategy (#693)
* refactor(service-controller): Move to own directory

Signed-off-by: Jonathan Stacks <jonstacks@users.noreply.github.com>

* feat: Add TCP Addresses mock client

Signed-off-by: Jonathan Stacks <jonstacks@users.noreply.github.com>

* chore: Update boilerplate.go.txt

Signed-off-by: Jonathan Stacks <jonstacks@users.noreply.github.com>

* chore: Add helper function in common types

Signed-off-by: Jonathan Stacks <jonstacks@users.noreply.github.com>

* test: Add kginkgo helpers

Signed-off-by: Jonathan Stacks <jonstacks@users.noreply.github.com>

* test: Add more tests for LB services

In doing so, migrate to envtest to test the controller. Also fix a bug while we are at it

Signed-off-by: Jonathan Stacks <jonstacks@users.noreply.github.com>

* docs: Add a spec for the service controller

Signed-off-by: Jonathan Stacks <jonstacks@users.noreply.github.com>

---------

Signed-off-by: Jonathan Stacks <jonstacks@users.noreply.github.com>
2025-10-24 18:38:36 +00:00