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

feat: ping pong support for istio #3371

Merged
merged 12 commits into from
Mar 26, 2024
Merged

feat: ping pong support for istio #3371

merged 12 commits into from
Mar 26, 2024

Conversation

zachaller
Copy link
Collaborator

Checklist:

  • Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this is a chore.
  • The title of the PR is (a) conventional with a list of types and scopes found here, (b) states what changed, and (c) suffixes the related issues number. E.g. "fix(controller): Updates such and such. Fixes #1234".
  • I've signed my commits with DCO
  • I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
  • My builds are green. Try syncing with master if they are not.
  • My organization is added to USERS.md.

Copy link
Contributor

github-actions bot commented Feb 14, 2024

Go Published Test Results

2 144 tests   2 144 ✅  2m 51s ⏱️
  119 suites      0 💤
    1 files        0 ❌

Results for commit f9bc1d9.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Feb 14, 2024

E2E Tests Published Test Results

  4 files    4 suites   3h 44m 56s ⏱️
110 tests  99 ✅  6 💤 5 ❌
448 runs  416 ✅ 24 💤 8 ❌

For more details on these failures, see this check.

Results for commit 1546fc7.

♻️ This comment has been updated with latest results.

Copy link

sonarcloud bot commented Feb 14, 2024

Quality Gate Passed Quality Gate passed

Issues
1 New issue

Measures
0 Security Hotspots
No data about Coverage
12.6% Duplication on New Code

See analysis details on SonarCloud

@zachaller zachaller added this to the v1.7 milestone Feb 16, 2024
@zachaller zachaller marked this pull request as ready for review March 13, 2024 14:15
Copy link
Member

@agaudreault agaudreault left a comment

Choose a reason for hiding this comment

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

LGTM, but is there a minimum istio version that needs to be deployed for the feature to work? I think the doc should probably be updated because currently the ping-pong doc is in the ALB page

Copy link
Contributor

@leoluz leoluz left a comment

Choose a reason for hiding this comment

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

Please check my minor comments

@@ -284,6 +284,10 @@ func TestValidateRolloutStrategyCanary(t *testing.T) {
validRo.Spec.Strategy.Canary.Steps[0].SetWeight = pointer.Int32(10)
validRo.Spec.Strategy.Canary.CanaryService = ""
validRo.Spec.Strategy.Canary.StableService = ""
validRo.Spec.Strategy.Canary.PingPong = &v1alpha1.PingPongSpec{
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't we add a new testcase for istio?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

added new test instead of piggy backing off one

@@ -263,6 +298,72 @@ spec:
host: canary
weight: 0`

const regularMixedVsvcPingPong = `apiVersion: networking.istio.io/v1alpha3
Copy link
Contributor

Choose a reason for hiding this comment

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

I prefer using go:embed directive to accomplish the same goal of having a large file instantiating its contents in a variable. This approach is cleaner/easier to maintain and doesn't require any additional tooling.

See the following PR as an example:
https://github.com/argoproj/argo-cd/pull/17404/files

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yea, I kept it the way it is because it is consistent with all the other tests for istio

Copy link
Contributor

@leoluz leoluz Mar 26, 2024

Choose a reason for hiding this comment

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

sure.. but we have to start somewhere ¯\_(ツ)_/¯

Signed-off-by: Zach Aller <[email protected]>
@zachaller
Copy link
Collaborator Author

LGTM, but is there a minimum istio version that needs to be deployed for the feature to work? I think the doc should probably be updated because currently the ping-pong doc is in the ALB page

Good callout docs added.

Copy link

sonarcloud bot commented Mar 26, 2024

Quality Gate Passed Quality Gate passed

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
3.3% Duplication on New Code

See analysis details on SonarCloud

Copy link
Contributor

@leoluz leoluz left a comment

Choose a reason for hiding this comment

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

LGTM

@zachaller zachaller enabled auto-merge (squash) March 26, 2024 18:19
@zachaller zachaller merged commit d108c59 into master Mar 26, 2024
20 checks passed
@zachaller zachaller deleted the ping-pong-istio branch March 26, 2024 18:44
@argoproj argoproj deleted a comment Apr 15, 2024
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.

4 participants