From 34ac4dc4bf0c83bb14782f18d565b5e47e31aa59 Mon Sep 17 00:00:00 2001 From: Filippe Spolti Date: Fri, 29 Nov 2024 10:34:31 -0300 Subject: [PATCH] [RHOAIENG-11034] - Disabling Authorino Token Authorization forces a Model Pod to rollout (#444) chore: Adds the `security.opendatahub.io/enable-auth` label to the ServiceAnnotationDisallowedList to prevents the model to be rolled out in case the auth is disabled / enabled Signed-off-by: Spolti --- pkg/constants/constants.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/constants/constants.go b/pkg/constants/constants.go index 0992bdff19c..4bed672df91 100644 --- a/pkg/constants/constants.go +++ b/pkg/constants/constants.go @@ -368,6 +368,9 @@ var ( autoscaling.MaxScaleAnnotationKey, StorageInitializerSourceUriInternalAnnotationKey, "kubectl.kubernetes.io/last-applied-configuration", + // remove when https://issues.redhat.com/browse/RHOAIENG-15662 is merged on community and ported to ODH + // Plus, this annotation must be moved to the inferenceservice-config + "security.opendatahub.io/enable-auth", } RevisionTemplateLabelDisallowedList = []string{