Skip to content

Commit

Permalink
fix Wrong return value (#675)
Browse files Browse the repository at this point in the history
Signed-off-by: Gidi233 <qpbtyfh@gmail.com>
  • Loading branch information
Gidi233 authored Aug 26, 2024
1 parent 7311b1a commit 7eef581
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/fleet-manager/fleet_plugin_metric.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,10 @@ func (f *FleetManager) syncObjStoreSecret(ctx context.Context, fleetCluster *Fle
},
}, metav1.CreateOptions{})
if err != nil {
return nil
return err
}
} else if err != nil {
return nil
return err
}

s, err := fleetCluster.Client.KubeClient().CoreV1().Secrets(secret.Namespace).Get(ctx, secret.Name, metav1.GetOptions{})
Expand Down
2 changes: 1 addition & 1 deletion pkg/plugin/istio/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ func (p *IstioPlugin) installRemotes(remotePilotAddress string) error {
}

if err := p.createIstioRemoteSecret(currentRemote); err != nil {
return nil
return err
}

if err := p.createRemoteIstioOperator(currentRemote, remotePilotAddress); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/plugin/prometheus/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ func (p *Plugin) runInstall() error {
func (p *Plugin) exposePrometheus() error {
s, err := p.KubeClient().CoreV1().Services(monitoringNamespace).Get(context.TODO(), promSvcName, metav1.GetOptions{})
if err != nil {
return nil
return err
}

// 2. create elb service for prometheus
Expand Down

0 comments on commit 7eef581

Please sign in to comment.