Skip to content

Commit 3bf6bc5

Browse files
kmarteauxzegl
authored andcommitted
[#495] add updated score.go. update podtopologyspreadconstraints package name
1 parent f5d2695 commit 3bf6bc5

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

score/podtopologyspreadconstraints/podtopologyspreadconstraints.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package podtopologyconstraints
1+
package podtopologyspreadconstraints
22

33
import (
44
ks "github.com/zegl/kube-score/domain"

score/score.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
package score
22

33
import (
4-
corev1 "k8s.io/api/core/v1"
5-
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
6-
74
"github.com/zegl/kube-score/config"
85
ks "github.com/zegl/kube-score/domain"
96
"github.com/zegl/kube-score/score/apps"
@@ -15,11 +12,14 @@ import (
1512
"github.com/zegl/kube-score/score/ingress"
1613
"github.com/zegl/kube-score/score/meta"
1714
"github.com/zegl/kube-score/score/networkpolicy"
15+
"github.com/zegl/kube-score/score/podtopologyspreadconstraints"
1816
"github.com/zegl/kube-score/score/probes"
1917
"github.com/zegl/kube-score/score/security"
2018
"github.com/zegl/kube-score/score/service"
2119
"github.com/zegl/kube-score/score/stable"
2220
"github.com/zegl/kube-score/scorecard"
21+
corev1 "k8s.io/api/core/v1"
22+
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2323
)
2424

2525
func RegisterAllChecks(allObjects ks.AllTypes, cnf config.Configuration) *checks.Checks {
@@ -37,6 +37,7 @@ func RegisterAllChecks(allObjects ks.AllTypes, cnf config.Configuration) *checks
3737
apps.Register(allChecks, allObjects.HorizontalPodAutoscalers(), allObjects.Services())
3838
meta.Register(allChecks)
3939
hpa.Register(allChecks, allObjects.Metas())
40+
podtopologyspreadconstraints.Register(allChecks)
4041

4142
return allChecks
4243
}

0 commit comments

Comments
 (0)