Closed knowshan closed 2 years ago
Hi Shantanu, thanks a lot for the attempt to add a new resource! Can you please open PR with the code you are trying out and we can continue here? It is hard to analyze the issue without observing the actual code change.
Thanks!
Hi @ytsarev , Thank you for providing next steps.
I've linked PR with code changes to this issue. I followed https://github.com/crossplane/terrajet/blob/main/docs/generating-a-provider.md guide to add new Terraform provider resource and then ran go run cmd/generator/main.go "$PWD"
to generate code.
I'm getting following error after make run
$ go run cmd/generator/main.go "$PWD"
Generated 4 resources!
$ make run
17:29:48 [ .. ] go build darwin_amd64
go build: -i flag is deprecated
github.com/crossplane-contrib/provider-jet-datadog/apis/syntheticstest/v1alpha1
# github.com/crossplane-contrib/provider-jet-datadog/apis/syntheticstest/v1alpha1
apis/syntheticstest/v1alpha1/zz_syntheticstest_types.go:964:25: cannot use &SyntheticsTest{} (type *SyntheticsTest) as type runtime.Object in argument to SchemeBuilder.Register:
*SyntheticsTest does not implement runtime.Object (missing DeepCopyObject method)
apis/syntheticstest/v1alpha1/zz_syntheticstest_types.go:964:44: cannot use &SyntheticsTestList{} (type *SyntheticsTestList) as type runtime.Object in argument to SchemeBuilder.Register:
*SyntheticsTestList does not implement runtime.Object (missing DeepCopyObject method)
17:29:49 [FAIL]
make: *** [go.build] Error 1
I would appreciate help on adding new resources and contributing code. Thanks!
I was able to figure out this issue. I had ~/.terraformrc
pointing to specific Datadog provider on file-system which was few months old.
I'll update PR with new code for review. Thanks!
What resource do you need?
Synthetics Test
What is your use case?
Create Synthetics Test in Datadog for ingress resources.
Would you be willing to contribute it using Terrajet?
Yes
I've tried adding new resource by adding a new resource under config and then updating provider.go. I'm getting following error during
make run
:Here are system details:
Can I get some help on adding new resource(s)?
Thanks, Shantanu