You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a class that extends ObservedGenerationAwareStatus and thus inherits the field observedGeneration. I also registered it for reflection because the CustomResources are in a project pulled into the main project via maven dependency.
@RegisterForReflection
public class GiteaRepositoryStatus extends ObservedGenerationAwareStatus {
...
}
When I run my operator as native executable, I get the following error:
com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "observedGeneration" (class io.devjoy.gitea.k8s.model.GiteaStatus), not marked as ignorable (one known property: "conditions"])
61
at [Source: (BufferedInputStream); line: 1, column: 4515] (through reference chain: io.fabric8.kubernetes.api.model.DefaultKubernetesResourceList["items"]->java.util.ArrayList[0]->io.devjoy.gitea.k8s.model.Gitea["status"]->io.devjoy.gitea.k8s.model.GiteaStatus["observedGeneration"])
The CRD resource manifest is generated correctly and contains the observedGeneration field.
The text was updated successfully, but these errors were encountered:
Fixes#824
Previously, we were only registering the class itself for reflection, we
now register the full hierarchy instead.
Signed-off-by: Chris Laprun <claprun@redhat.com>
Fixes#824
Previously, we were only registering the class itself for reflection, we
now register the full hierarchy instead.
Signed-off-by: Chris Laprun <claprun@redhat.com>
I have a class that extends
ObservedGenerationAwareStatus
and thus inherits the fieldobservedGeneration
. I also registered it for reflection because the CustomResources are in a project pulled into the main project via maven dependency.When I run my operator as native executable, I get the following error:
The CRD resource manifest is generated correctly and contains the observedGeneration field.
The text was updated successfully, but these errors were encountered: