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

Database exceptions monitor #4830

Merged
merged 65 commits into from
Jul 9, 2024
Merged

Conversation

wallyxjh
Copy link
Contributor

@wallyxjh wallyxjh commented Jul 1, 2024

No description provided.

Copy link

Whoa! Easy there, Partner!

This PR is too big. Please break it up into smaller PRs.

@sealos-ci-robot
Copy link
Member

sealos-ci-robot commented Jul 1, 2024

🤖 Generated by lychee action

Summary

Status Count
🔍 Total 1259
✅ Successful 379
⏳ Timeouts 0
🔀 Redirected 0
👻 Excluded 879
❓ Unknown 0
🚫 Errors 0

Full action output

Full Github Actions output

@bxy4543 bxy4543 force-pushed the database-exceptions-monitor branch from f649f30 to 30ab8ea Compare July 4, 2024 09:40
}, ClusterRegionMap, &missingEnvVars)

if len(missingEnvVars) > 0 {
return errors.New("missing environment variables")
Copy link
Member

Choose a reason for hiding this comment

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

error print missing env


func InitCockroachDB() error {
var err error
os.Setenv("LOCAL_REGION", "6a216614-e658-4482-a244-e4311390715f")
Copy link
Member

Choose a reason for hiding this comment

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

Via environment variables instead of manually setting

)

func InitClient() error {
kubeconfigPath := "/home/nonroot/kubeconfig/kubeconfig"
Copy link
Member

Choose a reason for hiding this comment

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

What is this? Get kubernetes.client through k8s.io/client-go/rest.InClusterConfig()

@wallyxjh wallyxjh force-pushed the database-exceptions-monitor branch 3 times, most recently from 42583a5 to dea8d22 Compare July 7, 2024 06:10
@wallyxjh wallyxjh force-pushed the database-exceptions-monitor branch from dea8d22 to 8453f9a Compare July 7, 2024 06:45
@bxy4543 bxy4543 merged commit aec5fac into labring:main Jul 9, 2024
71 of 72 checks passed
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