Skip to content

Commit f35dd2b

Browse files
committed
fix golangci lint
Signed-off-by: dongjiang1989 <[email protected]>
1 parent b31d639 commit f35dd2b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/crd/schema.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ func localNamedToSchema(ctx *schemaContext, ident *ast.Ident) *apiextensionsv1.J
284284
if basicInfo.Name() != ident.Name {
285285
ctx.requestSchema("", ident.Name)
286286
link := TypeRefLink("", ident.Name)
287-
return &apiext.JSONSchemaProps{
287+
return &apiextensionsv1.JSONSchemaProps{
288288
Type: typ,
289289
Format: fmt,
290290
Ref: &link,
@@ -321,7 +321,7 @@ func localNamedToSchema(ctx *schemaContext, ident *ast.Ident) *apiextensionsv1.J
321321
}
322322
}
323323

324-
return &apiext.JSONSchemaProps{
324+
return &apiextensionsv1.JSONSchemaProps{
325325
Type: typ,
326326
Format: fmt,
327327
Ref: &link,

pkg/rbac/testdata/controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ package controller
3636
// +kubebuilder:rbac:groups="",resources=me,verbs=list
3737
// +kubebuilder:rbac:groups=core;"";some-other-to-deduplicate-with-core,resources=me,verbs=list;get
3838
// +kubebuilder:rbac:groups=deduplicate-groups5,resources=abc,verbs=get;update;patch;create,namespace=here
39-
// +kubebuilder:rbac:groups=deduplicate-groups5,resources=abc,verbs=*,namespace=here
39+
// +kubebuilder:rbac:groups=deduplicate-groups5,resources=abc,verbs=*,namespace=here

0 commit comments

Comments
 (0)