Skip to content

Commit

Permalink
fix: reset the diff between each namespace (#24)
Browse files Browse the repository at this point in the history
Co-authored-by: Yonah Dissen <[email protected]>
  • Loading branch information
yonahd and Yonah Dissen authored Aug 9, 2023
1 parent c4d6194 commit d3ea8d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kor/all.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ func getUnusedRoles(kubeClient *kubernetes.Clientset, namespace string) Resource
func GetUnusedAll(namespace string, kubeconfig string) {
var kubeClient *kubernetes.Clientset
var namespaces []string
var allDiffs []ResourceDiff

kubeClient = GetKubeClient(kubeconfig)

namespaces = SetNamespaceList(namespace, kubeClient)
for _, namespace := range namespaces {
var allDiffs []ResourceDiff
namespaceCMDiff := getUnusedCMs(kubeClient, namespace)
allDiffs = append(allDiffs, namespaceCMDiff)
namespaceSVCDiff := getUnusedSVCs(kubeClient, namespace)
Expand Down

0 comments on commit d3ea8d4

Please sign in to comment.