Skip to content

Commit

Permalink
Merge pull request #2049 from ns1labs/etaques-patch-2
Browse files Browse the repository at this point in the history
[FIX] on update collector to destroy before create
  • Loading branch information
lpegoraro authored Nov 23, 2022
2 parents df25ea8 + cb95ecc commit 8fa17a6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion maestro/kubecontrol/kubecontrol.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,11 @@ func (svc *deployService) CreateOtelCollector(ctx context.Context, sinkID, deplo
}

func (svc *deployService) UpdateOtelCollector(ctx context.Context, sinkID, deploymentEntry string) error {
err := svc.CreateOtelCollector(ctx, sinkID, deploymentEntry)
err := svc.DeleteOtelCollector(ctx, sinkID, deploymentEntry)
if err != nil {
return err
}
err = svc.CreateOtelCollector(ctx, sinkID, deploymentEntry)
if err != nil {
return err
}
Expand Down

0 comments on commit 8fa17a6

Please sign in to comment.