mirror of
https://github.com/Azure/k8s-deploy.git
synced 2026-04-16 19:42:19 +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) => {
|
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) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user