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

simplify net-gateway-api install #12386

Merged
merged 1 commit into from
Dec 3, 2021
Merged

Conversation

dprotaso
Copy link
Member

@dprotaso dprotaso commented Dec 2, 2021

Include gateway apis's istio as part of the single one shot kapp install for our e2e tests

@google-cla google-cla bot added the cla: yes Indicates the PR's author has signed the CLA. label Dec 2, 2021
@knative-prow-robot knative-prow-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. 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 labels Dec 2, 2021
@dprotaso
Copy link
Member Author

dprotaso commented Dec 2, 2021

/assign @nak3

@codecov
Copy link

codecov bot commented Dec 2, 2021

Codecov Report

Merging #12386 (935034e) into main (50e4b64) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main   #12386   +/-   ##
=======================================
  Coverage   87.41%   87.41%           
=======================================
  Files         195      195           
  Lines        9655     9655           
=======================================
  Hits         8440     8440           
- Misses        931      932    +1     
+ Partials      284      283    -1     
Impacted Files Coverage Δ
pkg/activator/net/revision_backends.go 91.73% <0.00%> (-0.87%) ⬇️
pkg/reconciler/configuration/configuration.go 86.15% <0.00%> (+1.53%) ⬆️

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 50e4b64...935034e. Read the comment docs.

@dprotaso
Copy link
Member Author

dprotaso commented Dec 2, 2021

Need to fix the actions

@dprotaso
Copy link
Member Author

dprotaso commented Dec 2, 2021

/test pull-knative-serving-gateway-api-latest

@knative-prow-robot knative-prow-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Dec 2, 2021
@dprotaso dprotaso force-pushed the kapp-fix branch 5 times, most recently from 3df4873 to c8cb927 Compare December 2, 2021 18:43
@dprotaso
Copy link
Member Author

dprotaso commented Dec 2, 2021

/test pull-knative-serving-gateway-api-latest

@dprotaso
Copy link
Member Author

dprotaso commented Dec 2, 2021

/hold going to test the kind setup locally

@knative-prow-robot knative-prow-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 2, 2021
@dprotaso dprotaso force-pushed the kapp-fix branch 2 times, most recently from c88b96a to c68cb55 Compare December 3, 2021 02:15
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dprotaso

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

@dprotaso dprotaso force-pushed the kapp-fix branch 7 times, most recently from 0f8d00d to 889aaf4 Compare December 3, 2021 02:21
@dprotaso dprotaso force-pushed the kapp-fix branch 4 times, most recently from c6920ed to b83caac Compare December 3, 2021 02:57
- we can reuse net-istio's third_party istio install yaml
- use the gateway api crds in third_party - the prior download url didn't work
@dprotaso
Copy link
Member Author

dprotaso commented Dec 3, 2021

/test pull-knative-serving-gateway-api-latest

@nak3
Copy link
Contributor

nak3 commented Dec 3, 2021

LGTM. But honestly this ytt & kapp script is too difficult for me to read and I have no confidence to maintain this script.
In fact, I spent so much time to figure out this bug carvel-dev/kapp#381 .

I would like someone who can read this ytt script to review&lgtm 🙏

@dprotaso
Copy link
Member Author

dprotaso commented Dec 3, 2021

The setup happens in two phases

Gather the necessary yamls we require in knative_setup - info here

serving/test/e2e-common.sh

Lines 170 to 194 in 420a599

# Gather all the YAML we require to run all our tests.
# We stage these files into ${E2E_YAML_DIR}
#
# > serving built from HEAD > $E2E_YAML_DIR/serving/HEAD/install
# > $E2E_YAML_DIR/serving/HEAD/post-install
#
# > serving latest-release > $E2E_YAML_DIR/serving/latest-release/install
# > $E2E_YAML_DIR/serving/latest-release/post-install
#
# > net-istio HEAD > $E2E_YAML_DIR/istio/HEAD/install
# > net-istio latest-release > $E2E_YAML_DIR/istio/latest-release/install
#
# We download istio.yaml for our given test profile (ie. mesh on kind).
# The files downloaded are istio.yaml & config-istio.yaml.
#
# config-istio.yaml is to be applied _after_ we install net-istio.yaml since
# it includes profile specific configuration
#
# > test/config/**.yaml > $E2E_YAML_DIR/serving/test/config
#
# These resources will be passed through `ko` if there exists a `ko://`
# strict reference. Secondly namespace overlays will be applied to place
# them in the correct
#
function knative_setup() {

install just selects which files to pass to ytt. The result from ytt is use by kapp to do the install.

This solves your issue because we're installing istio using kapp now vs. istioctl install.

@dprotaso
Copy link
Member Author

dprotaso commented Dec 3, 2021

/hold cancel

@knative-prow-robot knative-prow-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 3, 2021
@nak3
Copy link
Contributor

nak3 commented Dec 3, 2021

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Dec 3, 2021
@knative-prow-robot knative-prow-robot merged commit 8b808e6 into knative:main Dec 3, 2021
@dprotaso dprotaso deleted the kapp-fix branch April 7, 2022 20:40
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 cla: yes Indicates the PR's author has signed the CLA. 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.

3 participants