mirror of https://github.com/portainer/portainer
fix fallback rule (#9114)
parent
cd89487c41
commit
3d22cde096
|
@ -646,10 +646,18 @@ export function CreateIngressView() {
|
||||||
function addNewIngressHost(noHost = false) {
|
function addNewIngressHost(noHost = false) {
|
||||||
const rule = { ...ingressRule };
|
const rule = { ...ingressRule };
|
||||||
|
|
||||||
|
const path: Path = {
|
||||||
|
Key: uuidv4(),
|
||||||
|
ServiceName: '',
|
||||||
|
ServicePort: 0,
|
||||||
|
Route: '',
|
||||||
|
PathType: 'Prefix',
|
||||||
|
};
|
||||||
|
|
||||||
const host: Host = {
|
const host: Host = {
|
||||||
Host: '',
|
Host: '',
|
||||||
Secret: '',
|
Secret: '',
|
||||||
Paths: [],
|
Paths: noHost ? [path] : [],
|
||||||
NoHost: noHost,
|
NoHost: noHost,
|
||||||
Key: uuidv4(),
|
Key: uuidv4(),
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue