-
Notifications
You must be signed in to change notification settings - Fork 139
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
Pick #3688 apiserver: move loglevel under spec #3689
base: release-v1.37
Are you sure you want to change the base?
Conversation
api/v1/apiserver_types.go
Outdated
// +kubebuilder:validation:Enum=Fatal;Error;Warn;Info;Debug;Trace | ||
// +kubebuilder:default=Info | ||
// +optional | ||
ApiServerLogLevel *string `json:"apiServerLogLevel,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ApiServerLogLevel *string `json:"apiServerLogLevel,omitempty"` | |
APIServerLogLevel *string `json:"apiServerLogLevel,omitempty"` |
Same-case acryonyms :D
api/v1/apiserver_types.go
Outdated
// +optional | ||
ApiServerLogLevel *string `json:"apiServerLogLevel,omitempty"` | ||
|
||
// +kubebuilder:validation:Enum=Fatal;Error;Warn;Info;Debug;Trace |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to define a type LogLevel string
that can carry these validations / defaults rather than replicate them in both places? Not super important but might be a bit cleaner.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had the same thought that we should have a LogLevel type.
9a53897
to
fdf0603
Compare
Description
For PR author
make gen-files
make gen-versions
For PR reviewers
A note for code reviewers - all pull requests must have the following:
kind/bug
if this is a bugfix.kind/enhancement
if this is a a new feature.enterprise
if this PR applies to Calico Enterprise only.