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

feat: add print column to show member agent HB #872

Merged
merged 2 commits into from
Jul 4, 2024

Conversation

Arvindthiru
Copy link
Contributor

@Arvindthiru Arvindthiru commented Jul 3, 2024

Description of your changes

Fixes #

I have:

  • Run make reviewable to ensure this PR is ready for review.

How has this code been tested

image

Special notes for your reviewer

ran make manifests

@Arvindthiru Arvindthiru merged commit 40d3853 into Azure:main Jul 4, 2024
11 checks passed
@@ -17,6 +17,7 @@ import (
// +kubebuilder:subresource:status
// +kubebuilder:printcolumn:JSONPath=`.status.conditions[?(@.type=="Joined")].status`,name="Joined",type=string
// +kubebuilder:printcolumn:JSONPath=`.metadata.creationTimestamp`,name="Age",type=date
// +kubebuilder:printcolumn:JSONPath=`.status.agentStatus[?(@.type=="MemberAgent")].lastReceivedHeartbeat`,name="Time-Since-Last-Heartbeat",type=date
Copy link
Contributor

Choose a reason for hiding this comment

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

The field name does not indicate the data is from member-agent.

We actually have networking agent running as well.

It may confuse customer.

Copy link
Contributor

Choose a reason for hiding this comment

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

We thought about adding all agents. There are a few problems.

  1. The naming becomes very long for each agent HB.
  2. The number of columns becomes very long too.
  3. The network agent may not be installed in some setup and there is no way to do conditional column as we know

Any thoughts?

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm thinking of only showing the heartbeat from member-agent by default.

How about naming as "Seen-Member-Agent-At"?

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