Make AfterEach cleanup blocks more robust by only attempting to delete
resources if they exist. This prevents test failures when resources have
already been deleted or don't exist.
Changes:
- Check if resource exists before attempting deletion
- Only call Delete if Get succeeds (err == nil)
- Applied to all 5 controller test files
This fixes intermittent test failures in GitHub Actions where AfterEach
was failing with resource not found errors.
Change module path from:
gitea.engen.priv.no/klauvsteinen/unifi-network-operator
To:
github.com/vegardengen/unifi-network-operator
This fixes the module path mismatch error in GitHub Actions.
Changes:
- Updated go.mod module declaration
- Updated all import statements in Go files
- Updated kustomization and ko config files
- Ran go mod tidy to update dependencies
This is required for the project to build correctly on GitHub.