Skip to content

Commit

Permalink
modified manifest stablity check
Browse files Browse the repository at this point in the history
  • Loading branch information
audrastump committed Nov 27, 2024
1 parent 4de5c4d commit a85ab68
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/actions/promote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,14 +166,17 @@ 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,
models.DEPLOYMENT_TYPES.concat([
models.DiscoveryAndLoadBalancerResource.SERVICE
])
)
await KubernetesManifestUtility.checkManifestStability(kubectl, resources)
await KubernetesManifestUtility.checkManifestStability(kubectl, resources, resourceType)
core.endGroup()

core.startGroup(
Expand Down

0 comments on commit a85ab68

Please sign in to comment.