Skip to content
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

Support for BlueGreen rollout preview endpoint #199

Merged

Conversation

itsLucario
Copy link
Collaborator

@itsLucario itsLucario commented Mar 18, 2022

Currently when Admiral generates endpoint for Rollouts with bluegreen it always uses active/stable service as destination. This PR will adds a feature to generate an additional mesh endpoint that would point to the preview service of the blugreen stack.

nbn01 added 10 commits March 16, 2022 18:33
Signed-off-by: nbn01 <nandan_bn@intuit.com>
Signed-off-by: nbn01 <nandan_bn@intuit.com>
Signed-off-by: nbn01 <nandan_bn@intuit.com>
Signed-off-by: nbn01 <nandan_bn@intuit.com>
Signed-off-by: nbn01 <nandan_bn@intuit.com>
Signed-off-by: nbn01 <nandan_bn@intuit.com>
Signed-off-by: nbn01 <nandan_bn@intuit.com>
Signed-off-by: nbn01 <nandan_bn@intuit.com>
Signed-off-by: nbn01 <nandan_bn@intuit.com>
Signed-off-by: nbn01 <nandan_bn@intuit.com>
nbn01 added 2 commits March 18, 2022 17:45
Signed-off-by: nbn01 <nandan_bn@intuit.com>
Signed-off-by: nbn01 <nandan_bn@intuit.com>
@aattuluri aattuluri added the WIP Work In Progress label Mar 18, 2022
nbn01 added 2 commits March 25, 2022 09:01
Signed-off-by: nbn01 <nandan_bn@intuit.com>
Signed-off-by: nbn01 <nandan_bn@intuit.com>
@aattuluri aattuluri removed the WIP Work In Progress label Mar 29, 2022
admiral/cmd/admiral/cmd/root.go Outdated Show resolved Hide resolved
admiral/pkg/clusters/serviceentry.go Show resolved Hide resolved
admiral/pkg/clusters/serviceentry.go Outdated Show resolved Hide resolved
Signed-off-by: nbn01 <nandan_bn@intuit.com>
@itsLucario itsLucario force-pushed the bluegreen-preview-endpoint-rollout branch from c36fb50 to 50c0ce5 Compare March 31, 2022 10:08
nbn01 added 2 commits March 31, 2022 20:02
Signed-off-by: nbn01 <nandan_bn@intuit.com>
Signed-off-by: nbn01 <nandan_bn@intuit.com>
@itsLucario itsLucario force-pushed the bluegreen-preview-endpoint-rollout branch from 5a2e8b7 to c97ed13 Compare April 1, 2022 07:05
@codecov-commenter
Copy link

codecov-commenter commented Apr 1, 2022

Codecov Report

Merging #199 (47d290d) into master (4c9ef81) will increase coverage by 0.60%.
The diff coverage is 93.18%.

@@            Coverage Diff             @@
##           master     #199      +/-   ##
==========================================
+ Coverage   74.42%   75.02%   +0.60%     
==========================================
  Files          26       26              
  Lines        2530     2567      +37     
==========================================
+ Hits         1883     1926      +43     
+ Misses        516      512       -4     
+ Partials      131      129       -2     
Impacted Files Coverage Δ
admiral/pkg/controller/common/types.go 88.76% <ø> (ø)
admiral/pkg/clusters/serviceentry.go 81.06% <91.89%> (+1.64%) ⬆️
admiral/pkg/clusters/handler.go 60.55% <100.00%> (+1.50%) ⬆️
admiral/pkg/controller/common/common.go 98.29% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4c9ef81...47d290d. Read the comment docs.

Copy link
Contributor

@aattuluri aattuluri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, added a question

admiral/pkg/clusters/serviceentry.go Show resolved Hide resolved
Copy link
Contributor

@aattuluri aattuluri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@aattuluri
Copy link
Contributor

@itsLucario There are lint errors, fix them before we can merge.

@itsLucario itsLucario force-pushed the bluegreen-preview-endpoint-rollout branch 2 times, most recently from bac0a2b to c97ed13 Compare April 5, 2022 12:17
Signed-off-by: nbn01 <nandan_bn@intuit.com>
@itsLucario
Copy link
Collaborator Author

itsLucario commented Apr 6, 2022

@itsLucario There are lint errors, fix them before we can merge.

golangci-lint was using go1.18 that caused the panic. I added a fix to the workflow to use go1.17.7.

@aattuluri aattuluri merged commit 845e7da into istio-ecosystem:master Apr 6, 2022
psikka1 pushed a commit to psikka1/admiral that referenced this pull request Jun 14, 2022
…m#199)

* Changes to support preview endpoint for bluegreen rollout

Signed-off-by: nbn01 <nandan_bn@intuit.com>

* Updated integration test for preview endpoint

Signed-off-by: nbn01 <nandan_bn@intuit.com>

* Minor check fixes

Signed-off-by: nbn01 <nandan_bn@intuit.com>

* Reverted integration test changes

Signed-off-by: nbn01 <nandan_bn@intuit.com>

* Update unit tests

Signed-off-by: nbn01 <nandan_bn@intuit.com>

* Add integration test for preview endpoint of bluegreen rollout

Signed-off-by: nbn01 <nandan_bn@intuit.com>

* Update makefile

