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) => { yaml.safeLoadAll(fileContents, (inputObject) => {
const name = inputObject.metadata.name const name = inputObject.metadata.name
const kind = inputObject.kind const kind = inputObject.kind
const annotations = inputObject.metadata.annotations
if (isDeploymentEntity(kind)) { if (isDeploymentEntity(kind)) {
const stableObject = canaryDeploymentHelper.fetchResource( const stableObject = canaryDeploymentHelper.fetchResource(
kubectl, kubectl,
kind, kind,
name, name
annotations
) )
if (!stableObject) { if (!stableObject) {