mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 15:29:42 +02:00
feat(k8s): Allow mix services for k8s app EE-1791 (#6198)
allow a mix of services for k8s in ui
This commit is contained in:
parent
edf048570b
commit
c47e840b37
26 changed files with 2336 additions and 1863 deletions
|
@ -4,6 +4,7 @@ export const KubernetesServiceTypes = Object.freeze({
|
|||
LOAD_BALANCER: 'LoadBalancer',
|
||||
NODE_PORT: 'NodePort',
|
||||
CLUSTER_IP: 'ClusterIP',
|
||||
INGRESS: 'Ingress',
|
||||
});
|
||||
|
||||
/**
|
||||
|
@ -20,6 +21,8 @@ const _KubernetesService = Object.freeze({
|
|||
ApplicationName: '',
|
||||
ApplicationOwner: '',
|
||||
Note: '',
|
||||
Ingress: false,
|
||||
Selector: {},
|
||||
});
|
||||
|
||||
export class KubernetesService {
|
||||
|
@ -28,6 +31,40 @@ export class KubernetesService {
|
|||
}
|
||||
}
|
||||
|
||||
const _KubernetesIngressService = Object.freeze({
|
||||
Headless: false,
|
||||
Namespace: '',
|
||||
Name: '',
|
||||
StackName: '',
|
||||
Ports: [],
|
||||
Type: '',
|
||||
ClusterIP: '',
|
||||
ApplicationName: '',
|
||||
ApplicationOwner: '',
|
||||
Note: '',
|
||||
Ingress: true,
|
||||
IngressRoute: [],
|
||||
});
|
||||
|
||||
export class KubernetesIngressService {
|
||||
constructor() {
|
||||
Object.assign(this, JSON.parse(JSON.stringify(_KubernetesIngressService)));
|
||||
}
|
||||
}
|
||||
|
||||
const _KubernetesIngressServiceRoute = Object.freeze({
|
||||
Host: '',
|
||||
IngressName: '',
|
||||
Path: '',
|
||||
ServiceName: '',
|
||||
});
|
||||
|
||||
export class KubernetesIngressServiceRoute {
|
||||
constructor() {
|
||||
Object.assign(this, JSON.parse(JSON.stringify(_KubernetesIngressServiceRoute)));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* KubernetesServicePort Model
|
||||
*/
|
||||
|
@ -37,6 +74,7 @@ const _KubernetesServicePort = Object.freeze({
|
|||
targetPort: 0,
|
||||
protocol: '',
|
||||
nodePort: 0,
|
||||
ingress: '',
|
||||
});
|
||||
|
||||
export class KubernetesServicePort {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue