From da0cc7dbd51af8abc6fac977696a90328787efd1 Mon Sep 17 00:00:00 2001 From: Nicolas Bigler Date: Wed, 13 Nov 2024 17:14:07 +0100 Subject: [PATCH] Fix missing deletion protection labels for users and grants Signed-off-by: Nicolas Bigler --- pkg/crossplane/service_mariadb_database.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkg/crossplane/service_mariadb_database.go b/pkg/crossplane/service_mariadb_database.go index a507f30..210c5a8 100644 --- a/pkg/crossplane/service_mariadb_database.go +++ b/pkg/crossplane/service_mariadb_database.go @@ -232,8 +232,11 @@ func (msb MariadbDatabaseServiceBinder) createBinding(ctx context.Context, bindi } labels := map[string]string{ - InstanceIDLabel: instanceID, - ParentIDLabel: parentReference, + InstanceIDLabel: instanceID, + ParentIDLabel: parentReference, + OwnerApiVersionLabel: mariaDBUserGroupVersionKind.Version, + OwnerGroupLabel: mariaDBGroupVersionKind.Group, + OwnerKindLabel: mariaDBUserGroupVersionKind.Kind, } secret := &corev1.Secret{