Skip to content

Commit fa05a2b

Browse files
committed
crossplane: ACK types don't need to be imported in Crossplane types
Signed-off-by: Muvaffak Onus <[email protected]>
1 parent 38898fc commit fa05a2b

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

templates/crossplane/apis/types.go.tpl

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,15 @@
55
package {{ .APIVersion }}
66

77
import (
8-
ackv1alpha1 "github.com/aws-controllers-k8s/runtime/apis/core/v1alpha1"
9-
"github.com/aws/aws-sdk-go/aws"
108
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
119
)
1210

1311
// Hack to avoid import errors during build...
1412
var (
1513
_ = &metav1.Time{}
16-
_ = &aws.JSONValue{}
17-
_ = ackv1alpha1.AWSAccountID("")
1814
)
19-
{{- range $typeDef := .TypeDefs }}
15+
16+
{{ range $typeDef := .TypeDefs }}
2017

2118
{{ template "type_def" $typeDef }}
2219
{{- end -}}

0 commit comments

Comments
 (0)