executor: preserve generation in untap metadata

This commit is contained in:
Naeel
2026-04-27 13:37:30 +03:00
parent c9036f716f
commit 775845b55c
+8 -1
View File
@@ -111,7 +111,13 @@ func (c *client) GetServiceForFunction(ctx context.Context, fn *fv1.Function) (s
func (c *client) UnTapService(ctx context.Context, fnMeta metav1.ObjectMeta, executorType fv1.ExecutorType, serviceURL *url.URL) error { func (c *client) UnTapService(ctx context.Context, fnMeta metav1.ObjectMeta, executorType fv1.ExecutorType, serviceURL *url.URL) error {
url := c.executorURL + "/v2/unTapService" url := c.executorURL + "/v2/unTapService"
tapSvc := TapServiceRequest{ tapSvc := TapServiceRequest{
FnMetadata: fnMeta, FnMetadata: metav1.ObjectMeta{
Name: fnMeta.Name,
Namespace: fnMeta.Namespace,
ResourceVersion: fnMeta.ResourceVersion,
Generation: fnMeta.Generation,
UID: fnMeta.UID,
},
FnExecutorType: executorType, FnExecutorType: executorType,
ServiceURL: strings.TrimPrefix(serviceURL.String(), "http://"), ServiceURL: strings.TrimPrefix(serviceURL.String(), "http://"),
} }
@@ -175,6 +181,7 @@ func (c *client) TapService(fnMeta metav1.ObjectMeta, executorType fv1.ExecutorT
Name: fnMeta.Name, Name: fnMeta.Name,
Namespace: fnMeta.Namespace, Namespace: fnMeta.Namespace,
ResourceVersion: fnMeta.ResourceVersion, ResourceVersion: fnMeta.ResourceVersion,
Generation: fnMeta.Generation,
UID: fnMeta.UID, UID: fnMeta.UID,
}, },
FnExecutorType: executorType, FnExecutorType: executorType,