@@ -37,23 +37,26 @@ type DeploymentConfig struct {
37
37
func (r * GuardrailsOrchestratorReconciler ) createDeployment (ctx context.Context , orchestrator * gorchv1alpha1.GuardrailsOrchestrator ) * appsv1.Deployment {
38
38
var containerImages ContainerImages
39
39
// Get orchestrator image
40
+ orchestratorConfigMapName := orchestrator .Name + "-config"
40
41
orchestratorImage , err := r .getImageFromConfigMap (ctx , orchestratorImageKey , constants .ConfigMap , r .Namespace )
41
42
if orchestratorImage == "" || err != nil {
42
43
log .FromContext (ctx ).Error (err , "Error getting container image from ConfigMap." )
43
44
}
44
45
containerImages .OrchestratorImage = orchestratorImage
45
-
46
+ log . FromContext ( ctx ). Info ( "using orchestratorImage " + orchestratorImage + "from config map " + r . Namespace + ":" + constants . ConfigMap )
46
47
// Check if the vLLM gateway is enabled
47
48
if orchestrator .Spec .VLLMGatewayConfig != nil {
48
49
// Get the gateway and regex detector container images
49
- vllmGatewayImage , err := r .getImageFromConfigMap (ctx , vllmGatewayImageKey , orchestratorName + "-config" , orchestrator .Namespace )
50
+ vllmGatewayImage , err := r .getImageFromConfigMap (ctx , vllmGatewayImageKey , orchestratorConfigMapName , orchestrator .Namespace )
50
51
if vllmGatewayImage == "" || err != nil {
51
52
log .FromContext (ctx ).Error (err , "Error getting vLLM gateway image from ConfigMap." )
52
53
}
53
- regexDetectorImage , err := r .getImageFromConfigMap (ctx , regexDetectorImageKey , orchestratorName + "-config" , orchestrator .Namespace )
54
+ log .FromContext (ctx ).Info ("using vLLM gateway image " + vllmGatewayImage + "from config map " + orchestrator .Namespace + ":" + orchestratorConfigMapName )
55
+ regexDetectorImage , err := r .getImageFromConfigMap (ctx , regexDetectorImageKey , orchestratorConfigMapName , orchestrator .Namespace )
54
56
if regexDetectorImage == "" || err != nil {
55
57
log .FromContext (ctx ).Error (err , "Error getting regex detectors image from ConfigMap." )
56
58
}
59
+ log .FromContext (ctx ).Info ("using regex detectors image " + regexDetectorImage + "from config map " + orchestrator .Namespace + ":" + orchestratorConfigMapName )
57
60
containerImages .GatewayImage = vllmGatewayImage
58
61
containerImages .RegexDetectorImage = regexDetectorImage
59
62
}
0 commit comments