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

Move KubernetesContainerUtil, adapterInstanceId methods. #3545

Merged
merged 4 commits into from
Sep 21, 2023

Conversation

calohmn
Copy link
Contributor

@calohmn calohmn commented Sep 20, 2023

Preparation for #3537:

  • Use random string instead of container ID in Kafka client id.
  • Rename KubernetesContainerUtil to CgroupV1KubernetesContainerUtil.
  • Move adapterInstanceId related methods into hono-client-command.
  • Move CgroupV1KubernetesContainerUtil into hono-client-command.

Goal here is to move the code related to getting the K8s container ID into the one module where it is really needed.

Reliably getting the container ID is too expensive.
Having the K8s pod name in the Kafka client id should be enough in
most cases to associate a client id with the place where it is used.

Signed-off-by: Carsten Lohmann <[email protected]>
Copy link
Contributor

@sophokles73 sophokles73 left a comment

Choose a reason for hiding this comment

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

LGTM

@calohmn calohmn merged commit 817db3a into eclipse-hono:master Sep 21, 2023
5 checks passed
@calohmn calohmn deleted the PR/move_k8s_container_util branch September 21, 2023 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug C&C Command and Control
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants