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

Restart the correct Pod when resizing PVCs #10396

Merged

Conversation

scholzj
Copy link
Member

@scholzj scholzj commented Jul 26, 2024

Type of change

  • Bugfix

Description

When resizing the PVCs, we might need to restart some of the Pods for the resizing to complete (file system expansion). But we might miss the right pod because the code currently does not work with node pools and expects that all Kafka pods will be named <cluster-name>-kafka-<index>.

This PR addresses it and makes sure that the logic uses the correct name of the Pod depending on the node pool. That way it now works when using node pools or KRaft.

Checklist

  • Write tests
  • Make sure all tests pass
  • Try your changes from Pod inside your Kubernetes and OpenShift cluster, not just locally

Signed-off-by: Jakub Scholz <www@scholzj.com>
@scholzj scholzj added this to the 0.43.0 milestone Jul 26, 2024
@scholzj scholzj requested a review from ppatierno July 26, 2024 18:33
@scholzj
Copy link
Member Author

scholzj commented Jul 26, 2024

/azp run regression

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@scholzj
Copy link
Member Author

scholzj commented Jul 27, 2024

/azp run kraft-regression

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@scholzj scholzj merged commit 0407c52 into strimzi:main Jul 30, 2024
29 checks passed
@scholzj scholzj deleted the fix-pod-name-when-rolling-due-to-PVC-resizing branch July 30, 2024 06:42
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.

2 participants