Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7c850018ca | |||
|
3623ede85d
|
|||
|
a7ce0a5b5d
|
@@ -2,6 +2,16 @@
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
## [1.2.1] - 2025-10-01
|
||||
|
||||
### 🚜 Refactor
|
||||
|
||||
- Simplify namespace exclusion logic
|
||||
|
||||
### 📚 Documentation
|
||||
|
||||
- *(deploy)* Add delete permission for limitranges resource
|
||||
|
||||
## [1.2.0] - 2025-10-01
|
||||
|
||||
### 🚀 Features
|
||||
|
||||
@@ -17,6 +17,10 @@ rules:
|
||||
- apiGroups: [""]
|
||||
resources: ["limitranges"]
|
||||
verbs: ["list","create"]
|
||||
- apiGroups: [""]
|
||||
resources: ["limitranges"]
|
||||
verbs: ["delete"]
|
||||
resourceNames: ["extreme-request-defaults"]
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ import (
|
||||
"context"
|
||||
"flag"
|
||||
"log"
|
||||
"slices"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
@@ -91,12 +92,7 @@ func main() {
|
||||
}
|
||||
|
||||
func nsExcluded(name string, excludedNS []string) bool {
|
||||
for _, ns := range excludedNS {
|
||||
if name == ns {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
return slices.Contains(excludedNS, name) || slices.Contains(excludedNS, "*")
|
||||
}
|
||||
|
||||
func parseArgs() args {
|
||||
|
||||
Reference in New Issue
Block a user