Skip to content

Commit bb20e5f

Browse files
committed
fix(operator): Don't overwrite annotations for LokiStack ingress resources (grafana#13708)
1 parent d21501d commit bb20e5f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

operator/CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## Release 5.9.5
44

5+
- [13708](https://github.com/grafana/loki/pull/13708) **periklis**: fix(operator): Don't overwrite annotations for LokiStack ingress resources
56
- [13512](https://github.com/grafana/loki/pull/13512) **xperimental**: feat(operator): Add alert for discarded samples
67
- [13497](https://github.com/grafana/loki/pull/13497) **xperimental**: fix(operator): Remove duplicate conditions from status
78

operator/internal/manifests/mutate.go

-2
Original file line numberDiff line numberDiff line change
@@ -206,14 +206,12 @@ func mutateServiceMonitor(existing, desired *monitoringv1.ServiceMonitor) {
206206

207207
func mutateIngress(existing, desired *networkingv1.Ingress) {
208208
existing.Labels = desired.Labels
209-
existing.Annotations = desired.Annotations
210209
existing.Spec.DefaultBackend = desired.Spec.DefaultBackend
211210
existing.Spec.Rules = desired.Spec.Rules
212211
existing.Spec.TLS = desired.Spec.TLS
213212
}
214213

215214
func mutateRoute(existing, desired *routev1.Route) {
216-
existing.Annotations = desired.Annotations
217215
existing.Labels = desired.Labels
218216
existing.Spec = desired.Spec
219217
}

0 commit comments

Comments
 (0)