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 bertinatto committed Aug 24, 2023
1 parent a41b0c9 commit c7a989d
Showing 1 changed file with 4 additions and 0 deletions.
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 c7a989d

Please sign in to comment.