Skip to content

Commit

Permalink
chore: comment out WIP scoring and prepare release #patch
Browse files Browse the repository at this point in the history
Signed-off-by: deggja <danieldagfinrud@gmail.com>
  • Loading branch information
deggja committed Aug 31, 2024
1 parent 22ed72c commit 8706d17
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions backend/pkg/k8s/scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -399,11 +399,11 @@ func IsSystemNamespace(namespace string) bool {
func CalculateScore(hasPolicies bool, hasDenyAll bool, unprotectedPodsCount int) int {
score := 50 // Start with a base score of 50

if hasDenyAll {
score += 20 // Add 20 points for having deny-all policies
} else if !hasPolicies {
score -= 20 // Subtract 20 points if there are no policies at all
}
// if hasDenyAll {
// score += 20 // Add 20 points for having deny-all policies
// } else if !hasPolicies {
// score -= 20 // Subtract 20 points if there are no policies at all
// }

// Deduct score based on the number of unprotected pods
score -= unprotectedPodsCount
Expand Down

0 comments on commit 8706d17

Please sign in to comment.