mirror of
https://github.com/Azure/k8s-deploy.git
synced 2026-04-13 01:52:20 +08:00
Spelling correction
This commit is contained in:
parent
2a96bf3d2c
commit
7362e2ee9b
@ -97,7 +97,7 @@ export async function rejectBlueGreenSMI(
|
|||||||
export async function setupSMI(
|
export async function setupSMI(
|
||||||
kubectl: Kubectl,
|
kubectl: Kubectl,
|
||||||
serviceEntityList: any[],
|
serviceEntityList: any[],
|
||||||
annotaions: {[key: string]: string} = {}
|
annotations: {[key: string]: string} = {}
|
||||||
) {
|
) {
|
||||||
const newObjectsList = []
|
const newObjectsList = []
|
||||||
const trafficObjectList = []
|
const trafficObjectList = []
|
||||||
@ -125,7 +125,7 @@ export async function setupSMI(
|
|||||||
kubectl,
|
kubectl,
|
||||||
inputObject.metadata.name,
|
inputObject.metadata.name,
|
||||||
NONE_LABEL_VALUE,
|
NONE_LABEL_VALUE,
|
||||||
annotaions
|
annotations
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -42,7 +42,7 @@ export async function deployManifests(
|
|||||||
deploymentStrategy: DeploymentStrategy,
|
deploymentStrategy: DeploymentStrategy,
|
||||||
kubectl: Kubectl,
|
kubectl: Kubectl,
|
||||||
trafficSplitMethod: TrafficSplitMethod,
|
trafficSplitMethod: TrafficSplitMethod,
|
||||||
annotaions: {[key: string]: string} = {}
|
annotations: {[key: string]: string} = {}
|
||||||
): Promise<string[]> {
|
): Promise<string[]> {
|
||||||
switch (deploymentStrategy) {
|
switch (deploymentStrategy) {
|
||||||
case DeploymentStrategy.CANARY: {
|
case DeploymentStrategy.CANARY: {
|
||||||
@ -64,7 +64,7 @@ export async function deployManifests(
|
|||||||
(routeStrategy == RouteStrategy.INGRESS &&
|
(routeStrategy == RouteStrategy.INGRESS &&
|
||||||
deployBlueGreenIngress(kubectl, files)) ||
|
deployBlueGreenIngress(kubectl, files)) ||
|
||||||
(routeStrategy == RouteStrategy.SMI &&
|
(routeStrategy == RouteStrategy.SMI &&
|
||||||
deployBlueGreenSMI(kubectl, files, annotaions)) ||
|
deployBlueGreenSMI(kubectl, files, annotations)) ||
|
||||||
deployBlueGreenService(kubectl, files)
|
deployBlueGreenService(kubectl, files)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user