-
Notifications
You must be signed in to change notification settings - Fork 290
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
Develop #1
Develop #1
Conversation
_, controller := cache.NewInformer( | ||
watchlist, | ||
&apiV1.Event{}, | ||
30*time.Minute, |
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.
Make this configurable.
return printDefaultMsg() | ||
} | ||
if args[1] == "start" { | ||
config.Notify = true |
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.
add log messages here both in notify start/stop
} | ||
_, err := ValidServicePort(serviceName, ns, int32(servicePort)) | ||
if err != nil { | ||
event.Messages = append(event.Messages, "Warning: Service "+serviceName+" used in ingress config does not exist or port not exposed\n") |
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.
Remove Warning:
Message level already indicates it
attachment.Color = attachmentColor[event.Level] | ||
params.Attachments = []slack.Attachment{attachment} | ||
|
||
log.Logger.Infof("Sending message on %v with token %s", s.Channel, s.Token) |
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.
avoid logging unwanted info . Credentials etc.
Sending message on channel %s
No description provided.