mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 15:29:42 +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:
parent
9f9cdf7d43
commit
223dfe89dd
2 changed files with 4 additions and 18 deletions
|
@ -624,18 +624,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(),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -653,18 +646,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(),
|
||||||
};
|
};
|
||||||
|
|
|
@ -403,7 +403,8 @@ export function IngressForm({
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{!host.Paths.length && (
|
{!host.Paths.length && (
|
||||||
<p className="small text-muted mt-4">
|
<p className="small text-muted vertical-center mt-4 gap-1">
|
||||||
|
<Icon icon={Info} mode="primary" size="md" />
|
||||||
You may save the ingress without a path and it will then be
|
You may save the ingress without a path and it will then be
|
||||||
an <b>ingress default</b> that a user may select via the
|
an <b>ingress default</b> that a user may select via the
|
||||||
hostname dropdown in Create/Edit application.
|
hostname dropdown in Create/Edit application.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue