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

openshift-rebase(v1.24):source=a1c12a7dd32
  • Loading branch information
mfojtik authored and soltysh committed Aug 18, 2022
1 parent b8ff23a commit d61d0c5
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 d61d0c5

Please sign in to comment.