Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into feat/update-strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
izturn committed Nov 20, 2022
2 parents 5b91fb9 + ccb79f8 commit edf13ba
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 37 deletions.
35 changes: 0 additions & 35 deletions .github/workflows/build_daily.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,38 +148,3 @@ jobs:
steps: ${{ toJson(steps) }}
channel: '#contour-ci-notifications'
if: ${{ failure() && github.ref == 'refs/heads/main' }}
gateway-conformance:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
# * Module download cache
# * Build cache (Linux)
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-${{ github.job }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-${{ github.job }}-go-
- uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
- name: add deps to path
run: |
./hack/actions/install-kubernetes-toolchain.sh $GITHUB_WORKSPACE/bin
echo "$GITHUB_WORKSPACE/bin" >> $GITHUB_PATH
- name: Gateway API conformance tests (latest)
env:
CONTOUR_E2E_IMAGE: ghcr.io/projectcontour/contour:main
GATEWAY_API_VERSION: "main"
run: |
# Skip the `load-contour-image-kind` target, pull the `main` image instead.
make setup-kind-cluster run-gateway-conformance cleanup-kind
- uses: act10ns/slack@v1
with:
status: ${{ job.status }}
steps: ${{ toJson(steps) }}
channel: '#contour-ci-notifications'
if: ${{ failure() && github.ref == 'refs/heads/main' }}

1 change: 1 addition & 0 deletions changelogs/unreleased/4846-Vishal-Chdhry-small.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed bug where ExtensionServices were being updated continuously by Contour
2 changes: 2 additions & 0 deletions internal/contour/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
contour_api_v1 "github.com/projectcontour/contour/apis/projectcontour/v1"
contour_api_v1alpha1 "github.com/projectcontour/contour/apis/projectcontour/v1alpha1"
"github.com/projectcontour/contour/internal/dag"
"github.com/projectcontour/contour/internal/k8s"
"github.com/sirupsen/logrus"
Expand Down Expand Up @@ -190,6 +191,7 @@ func (e *EventHandler) onUpdate(op interface{}) bool {
case opUpdate:
if cmp.Equal(op.oldObj, op.newObj,
cmpopts.IgnoreFields(contour_api_v1.HTTPProxy{}, "Status"),
cmpopts.IgnoreFields(contour_api_v1alpha1.ExtensionService{}, "Status"),
cmpopts.IgnoreFields(gatewayapi_v1beta1.GatewayClass{}, "Status"),
cmpopts.IgnoreFields(gatewayapi_v1beta1.Gateway{}, "Status"),
cmpopts.IgnoreFields(gatewayapi_v1beta1.HTTPRoute{}, "Status"),
Expand Down
8 changes: 8 additions & 0 deletions internal/k8s/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
contour_api_v1 "github.com/projectcontour/contour/apis/projectcontour/v1"
contour_api_v1alpha1 "github.com/projectcontour/contour/apis/projectcontour/v1alpha1"
networking_v1 "k8s.io/api/networking/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
gatewayapi_v1alpha2 "sigs.k8s.io/gateway-api/apis/v1alpha2"
Expand Down Expand Up @@ -44,6 +45,13 @@ func isStatusEqual(objA, objB interface{}) bool {
return true
}
}
case *contour_api_v1alpha1.ExtensionService:
if b, ok := objB.(*contour_api_v1alpha1.ExtensionService); ok {
if cmp.Equal(a.Status, b.Status,
cmpopts.IgnoreFields(contour_api_v1.Condition{}, "LastTransitionTime")) {
return true
}
}
case *gatewayapi_v1beta1.GatewayClass:
if b, ok := objB.(*gatewayapi_v1beta1.GatewayClass); ok {
if cmp.Equal(a.Status, b.Status,
Expand Down
3 changes: 1 addition & 2 deletions test/e2e/httpproxy/grpc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ import (
)

func testGRPCServicePlaintext(namespace string) {
// Flake tracking issue: https://github.com/projectcontour/contour/issues/4707
Specify("requests to a gRPC service configured with plaintext work as expected", FlakeAttempts(3), func() {
Specify("requests to a gRPC service configured with plaintext work as expected", func() {
t := f.T()

f.Fixtures.GRPC.Deploy(namespace, "grpc-echo")
Expand Down

0 comments on commit edf13ba

Please sign in to comment.