We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d54dfaf commit 53173fdCopy full SHA for 53173fd
internal/controller/platform/kserve/nimservice.go
@@ -463,6 +463,11 @@ func (r *NIMServiceReconciler) renderAndSyncInferenceService(ctx context.Context
463
isvcParams.Annotations[kserveconstants.EnableMetricAggregation] = "true"
464
isvcParams.Annotations[kserveconstants.SetPrometheusAnnotation] = "true"
465
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
+
471
// Sync ingress
472
if !nimService.IsIngressEnabled() {
473
isvcParams.Labels[kserveconstants.NetworkVisibility] = kserveconstants.ClusterLocalVisibility
0 commit comments