mirror of https://github.com/portainer/portainer
47 lines
942 B
JavaScript
47 lines
942 B
JavaScript
export const KubernetesServiceHeadlessPrefix = 'headless-';
|
|
export const KubernetesServiceHeadlessClusterIP = 'None';
|
|
export const KubernetesServiceTypes = Object.freeze({
|
|
LOAD_BALANCER: 'LoadBalancer',
|
|
NODE_PORT: 'NodePort',
|
|
CLUSTER_IP: 'ClusterIP',
|
|
});
|
|
|
|
/**
|
|
* KubernetesService Model
|
|
*/
|
|
const _KubernetesService = Object.freeze({
|
|
Headless: false,
|
|
Namespace: '',
|
|
Name: '',
|
|
StackName: '',
|
|
Ports: [],
|
|
Type: '',
|
|
ClusterIP: '',
|
|
ApplicationName: '',
|
|
ApplicationOwner: '',
|
|
Note: '',
|
|
});
|
|
|
|
export class KubernetesService {
|
|
constructor() {
|
|
Object.assign(this, JSON.parse(JSON.stringify(_KubernetesService)));
|
|
}
|
|
}
|
|
|
|
/**
|
|
* KubernetesServicePort Model
|
|
*/
|
|
const _KubernetesServicePort = Object.freeze({
|
|
name: '',
|
|
port: 0,
|
|
targetPort: 0,
|
|
protocol: '',
|
|
nodePort: 0,
|
|
});
|
|
|
|
export class KubernetesServicePort {
|
|
constructor() {
|
|
Object.assign(this, JSON.parse(JSON.stringify(_KubernetesServicePort)));
|
|
}
|
|
}
|