From 88373d9aa23363325ebc93546d1523d7c5a3d516 Mon Sep 17 00:00:00 2001 From: Spolti Date: Mon, 25 Nov 2024 16:47:35 -0300 Subject: [PATCH] [RHOAIENG-11034] - Disabling Authorino Token Authorization forces a Model Pod to rollout 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 97543756fa7..76122ce8a36 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{