fix: use annotation to check for ingress method

This commit is contained in:
Jose Diaz-Gonzalez committed 2024-03-12 07:57:20 -04:00
1 parent ac2ea7597e
commit 77d9594c09
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -606,7 +606,7 @@ func TriggerSchedulerDeploy(scheduler string, appName string, imageTag string) e
ingressesToDelete := []string{}
for _, ingress := range ingresses {
ingressIngressMethod := ingress.Labels["dokku.com/ingress-method"]
ingressIngressMethod := ingress.Annotations["dokku.com/ingress-method"]
if ingressIngressMethod != "domains" {
ingressesToDelete = append(ingressesToDelete, ingress.Name)
}