-
Notifications
You must be signed in to change notification settings - Fork 867
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Traefik support. Fixes #516 #1907
feat: Traefik support. Fixes #516 #1907
Conversation
Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com>
Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com>
Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com>
Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com>
Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com>
Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com>
Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com>
Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com>
Codecov Report
@@ Coverage Diff @@
## master #1907 +/- ##
==========================================
- Coverage 82.51% 82.50% -0.02%
==========================================
Files 119 120 +1
Lines 16919 17054 +135
==========================================
+ Hits 13961 14070 +109
- Misses 2265 2283 +18
- Partials 693 701 +8
Continue to review full report at Codecov.
|
0fbf1bf
to
0accb50
Compare
b9b7741
to
58779d2
Compare
Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com>
Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com>
Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com>
Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com>
Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com>
Please update rollouts controller rbac permissions allowing it to update the traefik service resources. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
have one comment for the VerifyWeight
return selectedService, nil | ||
} | ||
|
||
func (r *Reconciler) VerifyWeight(desiredWeight int32, additionalDestinations ...v1alpha1.WeightDestination) (*bool, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably there is no need to implement this method in that way. You're accessing the same traefic service object (which you just modified in a SetWeight method)
Right now it's implemented for ALB only. The reason whay we have this implementation for the ALB is delays in traffic shifting.
For the ALB once you modified the Ingress object it take some time to really shift the traffic by creating/modifying target group. So here we need to make validation against the target group objects to see the traffic was really updated.
Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com>
Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com>
Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com>
Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com>
Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com>
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@PhilippPlotnikov Hello !
|
I found that after "Degraded" selector of kind:Service canary not return to old ReplicaSet Hash. And still remains in new ReplicaSet Hash. That's why canary-service doesn't have endpoints. And TraefikService not serve traffic to stable version,
|
* Make Traefik suppurt Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com> * Make Traefik suppurt Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com> * Make Traefik suppurt Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com> * Traefik support Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com> * Traefik support Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com> * Update traefik Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com> * Implement traefil support Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com> * make codegen Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com> * Refactor Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com> * Add traefik tests Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com> * Goimports Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com> * Refactor Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com> * Add test to trafiicrouting_test.go Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com> * Remove added test to trafficrouting_test.go Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com> * Refactor Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com> * Refactor Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com> * Generate new files Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com> * Make codegen Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com> * Add tests Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com> * Add tests Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com> * Add tests Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com> * Add test Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com> * Change tests Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com> * Add mocks Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com> * Add tests Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com> * Add tests Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com> * Change go.yml Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com> * Refactor Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com> * Back apimachinery package version Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com> * Revert "Back apimachinery package version" This reverts commit 34c61b8. Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com> * Fix Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com> * Bump Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com> * Refactor Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com> * Add field doc Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com> * Make codegen Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com> * Removew verifyWeight and add permissions Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com> * Back go.yml Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com> * Back go.yml Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com> * Change manifests Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com> * Refactor Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com> * Fix tests Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com> * Add tests Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com> * Add test Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com> * Bump Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com> * Add documentation Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com> * Refactor Signed-off-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com> * Refactor Signed-off-by: PhilippPlotnikov <philipp.plotnikov@codefresh.io> * Bump Signed-off-by: PhilippPlotnikov <philipp.plotnikov@codefresh.io> * Refactor Signed-off-by: PhilippPlotnikov <philipp.plotnikov@codefresh.io> * Bump Signed-off-by: PhilippPlotnikov <philipp.plotnikov@codefresh.io> * Bump Signed-off-by: PhilippPlotnikov <philipp.plotnikov@codefresh.io> Co-authored-by: PhilippPlotnikov <70917163+PhilippDeveloper@users.noreply.github.com>
Fixes #516
Checklist:
"fix(controller): Updates such and such. Fixes #1234"
.