mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
keep labels on edit ingress, configmaps and secrets (#11050)
This commit is contained in:
parent
9ad78753bc
commit
a2195caa10
13 changed files with 21 additions and 2 deletions
|
@ -828,6 +828,7 @@ export function CreateIngressView() {
|
|||
Paths: preparePaths(rule.IngressName, rule.Hosts),
|
||||
TLS: prepareTLS(rule.Hosts),
|
||||
Annotations: prepareAnnotations(rule.Annotations || []),
|
||||
Labels: rule.Labels,
|
||||
};
|
||||
|
||||
if (isEdit) {
|
||||
|
|
|
@ -28,6 +28,7 @@ export interface Rule {
|
|||
Hosts: Host[];
|
||||
Annotations?: Annotation[];
|
||||
IngressType?: string;
|
||||
Labels?: Record<string, string>;
|
||||
}
|
||||
|
||||
export interface ServicePorts {
|
||||
|
|
|
@ -104,6 +104,7 @@ export function prepareRuleFromIngress(
|
|||
Hosts: prepareRuleHostsFromIngress(ing) || [],
|
||||
Annotations: ing.Annotations ? getAnnotationsForEdit(ing.Annotations) : [],
|
||||
IngressType: ing.Type,
|
||||
Labels: ing.Labels,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue