-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
canary: Check canary service for nil elements
pkg/operator/controller/canary/route.go: Check that the canary service is not nil and that the canary service has a non-empty spec.ports field when building the canary route via `desiredCanaryRoute` to avoid nil dereferences. pkg/operator/controller/canary/route_test.go: Ensure `desiredCanaryRoute` does not return any errors.
- Loading branch information
1 parent
123df7d
commit 89e8bee
Showing
2 changed files
with
24 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters