Skip to content

Commit

Permalink
Merge pull request #1750 from openshift-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…1748-to-release-0.7

[release-0.7] syncer: handle only the k8s export
  • Loading branch information
openshift-merge-robot authored Aug 15, 2022
2 parents 0911dc0 + ab53565 commit 8956c13
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 8956c13

Please sign in to comment.