Signed-off-by: nbn01 <nandan_bn@intuit.com>

* Modified permissions

Signed-off-by: nbn01 <nandan_bn@intuit.com>

* Reverting argo_rollouts default to false

Signed-off-by: nbn01 <nandan_bn@intuit.com>

* Updated unit tests to check when preview service not defined

Signed-off-by: nbn01 <nandan_bn@intuit.com>

* Improved integration test for bluegreen rollout

Signed-off-by: nbn01 <nandan_bn@intuit.com>

* Continue with normal flow if preview condition fails

Signed-off-by: nbn01 <nandan_bn@intuit.com>

* Uncomment clean up

Signed-off-by: nbn01 <nandan_bn@intuit.com>

* make "preview" standard prefix name for bluegreen

Signed-off-by: nbn01 <nandan_bn@intuit.com>

* abstract update preview endpoint to method

Signed-off-by: nbn01 <nandan_bn@intuit.com>

* Add unit test

Signed-off-by: nbn01 <nandan_bn@intuit.com>

* fix golintci lint to use go1.17.7

Signed-off-by: nbn01 <nandan_bn@intuit.com>

Co-authored-by: nbn01 <nandan_bn@intuit.com>
psikka1 pushed a commit to psikka1/admiral that referenced this pull request Jun 15, 2022
…m#199)

* Changes to support preview endpoint for bluegreen rollout

Signed-off-by: nbn01 <nandan_bn@intuit.com>

* Updated integration test for preview endpoint

Signed-off-by: nbn01 <nandan_bn@intuit.com>

* Minor check fixes

Signed-off-by: nbn01 <nandan_bn@intuit.com>

* Reverted integration test changes

Signed-off-by: nbn01 <nandan_bn@intuit.com>

* Update unit tests

Signed-off-by: nbn01 <nandan_bn@intuit.com>

* Add integration test for preview endpoint of bluegreen rollout

Signed-off-by: nbn01 <nandan_bn@intuit.com>

* Update makefile

Signed-off-by: nbn01 <nandan_bn@intuit.com>

* Modified permissions

Signed-off-by: nbn01 <nandan_bn@intuit.com>

* Reverting argo_rollouts default to false

Signed-off-by: nbn01 <nandan_bn@intuit.com>

* Updated unit tests to check when preview service not defined

Signed-off-by: nbn01 <nandan_bn@intuit.com>

* Improved integration test for bluegreen rollout

Signed-off-by: nbn01 <nandan_bn@intuit.com>

* Continue with normal flow if preview condition fails

Signed-off-by: nbn01 <nandan_bn@intuit.com>

* Uncomment clean up

Signed-off-by: nbn01 <nandan_bn@intuit.com>

* make "preview" standard prefix name for bluegreen

Signed-off-by: nbn01 <nandan_bn@intuit.com>

* abstract update preview endpoint to method

Signed-off-by: nbn01 <nandan_bn@intuit.com>

* Add unit test

Signed-off-by: nbn01 <nandan_bn@intuit.com>

* fix golintci lint to use go1.17.7

Signed-off-by: nbn01 <nandan_bn@intuit.com>

Co-authored-by: nbn01 <nandan_bn@intuit.com>
Signed-off-by: psikka1 <pankaj_sikka@intuit.com>
asushanthk pushed a commit that referenced this pull request Jul 21, 2022
* Changes to support preview endpoint for bluegreen rollout

Signed-off-by: nbn01 <nandan_bn@intuit.com>

* Updated integration test for preview endpoint

Signed-off-by: nbn01 <nandan_bn@intuit.com>

* Minor check fixes

Signed-off-by: nbn01 <nandan_bn@intuit.com>

* Reverted integration test changes

Signed-off-by: nbn01 <nandan_bn@intuit.com>

* Update unit tests

Signed-off-by: nbn01 <nandan_bn@intuit.com>

* Add integration test for preview endpoint of bluegreen rollout

Signed-off-by: nbn01 <nandan_bn@intuit.com>

* Update makefile

Signed-off-by: nbn01 <nandan_bn@intuit.com>

* Modified permissions

Signed-off-by: nbn01 <nandan_bn@intuit.com>

* Reverting argo_rollouts default to false

Signed-off-by: nbn01 <nandan_bn@intuit.com>

* Updated unit tests to check when preview service not defined

Signed-off-by: nbn01 <nandan_bn@intuit.com>

* Improved integration test for bluegreen rollout

Signed-off-by: nbn01 <nandan_bn@intuit.com>

* Continue with normal flow if preview condition fails

Signed-off-by: nbn01 <nandan_bn@intuit.com>

* Uncomment clean up

Signed-off-by: nbn01 <nandan_bn@intuit.com>

* make "preview" standard prefix name for bluegreen

Signed-off-by: nbn01 <nandan_bn@intuit.com>

* abstract update preview endpoint to method

Signed-off-by: nbn01 <nandan_bn@intuit.com>

* Add unit test

Signed-off-by: nbn01 <nandan_bn@intuit.com>

* fix golintci lint to use go1.17.7

Signed-off-by: nbn01 <nandan_bn@intuit.com>

Co-authored-by: nbn01 <nandan_bn@intuit.com>
Signed-off-by: sa <sushanth_a@intuit.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants