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(
1113
1113
1114
1114
func (p * NginxProvisioner ) buildImage (nProxyCfg * graph.EffectiveNginxProxy ) (string , corev1.PullPolicy ) {
1115
1115
image := defaultNginxImagePath
1116
+ if p .cfg .Plus {
1117
+ image = defaultNginxPlusImagePath
1118
+ }
1116
1119
tag := p .cfg .GatewayPodConfig .Version
1117
1120
pullPolicy := defaultImagePullPolicy
1118
1121
Original file line number Diff line number Diff line change @@ -498,6 +498,7 @@ func TestBuildNginxResourceObjects_Plus(t *testing.T) {
498
498
cfg : Config {
499
499
GatewayPodConfig : & config.GatewayPodConfig {
500
500
Namespace : ngfNamespace ,
501
+ Version : "1.0.0" ,
501
502
},
502
503
Plus : true ,
503
504
PlusUsageConfig : & config.UsageReportConfig {
@@ -611,6 +612,7 @@ func TestBuildNginxResourceObjects_Plus(t *testing.T) {
611
612
Name : "nginx-plus-usage-certs" ,
612
613
MountPath : "/etc/nginx/certs-bootstrap/" ,
613
614
}))
615
+ g .Expect (container .Image ).To (Equal (fmt .Sprintf ("%s:1.0.0" , defaultNginxPlusImagePath )))
614
616
}
615
617
616
618
func TestBuildNginxResourceObjects_DockerSecrets (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments