fix(charts): add schema for provider.webhook.serviceMonitor (#5932)

add a test case for webhook serviceMonitor config

Update changelog

Fix linting errors
This commit is contained in:
Chris Smith 2025-12-10 15:37:31 -05:00 committed by GitHub
parent cb1911ca7f
commit 95363323df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 33 additions and 8 deletions

View File

@ -26,6 +26,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Grant `networking.k8s.io/ingresses` and `gateway.solo.io/gateways` permissions when using `gloo-proxy` source. ([#5909](https://github.com/kubernetes-sigs/external-dns/pull/5909)) _@cucxabong_
### Fixed
- Fixed the missing schema for `.provider.webhook.serviceMonitor` configs ([#5932](https://github.com/kubernetes-sigs/external-dns/pull/5932)) _@chrisbsmith_
## [v1.19.0] - 2025-09-08
### Added

View File

@ -62,3 +62,12 @@ tests:
readinessProbe: null
asserts:
- notFailedTemplate: {}
- it: should not fail when provider webhook serviceMonitor interval is not null
set:
provider:
webhook:
serviceMonitor:
interval: 30s
asserts:
- notFailedTemplate: {}

View File

@ -502,10 +502,16 @@
"type": "object",
"properties": {
"bearerTokenFile": {
"type": "null"
"type": [
"string",
"null"
]
},
"interval": {
"type": "null"
"type": [
"string",
"null"
]
},
"metricRelabelings": {
"type": "array"
@ -514,10 +520,16 @@
"type": "array"
},
"scheme": {
"type": "null"
"type": [
"string",
"null"
]
},
"scrapeTimeout": {
"type": "null"
"type": [
"string",
"null"
]
},
"tlsConfig": {
"type": "object"

View File

@ -296,11 +296,11 @@ provider: # @schema type: [object, string]
# -- Optional [Service Monitor](https://prometheus-operator.dev/docs/operator/design/#servicemonitor) configuration for the `webhook` container.
# @default -- See _values.yaml_
serviceMonitor:
interval:
scheme:
interval: # @schema type:[string, null]; default: null
scheme: # @schema type:[string, null]; default: null
tlsConfig: {}
bearerTokenFile:
scrapeTimeout:
bearerTokenFile: # @schema type:[string, null]; default: null
scrapeTimeout: # @schema type:[string, null]; default: null
metricRelabelings: []
relabelings: []