File tree 3 files changed +6
-3
lines changed
3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import (
21
21
22
22
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
23
23
24
+ "github.com/validator-labs/validator/pkg/plugins"
24
25
"github.com/validator-labs/validator/pkg/validationrule"
25
26
26
27
"github.com/validator-labs/validator-plugin-maas/pkg/constants"
@@ -38,6 +39,8 @@ type MaasValidatorSpec struct {
38
39
ResourceAvailabilityRules []ResourceAvailabilityRule `json:"resourceAvailabilityRules,omitempty" yaml:"resourceAvailabilityRules,omitempty"`
39
40
}
40
41
42
+ var _ plugins.PluginSpec = (* MaasValidatorSpec )(nil )
43
+
41
44
// PluginCode returns the MAAS validator's plugin code.
42
45
func (s MaasValidatorSpec ) PluginCode () string {
43
46
return constants .PluginCode
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ require (
9
9
github.com/onsi/ginkgo/v2 v2.20.1
10
10
github.com/onsi/gomega v1.34.1
11
11
github.com/stretchr/testify v1.9.0
12
- github.com/validator-labs/validator v0.1.7
12
+ github.com/validator-labs/validator v0.1.8
13
13
k8s.io/api v0.31.0
14
14
k8s.io/apimachinery v0.31.0
15
15
k8s.io/client-go v0.31.0
Original file line number Diff line number Diff line change @@ -260,8 +260,8 @@ github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO
260
260
github.com/stretchr/testify v1.8.1 /go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4 =
261
261
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg =
262
262
github.com/stretchr/testify v1.9.0 /go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY =
263
- github.com/validator-labs/validator v0.1.7 h1:x1iBKoecChM52G7bbacMsdIQYvB84C65DRIex8TG6vQ =
264
- github.com/validator-labs/validator v0.1.7 /go.mod h1:ssEvc9ws3kwWJ2VpIsOtgm7WmA6bdux2kkuIHbgT6oU =
263
+ github.com/validator-labs/validator v0.1.8 h1:4PRcnQ92Knao7V0hm704DYQMi0+nNjbS/PgMRCDH2iU =
264
+ github.com/validator-labs/validator v0.1.8 /go.mod h1:+8vtI1GlihPKm0Jp61D50KPgkJkFmLZNc5fqh415DuQ =
265
265
github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM =
266
266
github.com/x448/float16 v0.8.4 /go.mod h1:14CWIYCyZA/cWjXOioeEpHeN/83MdbZDRQHoFcYsOfg =
267
267
github.com/xdg-go/stringprep v1.0.2 /go.mod h1:8F9zXuvzgwmyT5DUm4GUfZGDdT3W+LCvS6+da4O5kxM =
You can’t perform that action at this time.
0 commit comments