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

fix(gateway): ignore non TCP protocol for provided gateway #4067

Merged
merged 2 commits into from
Mar 29, 2022

Conversation

lahabana
Copy link
Contributor

This has always been a tricky bit for the provided gateway with often
the dataplane generation failing with:

controllers.Pod	unable to create/update Dataplane	{"pod": "kong-mesh-system/kong-gateway-kong-9k8zc", "operationResult": "unchanged", "error": "admission webhook \"validator.kuma-admission.kuma.io\" denied the request: spec.networking.gateway.tags[\"kuma.io/protocol\"]: other values than TCP are not allowed"}

We now simply drop and log whenever a protocol is set on a gateway that is not tcp

Documentation

Testing

  • Unit tests
  • E2E tests
  • Manual testing on Universal
  • Manual testing on Kubernetes

Backwards compatibility

  • Update UPGRADE.md with any steps users will need to take when upgrading.
  • Add backport-to-stable label if the code follows our backporting policy

This has always been a tricky bit for the provided gateway with often
the dataplane generation failing with:

```
controllers.Pod	unable to create/update Dataplane	{"pod": "kong-mesh-system/kong-gateway-kong-9k8zc", "operationResult": "unchanged", "error": "admission webhook \"validator.kuma-admission.kuma.io\" denied the request: spec.networking.gateway.tags[\"kuma.io/protocol\"]: other values than TCP are not allowed"}
```

We now simplify drop and log whenever a protocol is set on a gateway that is
not tcp

Signed-off-by: Charly Molter <[email protected]>
@lahabana lahabana requested a review from a team as a code owner March 28, 2022 18:15
@codecov-commenter
Copy link

Codecov Report

Merging #4067 (3cea415) into master (9d85509) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #4067   +/-   ##
=======================================
  Coverage   55.83%   55.83%           
=======================================
  Files         922      922           
  Lines       55431    55436    +5     
=======================================
+ Hits        30948    30955    +7     
+ Misses      22031    22028    -3     
- Partials     2452     2453    +1     
Impacted Files Coverage Δ
...ugins/runtime/k8s/controllers/inbound_converter.go 89.09% <100.00%> (+0.51%) ⬆️
pkg/core/tokens/default_signing_key.go 66.66% <0.00%> (-5.56%) ⬇️
pkg/core/resources/manager/cache.go 88.31% <0.00%> (+2.59%) ⬆️
pkg/defaults/components.go 92.59% <0.00%> (+3.70%) ⬆️

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 9d85509...3cea415. Read the comment docs.

@lahabana
Copy link
Contributor Author

@Mergifyio update

@mergify
Copy link
Contributor

mergify bot commented Mar 29, 2022

update

✅ Branch has been successfully updated

@lahabana lahabana merged commit 46ca7e4 into kumahq:master Mar 29, 2022
SallyBlichWalkMe pushed a commit to SallyBlichWalkMe/kuma that referenced this pull request Mar 30, 2022
This has always been a tricky bit for the provided gateway with often
the dataplane generation failing with:

```
controllers.Pod	unable to create/update Dataplane	{"pod": "kong-mesh-system/kong-gateway-kong-9k8zc", "operationResult": "unchanged", "error": "admission webhook \"validator.kuma-admission.kuma.io\" denied the request: spec.networking.gateway.tags[\"kuma.io/protocol\"]: other values than TCP are not allowed"}
```

We now simplify drop and log whenever a protocol is set on a gateway that is
not tcp

Signed-off-by: Charly Molter <[email protected]>
Signed-off-by: Sally Blich <[email protected]>
SallyBlichWalkMe pushed a commit to SallyBlichWalkMe/kuma that referenced this pull request Apr 14, 2022
This has always been a tricky bit for the provided gateway with often
the dataplane generation failing with:

```
controllers.Pod	unable to create/update Dataplane	{"pod": "kong-mesh-system/kong-gateway-kong-9k8zc", "operationResult": "unchanged", "error": "admission webhook \"validator.kuma-admission.kuma.io\" denied the request: spec.networking.gateway.tags[\"kuma.io/protocol\"]: other values than TCP are not allowed"}
```

We now simplify drop and log whenever a protocol is set on a gateway that is
not tcp

Signed-off-by: Charly Molter <[email protected]>
Signed-off-by: Sally Blich <[email protected]>
SallyBlichWalkMe pushed a commit to SallyBlichWalkMe/kuma that referenced this pull request Apr 14, 2022
This has always been a tricky bit for the provided gateway with often
the dataplane generation failing with:

```
controllers.Pod	unable to create/update Dataplane	{"pod": "kong-mesh-system/kong-gateway-kong-9k8zc", "operationResult": "unchanged", "error": "admission webhook \"validator.kuma-admission.kuma.io\" denied the request: spec.networking.gateway.tags[\"kuma.io/protocol\"]: other values than TCP are not allowed"}
```

We now simplify drop and log whenever a protocol is set on a gateway that is
not tcp

Signed-off-by: Charly Molter <[email protected]>
Signed-off-by: Sally Blich <[email protected]>
@lahabana lahabana deleted the providedGatewayPort branch March 29, 2024 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants