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

Remove getPodName() method from AbstractModel #10397

Merged

Conversation

scholzj
Copy link
Member

@scholzj scholzj commented Jul 26, 2024

Type of change

  • Refactoring

Description

This PR removes getPodName() method from the AbstractModel class. This method was used only in a few places and in reality applies only to very small number of the model classes - to ZooKeeper and Connect / MM2. It does not generate the pod names for Kafka or Deployment based operands which might be confusing and can lead to bugs. The method can be also easily replaced as it does not contain any complicated logic.

Checklist

  • 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 21:58
@scholzj
Copy link
Member Author

scholzj commented Jul 27, 2024

/azp run regression

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@scholzj scholzj merged commit fa227ce into strimzi:main Jul 28, 2024
21 checks passed
@scholzj scholzj deleted the remove-getPodName-method-from-AbstractModel branch July 28, 2024 13:32
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