-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Conversation
Whoa! Easy there, Partner!This PR is too big. Please break it up into smaller PRs. |
🤖 Generated by lychee actionSummary
Full action output |
f649f30
to
30ab8ea
Compare
}, ClusterRegionMap, &missingEnvVars) | ||
|
||
if len(missingEnvVars) > 0 { | ||
return errors.New("missing environment variables") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
error print missing env
service/exceptionmonitor/dao/init.go
Outdated
|
||
func InitCockroachDB() error { | ||
var err error | ||
os.Setenv("LOCAL_REGION", "6a216614-e658-4482-a244-e4311390715f") |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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()
42583a5
to
dea8d22
Compare
dea8d22
to
8453f9a
Compare
No description provided.