Skip to content

Commit

Permalink
refrain from checkin autoscalingCheckBeforeTrigger for virt clus (#5696)
Browse files Browse the repository at this point in the history
  • Loading branch information
prakash100198 authored Aug 20, 2024
1 parent 779e913 commit 4f04d6b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pkg/deployment/manifest/ManifestCreationService.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,12 @@ func (impl *ManifestCreationServiceImpl) GetValuesOverrideForTrigger(overrideReq
// error is not returned as it's not blocking for deployment process
// blocking deployments based on this use case can vary for user to user
}
mergedValues, err = impl.autoscalingCheckBeforeTrigger(newCtx, appName, envOverride.Namespace, mergedValues, overrideRequest)
if err != nil {
impl.logger.Errorw("error in autoscaling check before trigger", "pipelineId", overrideRequest.PipelineId, "err", err)
return valuesOverrideResponse, err
if !envOverride.Environment.IsVirtualEnvironment {
mergedValues, err = impl.autoscalingCheckBeforeTrigger(newCtx, appName, envOverride.Namespace, mergedValues, overrideRequest)
if err != nil {
impl.logger.Errorw("error in autoscaling check before trigger", "pipelineId", overrideRequest.PipelineId, "err", err)
return valuesOverrideResponse, err
}
}
// handle image pull secret if access given
mergedValues, err = impl.dockerRegistryIpsConfigService.HandleImagePullSecretOnApplicationDeployment(newCtx, envOverride.Environment, artifact, pipeline.CiPipelineId, mergedValues)
Expand Down

0 comments on commit 4f04d6b

Please sign in to comment.