Giter Club home page Giter Club logo

Comments (2)

randmonkey avatar randmonkey commented on September 27, 2024 1

Seems that only the tests needed to send configuration to Kong gateway fails. I will try to separate the Consumer part which creates many consumers to a new test case. related: #5375

from kubernetes-ingress-controller.

rainest avatar rainest commented on September 27, 2024

Observed again in https://github.com/Kong/kubernetes-ingress-controller/actions/runs/7788877111/job/21239413941?pr=5562

Also failed on the unknown backend/name check.

The test creates these resources as usual and expects the webhook to catch and reject them. When this occurs, the resources do fail at apply time even though they ostensibly validate fine:

$ grep 400 integration-tests-kic-logs | tail -2
2024-02-05T19:48:24Z	error	dataplane-synchronizer	Could not update kong admin	{"error": "performing update for http://172.18.128.2:8001 failed: 2 errors occurred:\n\twhile processing event: Create vault unsupported-backend failed: HTTP status 400 (message: \"schema violation (name: vault 'env1' is not installed)\")\n\twhile processing event: Create vault invalid-config failed: HTTP status 400 (message: \"schema violation (config.foo: unknown field)\")\n"}
2024-02-05T19:48:27Z	error	dataplane-synchronizer	Could not update kong admin	{"error": "performing update for http://172.18.128.2:8001 failed: 2 errors occurred:\n\twhile processing event: Create vault unsupported-backend failed: HTTP status 400 (message: \"schema violation (name: vault 'env1' is not installed)\")\n\twhile processing event: Create vault invalid-config failed: HTTP status 400 (message: \"schema violation (config.foo: unknown field)\")\n"}

The test used a very outdated cleanup system though, so it wasn't creating diag dumps to get proxy logs.

We could potentially be failing to actually validate at all in the webhook. Although we do ensure the Service is available and has configuration before running tests, our failure policy is Ignore. It's a bit odd that the failure tests wouldn't be affected en masse, but it's not inconceivable that the runner's slow enough to exceed the timeout on some requests.

I don't know if client-go has the ability to indicate when a webhook check was requested and failed, but was ignored. Even if it does, we'd need a larger refactor of the checks to introduce retries. Currently they use a single Create() call and don't delete resources they create if they shouldn't have passed.

We could swap to Fail, but then we'd have problems if we encounter timeouts on the valid items, and wouldn't actually be testing what we want for the invalid ones.

from kubernetes-ingress-controller.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.