Skip to content

Commit

Permalink
Update HTTPRequestRedirectPolicy StatusCode
Browse files Browse the repository at this point in the history
Use RedirectResponseCode instead of just 301/302 for HTTPRequestRedirectPolicy StatusCode
  • Loading branch information
billyjs authored Nov 26, 2024
1 parent d05f43a commit 8f39293
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apis/projectcontour/v1/httpproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -714,8 +714,7 @@ type HTTPRequestRedirectPolicy struct {
// StatusCode is the HTTP status code to be used in response.
// +optional
// +kubebuilder:default=302
// +kubebuilder:validation:Enum=301;302
StatusCode *int `json:"statusCode,omitempty"`
StatusCode *RedirectResponseCode `json:"statusCode,omitempty"`

// Path allows for redirection to a different path from the
// original on the request. The path must start with a
Expand Down

0 comments on commit 8f39293

Please sign in to comment.