mirror of
https://github.com/portainer/portainer.git
synced 2025-08-09 15:55:23 +02:00
remove path from ingress host when added
This commit is contained in:
parent
b63f869cbc
commit
fe7dfba886
1 changed files with 2 additions and 17 deletions
|
@ -597,18 +597,11 @@ export function CreateIngressView() {
|
||||||
const newKey = `${namespace}-ingress-${
|
const newKey = `${namespace}-ingress-${
|
||||||
(ruleCounterByNamespace[namespace] || 0) + 1
|
(ruleCounterByNamespace[namespace] || 0) + 1
|
||||||
}`;
|
}`;
|
||||||
const path: Path = {
|
|
||||||
Key: uuidv4(),
|
|
||||||
ServiceName: '',
|
|
||||||
ServicePort: 0,
|
|
||||||
Route: '',
|
|
||||||
PathType: 'Prefix',
|
|
||||||
};
|
|
||||||
|
|
||||||
const host: Host = {
|
const host: Host = {
|
||||||
Host: '',
|
Host: '',
|
||||||
Secret: '',
|
Secret: '',
|
||||||
Paths: [path],
|
Paths: [],
|
||||||
Key: uuidv4(),
|
Key: uuidv4(),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -626,18 +619,10 @@ export function CreateIngressView() {
|
||||||
function addNewIngressHost(noHost = false) {
|
function addNewIngressHost(noHost = false) {
|
||||||
const rule = { ...ingressRule };
|
const rule = { ...ingressRule };
|
||||||
|
|
||||||
const path: Path = {
|
|
||||||
ServiceName: '',
|
|
||||||
ServicePort: 0,
|
|
||||||
Route: '',
|
|
||||||
PathType: 'Prefix',
|
|
||||||
Key: uuidv4(),
|
|
||||||
};
|
|
||||||
|
|
||||||
const host: Host = {
|
const host: Host = {
|
||||||
Host: '',
|
Host: '',
|
||||||
Secret: '',
|
Secret: '',
|
||||||
Paths: [path],
|
Paths: [],
|
||||||
NoHost: noHost,
|
NoHost: noHost,
|
||||||
Key: uuidv4(),
|
Key: uuidv4(),
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue