File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
internal/controller/provisioner Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -1113,6 +1113,9 @@ func (p *NginxProvisioner) buildNginxPodTemplateSpec(
11131113
11141114func (p * NginxProvisioner ) buildImage (nProxyCfg * graph.EffectiveNginxProxy ) (string , corev1.PullPolicy ) {
11151115 image := defaultNginxImagePath
1116+ if p .cfg .Plus {
1117+ image = defaultNginxPlusImagePath
1118+ }
11161119 tag := p .cfg .GatewayPodConfig .Version
11171120 pullPolicy := defaultImagePullPolicy
11181121
Original file line number Diff line number Diff line change @@ -498,6 +498,7 @@ func TestBuildNginxResourceObjects_Plus(t *testing.T) {
498498 cfg : Config {
499499 GatewayPodConfig : & config.GatewayPodConfig {
500500 Namespace : ngfNamespace ,
501+ Version : "1.0.0" ,
501502 },
502503 Plus : true ,
503504 PlusUsageConfig : & config.UsageReportConfig {
@@ -611,6 +612,7 @@ func TestBuildNginxResourceObjects_Plus(t *testing.T) {
611612 Name : "nginx-plus-usage-certs" ,
612613 MountPath : "/etc/nginx/certs-bootstrap/" ,
613614 }))
615+ g .Expect (container .Image ).To (Equal (fmt .Sprintf ("%s:1.0.0" , defaultNginxPlusImagePath )))
614616}
615617
616618func TestBuildNginxResourceObjects_DockerSecrets (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments