From e739ce37aece3ea2be824b03a9eb58f16b67d88b Mon Sep 17 00:00:00 2001 From: Hasan Turken Date: Mon, 13 May 2024 15:10:09 +0300 Subject: [PATCH] Whitelist management policy Observe & Update Signed-off-by: Hasan Turken --- pkg/reconciler/managed/policies.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/reconciler/managed/policies.go b/pkg/reconciler/managed/policies.go index d8c9d8932..e8d2a050b 100644 --- a/pkg/reconciler/managed/policies.go +++ b/pkg/reconciler/managed/policies.go @@ -85,6 +85,10 @@ func defaultSupportedManagementPolicies() []sets.Set[xpv1.ManagementAction] { // Like ObserveOnly, but the external resource is deleted when the // managed resource is deleted. sets.New[xpv1.ManagementAction](xpv1.ManagementActionObserve, xpv1.ManagementActionDelete), + // No Crate and no Delete. Just update/patch the external resource. + // Useful when the same external resource is managed by multiple + // managed resources. + sets.New[xpv1.ManagementAction](xpv1.ManagementActionObserve, xpv1.ManagementActionUpdate), } }