Skip to content

Commit

Permalink
fix: create configmap
Browse files Browse the repository at this point in the history
  • Loading branch information
msvticket committed Jan 10, 2024
1 parent 790e2c9 commit b1508fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/plugins/trigger/periodic.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ func (pa *PeriodicAgent) UpdatePeriodicsForRepo(
return true
}
} else {
cm = (&applyv1.ConfigMapApplyConfiguration{}).WithName(resourceName).WithLabels(labels)
cm = applyv1.ConfigMap(resourceName, pa.Namespace).WithLabels(labels)
}
if cm.Data == nil {
cm.Data = make(map[string]string)
Expand Down

0 comments on commit b1508fc

Please sign in to comment.