Skip to content

Commit 53280ab

Browse files
committed
fix(operator): Don't overwrite annotations for LokiStack ingress resources (grafana#13708)
1 parent 907fe85 commit 53280ab

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.6.22
44

5+
- [13708](https://github.com/grafana/loki/pull/13708) **periklis**: fix(operator): Don't overwrite annotations for LokiStack ingress resources
56
- [openshift#338](https://github.com/openshift/loki/pull/338) **xperimental**: Remove unused telemetry metrics
67
- [13512](https://github.com/grafana/loki/pull/13512) **xperimental**: feat(operator): Add alert for discarded samples
78

operator/internal/manifests/mutate.go

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

187187
func mutateIngress(existing, desired *networkingv1.Ingress) {
188188
existing.Labels = desired.Labels
189-
existing.Annotations = desired.Annotations
190189
existing.Spec.DefaultBackend = desired.Spec.DefaultBackend
191190
existing.Spec.Rules = desired.Spec.Rules
192191
existing.Spec.TLS = desired.Spec.TLS
193192
}
194193

195194
func mutateRoute(existing, desired *routev1.Route) {
196-
existing.Annotations = desired.Annotations
197195
existing.Labels = desired.Labels
198196
existing.Spec = desired.Spec
199197
}

0 commit comments

Comments
 (0)