1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-19 05:19:39 +02:00

fix(ingress): remove path from ingress host when added EE-5406 (#9099)

* remove path from ingress host when added

* add icon to message
This commit is contained in:
Prabhat Khera 2023-06-19 14:11:50 +12:00 committed by GitHub
parent 9f9cdf7d43
commit 223dfe89dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 18 deletions

View file

@ -624,18 +624,11 @@ export function CreateIngressView() {
const newKey = `${namespace}-ingress-${
(ruleCounterByNamespace[namespace] || 0) + 1
}`;
const path: Path = {
Key: uuidv4(),
ServiceName: '',
ServicePort: 0,
Route: '',
PathType: 'Prefix',
};
const host: Host = {
Host: '',
Secret: '',
Paths: [path],
Paths: [],
Key: uuidv4(),
};
@ -653,18 +646,10 @@ export function CreateIngressView() {
function addNewIngressHost(noHost = false) {
const rule = { ...ingressRule };
const path: Path = {
ServiceName: '',
ServicePort: 0,
Route: '',
PathType: 'Prefix',
Key: uuidv4(),
};
const host: Host = {
Host: '',
Secret: '',
Paths: [path],
Paths: [],
NoHost: noHost,
Key: uuidv4(),
};