Skip to content

Commit

Permalink
remove unused functions (#6806)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdabelf5 authored Nov 14, 2024
1 parent 426716b commit d2a70a4
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions internal/configs/config_params.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (

"github.com/nginxinc/kubernetes-ingress/internal/configs/version2"
"github.com/nginxinc/kubernetes-ingress/internal/nginx"
conf_v1 "github.com/nginxinc/kubernetes-ingress/pkg/apis/configuration/v1"
)

// ConfigParams holds NGINX configuration parameters that affect the main NGINX config
Expand Down Expand Up @@ -220,19 +219,3 @@ func NewDefaultConfigParams(ctx context.Context, isPlus bool) *ConfigParams {
LimitReqRejectCode: 429,
}
}

// NewDefaultGlobalConfigParams creates a GlobalConfigParams with default values.
func NewDefaultGlobalConfigParams() *GlobalConfigParams {
return &GlobalConfigParams{Listeners: map[string]Listener{}}
}

// NewGlobalConfigParamsWithTLSPassthrough creates new GlobalConfigParams with enabled TLS Passthrough listener.
func NewGlobalConfigParamsWithTLSPassthrough() *GlobalConfigParams {
return &GlobalConfigParams{
Listeners: map[string]Listener{
conf_v1.TLSPassthroughListenerName: {
Protocol: conf_v1.TLSPassthroughListenerProtocol,
},
},
}
}

0 comments on commit d2a70a4

Please sign in to comment.