Skip to content

Commit

Permalink
add useProxyProtocol option to the CRD (#694)
Browse files Browse the repository at this point in the history
  • Loading branch information
wasaga authored Jul 6, 2023
1 parent f8f9f09 commit b4b1322
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apis/ingress/v1/pomerium_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,9 @@ type PomeriumSpec struct {

// Timeout specifies the <a href="https://www.pomerium.com/docs/reference/global-timeouts">global timeouts</a> for all routes.
Timeouts *Timeouts `json:"timeouts,omitempty"`

// UseProxyProtocol enables <a href="https://www.pomerium.com/docs/reference/use-proxy-protocol">Proxy Protocol</a> support.
UseProxyProtocol *bool `json:"useProxyProtocol,omitempty"`
}

// Timeouts allows to configure global timeouts for all routes.
Expand Down
5 changes: 5 additions & 0 deletions apis/ingress/v1/zz_generated.deepcopy.go

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

4 changes: 4 additions & 0 deletions config/crd/bases/ingress.pomerium.io_pomerium.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,10 @@ spec:
format: duration
type: string
type: object
useProxyProtocol:
description: UseProxyProtocol enables <a href="https://www.pomerium.com/docs/reference/use-proxy-protocol">Proxy
Protocol</a> support.
type: boolean
required:
- secrets
type: object
Expand Down
4 changes: 4 additions & 0 deletions deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,10 @@ spec:
format: duration
type: string
type: object
useProxyProtocol:
description: UseProxyProtocol enables <a href="https://www.pomerium.com/docs/reference/use-proxy-protocol">Proxy
Protocol</a> support.
type: boolean
required:
- secrets
type: object
Expand Down
1 change: 1 addition & 0 deletions pomerium/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ func applyJWTClaimHeaders(_ context.Context, p *pb.Config, c *model.Config) erro
func applySetOtherOptions(_ context.Context, p *pb.Config, c *model.Config) error {
p.Settings.SetResponseHeaders = c.Spec.SetResponseHeaders
p.Settings.ProgrammaticRedirectDomainWhitelist = c.Spec.ProgrammaticRedirectDomains
p.Settings.UseProxyProtocol = c.Spec.UseProxyProtocol
return nil
}

Expand Down

0 comments on commit b4b1322

Please sign in to comment.