You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by ni...@apache.org on 2026/04/30 09:36:54 UTC
(apisix-ingress-controller) branch master updated: fix: use https_verify_certificate for standalone health checks (#2755)
This is an automated email from the ASF dual-hosted git repository.
nic-6443 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-ingress-controller.git
The following commit(s) were added to refs/heads/master by this push:
new 19e40c94 fix: use https_verify_certificate for standalone health checks (#2755)
19e40c94 is described below
commit 19e40c9426ee42e8f5c179b6f42cb49baf1e45de
Author: AlinsRan <al...@apache.org>
AuthorDate: Thu Apr 30 17:36:48 2026 +0800
fix: use https_verify_certificate for standalone health checks (#2755)
Co-authored-by: Copilot <22...@users.noreply.github.com>
---
api/adc/types.go | 20 ++++++++++----------
internal/adc/translator/apisixupstream.go | 2 +-
2 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/api/adc/types.go b/api/adc/types.go
index b1738bf2..130d63d0 100644
--- a/api/adc/types.go
+++ b/api/adc/types.go
@@ -198,16 +198,16 @@ type ClientTLS struct {
// UpstreamActiveHealthCheck defines the active upstream health check configuration.
// +k8s:deepcopy-gen=true
type UpstreamActiveHealthCheck struct {
- Type string `json:"type,omitempty" yaml:"type,omitempty"`
- Timeout int `json:"timeout,omitempty" yaml:"timeout,omitempty"`
- Concurrency int `json:"concurrency,omitempty" yaml:"concurrency,omitempty"`
- Host string `json:"host,omitempty" yaml:"host,omitempty"`
- Port int32 `json:"port,omitempty" yaml:"port,omitempty"`
- HTTPPath string `json:"http_path,omitempty" yaml:"http_path,omitempty"`
- HTTPSVerifyCert bool `json:"https_verify_cert,omitempty" yaml:"https_verify_cert,omitempty"`
- HTTPRequestHeaders []string `json:"req_headers,omitempty" yaml:"req_headers,omitempty"`
- Healthy UpstreamActiveHealthCheckHealthy `json:"healthy,omitempty" yaml:"healthy,omitempty"`
- Unhealthy UpstreamActiveHealthCheckUnhealthy `json:"unhealthy,omitempty" yaml:"unhealthy,omitempty"`
+ Type string `json:"type,omitempty" yaml:"type,omitempty"`
+ Timeout int `json:"timeout,omitempty" yaml:"timeout,omitempty"`
+ Concurrency int `json:"concurrency,omitempty" yaml:"concurrency,omitempty"`
+ Host string `json:"host,omitempty" yaml:"host,omitempty"`
+ Port int32 `json:"port,omitempty" yaml:"port,omitempty"`
+ HTTPPath string `json:"http_path,omitempty" yaml:"http_path,omitempty"`
+ HTTPSVerifyCertificate bool `json:"https_verify_certificate,omitempty" yaml:"https_verify_certificate,omitempty"`
+ HTTPRequestHeaders []string `json:"req_headers,omitempty" yaml:"req_headers,omitempty"`
+ Healthy UpstreamActiveHealthCheckHealthy `json:"healthy,omitempty" yaml:"healthy,omitempty"`
+ Unhealthy UpstreamActiveHealthCheckUnhealthy `json:"unhealthy,omitempty" yaml:"unhealthy,omitempty"`
}
// UpstreamPassiveHealthCheck defines the passive health check configuration for an upstream.
diff --git a/internal/adc/translator/apisixupstream.go b/internal/adc/translator/apisixupstream.go
index 33e626fe..db65d855 100644
--- a/internal/adc/translator/apisixupstream.go
+++ b/internal/adc/translator/apisixupstream.go
@@ -323,7 +323,7 @@ func translateUpstreamActiveHealthCheck(config *apiv2.ActiveHealthCheck) (*adc.U
active.HTTPRequestHeaders = config.RequestHeaders
if config.StrictTLS == nil || *config.StrictTLS {
- active.HTTPSVerifyCert = true
+ active.HTTPSVerifyCertificate = true
}
if config.Healthy != nil {