File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 1
1
package v1alpha1
2
2
3
3
import (
4
+ "reflect"
5
+
4
6
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
5
7
6
8
"github.com/validator-labs/validator-plugin-vsphere/pkg/constants"
@@ -125,6 +127,11 @@ type VsphereValidator struct {
125
127
Status VsphereValidatorStatus `json:"status,omitempty"`
126
128
}
127
129
130
+ // GetKind returns the vSphere validator's kind.
131
+ func (v VsphereValidator ) GetKind () string {
132
+ return reflect .TypeOf (v ).Name ()
133
+ }
134
+
128
135
// PluginCode returns the vSphere validator's plugin code.
129
136
func (v VsphereValidator ) PluginCode () string {
130
137
return v .Spec .PluginCode ()
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ require (
11
11
github.com/pkg/errors v0.9.1
12
12
github.com/sirupsen/logrus v1.9.3
13
13
github.com/stretchr/testify v1.9.0
14
- github.com/validator-labs/validator v0.1.2
14
+ github.com/validator-labs/validator v0.1.3-0.20240809205255-c05a36eebd3c
15
15
github.com/vmware/govmomi v0.39.0
16
16
golang.org/x/exp v0.0.0-20240808152545-0cdaa3abc0fa
17
17
k8s.io/api v0.30.3
Original file line number Diff line number Diff line change @@ -143,8 +143,8 @@ github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO
143
143
github.com/stretchr/testify v1.8.1 /go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4 =
144
144
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg =
145
145
github.com/stretchr/testify v1.9.0 /go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY =
146
- github.com/validator-labs/validator v0.1.2 h1:2KqwetsZFeK5ol7Hd/VGO1Ccz8WQFVs5QwfLf8blp10 =
147
- github.com/validator-labs/validator v0.1.2 /go.mod h1:AdpMOk2xYjlpUjmPJ2CN6MNDFN4NLH/q4lqUziseHpU =
146
+ github.com/validator-labs/validator v0.1.3-0.20240809205255-c05a36eebd3c h1:9Dy8DW7qdSQflkwiNPcBPkf/wgAOT+ddmSDvOabjnVQ =
147
+ github.com/validator-labs/validator v0.1.3-0.20240809205255-c05a36eebd3c /go.mod h1:TU04WjenuJxvJI/uhRsBJRym3ysA+dvSwUs2qvnak1Q =
148
148
github.com/vmware/govmomi v0.39.0 h1:soLZ08Q2zvjRSinNup8xVlw0KDDCJPPA1rIDmBhi7As =
149
149
github.com/vmware/govmomi v0.39.0 /go.mod h1:oHzAQ1r6152zYDGcUqeK+EO8LhKo5wjtvWZBGHws2Hc =
150
150
github.com/yuin/goldmark v1.1.27 /go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74 =
You can’t perform that action at this time.
0 commit comments