1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-19 13:29:41 +02:00
portainer/app/kubernetes/ingress/constants.js
Richard Wei 9de0704775
feat(ingress): support-regex-with-k8s-ingress EE-2644 (#6748)
* support regex with k8s ingress

* remove text for rewrite to /

* added tooltip
2022-04-20 16:45:20 +12:00

26 lines
843 B
JavaScript

export const KubernetesIngressClassAnnotation = 'kubernetes.io/ingress.class';
// keys must match KubernetesIngressClassTypes values to map them quickly using the ingress type
// KubernetesIngressClassRewriteTargetAnnotations[KubernetesIngressClassTypes.NGINX] for example
export const KubernetesNginxRewriteTargetAnnotations = {
Key: 'nginx.ingress.kubernetes.io/rewrite-target',
Value: '/$1',
};
export const KubernetesTraefikRewriteTargetAnnotations = {
Key: 'traefik.ingress.kubernetes.io/rewrite-target',
Value: '/$1',
};
export const KubernetesNginxUseregexAnnotations = {
Key: 'nginx.ingress.kubernetes.io/use-regex',
Value: 'true',
};
export const KubernetesIngressClassTypes = Object.freeze({
NGINX: 'nginx',
TRAEFIK: 'traefik',
});
export const PortainerIngressClassTypes = 'ingress.portainer.io/ingress-type';