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

fix control-plane component status #4749

Merged
merged 2 commits into from
May 29, 2024
Merged

Conversation

ghostloda
Copy link
Collaborator

@ghostloda ghostloda commented May 22, 2024

fix control-plane component status checker.

# sealos status
....
Error: failed to run checker: pods "kube-apiserver-test2.novalocal" not found

@sealos-ci-robot
Copy link
Member

sealos-ci-robot commented May 22, 2024

🤖 Generated by lychee action

Summary

Status Count
🔍 Total 1250
✅ Successful 378
⏳ Timeouts 0
🔀 Redirected 0
👻 Excluded 871
❓ Unknown 0
🚫 Errors 0

Full action output

Full Github Actions output

@@ -96,6 +99,13 @@ func (n *ClusterChecker) Check(cluster *v2.Cluster, phase string) error {
return n.Output(NodeList)
}

func isControlPlaneNode(node corev1.Node) bool {
if _, ok := node.Labels["node-role.kubernetes.io/control-plane"]; ok {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Issues with older versions need to be considered

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Agreed,I'll add an old version label to check.

@cuisongliu cuisongliu merged commit 786985e into labring:main May 29, 2024
71 of 73 checks passed
@ghostloda ghostloda deleted the cluster-checker branch May 30, 2024 01:43
wallyxjh pushed a commit to wallyxjh/sealos that referenced this pull request Jul 1, 2024
* fix control-plane component status

* add the old version "master" labels
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants