Skip to content

Commit

Permalink
🚀 Refactor controller (#280)
Browse files Browse the repository at this point in the history
* refactor controller

* merge main

* upgrade deps

* upgrade dependencies

* remove comments

* upgrade modules

* upgrade modules

* upgrade modules

* upgrade modules

* upgrade modules

* upgrade modules

* upgrade modules
  • Loading branch information
abahmed authored May 28, 2024
1 parent e74ee26 commit 604677a
Show file tree
Hide file tree
Showing 33 changed files with 986 additions and 531 deletions.
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

0 comments on commit 604677a

Please sign in to comment.