File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 3
3
package { { .CRD.Names.Snake } }
4
4
5
5
import (
6
+ "k8s.io/apimachinery/pkg/runtime/schema"
6
7
ackv1alpha1 "github.com/aws-controllers-k8s/runtime/apis/core/v1alpha1"
7
8
acktypes "github.com/aws-controllers-k8s/runtime/pkg/types"
8
9
ackcompare "github.com/aws-controllers-k8s/runtime/pkg/compare"
@@ -30,10 +31,10 @@ var (
30
31
type resourceDescriptor struct {
31
32
}
32
33
33
- // GroupKind returns a Kubernetes metav1.GroupKind struct that describes the
34
- // API Group and Kind of CRs described by the descriptor
35
- func (d *resourceDescriptor) GroupKind () *metav1.GroupKind {
36
- return & GroupKind
34
+ // GroupVersionKind returns a Kubernetes schema.GroupVersionKind struct that
35
+ // describes the API Group, Version and Kind of CRs described by the descriptor
36
+ func (d *resourceDescriptor) GroupVersionKind () schema.GroupVersionKind {
37
+ return svcapitypes.GroupVersion.WithKind( GroupKind.Kind)
37
38
}
38
39
39
40
// EmptyRuntimeObject returns an empty object prototype that may be used in
You can’t perform that action at this time.
0 commit comments