Skip to content

Commit

Permalink
Merge pull request #1439 from iamniting/fix-svc
Browse files Browse the repository at this point in the history
ocs-to-ocs: Fix error Service "ocs-provider-server" is invalid
  • Loading branch information
openshift-merge-robot committed Dec 17, 2021
2 parents 8adeacc + 86c7545 commit d64079d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions controllers/storagecluster/provider_server.go
Expand Up @@ -141,6 +141,9 @@ func (o *ocsProviderServer) createService(r *StorageClusterReconciler, instance
_, err := controllerutil.CreateOrUpdate(
context.TODO(), r.Client, actualService,
func() error {
desiredService.Spec.ClusterIP = actualService.Spec.ClusterIP
desiredService.Spec.IPFamilies = actualService.Spec.IPFamilies

actualService.Spec = desiredService.Spec
return controllerutil.SetOwnerReference(instance, actualService, r.Client.Scheme())
},
Expand Down

0 comments on commit d64079d

Please sign in to comment.