Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pkg/operator/generic_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func (p *genericClient) UpdateOperatorSpec(ctx context.Context, resourceVersion
resourceCopy.ResourceVersion = resourceVersion
resourceCopy.Spec.OperatorSpec = *spec

ret, err := p.client.OpenShiftControllerManagers().Update(context.TODO(), resourceCopy, metav1.UpdateOptions{})
ret, err := p.client.OpenShiftControllerManagers().Update(ctx, resourceCopy, metav1.UpdateOptions{})
if err != nil {
return nil, "", err
}
Expand All @@ -80,7 +80,7 @@ func (p *genericClient) UpdateOperatorStatus(ctx context.Context, resourceVersio
resourceCopy.ResourceVersion = resourceVersion
resourceCopy.Status.OperatorStatus = *status

ret, err := p.client.OpenShiftControllerManagers().UpdateStatus(context.TODO(), resourceCopy, metav1.UpdateOptions{})
ret, err := p.client.OpenShiftControllerManagers().UpdateStatus(ctx, resourceCopy, metav1.UpdateOptions{})
if err != nil {
return nil, err
}
Expand Down
9 changes: 2 additions & 7 deletions pkg/operator/sync_openshiftcontrollermanager_v311_00.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"fmt"
"os"
"sort"
"strconv"
"strings"

"github.com/openshift/cluster-openshift-controller-manager-operator/bindata"
Expand Down Expand Up @@ -60,13 +59,9 @@ func syncOpenShiftControllerManager_v311_00_to_latest(
operandName := "openshift-controller-manager"
rcOperandName := "route-controller-manager"

specAnnotations := map[string]string{
"openshiftcontrollermanagers.operator.openshift.io/cluster": strconv.FormatInt(operatorConfig.ObjectMeta.Generation, 10),
}
specAnnotations := map[string]string{}

rcSpecAnnotations := map[string]string{
"openshiftcontrollermanagers.operator.openshift.io/cluster": strconv.FormatInt(operatorConfig.ObjectMeta.Generation, 10),
}
rcSpecAnnotations := map[string]string{}

// OpenShift Controller Manager
configMap, _, err := manageOpenShiftControllerManagerConfigMap_v311_00_to_latest(c.clusterVersionLister, c.kubeClient, c.configMapsGetter, c.recorder, operatorConfig)
Expand Down