mirror of
https://github.com/Azure/k8s-deploy.git
synced 2026-06-23 13:09:27 +08:00
Massive refactor (#165)
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
export enum RouteStrategy {
|
||||
INGRESS = "ingress",
|
||||
SMI = "smi",
|
||||
SERVICE = "service",
|
||||
}
|
||||
|
||||
export const parseRouteStrategy = (str: string): RouteStrategy | undefined =>
|
||||
RouteStrategy[
|
||||
Object.keys(RouteStrategy).filter(
|
||||
(k) => RouteStrategy[k].toString().toLowerCase() === str.toLowerCase()
|
||||
)[0] as keyof typeof RouteStrategy
|
||||
];
|
||||
Reference in New Issue
Block a user