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

sync to upstream:23a029 #16

Merged
merged 36 commits into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
9d7f9dd
Bump golang to 1.22.0 (#6181)
sunjayBhatia Feb 22, 2024
c6ae46e
Add test validating cluster name generation is unique in HTTPRoute wi…
christianang Feb 23, 2024
e6a5bfc
build(deps): bump github.com/vektra/mockery/v2 from 2.40.3 to 2.42.0 …
dependabot[bot] Feb 23, 2024
f8c2854
build(deps): bump google.golang.org/grpc from 1.61.1 to 1.62.0 (#6220)
dependabot[bot] Feb 26, 2024
0dbc1f3
build(deps): bump github.com/cert-manager/cert-manager (#6219)
dependabot[bot] Feb 26, 2024
e49b92d
build(deps): bump codecov/codecov-action from 4.0.1 to 4.0.2 (#6215)
dependabot[bot] Feb 26, 2024
afaca64
build(deps): bump github/codeql-action from 3.24.3 to 3.24.5 (#6216)
dependabot[bot] Feb 26, 2024
41ecbaa
build(deps): bump github.com/prometheus/client_golang (#6226)
dependabot[bot] Feb 28, 2024
c4ec1a4
Bump golangci-lint to 1.56.2 (#6182)
sunjayBhatia Feb 28, 2024
a16e749
use Go 1.22 range over integers syntax (#6214)
skriss Feb 28, 2024
5d41cfb
test/e2e: add flake attempts for gRPC plaintext E2E (#6228)
skriss Feb 29, 2024
6791158
build(deps): bump github.com/prometheus/common from 0.48.0 to 0.49.0 …
dependabot[bot] Mar 4, 2024
9b5dbe6
build(deps): bump the artifact-actions group with 1 update (#6235)
dependabot[bot] Mar 4, 2024
a700daf
build(deps): bump docker/setup-buildx-action from 3.0.0 to 3.1.0 (#6236)
dependabot[bot] Mar 4, 2024
f0c613b
build(deps): bump codecov/codecov-action from 4.0.2 to 4.1.0 (#6237)
dependabot[bot] Mar 4, 2024
157fb67
build(deps): bump github/codeql-action from 3.24.5 to 3.24.6 (#6238)
dependabot[bot] Mar 4, 2024
4e543e3
build(deps): bump actions/cache from 4.0.0 to 4.0.1 (#6239)
dependabot[bot] Mar 4, 2024
5081138
use multi-arch golang base image (#6243)
skriss Mar 4, 2024
b08ab87
build(deps): bump github.com/stretchr/testify from 1.8.4 to 1.9.0 (#6…
dependabot[bot] Mar 4, 2024
53e9159
Fix for specifying a health check port with an ExternalName Service (…
yangyy93 Mar 4, 2024
e64a50a
examples: update envoy/ratelimit image tag (#6246)
skriss Mar 5, 2024
7ab1748
Ignore all loopback IPs in local ip grep (#6245)
seth-epps Mar 6, 2024
31ad9ba
test/e2e/gateway: check service as part of request condition (#6251)
skriss Mar 7, 2024
a740314
use a separate snapshot cache for EDS (#6250)
skriss Mar 7, 2024
85cc0b7
test/e2e/gateway: prevent tcproute test causing pollution (#6252)
sunjayBhatia Mar 7, 2024
fe9e9d7
build(deps): bump github.com/prometheus/common from 0.49.0 to 0.50.0 …
dependabot[bot] Mar 10, 2024
e164532
build(deps): bump aquasecurity/trivy-action from 0.17.0 to 0.18.0 (#6…
dependabot[bot] Mar 10, 2024
4c08b61
build(deps): bump github.com/onsi/ginkgo/v2 from 2.15.0 to 2.16.0 (#6…
dependabot[bot] Mar 11, 2024
fee5146
build(deps): bump github.com/cert-manager/cert-manager (#6260)
dependabot[bot] Mar 11, 2024
19b3036
build(deps): bump google.golang.org/grpc from 1.62.0 to 1.62.1 (#6263)
dependabot[bot] Mar 11, 2024
035fa05
Bump golang to 1.22.1 for CVEs (#6265)
sunjayBhatia Mar 11, 2024
fc182ef
remove global ext_proc & add name for ext_proc
izturn Mar 12, 2024
8bac1a0
sync with upstream & fix conflict
izturn Mar 12, 2024
bc301a1
use envoy xDS server for featuretests (#6255)
skriss Mar 12, 2024
23a0297
change default xDS server to envoy (#6146)
skriss Mar 12, 2024
59f5d09
sync with upstream & fix conflict
izturn Mar 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/build_daily.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ permissions:
env:
GOPROXY: https://proxy.golang.org/
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
GO_VERSION: 1.21.6
GO_VERSION: 1.22.1

jobs:
e2e-envoy-xds:
e2e-contour-xds:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
persist-credentials: false
- uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
- uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
with:
# * Module download cache
# * Build cache (Linux)
Expand All @@ -43,7 +43,7 @@ jobs:
- name: e2e tests
env:
CONTOUR_E2E_IMAGE: ghcr.io/projectcontour/contour:main
CONTOUR_E2E_XDS_SERVER_TYPE: envoy
CONTOUR_E2E_XDS_SERVER_TYPE: contour
run: |
make setup-kind-cluster run-e2e cleanup-kind
- uses: act10ns/slack@ed1309ab9862e57e9e583e51c7889486b9a00b0f # v2.0.0
Expand All @@ -58,7 +58,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
persist-credentials: false
- uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
- uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
with:
# * Module download cache
# * Build cache (Linux)
Expand Down Expand Up @@ -94,7 +94,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
persist-credentials: false
- uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
- uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
with:
# * Module download cache
# * Build cache (Linux)
Expand Down Expand Up @@ -133,7 +133,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
persist-credentials: false
- uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
- uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
with:
# * Module download cache
# * Build cache (Linux)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
with:
persist-credentials: false
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0
uses: docker/setup-buildx-action@0d103c3126aa41d772a8362f6aa67afac040f80c # v3.1.0
with:
version: latest
- name: Log in to GHCR
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build_tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ permissions:
env:
GOPROXY: https://proxy.golang.org/
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
GO_VERSION: 1.21.6
GO_VERSION: 1.22.1

jobs:
build:
Expand All @@ -31,7 +31,7 @@ jobs:
with:
persist-credentials: false
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0
uses: docker/setup-buildx-action@0d103c3126aa41d772a8362f6aa67afac040f80c # v3.1.0
with:
version: latest
- name: Log in to GHCR
Expand Down Expand Up @@ -59,7 +59,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
persist-credentials: false
- uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
- uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
with:
# * Module download cache
# * Build cache (Linux)
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ permissions:

env:
GOPROXY: https://proxy.golang.org/
GO_VERSION: 1.21.6
GO_VERSION: 1.22.1

jobs:
CodeQL-Build:
Expand All @@ -25,7 +25,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
persist-credentials: false
- uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
- uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
with:
# * Module download cache
# * Build cache (Linux)
Expand All @@ -41,11 +41,11 @@ jobs:
cache: false
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@379614612a29c9e28f31f39a59013eb8012a51f0 # v3.24.3
uses: github/codeql-action/init@8a470fddafa5cbb6266ee11b37ef4d8aae19c571 # v3.24.6
with:
languages: go
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
- name: Autobuild
uses: github/codeql-action/autobuild@379614612a29c9e28f31f39a59013eb8012a51f0 # v3.24.3
uses: github/codeql-action/autobuild@8a470fddafa5cbb6266ee11b37ef4d8aae19c571 # v3.24.6
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@379614612a29c9e28f31f39a59013eb8012a51f0 # v3.24.3
uses: github/codeql-action/analyze@8a470fddafa5cbb6266ee11b37ef4d8aae19c571 # v3.24.6
2 changes: 1 addition & 1 deletion .github/workflows/label_check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
persist-credentials: false
- uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
- uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
with:
# * Module download cache
# * Build cache (Linux)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/openssf-scorecard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ jobs:
name: SARIF file
path: results.sarif
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@379614612a29c9e28f31f39a59013eb8012a51f0 # v3.24.3
uses: github/codeql-action/upload-sarif@8a470fddafa5cbb6266ee11b37ef4d8aae19c571 # v3.24.6
with:
sarif_file: results.sarif
32 changes: 19 additions & 13 deletions .github/workflows/prbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ permissions:
env:
GOPROXY: https://proxy.golang.org/
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
GO_VERSION: 1.21.6
GO_VERSION: 1.22.1
jobs:
lint:
runs-on: ubuntu-latest
Expand All @@ -29,7 +29,7 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@3cfe3a4abbb849e10058ce4af15d205b6da42804 # v4.0.0
with:
version: v1.55.2
version: v1.56.2
# TODO: re-enable linting tools package once https://github.com/projectcontour/contour/issues/5077
# is resolved
args: --build-tags=e2e,conformance,gcp,oidc,none --out-format=colored-line-number
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
persist-credentials: false
- uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
- uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
with:
# * Module download cache
# * Build cache (Linux)
Expand Down Expand Up @@ -105,7 +105,7 @@ jobs:
with:
persist-credentials: false
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0
uses: docker/setup-buildx-action@0d103c3126aa41d772a8362f6aa67afac040f80c # v3.1.0
with:
version: latest
- name: Build image
Expand Down Expand Up @@ -155,11 +155,11 @@ jobs:
with:
persist-credentials: false
- name: Download image
uses: actions/download-artifact@eaceaf801fd36c7dee90939fad912460b18a1ffe # v4.1.2
uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4
with:
name: image
path: image
- uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
- uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
with:
# * Module download cache
# * Build cache (Linux)
Expand Down Expand Up @@ -218,11 +218,11 @@ jobs:
# recent release tag.
fetch-depth: 0
- name: Download image
uses: actions/download-artifact@eaceaf801fd36c7dee90939fad912460b18a1ffe # v4.1.2
uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4
with:
name: image
path: image
- uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
- uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
with:
# * Module download cache
# * Build cache (Linux)
Expand Down Expand Up @@ -265,7 +265,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
persist-credentials: false
- uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
- uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
with:
# * Module download cache
# * Build cache (Linux)
Expand All @@ -284,12 +284,15 @@ jobs:
./hack/actions/install-kubernetes-toolchain.sh $GITHUB_WORKSPACE/bin
echo "$GITHUB_WORKSPACE/bin" >> $GITHUB_PATH
- name: test
env:
# TODO: remove once https://github.com/golang/go/issues/65653 is fixed
GOEXPERIMENT: nocoverageredesign
run: |
make install
make check-coverage
- name: codeCoverage
if: ${{ success() }}
uses: codecov/codecov-action@e0b68c6749509c5f83f984dd99a76a1c1a231044 # v4.0.1
uses: codecov/codecov-action@54bcd8715eee62d40e33596ef5e8f0f48dbbccab # v4.1.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.out
Expand All @@ -309,7 +312,7 @@ jobs:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
persist-credentials: false
- uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
- uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
with:
# * Module download cache
# * Build cache (Windows)
Expand All @@ -328,6 +331,9 @@ jobs:
./hack/actions/install-kubernetes-toolchain.sh $GITHUB_WORKSPACE/bin
echo "$GITHUB_WORKSPACE/bin" >> $GITHUB_PATH
- name: test
env:
# TODO: remove once https://github.com/golang/go/issues/65653 is fixed
GOEXPERIMENT: nocoverageredesign
run: |
make install
make check-coverage
Expand All @@ -345,11 +351,11 @@ jobs:
with:
persist-credentials: false
- name: Download image
uses: actions/download-artifact@eaceaf801fd36c7dee90939fad912460b18a1ffe # v4.1.2
uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4
with:
name: image
path: image
- uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
- uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
with:
# * Module download cache
# * Build cache (Linux)
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/trivy-scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ jobs:
with:
persist-credentials: false
ref: ${{ matrix.branch }}
- uses: aquasecurity/trivy-action@84384bd6e777ef152729993b8145ea352e9dd3ef # 0.17.0
- uses: aquasecurity/trivy-action@062f2592684a31eb3aa050cc61e7ca1451cecd3d # 0.18.0
with:
scanners: vuln
scan-type: 'fs'
format: 'sarif'
output: 'trivy-results.sarif'
ignore-unfixed: true
severity: 'HIGH,CRITICAL'
- uses: github/codeql-action/upload-sarif@379614612a29c9e28f31f39a59013eb8012a51f0 # v3.24.3
- uses: github/codeql-action/upload-sarif@8a470fddafa5cbb6266ee11b37ef4d8aae19c571 # v3.24.6
with:
sarif_file: 'trivy-results.sarif'
5 changes: 4 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,7 @@ issues:
linters: ["bodyclose"]
- path: test/e2e
linters: ["revive"]
text: "should not use dot imports"
text: "should not use dot imports"
- path: test/e2e
linters: ["testifylint"]
text: "require must only be used in the goroutine running the test function"
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ GATEWAY_API_VERSION ?= $(shell grep "sigs.k8s.io/gateway-api" go.mod | awk '{pri
# Used to supply a local Envoy docker container an IP to connect to that is running
# 'contour serve'. On MacOS this will work, but may not on other OSes. Defining
# LOCALIP as an env var before running 'make local' will solve that.
LOCALIP ?= $(shell ifconfig | grep inet | grep -v '::' | grep -v 127.0.0.1 | head -n1 | awk '{print $$2}')
LOCALIP ?= $(shell ifconfig | grep inet | grep -v '::' | grep -v 'inet 127.' | head -n1 | awk '{print $$2}')

# Variables needed for running e2e tests.
CONTOUR_E2E_LOCAL_HOST ?= $(LOCALIP)
Expand Down Expand Up @@ -44,7 +44,7 @@ endif
IMAGE_PLATFORMS ?= linux/amd64,linux/arm64

# Base build image to use.
BUILD_BASE_IMAGE ?= golang:1.21.6@sha256:acab8ef05990e50fe0bc8446398d93d91fa89b3608661529dbd6744b77fcea90
BUILD_BASE_IMAGE ?= golang:1.22.1@sha256:34ce21a9696a017249614876638ea37ceca13cdd88f582caad06f87a8aa45bf3

# Enable build with CGO.
BUILD_CGO_ENABLED ?= 0
Expand Down Expand Up @@ -232,8 +232,8 @@ format: ## Run gofumpt to format the codebase.

.PHONY: generate
generate: ## Re-generate generated code and documentation
generate: generate-rbac generate-crd-deepcopy generate-crd-yaml generate-gateway-yaml generate-deployment generate-api-docs generate-metrics-docs generate-uml generate-go
#generate: generate-rbac generate-crd-deepcopy generate-crd-yaml generate-deployment generate-metrics-docs generate-uml generate-go
#generate: generate-rbac generate-crd-deepcopy generate-crd-yaml generate-gateway-yaml generate-deployment generate-api-docs generate-metrics-docs generate-uml generate-go
generate: generate-rbac generate-crd-deepcopy generate-crd-yaml generate-deployment generate-metrics-docs generate-uml generate-go

.PHONY: generate-rbac
generate-rbac:
Expand Down
17 changes: 6 additions & 11 deletions apis/projectcontour/v1/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,14 @@ func (v *VirtualHost) AuthorizationContext() map[string]string {
// ExtProcConfigured returns whether external processing are
// configured on this virtual host.
func (v *VirtualHost) ExtProcConfigured() bool {
return v.ExternalProcessor != nil
}
if v.ExternalProcessor == nil {
return false
}

// DisableExtProc returns true if this virtual host disables
// external processing. If an external processor is present, the default
// policy is to not disable.
func (v *VirtualHost) DisableExtProc() bool {
// No external processor(s), so it is disabled.
if v.ExtProcConfigured() {
if v.ExternalProcessor.ExtProcPolicy == nil {
return false
for _, proc := range v.ExternalProcessor.Processors {
if !proc.Disabled {
return true
}
return v.ExternalProcessor.ExtProcPolicy.Disabled
}
return false
}
Expand Down
Loading
Loading