]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: add two new ingress types for haproxy
authorJohn Mulligan <jmulligan@redhat.com>
Tue, 21 Mar 2023 15:42:25 +0000 (11:42 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Fri, 26 May 2023 14:43:11 +0000 (10:43 -0400)
Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/pybind/mgr/orchestrator/module.py

index 7d8703bde7b4f565b58d2093790e46845da115d8..0d8d17b587efaab1d18f0c42ff22446d23d40b15 100644 (file)
@@ -173,6 +173,13 @@ class DaemonAction(enum.Enum):
 class IngressType(enum.Enum):
     default = 'default'
     keepalive_only = 'keepalive-only'
+    haproxy_standard = 'haproxy-standard'
+    haproxy_protocol = 'haproxy-protocol'
+
+    def canonicalize(self) -> "IngressType":
+        if self == self.default:
+            return self.haproxy_standard
+        return self
 
 
 def to_format(what: Any, format: Format, many: bool, cls: Any) -> Any: