Browse Source

Add StoreKind to Webhook. (#3960)

Signed-off-by: Samuel Wambach <7828075+samwambach@users.noreply.github.com>
Samuel Wambach 1 year ago
parent
commit
858fe6b53c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      pkg/provider/webhook/webhook.go

+ 1 - 0
pkg/provider/webhook/webhook.go

@@ -65,6 +65,7 @@ func (p *Provider) NewClient(ctx context.Context, store esv1beta1.GenericStore,
 	wh := webhook.Webhook{
 		Kube:      kube,
 		Namespace: namespace,
+		StoreKind: store.GetObjectKind().GroupVersionKind().Kind,
 	}
 	whClient := &WebHook{
 		store:     store,