Skip to content

Commit

Permalink
some debugging info
Browse files Browse the repository at this point in the history
  • Loading branch information
bomoko committed Feb 25, 2024
1 parent 16df6d4 commit 1e7dc78
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions controllers/configmap_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,13 @@ func (r *ConfigMapReconciler) Reconcile(ctx context.Context, req ctrl.Request) (
}

// insightsType is a way for us to classify incoming insights data, passing

log.Info("incoming labels")
for k, v := range configMap.Labels {
log.Info(fmt.Sprintf("%v:%v\n", k, v))
}
log.Info("incoming labels - end")

insightsType := "unclassified"
if _, ok := configMap.Labels["insights.lagoon.sh/type"]; ok {
insightsType = configMap.Labels["insights.lagoon.sh/type"]
Expand Down

0 comments on commit 1e7dc78

Please sign in to comment.