mirror of
https://github.com/Azure/k8s-deploy.git
synced 2026-04-08 22:32:16 +08:00
Clean code
This commit is contained in:
parent
8e795671c2
commit
bae916660e
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user