Skip to content

Commit 132d3ad

Browse files
authored
Add ingress port variable (#589)
1 parent 44d0b86 commit 132d3ad

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

docs/region-configuration.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ Note : If you want Onyxia to create the ResourceQuota but not override it at eac
127127
| `route` | false | Whether or not OpenShift Route is enabled |
128128
| `istio` | | See [Istio](#istio) |
129129
| `ingressClassName` | '' | Ingress Class Name: useful if you want to use a specific ingress controller instead of a default one |
130+
| `ingressPort` | | Optional : define this if your ingress controller does not listen to 80/443 port. If set, the UI will append this port number to the "open service" button link. |
130131
| `annotations` | | Annotations to add at ingress creation {"cert-manager.io/cluster-issuer": "nameOfClusterIssuer"} |
131132
| `useDefaultCertificate` | true | When true, no TLS secret name will be generated, specify false if you want ingress certificate to be managed by CertManager |
132133
| `certManager` | | See [CertManager](#certManager) |

onyxia-model/src/main/java/fr/insee/onyxia/model/region/Region.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,12 +645,21 @@ public static class Expose {
645645
private boolean useDefaultCertificate = true;
646646
private Map<String, String> annotations = new HashMap<>();
647647
private boolean ingress = true;
648+
private Integer ingressPort = null;
648649

649650
private boolean route = false;
650651

651652
private IstioIngress istio;
652653
private CertManager certManager;
653654

655+
public Integer getIngressPort() {
656+
return ingressPort;
657+
}
658+
659+
public void setIngressPort(Integer ingressPort) {
660+
this.ingressPort = ingressPort;
661+
}
662+
654663
public String getDomain() {
655664
return domain;
656665
}

0 commit comments

Comments
 (0)