-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
chore: Refactor OpenStackSDConfig #7244
base: main
Are you sure you want to change the base?
chore: Refactor OpenStackSDConfig #7244
Conversation
Hey! thanks for the contribution. |
@mviswanathsai Hi, I completed all of the requirements already. Please review. |
@mviswanathsai Hi, do you have any chance to take a look at my PR? |
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.
For string fields we need to add the minlength validation
// +kubebuilder:validation:MinLength:=1
@@ -802,6 +803,8 @@ type OpenStackSDConfig struct { | |||
RefreshInterval *v1.Duration `json:"refreshInterval,omitempty"` | |||
// The port to scrape metrics from. If using the public IP address, this must | |||
// instead be specified in the relabeling rule. | |||
// +kubebuilder:validation:Minimum=0 | |||
// +kubebuilder:validation:Maximum=65535 | |||
// +optional | |||
Port *int `json:"port"` |
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.
Port *int `json:"port"` | |
Port *int32 `json:"port,omitempty"` |
Description
Refactor OpenStackSDConfig
Type of change
What type of changes does your code introduce to the Prometheus operator? Put an
x
in the box that apply.CHANGE
(fix or feature that would cause existing functionality to not work as expected)FEATURE
(non-breaking change which adds functionality)BUGFIX
(non-breaking change which fixes an issue)ENHANCEMENT
(non-breaking change which improves existing functionality)NONE
(if none of the other choices apply. Example, tooling, build system, CI, docs, etc.)Verification
Please check the Prometheus-Operator testing guidelines for recommendations about automated tests.
Changelog entry
Fixes #7209