Skip to content

trait Metadata not implemented for custom spec #1643

Answered by clux
drewstone asked this question in Q&A
Discussion options

You must be logged in to vote

Hey looks mostly sensible. You need to implement your traits on the generated top level type EnvioIndexer rather than EnvioIndexerSpec, then you should probably get it working.

Elaboration; only the top level spec gets the traits generated. The Spec struct is the "user struct", but it's not the one we use for the Kubernetes API (because it does not have explicit metadata and type information).

Moving this to discussions.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by clux
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1642 on November 20, 2024 12:21.