Skip to content

Feat: Add API URL validation for Telegram receiver in CR#8199

Merged
simonpasquier merged 2 commits intoprometheus-operator:mainfrom
nutmos:feat/add-telegram-cr-api-url-validation
Dec 22, 2025
Merged

Feat: Add API URL validation for Telegram receiver in CR#8199
simonpasquier merged 2 commits intoprometheus-operator:mainfrom
nutmos:feat/add-telegram-cr-api-url-validation

Conversation

@nutmos
Copy link
Contributor

@nutmos nutmos commented Dec 20, 2025

Description

This PR adds the validation to WeChat APIURL config by changing type in CR from string to URL and add the validation method in the code.

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

Unit Testing

Changelog entry

Please put a one-line changelog entry below. This will be copied to the changelog file during the release process.

Description
This PR adds the validation to WeChat APIURL config by changing type in CR from string to URL.

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
Unit Testing

Changelog entry
- Add API URL validation for Alertmanager Telegram receiver custom resource

@nutmos nutmos requested a review from a team as a code owner December 20, 2025 07:24
Copy link
Contributor

@simonpasquier simonpasquier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@simonpasquier simonpasquier merged commit b4b6cd8 into prometheus-operator:main Dec 22, 2025
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants