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

#144 - expose Liveness and Readiness probes #145

Merged
merged 1 commit into from
Feb 22, 2022

Conversation

andytaylor
Copy link
Contributor

No description provided.

@andytaylor
Copy link
Contributor Author

dont merge this just yet

@andytaylor
Copy link
Contributor Author

Actually its just because of the docs so this can be merged if @brusdev can verify the docs wrt to what the new acceptorname arg will be

Copy link
Contributor

@RoddieKieley RoddieKieley left a comment

Choose a reason for hiding this comment

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

I fetched, checked out, built, and deployed the operator as built by your branch. I saw that the operator started and that the liveness and readiness probe values were as expected.

However when I updated the livenessProbe and readinessProbe sections from {} to include the initialDelaySeconds: 32 (instead of the default 30) I expected to see the values reflected both in the CR upon reload in the openshift interface as well as see the values reflected in both the container yaml in the pod spec as well as the openshift interface when looking at the details for the container in the pod.

Neither had updated values, but I haven't tested enough to know why this might be the case. Did value updates work for an already deployed broker cluster in either kubernetes or openshift for you?

docs/manual/operator.md Outdated Show resolved Hide resolved
docs/manual/operator.md Outdated Show resolved Hide resolved
docs/manual/operator.md Outdated Show resolved Hide resolved
docs/manual/operator.md Outdated Show resolved Hide resolved
@andytaylor
Copy link
Contributor Author

@RoddieKieley fixed th eupdate issue and added a test.

This is good to go now

livenessProbe:
exec:
commandport:
Copy link
Collaborator

Choose a reason for hiding this comment

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

typo?

@@ -217,6 +221,12 @@ func (reconciler *ActiveMQArtemisReconcilerImpl) ProcessStatefulSet(fsm *ActiveM
fsm.SetPodInvalid(false)
newPodTemplateCreated = true
}

if !processLivenessProbe(fsm.customResource, fsm.prevCustomResource) || !processReadinessProbe(fsm.customResource, fsm.prevCustomResource) {
*fsm.prevCustomResource = *fsm.customResource
Copy link
Collaborator

Choose a reason for hiding this comment

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

what's the purpose of this assignment?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I understand now. It's used to save the custome resource before the NewPodTemplateSpecForCR(fsm) which causes all pods to restart and a new reconcile.

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

4 participants