Skip to content

Commit 8085473

Browse files
authored
chore: satisfy ValidationRule (#457)
## Issue Resolves <!-- Link to the github issue this PR address, ie: #123 --> ## Description <!-- Description of the changes made --> Signed-off-by: Tyler Gillson <[email protected]>
1 parent 1199b57 commit 8085473

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

api/v1alpha1/awsvalidator_types.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ package v1alpha1
1818

1919
import (
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.
248254
func (v AwsValidator) PluginCode() string {
249255
return v.Spec.PluginCode()

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO
190190
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
191191
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
192192
github.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=
195195
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
196196
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
197197
go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=

0 commit comments

Comments
 (0)