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

fixed the panic in IsIngress() function when networking is nil #1424

Merged
merged 5 commits into from
Jan 15, 2021

Conversation

nikita15p
Copy link
Contributor

Summary

SUMMARY_GOES_HERE

Full changelog

  • Added following check before dataplane.networking.Ingress is returned
    if d.GetNetworking() == nil {
    return false
    }
  • Fixes the panic when following is the request body of PUT /meshes/{mesh}/dataplanes/{name}:
    Request Body: (for eg)
    {
    "type": "Dataplane",
    "name": "backend-1",
    "mesh": "mesh-1"
    }

Issues resolved

Fix panic when networking field is empty during dataplane HTTP PUT API request

Documentation

NA

@jakubdyszkiewicz jakubdyszkiewicz merged commit 5dc8c3c into kumahq:master Jan 15, 2021
@jakubdyszkiewicz
Copy link
Contributor

thanks!

mergify bot pushed a commit that referenced this pull request Jan 15, 2021
…1424)

Signed-off-by: nikita15p <nikita15p@gmail.com>
(cherry picked from commit 5dc8c3c)
jakubdyszkiewicz pushed a commit that referenced this pull request Jan 15, 2021
austince pushed a commit to hvydya/kuma that referenced this pull request Jan 17, 2021
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.

None yet

2 participants