Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow custom markers with values #124

Open
justenstall opened this issue Jan 16, 2025 · 0 comments
Open

Allow custom markers with values #124

justenstall opened this issue Jan 16, 2025 · 0 comments

Comments

@justenstall
Copy link
Contributor

Allow custom markers to have a value like kubebuilder markers.

type Config struct {
   // +kubebuilder:default=25
   MaxOpenConns int `json:"maxOpenConns,omitempty"`
}

Motivation is to define an env custom marker to generate an extra column with the equivalent environment variable name.

type Config struct {
   // +env="MAX_OPEN_CONNS"
   MaxOpenConns int `json:"maxOpenConns,omitempty"`
}

I tried implementing this using the existing processor.customMarkers config and modified templates like the examples, but it seems like the markers are not matched if they are followed by an equals sign.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant