Skip to content

Commit

Permalink
fix: Kubelink Requests getting Failed for gRPC method GetAppDetails (#…
Browse files Browse the repository at this point in the history
…5012)

* fixed

* code review comments
  • Loading branch information
ShashwatDadhich committed Apr 25, 2024
1 parent f6adb1a commit d89498c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/restHandler/app/appList/AppListingRestHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -980,6 +980,10 @@ func (handler AppListingRestHandlerImpl) getAppDetails(ctx context.Context, appI
// TODO: move this to service
func (handler AppListingRestHandlerImpl) fetchResourceTree(w http.ResponseWriter, r *http.Request, appId int, envId int, acdToken string, cdPipeline *pipelineConfig.Pipeline) (map[string]interface{}, error) {
var resourceTree map[string]interface{}
if !cdPipeline.DeploymentAppCreated {
handler.logger.Infow("deployment for this pipeline does not exist", "pipelineId", cdPipeline.Id)
return resourceTree, nil
}
if len(cdPipeline.DeploymentAppName) > 0 && cdPipeline.EnvironmentId > 0 && util.IsAcdApp(cdPipeline.DeploymentAppType) {
// RBAC enforcer Ends
query := &application2.ResourcesQuery{
Expand Down

0 comments on commit d89498c

Please sign in to comment.