Skip to content

Commit

Permalink
virtual/syncer: only handle the kubernetes export
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Kuznetsov <[email protected]>
  • Loading branch information
stevekuznetsov authored and openshift-cherrypick-robot committed Aug 15, 2022
1 parent 0911dc0 commit ab53565
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import (
generatedopenapi "k8s.io/kubernetes/pkg/generated/openapi"

apisv1alpha1 "github.com/kcp-dev/kcp/pkg/apis/apis/v1alpha1"
"github.com/kcp-dev/kcp/pkg/reconciler/workload/apiexport"
"github.com/kcp-dev/kcp/pkg/virtual/framework/dynamic/apidefinition"
dynamiccontext "github.com/kcp-dev/kcp/pkg/virtual/framework/dynamic/context"
"github.com/kcp-dev/kcp/pkg/virtual/framework/internalapis"
Expand All @@ -61,6 +62,11 @@ func (c *APIReconciler) reconcile(ctx context.Context, apiExport *apisv1alpha1.A
return nil
}

if apiExport.ObjectMeta.Name != apiexport.TemporaryComputeServiceExportName {
// this is not something we're handling in this controller
return nil
}

c.mutex.RLock()
oldSet := c.apiSets[apiDomainKey]
c.mutex.RUnlock()
Expand Down

0 comments on commit ab53565

Please sign in to comment.