1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-22 14:59:41 +02:00
portainer/app/kubernetes/models/port/models.js
xAt0mZ 1b3e2c8f69
feat(kubernetes): add ingress details (#4013)
* feat(kubernetes): add ingress details

* fix(kubernetes): fix broken ingress generated links + ignore IP retrieval/display info on missing LB ingress ip

* refactor(kubernetes): each ingress rule in apps port mappings has now its own row

* feat(kubernetes): remove protocol column and concat it to container port

* feat(kubernetes): edit display of ingress rules in application details

* feat(kubernetes): minor UI update

Co-authored-by: Anthony Lapenna <lapenna.anthony@gmail.com>
2020-07-15 08:45:19 +12:00

34 lines
692 B
JavaScript

/**
* PortMappingPort Model
*/
const _KubernetesPortMappingPort = Object.freeze({
Port: 0,
TargetPort: 0,
Protocol: '',
IngressRules: [], // KubernetesIngressRule[]
});
export class KubernetesPortMappingPort {
constructor() {
Object.assign(this, JSON.parse(JSON.stringify(_KubernetesPortMappingPort)));
}
}
/**
* PortMapping Model
*/
const _KubernetesPortMapping = Object.freeze({
Expanded: false,
Highlighted: false,
ResourcePool: '',
ServiceType: '',
ApplicationOwner: '',
LoadBalancerIPAddress: '',
Ports: [],
});
export class KubernetesPortMapping {
constructor() {
Object.assign(this, JSON.parse(JSON.stringify(_KubernetesPortMapping)));
}
}