@@ -139,7 +139,10 @@ func createArangodArgs(apiObject metav1.Object, deplSpec api.DeploymentSpec, gro
139139 )
140140 }
141141
142- hasAdvertisedEndpoint := versionHasAdvertisedEndpoint (version )
142+ versionHasAdvertisedEndpoint := versionHasAdvertisedEndpoint (version )
143+ if ! versionHasAdvertisedEndpoint && deplSpec .ExternalAccess .HasAdvertisedEndpoint () {
144+ fmt .Printf ("Advertised endpoint is not supported by version %s\n " , version )
145+ }
143146
144147 /* if config.ServerThreads != 0 {
145148 options = append(options,
@@ -186,7 +189,7 @@ func createArangodArgs(apiObject metav1.Object, deplSpec api.DeploymentSpec, gro
186189 optionPair {"--foxx.queues" , "true" },
187190 optionPair {"--server.statistics" , "true" },
188191 )
189- if deplSpec .ExternalAccess .HasAdvertisedEndpoint () && hasAdvertisedEndpoint {
192+ if deplSpec .ExternalAccess .HasAdvertisedEndpoint () && versionHasAdvertisedEndpoint {
190193 options = append (options ,
191194 optionPair {"--cluster.my-advertised-endpoint" , deplSpec .ExternalAccess .GetAdvertisedEndpoint ()},
192195 )
@@ -203,7 +206,7 @@ func createArangodArgs(apiObject metav1.Object, deplSpec api.DeploymentSpec, gro
203206 optionPair {"--cluster.my-address" , myTCPURL },
204207 optionPair {"--cluster.my-role" , "SINGLE" },
205208 )
206- if deplSpec .ExternalAccess .HasAdvertisedEndpoint () && hasAdvertisedEndpoint {
209+ if deplSpec .ExternalAccess .HasAdvertisedEndpoint () && versionHasAdvertisedEndpoint {
207210 options = append (options ,
208211 optionPair {"--cluster.my-advertised-endpoint" , deplSpec .ExternalAccess .GetAdvertisedEndpoint ()},
209212 )
0 commit comments