Skip to content

Commit

Permalink
fix(guardrails): Get orchestrator image from operator's config map
Browse files Browse the repository at this point in the history
  • Loading branch information
ruivieira committed Feb 14, 2025
1 parent 87a84a2 commit 6e1a820
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion controllers/gorch/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const (
orchestratorName = "guardrails-orchestrator"
finalizerName = "trustyai.opendatahub.io/gorch-finalizer"
configMapName = "gorch-config"
orchestratorImageKey = "guardrailsOrchestratorImage"
orchestratorImageKey = "guardrails-orchestrator-image"
vllmGatewayImageKey = "vllmGatewayImage"
regexDetectorImageKey = "regexDetectorImage"
ServiceName = "GORCH"
Expand Down
2 changes: 1 addition & 1 deletion controllers/gorch/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ type DeploymentConfig struct {
func (r *GuardrailsOrchestratorReconciler) createDeployment(ctx context.Context, orchestrator *gorchv1alpha1.GuardrailsOrchestrator) *appsv1.Deployment {
var containerImages ContainerImages
// Get orchestrator image
orchestratorImage, err := r.getImageFromConfigMap(ctx, orchestratorImageKey, constants.ConfigMap, orchestrator.Namespace)
orchestratorImage, err := r.getImageFromConfigMap(ctx, orchestratorImageKey, constants.ConfigMap, r.Namespace)
if orchestratorImage == "" || err != nil {
log.FromContext(ctx).Error(err, "Error getting container image from ConfigMap.")
}
Expand Down

0 comments on commit 6e1a820

Please sign in to comment.