File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
internal/controller/provisioner Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -33,9 +33,10 @@ const (
3333 defaultServiceType = corev1 .ServiceTypeLoadBalancer
3434 defaultServicePolicy = corev1 .ServiceExternalTrafficPolicyLocal
3535
36- defaultNginxImagePath = "ghcr.io/nginx/nginx-gateway-fabric/nginx"
37- defaultNginxPlusImagePath = "private-registry.nginx.com/nginx-gateway-fabric/nginx-plus"
38- defaultImagePullPolicy = corev1 .PullIfNotPresent
36+ defaultNginxImagePath = "ghcr.io/nginx/nginx-gateway-fabric/nginx"
37+ defaultNginxPlusImagePath = "private-registry.nginx.com/nginx-gateway-fabric/nginx-plus"
38+ defaultNginxPlusWafImagePath = "private-registry.nginx.com/nginx-gateway-fabric/nginx-plus-nap-waf"
39+ defaultImagePullPolicy = corev1 .PullIfNotPresent
3940
4041 // WAF container defaults.
4142 defaultWAFEnforcerImagePath = "private-registry.nginx.com/nap/waf-enforcer"
@@ -988,6 +989,10 @@ func (p *NginxProvisioner) buildImage(nProxyCfg *graph.EffectiveNginxProxy) (str
988989 image = defaultNginxPlusImagePath
989990 }
990991
992+ if graph .WAFEnabledForNginxProxy (nProxyCfg ) {
993+ image = defaultNginxPlusWafImagePath
994+ }
995+
991996 getImageAndPullPolicy := func (container ngfAPIv1alpha2.ContainerSpec ) (string , string , corev1.PullPolicy ) {
992997 if container .Image != nil {
993998 if container .Image .Repository != nil {
You can’t perform that action at this time.
0 commit comments