From a85ab68126b419c88db2aedbd026d386567494ba Mon Sep 17 00:00:00 2001 From: audrastump Date: Wed, 27 Nov 2024 13:25:20 -0800 Subject: [PATCH] modified manifest stablity check --- src/actions/promote.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/actions/promote.ts b/src/actions/promote.ts index 2c11384c4..5ccd2d1cf 100644 --- a/src/actions/promote.ts +++ b/src/actions/promote.ts @@ -166,6 +166,9 @@ async function promoteBlueGreen(kubectl: Kubectl, manifests: string[]) { // checking stability of newly created deployments core.startGroup('Checking manifest stability') + const resourceType = + core.getInput('resource-type') || + 'Microsoft.ContainerService/managedClusters' const deployedManifestFiles = deployResult.manifestFiles const resources: Resource[] = getResources( deployedManifestFiles, @@ -173,7 +176,7 @@ async function promoteBlueGreen(kubectl: Kubectl, manifests: string[]) { models.DiscoveryAndLoadBalancerResource.SERVICE ]) ) - await KubernetesManifestUtility.checkManifestStability(kubectl, resources) + await KubernetesManifestUtility.checkManifestStability(kubectl, resources, resourceType) core.endGroup() core.startGroup(