mirror of
https://github.com/Azure/k8s-deploy.git
synced 2026-06-30 00:51:14 +08:00
enable fleet cluster deployment (#356)
* added fleet exception to rollout cmd * removed fleet check for rollout * modified casing * modified approach for fleet check * tidying up * defaulting to Microsoft.ContainerService/managedClusters * ran prettier command * modified manifest stablity check * ran prettier check * moved lowercase check to beginning --------- Co-authored-by: audrastump <stumpaudra@microsoft.com>
This commit is contained in:
@@ -166,6 +166,10 @@ 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'
|
||||
).toLowerCase()
|
||||
const deployedManifestFiles = deployResult.manifestFiles
|
||||
const resources: Resource[] = getResources(
|
||||
deployedManifestFiles,
|
||||
@@ -173,7 +177,11 @@ 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(
|
||||
|
||||
Reference in New Issue
Block a user