File tree 3 files changed +10
-3
lines changed
3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ limitations under the License.
17
17
package v1alpha1
18
18
19
19
import (
20
+ "reflect"
21
+
20
22
"github.com/validator-labs/validator-plugin-azure/pkg/constants"
21
23
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
22
24
)
@@ -145,6 +147,11 @@ type AzureValidator struct {
145
147
Status AzureValidatorStatus `json:"status,omitempty"`
146
148
}
147
149
150
+ // GetKind returns the Azure validator's kind.
151
+ func (v AzureValidator ) GetKind () string {
152
+ return reflect .TypeOf (v ).Name ()
153
+ }
154
+
148
155
// PluginCode returns the Azure validator's plugin code.
149
156
func (v AzureValidator ) PluginCode () string {
150
157
return v .Spec .PluginCode ()
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ require (
10
10
github.com/go-logr/logr v1.4.2
11
11
github.com/onsi/ginkgo/v2 v2.20.0
12
12
github.com/onsi/gomega v1.34.1
13
- github.com/validator-labs/validator v0.1.2
13
+ github.com/validator-labs/validator v0.1.3-0.20240809205255-c05a36eebd3c
14
14
golang.org/x/exp v0.0.0-20240808152545-0cdaa3abc0fa
15
15
k8s.io/api v0.30.3
16
16
k8s.io/apimachinery v0.30.3
Original file line number Diff line number Diff line change @@ -155,8 +155,8 @@ github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO
155
155
github.com/stretchr/testify v1.8.1 /go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4 =
156
156
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg =
157
157
github.com/stretchr/testify v1.9.0 /go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY =
158
- github.com/validator-labs/validator v0.1.2 h1:2KqwetsZFeK5ol7Hd/VGO1Ccz8WQFVs5QwfLf8blp10 =
159
- github.com/validator-labs/validator v0.1.2 /go.mod h1:AdpMOk2xYjlpUjmPJ2CN6MNDFN4NLH/q4lqUziseHpU =
158
+ github.com/validator-labs/validator v0.1.3-0.20240809205255-c05a36eebd3c h1:9Dy8DW7qdSQflkwiNPcBPkf/wgAOT+ddmSDvOabjnVQ =
159
+ github.com/validator-labs/validator v0.1.3-0.20240809205255-c05a36eebd3c /go.mod h1:TU04WjenuJxvJI/uhRsBJRym3ysA+dvSwUs2qvnak1Q =
160
160
github.com/yuin/goldmark v1.1.27 /go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74 =
161
161
github.com/yuin/goldmark v1.2.1 /go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74 =
162
162
go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto =
You can’t perform that action at this time.
0 commit comments