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(kuma-cp) delete old dataplane-based ingress in PodController #2169

Merged
merged 3 commits into from
Jun 15, 2021

Conversation

lobkovilya
Copy link
Contributor

@lobkovilya lobkovilya commented Jun 15, 2021

Summary

During the upgrade to Kuma 1.2.0 a new Ingress pod may make a request to the old-versioned PodController.
This will inevitably cause a generation of both Dataplane Ingress resource and Zone Ingress resource.
That's why here we're deleting Dataplane Ingress resource.

Full changelog

  • [Implement ...]
  • [Fix ...]

Issues resolved

Fix #XXX

Documentation

Testing

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

…ller

Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
@lobkovilya lobkovilya requested a review from a team as a code owner June 15, 2021 13:47
@lobkovilya lobkovilya changed the title fix(kuma-cp) delete old dataplane-based ingress resource in PodContro… fix(kuma-cp) delete old dataplane-based ingress in PodController Jun 15, 2021
Copy link
Contributor

@jakubdyszkiewicz jakubdyszkiewicz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not even unit test? 🤔

return errors.Wrap(err, "could not create a resource")
}
log.Info("zone ingress signing key created")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you are missing log that signing key already exist. Please make a log consistent with other defaults.
also, it's either zone ingress or Zone Ingress

@lobkovilya
Copy link
Contributor Author

Yep, let me add the test 👍

@lobkovilya lobkovilya merged commit 0bc50f7 into master Jun 15, 2021
@lobkovilya lobkovilya deleted the fix/delete-old-dp-ingress branch June 15, 2021 15:30
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