Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Saylor Berman <s.berman@f5.com>
  • Loading branch information
ciarams87 and sjberman authored May 15, 2024
1 parent dc4828e commit 3b07215
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apis/v1alpha1/nginxproxy_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ type NginxProxySpec struct {
// Default is false, meaning http2 will be enabled for all servers.
//
// +optional
DisableHTTP2 bool `json:"disableHTTP2"`
DisableHTTP2 bool `json:"disableHTTP2,omitempty"`
}

// Telemetry specifies the OpenTelemetry configuration.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package config

const baseHTTPTemplateText = `
{{- if .HTTP2 }}http2 on;{{- end }}
{{- if .HTTP2 }}http2 on;{{ end }}
`
4 changes: 2 additions & 2 deletions internal/mode/static/state/dataplane/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,8 @@ type SpanAttribute struct {
Value string
}

// BaseHTTPConfig holds the configuration options at the http context
// BaseHTTPConfig holds the configuration options at the http context.
type BaseHTTPConfig struct {
// HTTP2 specifies whether http2 should be enabled or disabled for all servers
// HTTP2 specifies whether http2 should be enabled or disabled for all servers.
HTTP2 bool
}

0 comments on commit 3b07215

Please sign in to comment.