Skip to content

Commit

Permalink
Add no-communication-hosts handling
Browse files Browse the repository at this point in the history
The logmodule also relays on the oneagent connection-info
  • Loading branch information
0sewa0 committed Sep 20, 2024
1 parent d4c057b commit d3a2cc5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/controllers/dynakube/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,14 @@ func (controller *Controller) reconcileComponents(ctx context.Context, dynatrace

err = logModuleReconciler.Reconcile(ctx)
if err != nil {
if errors.Is(err, oaconnectioninfo.NoOneAgentCommunicationHostsError) {
// missing communication hosts is not an error per se, just make sure next the reconciliation is happening ASAP
// this situation will clear itself after AG has been started
controller.setRequeueAfterIfNewIsShorter(fastUpdateInterval)

return goerrors.Join(componentErrors...)
}

log.Info("could not reconcile LogModule")

componentErrors = append(componentErrors, err)
Expand Down

0 comments on commit d3a2cc5

Please sign in to comment.