mirror of
https://github.com/labring/sealos.git
synced 2026-09-24 15:46:19 +08:00
Fix controller ingress label override. (#4597)
Signed-off-by: zzjin <tczzjin@gmail.com>
This commit is contained in:
@@ -438,7 +438,6 @@ func (r *AdminerReconciler) syncNginxIngress(ctx context.Context, adminer *admin
|
||||
}
|
||||
if _, err := controllerutil.CreateOrUpdate(ctx, r.Client, ingress, func() error {
|
||||
expectIngress := r.createNginxIngress(adminer, host)
|
||||
ingress.ObjectMeta.Labels = expectIngress.ObjectMeta.Labels
|
||||
ingress.ObjectMeta.Annotations = expectIngress.ObjectMeta.Annotations
|
||||
ingress.Spec.Rules = expectIngress.Spec.Rules
|
||||
ingress.Spec.TLS = expectIngress.Spec.TLS
|
||||
|
||||
@@ -190,7 +190,6 @@ func (r *TerminalReconciler) syncNginxIngress(ctx context.Context, terminal *ter
|
||||
}
|
||||
if _, err := controllerutil.CreateOrUpdate(ctx, r.Client, ingress, func() error {
|
||||
expectIngress := r.createNginxIngress(terminal, host)
|
||||
ingress.ObjectMeta.Labels = expectIngress.ObjectMeta.Labels
|
||||
ingress.ObjectMeta.Annotations = expectIngress.ObjectMeta.Annotations
|
||||
ingress.Spec.Rules = expectIngress.Spec.Rules
|
||||
ingress.Spec.TLS = expectIngress.Spec.TLS
|
||||
|
||||
Reference in New Issue
Block a user