Closed vaspahomov closed 2 years ago
Thanks @vaspahomov ! I'll review this next week. As a side note, what I had in mind for this issue was that we could possibly have a tool that takes the field path and type of the field, then create it in the status with that path, i.e. how mkdir -p
works with directories. But I'm a bit rusty on this part of the codebase now, so I'll think about it more when I do the review. And totally open to other approaches as well.
@vaspahomov The issue has been fixed in https://github.com/crossplane/terrajet/pull/230 together with an extensive refactor. Thanks for your PR!
Hello! I'm working on provider-jet-yc based on terraform-provider-yandex.
In our case there is fqdn field which is computed and should be Observation filed. Here stores FQDNs of hosts in cluster. We need this field in case building connection string.
fqdn
field nested in host subresource and because #27 terrajet loses them.This
PostgresqlClusterHostObservation
struct generated with fresh terrajet from main branch.But struct not present in main Observation:
Description of your changes
I've made very dirty fix for #27 issue. Fix requires lot of changes in
types/builder.go
. And I've not found better solution then return multiple types from buildSchema and also wrap type withisObservation
flag.After fix I've generate apis and on postgresqlcluster resource I have:
I have:
make reviewable
to ensure this PR is ready for review.backport release-x.y
labels to auto-backport this PR if necessary.How has this code been tested
On my provider-jet-yc.