Skip to content

Commit 53173fd

Browse files
committed
ensure kserve deploymentMode annotation is always set
Signed-off-by: Varun Ramachandra Sekar <vsekar@nvidia.com>
1 parent d54dfaf commit 53173fd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

internal/controller/platform/kserve/nimservice.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,11 @@ func (r *NIMServiceReconciler) renderAndSyncInferenceService(ctx context.Context
463463
isvcParams.Annotations[kserveconstants.EnableMetricAggregation] = "true"
464464
isvcParams.Annotations[kserveconstants.SetPrometheusAnnotation] = "true"
465465

466+
// Ensure deployment mode annotation is always set
467+
if _, ok := isvcParams.Annotations[utils.KServeDeploymentModeAnnotationKey]; !ok {
468+
isvcParams.Annotations[kserveconstants.DeploymentMode] = string(deploymentMode)
469+
}
470+
466471
// Sync ingress
467472
if !nimService.IsIngressEnabled() {
468473
isvcParams.Labels[kserveconstants.NetworkVisibility] = kserveconstants.ClusterLocalVisibility

0 commit comments

Comments
 (0)