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

🚀 Refactor controller #280

Merged
merged 16 commits into from
May 28, 2024
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ config.yaml
*.DS_Store

# debug
__debug_bin
__debug_bin*
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@

**kwatch** helps you monitor all changes in your Kubernetes(K8s) cluster, detects crashes in your running apps in realtime, and publishes notifications to your channels (Slack, Discord, etc.) instantly

## ⭐️ Join Waitlist

We're working on SAAS version of kwatch that provides User interface, optimized notifications, more details about crashes, and more. You can join <a href="https://join.kwatch.dev">the waitlist</a> to get early access!


## ⚡️ Getting Started

### Install
Expand Down
6 changes: 3 additions & 3 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ type Config struct {
Alert map[string]map[string]interface{} `yaml:"alert"`

// AllowedNamespaces, ForbiddenNamespaces are calculated internally
// after loading Namespaces configuration
// after populating Namespaces configuration
AllowedNamespaces []string
ForbiddenNamespaces []string

// AllowedReasons, ForbiddenReasons are calculated internally after loading
// Reasons configuration
// AllowedReasons, ForbiddenReasons are calculated internally after
// populating Reasons configuration
AllowedReasons []string
ForbiddenReasons []string

Expand Down
1 change: 1 addition & 0 deletions config/defaultConfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package config

func DefaultConfig() *Config {
return &Config{
IgnoreFailedGracefulShutdown: true,
PvcMonitor: PvcMonitor{
Enabled: true,
Interval: 5,
Expand Down
6 changes: 0 additions & 6 deletions constant/constant.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@ const KwatchUpdateMsg = ":tada: A newer version " +
"<https://github.com/abahmed/kwatch/releases/tag/%[1]s|%[1]s> of Kwatch " +
"is available! Please update to the latest version."

// NumRequeues indicates number of retries when worker fails to handle item
const NumRequeues = 5

// NumWorkers is the number concurrent workers that consume items for the queue
const NumWorkers = 4

const (
Footer = "<https://github.com/abahmed/kwatch|kwatch>"
DefaultTitle = ":red_circle: kwatch detected a crash in pod"
Expand Down
269 changes: 0 additions & 269 deletions controller/controller.go

This file was deleted.

Loading
Loading