Skip to content

Commit f4452d1

Browse files
committed
Fixes label reference
1 parent 1e7dc78 commit f4452d1

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

controllers/configmap_controller.go

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,20 +96,13 @@ func (r *ConfigMapReconciler) Reconcile(ctx context.Context, req ctrl.Request) (
9696
}
9797

9898
// insightsType is a way for us to classify incoming insights data, passing
99-
100-
log.Info("incoming labels")
101-
for k, v := range configMap.Labels {
102-
log.Info(fmt.Sprintf("%v:%v\n", k, v))
103-
}
104-
log.Info("incoming labels - end")
105-
10699
insightsType := "unclassified"
107100
if _, ok := configMap.Labels["insights.lagoon.sh/type"]; ok {
108101
insightsType = configMap.Labels["insights.lagoon.sh/type"]
109102
log.Info(fmt.Sprintf("Found insights.lagoon.sh/type:%v", insightsType))
110103
} else {
111104
// insightsType can be determined by the incoming data
112-
if _, ok := labels["lagoon.sh/insightsType"]; ok {
105+
if _, ok := configMap.Labels["lagoon.sh/insightsType"]; ok {
113106
switch configMap.Labels["lagoon.sh/insightsType"] {
114107
case ("sbom-gz"):
115108
log.Info("Inferring insights type of sbom")

0 commit comments

Comments
 (0)