mirror of https://github.com/portainer/portainer
42 lines
1.0 KiB
TypeScript
42 lines
1.0 KiB
TypeScript
![]() |
import {
|
||
|
AppType,
|
||
|
AppDataAccessPolicy,
|
||
|
DeploymentType,
|
||
|
} from '@/react/kubernetes/applications/types';
|
||
|
import { ServiceType } from '@/react/kubernetes/services/types';
|
||
|
|
||
|
// The following constants are used by angular views and can be removed once they are no longer referenced
|
||
|
export const KubernetesApplicationTypes: Record<AppType, AppType> = {
|
||
|
Deployment: 'Deployment',
|
||
|
StatefulSet: 'StatefulSet',
|
||
|
DaemonSet: 'DaemonSet',
|
||
|
Pod: 'Pod',
|
||
|
Helm: 'Helm',
|
||
|
} as const;
|
||
|
|
||
|
export const KubernetesApplicationDeploymentTypes: Record<
|
||
|
DeploymentType,
|
||
|
DeploymentType
|
||
|
> = {
|
||
|
Global: 'Global',
|
||
|
Replicated: 'Replicated',
|
||
|
} as const;
|
||
|
|
||
|
export const KubernetesApplicationDataAccessPolicies: Record<
|
||
|
AppDataAccessPolicy,
|
||
|
AppDataAccessPolicy
|
||
|
> = {
|
||
|
Isolated: 'Isolated',
|
||
|
Shared: 'Shared',
|
||
|
} as const;
|
||
|
|
||
|
export const KubernetesApplicationServiceTypes: Record<
|
||
|
ServiceType,
|
||
|
ServiceType
|
||
|
> = {
|
||
|
ClusterIP: 'ClusterIP',
|
||
|
NodePort: 'NodePort',
|
||
|
LoadBalancer: 'LoadBalancer',
|
||
|
ExternalName: 'ExternalName',
|
||
|
} as const;
|