Skip to content

Commit

Permalink
Ability to Customize HAProxy 2.x Error Page
Browse files Browse the repository at this point in the history
  • Loading branch information
miheer committed Mar 7, 2021
1 parent 175513f commit 9fcd610
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,13 @@ spec:
required:
- type
type: object
httpErrorCodePage:
description: This used to sync the configmap having customizable error
code page created by cluster admin in openshift-config namespace.
to openshift-ingress which will be used by the router to serve appropriate
error code pages If this field is empty, the default values i.e
default shipped error code pages will be served by the haproxy router.
type: string
httpHeaders:
description: "httpHeaders defines policy for HTTP headers. \n If this
field is empty, the default values are used."
Expand Down
6 changes: 6 additions & 0 deletions operator/v1/types_ingress.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ type IngressControllerSpec struct {
// +optional
Domain string `json:"domain,omitempty"`

//This used to sync the configmap having customizable error code page created by cluster admin in openshift-config namespace.
//to openshift-ingress which will be used by the router to serve appropriate error code
//pages
//If this field is empty, the default values i.e default shipped error code pages will be served by the haproxy router.
HttpErrorCodePage string `json:"httpErrorCodePage,omitempty"`

// replicas is the desired number of ingress controller replicas. If unset,
// defaults to 2.
//
Expand Down
1 change: 1 addition & 0 deletions operator/v1/zz_generated.swagger_doc_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9fcd610

Please sign in to comment.