Compare commits

..

3 Commits

Author SHA1 Message Date
Unbound Release 7c850018ca chore(release): prepare for 1.2.1 2025-10-01 10:50:19 +02:00
argoyle 3623ede85d refactor: simplify namespace exclusion logic
Replace the manual loop for checking excluded namespaces with 
the built-in slices.Contains function. This change enhances 
the readability and efficiency of the code, while also 
allowing for wildcard matching in exclusion.
2025-10-01 10:38:25 +02:00
argoyle a7ce0a5b5d docs(deploy): add delete permission for limitranges resource
Adds the delete verb for limitranges in the deploy.yaml file. This
change allows for the deletion of the specific resource named
"extreme-request-defaults," enabling better resource management
and cleanup in the deployment process.
2025-10-01 10:33:02 +02:00
4 changed files with 17 additions and 7 deletions
+1 -1
View File
@@ -1 +1 @@
{"version":"1.2.0"}
{"version":"1.2.1"}
+10
View File
@@ -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
+4
View File
@@ -17,6 +17,10 @@ rules:
- apiGroups: [""]
resources: ["limitranges"]
verbs: ["list","create"]
- apiGroups: [""]
resources: ["limitranges"]
verbs: ["delete"]
resourceNames: ["extreme-request-defaults"]
---
+2 -6
View File
@@ -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 {