Spelling correction

This commit is contained in:
Vidya Reddy 2022-07-25 10:32:04 +05:30
parent 2a96bf3d2c
commit 7362e2ee9b
2 changed files with 4 additions and 4 deletions

View File

@ -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
) )
}) })
} }

View File

@ -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)
) )