Skip to content

Commit

Permalink
ingress: Allow strict kube-proxy-replacement
Browse files Browse the repository at this point in the history
Relates: #30592

Suggested-by: Marco Iorio <marco.iorio@isovalent.com>
Signed-off-by: Tam Mach <tam.mach@cilium.io>
  • Loading branch information
sayboras committed Mar 11, 2024
1 parent 26f8349 commit ef95374
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion operator/pkg/gateway-api/cell.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ func initGatewayAPIController(params gatewayAPIParams) error {
return nil
}

if params.GatewayApiConfig.KubeProxyReplacement != option.KubeProxyReplacementTrue && !params.GatewayApiConfig.EnableNodePort {
if params.GatewayApiConfig.KubeProxyReplacement != option.KubeProxyReplacementTrue &&
params.GatewayApiConfig.KubeProxyReplacement != option.KubeProxyReplacementStrict &&
!params.GatewayApiConfig.EnableNodePort {
params.Logger.Warn("Gateway API support requires either kube-proxy-replacement or enable-node-port enabled")
return nil
}
Expand Down
4 changes: 3 additions & 1 deletion operator/pkg/ingress/cell.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ func registerReconciler(params ingressParams) error {
return nil
}

if params.IngressConfig.KubeProxyReplacement != option.KubeProxyReplacementTrue && !params.IngressConfig.EnableNodePort {
if params.IngressConfig.KubeProxyReplacement != option.KubeProxyReplacementTrue &&
params.IngressConfig.KubeProxyReplacement != option.KubeProxyReplacementStrict &&
!params.IngressConfig.EnableNodePort {
params.Logger.Warn("Ingress Controller support requires either kube-proxy-replacement or enable-node-port enabled")
return nil
}
Expand Down

0 comments on commit ef95374

Please sign in to comment.