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

OpenShift-Rebase-Source: 1a1d469
  • Loading branch information
mfojtik authored and dinhxuanvu committed Apr 15, 2024
1 parent 05f4b43 commit b13a9f8
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 b13a9f8

Please sign in to comment.