Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions pkg/haproxy/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,11 +249,11 @@ func (c *Client) GetCertificateInfoByPath(filePath, displayName string) (*CertIn

// GetCertificateInfoByRef retrieves detailed information using a CertificateRef
func (c *Client) GetCertificateInfoByRef(ref CertificateRef) (*CertInfo, error) {
// Use DisplayName (storage_name) for API lookup, as the HAProxy Data Plane API
// storage endpoint expects the storage name, not the full filesystem path
lookupPath := ref.DisplayName
// Use FilePath for API lookup, as the HAProxy Data Plane API v2 storage endpoint
// expects the full file path, not the storage name
lookupPath := ref.FilePath
if lookupPath == "" {
lookupPath = ref.FilePath
lookupPath = ref.DisplayName
}
return c.GetCertificateInfoByPath(lookupPath, ref.DisplayName)
}
Expand Down
Loading