Skip to content

Commit

Permalink
Fix the route timeout webhook reference
Browse files Browse the repository at this point in the history
SetDefaultRouteAnnotations(..) should be of type *BarbicanSpecCore to correctly reference set timeout (not the BarbicanAPI one)

Signed-off-by: Veronika Fisarova <[email protected]>
  • Loading branch information
Deydra71 committed Jan 9, 2025
1 parent 1482a31 commit 2c0c44a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/v1beta1/barbican_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ func (spec *BarbicanSpecCore) GetDefaultRouteAnnotations() (annotations map[stri
}

// SetDefaultRouteAnnotations sets HAProxy timeout values for Barbican API routes
func (spec *BarbicanAPITemplateCore) SetDefaultRouteAnnotations(annotations map[string]string) {
func (spec *BarbicanSpecCore) SetDefaultRouteAnnotations(annotations map[string]string) {
const haProxyAnno = "haproxy.router.openshift.io/timeout"
// Use a custom annotation to flag when the operator has set the default HAProxy timeout
// With the annotation func determines when to overwrite existing HAProxy timeout with the APITimeout
Expand Down

0 comments on commit 2c0c44a

Please sign in to comment.