Skip to content

Commit

Permalink
UPSTREAM: <carry>: remove apiservice from sync in CRD registration wh…
Browse files Browse the repository at this point in the history
…en it exists

Origin-commit: d3ceac4e065c3d2689192fda102303030cfdb928
  • Loading branch information
mfojtik authored and soltysh committed Sep 7, 2021
1 parent 6299039 commit 052c7b5
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,10 @@ func (c *crdRegistrationController) handleVersionUpdate(groupVersion schema.Grou
apiServiceName := groupVersion.Version + "." + groupVersion.Group

if apiserver.APIServiceAlreadyExists(groupVersion) {
// Removing APIService from sync means the CRD registration controller won't sync this APIService
// anymore. If the APIService is managed externally, this will mean the external component can
// update this APIService without CRD controller stomping the changes on it.
c.apiServiceRegistration.RemoveAPIServiceToSync(apiServiceName)
return nil
}

Expand Down

0 comments on commit 052c7b5

Please sign in to comment.