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 26, 2024
1 parent 30699dc commit a0c5d52
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 a0c5d52

Please sign in to comment.