Skip to content

Commit 7cb025b

Browse files
author
Alan Christie
committed
fix: Potential fix for Ingress
1 parent 6147573 commit 7cb025b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

operator/handlers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ def create(spec: Dict[str, Any], name: str, namespace: str, **_: Any) -> Dict[st
317317

318318
ingress_body: Dict[Any, Any] = {
319319
"kind": "Ingress",
320-
"apiVersion": "extensions/v1beta1",
320+
"apiVersion": "networking.k8s.io/v1",
321321
"metadata": {
322322
"name": name,
323323
"labels": {"app": name},
@@ -335,9 +335,9 @@ def create(spec: Dict[str, Any], name: str, namespace: str, **_: Any) -> Dict[st
335335
"paths": [
336336
{
337337
"path": ingress_path,
338+
"pathType": "Prefix",
338339
"backend": {
339-
"serviceName": name,
340-
"servicePort": 8888,
340+
"service": {"name": name, "port": {"number": 8888}}
341341
},
342342
}
343343
]

0 commit comments

Comments
 (0)