fix(operator): Don't overwrite annotations for LokiStack ingress resources (#13708)

pull/13794/head
Periklis Tsirakidis 10 months ago committed by GitHub
parent 5ef83a741b
commit f52353060d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      operator/internal/manifests/mutate.go

@ -206,14 +206,12 @@ func mutateServiceMonitor(existing, desired *monitoringv1.ServiceMonitor) {
func mutateIngress(existing, desired *networkingv1.Ingress) {
existing.Labels = desired.Labels
existing.Annotations = desired.Annotations
existing.Spec.DefaultBackend = desired.Spec.DefaultBackend
existing.Spec.Rules = desired.Spec.Rules
existing.Spec.TLS = desired.Spec.TLS
}
func mutateRoute(existing, desired *routev1.Route) {
existing.Annotations = desired.Annotations
existing.Labels = desired.Labels
existing.Spec = desired.Spec
}

Loading…
Cancel
Save