coralogix / zio-k8s

An idiomatic ZIO client for the Kubernetes API.
Apache License 2.0
97 stars 19 forks source link

Generated code failed to compile #397

Open capacman opened 2 years ago

capacman commented 2 years ago

Hi,

When i try to generate code for appproject-crd.yaml compiler says :

type JwtTokensByRole is not a member of object com.coralogix.zio.k8s.client.io.argoproj.definitions.appproject.v1alpha1.AppProject.Status When i check generated code, i could not find JwtTokensByRole class in status. I am using version 2.0.1

vigoo commented 2 years ago

Thanks for reporting the problem!

This seems to be an issue in the guardrail library that we are using to generate code from the OpenAPI schema within the CRD. I opened an issue there:

https://github.com/guardrail-dev/guardrail/issues/1591

Unfortunately even if it gets fixed there, it requires some work on the zio-k8s side to update to the latest guardrail version because it is depending on a quite customized older version. I started migrating to the new one and will continue once this issue get fixed there.