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

Add Istio ambient to KinD test #14103

Merged
merged 6 commits into from
Aug 2, 2023
Merged

Add Istio ambient to KinD test #14103

merged 6 commits into from
Aug 2, 2023

Conversation

nak3
Copy link
Contributor

@nak3 nak3 commented Jun 16, 2023

This patch demonstrates ambient profile knative-extensions/net-istio#1133 on KinD test.

This could be one of solutions for #11906

@knative-prow
Copy link

knative-prow bot commented Jun 16, 2023

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@knative-prow knative-prow bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. area/test-and-release It flags unit/e2e/conformance/perf test issues for product features labels Jun 16, 2023
@knative-prow knative-prow bot requested review from evankanderson and mgencur June 16, 2023 04:05
@knative-prow knative-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 16, 2023
@codecov
Copy link

codecov bot commented Jun 16, 2023

Codecov Report

Patch coverage has no change and project coverage change: +0.02% 🎉

Comparison is base (ff6e78d) 86.26% compared to head (4bababc) 86.29%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #14103      +/-   ##
==========================================
+ Coverage   86.26%   86.29%   +0.02%     
==========================================
  Files         199      199              
  Lines       14811    14811              
==========================================
+ Hits        12777    12781       +4     
+ Misses       1731     1729       -2     
+ Partials      303      301       -2     

see 3 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@nak3 nak3 changed the title [TEST_ONLY] Add ambient [WIP] Add ambient Jun 28, 2023
@nak3 nak3 marked this pull request as ready for review June 28, 2023 04:48
@knative-prow knative-prow bot requested a review from skonto June 28, 2023 04:48
@nak3
Copy link
Contributor Author

nak3 commented Jun 28, 2023

/test upgrade-tests

@nak3 nak3 changed the title [WIP] Add ambient Add Istio ambient to KinD test Jun 28, 2023
@knative-prow knative-prow bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 28, 2023
@nak3
Copy link
Contributor Author

nak3 commented Jun 28, 2023

/cc @dprotaso @psschwei @ReToCode

Is it not alright to add the ambient in KinD?

@knative-prow knative-prow bot requested review from dprotaso, psschwei and ReToCode June 28, 2023 05:49
@nak3
Copy link
Contributor Author

nak3 commented Jun 29, 2023

/test upgrade-tests

@skonto
Copy link
Contributor

skonto commented Jun 29, 2023

Hopefully existing shell lint issues will be fixed with #13971.

test/e2e-common.sh Outdated Show resolved Hide resolved
@skonto
Copy link
Contributor

skonto commented Jun 29, 2023

Looking at the ambient runs here: https://github.com/knative/serving/actions/runs/5408789726/jobs/9828278368?pr=14103, it seems that:

++ local profile=istio-ci-no-mesh
++ ((  KIND  ))
++ ((  AMBIENT  ))
++ profile=istio-kind-no-mesh

@nak3
Copy link
Contributor Author

nak3 commented Jun 29, 2023

Hmm.. I will fix the CI.

2023-06-29T14:08:31.2124949Z 2:08:31PM: ---- waiting on 5 changes [192/197 done] ----
2023-06-29T14:08:58.7199450Z 2:08:58PM: fail: reconcile deployment/webhook (apps/v1) namespace: 5085b851-3fbc-4713-b628-531cf85ec1b1
2023-06-29T14:08:58.7200279Z 2:08:58PM:  ^ Deployment is not progressing: ProgressDeadlineExceeded (message: ReplicaSet "webhook-54554bcbd" has timed out progressing.)
2023-06-29T14:08:58.7508606Z kapp: Error: waiting on reconcile deployment/webhook (apps/v1) namespace: 5085b851-3fbc-4713-b628-531cf85ec1b1:

@nak3 nak3 added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 30, 2023
@dprotaso
Copy link
Member

dprotaso commented Jul 7, 2023

Is it not alright to add the ambient in KinD?

I'm ok adding ambient

@nak3
Copy link
Contributor Author

nak3 commented Jul 10, 2023

Thank you!
Due to a bug istio/istio#45781, we have to deploy ztunnel -> istio-cni-node in this order. I'm looking into the solution for now.

@nak3
Copy link
Contributor Author

nak3 commented Aug 1, 2023

This is ready. May I ask you to review this?

@@ -103,7 +103,11 @@ function net_istio_file_url() {
local profile="istio-ci-no-mesh"

if (( KIND )); then
profile="istio-kind-no-mesh"
if (( AMBIENT )); then
Copy link
Member

Choose a reason for hiding this comment

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

It seems we are getting a lot of env variations here (including the encryption stuff). WDYT about having the istio profile as a variable instead of having MESH and AMBIENT?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you mean that adding the PROFILE in test/e2e-common.sh like?

    --mesh)
      readonly MESH=1
      readonly PROFILE="istio-ci-mesh"
      return 1
      ;;
    --no-mesh)
      readonly MESH=0
      readonly PROFILE="istio-ci-no-mesh"
      return 1
      ;;

If so, it sounds good to me. If you are okay, I would like to change it in another PR as it may fix #14182 (then need some more debug...).

Copy link
Member

Choose a reason for hiding this comment

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

Or even add just one variable to the GH-actions with MESH_PROFILE and then specify the profile directly there? I don't see much reason for the abstraction we have, as we only target MESH in the istio-case anyway.

Works for me to do it in a followup.

Copy link
Member

@ReToCode ReToCode left a comment

Choose a reason for hiding this comment

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

/lgtm

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Aug 2, 2023
@knative-prow
Copy link

knative-prow bot commented Aug 2, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: nak3, ReToCode

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@nak3 nak3 removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 2, 2023
@knative-prow knative-prow bot merged commit cd98800 into knative:main Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/test-and-release It flags unit/e2e/conformance/perf test issues for product features lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants