File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ package v1alpha1
1818
1919import (
2020 "fmt"
21+ "reflect"
2122 "strings"
2223
2324 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
@@ -244,6 +245,11 @@ type AwsValidator struct {
244245 Status AwsValidatorStatus `json:"status,omitempty"`
245246}
246247
248+ // GetKind returns the AWS validator's kind.
249+ func (v AwsValidator ) GetKind () string {
250+ return reflect .TypeOf (v ).Name ()
251+ }
252+
247253// PluginCode returns the AWS validator's plugin code.
248254func (v AwsValidator ) PluginCode () string {
249255 return v .Spec .PluginCode ()
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ require (
1818 github.com/onsi/ginkgo/v2 v2.20.0
1919 github.com/onsi/gomega v1.34.1
2020 github.com/pkg/errors v0.9.1
21- github.com/validator-labs/validator v0.1.2
21+ github.com/validator-labs/validator v0.1.3-0.20240809205255-c05a36eebd3c
2222 golang.org/x/exp v0.0.0-20240808152545-0cdaa3abc0fa
2323 k8s.io/api v0.30.3
2424 k8s.io/apimachinery v0.30.3
Original file line number Diff line number Diff line change @@ -190,8 +190,8 @@ github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO
190190github.com/stretchr/testify v1.8.1 /go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4 =
191191github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg =
192192github.com/stretchr/testify v1.9.0 /go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY =
193- github.com/validator-labs/validator v0.1.2 h1:2KqwetsZFeK5ol7Hd/VGO1Ccz8WQFVs5QwfLf8blp10 =
194- github.com/validator-labs/validator v0.1.2 /go.mod h1:AdpMOk2xYjlpUjmPJ2CN6MNDFN4NLH/q4lqUziseHpU =
193+ github.com/validator-labs/validator v0.1.3-0.20240809205255-c05a36eebd3c h1:9Dy8DW7qdSQflkwiNPcBPkf/wgAOT+ddmSDvOabjnVQ =
194+ github.com/validator-labs/validator v0.1.3-0.20240809205255-c05a36eebd3c /go.mod h1:TU04WjenuJxvJI/uhRsBJRym3ysA+dvSwUs2qvnak1Q =
195195github.com/yuin/goldmark v1.1.27 /go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74 =
196196github.com/yuin/goldmark v1.2.1 /go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74 =
197197go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto =
You can’t perform that action at this time.
0 commit comments