Skip to content

Commit

Permalink
[#495] add updated score.go. update podtopologyspreadconstraints pack…
Browse files Browse the repository at this point in the history
…age name
  • Loading branch information
kmarteaux authored and zegl committed Feb 24, 2023
1 parent f5d2695 commit 3bf6bc5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package podtopologyconstraints
package podtopologyspreadconstraints

import (
ks "github.com/zegl/kube-score/domain"
Expand Down
7 changes: 4 additions & 3 deletions score/score.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
package score

import (
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

"github.com/zegl/kube-score/config"
ks "github.com/zegl/kube-score/domain"
"github.com/zegl/kube-score/score/apps"
Expand All @@ -15,11 +12,14 @@ import (
"github.com/zegl/kube-score/score/ingress"
"github.com/zegl/kube-score/score/meta"
"github.com/zegl/kube-score/score/networkpolicy"
"github.com/zegl/kube-score/score/podtopologyspreadconstraints"
"github.com/zegl/kube-score/score/probes"
"github.com/zegl/kube-score/score/security"
"github.com/zegl/kube-score/score/service"
"github.com/zegl/kube-score/score/stable"
"github.com/zegl/kube-score/scorecard"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

func RegisterAllChecks(allObjects ks.AllTypes, cnf config.Configuration) *checks.Checks {
Expand All @@ -37,6 +37,7 @@ func RegisterAllChecks(allObjects ks.AllTypes, cnf config.Configuration) *checks
apps.Register(allChecks, allObjects.HorizontalPodAutoscalers(), allObjects.Services())
meta.Register(allChecks)
hpa.Register(allChecks, allObjects.Metas())
podtopologyspreadconstraints.Register(allChecks)

return allChecks
}
Expand Down

0 comments on commit 3bf6bc5

Please sign in to comment.