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

Update logic around number and healthy task managers in status #37

Merged
merged 1 commit into from
Jun 27, 2019

Conversation

anandswaminathan
Copy link
Contributor

New Logic:

  • Uses the value of availableReplicas to update NumberOfTaskManagers
  • HealthyTaskManagers is still obtained from the API response
  • Health logic is now compared between HealthyTaskManagers, and number of replicas expected.

Cluster status is also updated when in SubmittingJob state.
Not updating the ClusterStatus in ClusterStarting, as there could be multiple clusters, and hence removed the check.

application.Status.ClusterStatus.Health = v1alpha1.Red
return false, errors.New(clusterErrors)
} else if application.Status.ClusterStatus.HealthyTaskManagers == application.Status.ClusterStatus.NumberOfTaskManagers {
if application.Status.ClusterStatus.HealthyTaskManagers == tmDeployment.Status.Replicas {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice!

@anandswaminathan anandswaminathan merged commit cde4f38 into master Jun 27, 2019
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

3 participants