mirror of
https://github.com/Azure/k8s-deploy.git
synced 2026-10-14 03:09:59 +08:00
Clean code
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user