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 <skuznets@redhat.com>
  • Loading branch information
stevekuznetsov committed Aug 15, 2022
1 parent 0d49ede commit 97eb353
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ import (
"time"

"github.com/kcp-dev/logicalcluster/v2"
"k8s.io/apimachinery/pkg/runtime/schema"

apierrors "k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/apimachinery/pkg/util/errors"
"k8s.io/apimachinery/pkg/util/runtime"
"k8s.io/apimachinery/pkg/util/wait"
Expand Down
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 97eb353

Please sign in to comment.