Clean code

This commit is contained in:
Vidya Reddy 2022-07-20 21:59:33 +05:30
parent 8e795671c2
commit bae916660e

View File

@ -25,14 +25,12 @@ export async function deploySMICanary(filePaths: string[], kubectl: Kubectl) {
yaml.safeLoadAll(fileContents, (inputObject) => {
const name = inputObject.metadata.name
const kind = inputObject.kind
const annotations = inputObject.metadata.annotations
if (isDeploymentEntity(kind)) {
const stableObject = canaryDeploymentHelper.fetchResource(
kubectl,
kind,
name,
annotations
name
)
if (!stableObject) {