Skip to content

Commit

Permalink
s/config maps/elasticsearch in ES controller
Browse files Browse the repository at this point in the history
Signed-off-by: Juraci Paixão Kröhling <[email protected]>
  • Loading branch information
jpkrohling committed Feb 26, 2019
1 parent e96fbd7 commit 5087bb9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/controller/jaeger/elasticsearch.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,21 @@ func (r *ReconcileJaeger) applyElasticsearches(jaeger v1alpha1.Jaeger, desired [

inv := inventory.ForElasticsearches(list.Items, desired)
for _, d := range inv.Create {
logFields.WithField("elasticsearch", d.Name).Debug("creating config maps")
logFields.WithField("elasticsearch", d.Name).Debug("creating elasticsearch")
if err := r.client.Create(context.Background(), &d); err != nil {
return err
}
}

for _, d := range inv.Update {
logFields.WithField("configMap", d.Name).Debug("updating config maps")
logFields.WithField("elasticsearch", d.Name).Debug("updating elasticsearch")
if err := r.client.Update(context.Background(), &d); err != nil {
return err
}
}

for _, d := range inv.Delete {
logFields.WithField("configMap", d.Name).Debug("deleting config maps")
logFields.WithField("elasticsearch", d.Name).Debug("deleting elasticsearch")
if err := r.client.Delete(context.Background(), &d); err != nil {
return err
}
Expand Down

0 comments on commit 5087bb9

Please sign in to comment.