From 6167fb2039c7fa750a477389eb6cdeea7d0366d7 Mon Sep 17 00:00:00 2001 From: Aaron Tye Date: Fri, 31 May 2024 13:40:06 +0000 Subject: [PATCH] add type meta to v1 --- pkg/modules/authorization.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/modules/authorization.go b/pkg/modules/authorization.go index f716c2450..cb867604c 100644 --- a/pkg/modules/authorization.go +++ b/pkg/modules/authorization.go @@ -676,6 +676,10 @@ func authorizationStorageServiceV1(ctx context.Context, isDeleting bool, cr csmv replicas := int32(1) // set deployment deployment := appsv1.Deployment{ + TypeMeta: metav1.TypeMeta{ + Kind: "Deployment", + APIVersion: "apps/v1", + }, ObjectMeta: metav1.ObjectMeta{ Name: "storage-service", Namespace: cr.Namespace,