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

issue-112, k8s resource events for Zookeeper resource is implemented #354

Merged
merged 1 commit into from
Mar 14, 2023

Conversation

RostislavPorohnya
Copy link
Contributor

@RostislavPorohnya RostislavPorohnya commented Mar 10, 2023

closes #352

Comment on lines 40 to 41
# twoFactorDelete:
# - email: "rostyslp@netapp.com"
twoFactorDelete:
- email: "rostyslp@netapp.com"
Copy link
Contributor

Choose a reason for hiding this comment

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

pls comment this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Commented

@@ -115,13 +114,29 @@ func (r *ZookeeperReconciler) handleCreateCluster(
zook.Status.ID, err = r.API.CreateCluster(instaclustr.ZookeeperEndpoint, zook.Spec.ToInstAPI())
if err != nil {
l.Error(err, "Cannot create zookeeper cluster", "spec", zook.Spec)
r.EventRecorder.Eventf(
zook, models.Warning, models.CreationFailed,
"Cluster creation on the Instaclustr cloud is failed. Reason: %v",
Copy link
Contributor

Choose a reason for hiding this comment

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

You have different event messages for create cases. Standardize them and bring them to one form

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@taaraora taaraora merged commit 34a3376 into main Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

issue-112, Implement k8s resource events for Zookeeper cluster resource
4 participants