Skip to content
Merged
Show file tree
Hide file tree
Changes from 89 commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
326826f
ciMatching for all CI in ENV
prkhrkat Apr 10, 2025
064b5f5
flag introduced
prkhrkat Apr 16, 2025
fc37484
Merge branch 'develop' into notifier-refac
prkhrkat Apr 16, 2025
7737030
get NotificationSettings added
prkhrkat Apr 16, 2025
8b9f6d0
fix in DTO
prkhrkat Apr 21, 2025
f94d19c
Merge branch 'develop' into notifier-refac
prkhrkat Apr 21, 2025
0ec8592
Merge branch 'feature-notif' into notifier-refac
prkhrkat Apr 21, 2025
e608152
getNotificationSettingsWithRules added
prkhrkat Apr 22, 2025
2e10cea
refact
prkhrkat Apr 22, 2025
9a48729
refact
prkhrkat Apr 22, 2025
a186761
more refact
prkhrkat Apr 22, 2025
960470e
more refact
prkhrkat Apr 22, 2025
05507be
Merge branch 'develop' into notifier-refac
prkhrkat Apr 23, 2025
4aa4f2c
removed deprecated api
prkhrkat Apr 23, 2025
5bbb463
review comments
prkhrkat Apr 28, 2025
d7253e0
devtclt support
prkhrkat Apr 28, 2025
a82fa1c
notif with always nats
prkhrkat Apr 28, 2025
68b908b
Revert "notif with always nats"
prkhrkat Apr 28, 2025
3c473e9
fix for view notif
prkhrkat Apr 30, 2025
4a0c57b
Merge branch 'develop' into notifier-refac
prkhrkat Apr 30, 2025
d2a2b88
fix for view notif
prkhrkat May 2, 2025
010fda4
Merge branch 'develop' into notifier-refac
prkhrkat May 8, 2025
898bf3e
GetConfigDBObj in tx
prkhrkat May 19, 2025
86f3ec5
Merge branch 'develop' into dev-cd-config
prkhrkat May 19, 2025
65e1424
Merge pull request #6584 from devtron-labs/dev-cd-config
prkhrkat May 19, 2025
2335f1f
panic recovered go-routines
prkhrkat May 20, 2025
0a29c22
panic recovered go-routines
prkhrkat May 20, 2025
da1bcf1
panic recovered go-routines
prkhrkat May 20, 2025
4648291
fix: centralised PR validator (#6590)
SATYAsasini May 21, 2025
78045b5
fix: add safety checks to prevent index-out-of-range panics in CdHandler
prkhrkat May 21, 2025
f31504a
fix: add safety checks to prevent index-out-of-range panics in CdHandler
prkhrkat May 21, 2025
4e0df6d
Merge pull request #6597 from devtron-labs/panic-rbac-objects
prkhrkat May 21, 2025
f838a02
main sync develop
vikramdevtron May 22, 2025
96c20c3
Merge pull request #6599 from devtron-labs/main-sync-develop-22may
vikramdevtron May 22, 2025
b522dc2
vendor update develop
vikramdevtron May 22, 2025
4032de9
fix
kartik-579 May 22, 2025
a4c42ff
Merge pull request #6603 from devtron-labs/vendor-update-develop-22may
vikramdevtron May 22, 2025
7489684
updated log
kartik-579 May 22, 2025
000bd42
Merge branch 'develop' into notifier-refac
prkhrkat May 23, 2025
edc0f6a
chore: http transport service refactoring (#6592)
Ash-exp May 23, 2025
675255e
wf logs
May 23, 2025
fa3b9d4
Merge branch 'develop' into notifier-refac
prkhrkat May 23, 2025
f7466f7
Merge pull request #6526 from devtron-labs/notifier-refac
prkhrkat May 23, 2025
785ce84
Merge branch 'develop' into go-routines-wrapped
prkhrkat May 23, 2025
c5a9787
Merge branch 'develop' into wf-log-follow
nishant-d May 23, 2025
b892c05
Refactor async runnable initialization for dependency injection
prkhrkat May 23, 2025
7e9854e
fix
prkhrkat May 23, 2025
d67ed55
fix
prkhrkat May 23, 2025
0f53272
Merge pull request #6606 from devtron-labs/wf-log-follow
nishant-d May 23, 2025
dce8b0f
Merge branch 'develop' into go-routines-wrapped
prkhrkat May 23, 2025
6d7e538
Merge pull request #6589 from devtron-labs/go-routines-wrapped
prkhrkat May 23, 2025
bea0048
git sensor grpc lb policy change
kartik-579 May 26, 2025
a7f2078
kubelink grpc service config expose change
kartik-579 May 26, 2025
e08c972
updated develop hash
kartik-579 May 26, 2025
943d18f
Merge pull request #6610 from devtron-labs/grpc-git-sensor-config-change
kartik-579 May 26, 2025
da02302
Merge branch 'develop' into fix-webhook-unreachable-cd-delet
kartik-579 May 26, 2025
a4309c4
Merge pull request #6602 from devtron-labs/fix-webhook-unreachable-cd…
kartik-579 May 26, 2025
2fb8db2
panic fix installedApp type timeline update
kartik-579 May 27, 2025
b70891f
wire
prkhrkat May 27, 2025
01da285
Merge pull request #6616 from devtron-labs/wire-fix
prkhrkat May 27, 2025
240e5c9
Merge branch 'develop' into panic-fix-timeline-helm-app
kartik-579 May 27, 2025
23570cc
Merge pull request #6614 from devtron-labs/panic-fix-timeline-helm-app
kartik-579 May 27, 2025
a26a28c
boiler plate
prkhrkat May 27, 2025
abd3b1c
app count
prkhrkat May 27, 2025
e791c53
app count
prkhrkat May 28, 2025
d389839
refact
prkhrkat May 28, 2025
22ee1c9
fix
prkhrkat May 28, 2025
2824505
fix
prkhrkat May 28, 2025
cd2741a
active users in last30
prkhrkat May 28, 2025
062278e
gitops pipeline
prkhrkat May 28, 2025
64ef5d0
helm pipeline
prkhrkat May 28, 2025
0db6568
refact
prkhrkat May 28, 2025
c2831be
error handling
prkhrkat May 28, 2025
e55b783
review comment
prkhrkat May 29, 2025
3051c3d
review comments
prkhrkat May 29, 2025
0404234
Merge pull request #6618 from devtron-labs/posthog-dev
prkhrkat May 29, 2025
80c7dd5
change ci normal to webhook fix (#6626)
vikramdevtron May 30, 2025
ed40618
fix: stack Manager issues (#6619)
Shivam-nagar23 May 30, 2025
a455807
app clone support api's (#6628)
vikramdevtron May 30, 2025
03df24d
Merge branch 'main' into develop-main-sync-2jun-1
kartik-579 Jun 2, 2025
efe774f
misc: notification for failed Deployment (#6611)
prkhrkat Jun 2, 2025
9aed3ad
updated oss hash
kartik-579 Jun 2, 2025
c7bf17f
Merge branch 'develop' into develop-main-sync-2jun-1
kartik-579 Jun 2, 2025
510f775
Merge pull request #6631 from devtron-labs/develop-main-sync-2jun-1
kartik-579 Jun 2, 2025
b8b8a43
fix: Unable to fetch manifest in case of ACD external listing (#6598)
iamayushm Jun 2, 2025
55f0281
added missing dependency (#6635)
prkhrkat Jun 2, 2025
051f2ec
fix: panic in async execution flow
Ash-exp Jun 3, 2025
b64a400
Merge pull request #6643 from devtron-labs/fix/async-exec-panic
Ash-exp Jun 4, 2025
a4a3d01
fix: hibernate and unhibernate rbac issue (#6641)
Shivam-nagar23 Jun 4, 2025
bc6fe2f
Merge branch 'main' into release-candidate-v0.37.0-main-sync-4jun-1
kartik-579 Jun 4, 2025
1128acb
oss hashes update
kartik-579 Jun 4, 2025
ce56413
Merge pull request #6647 from devtron-labs/release-candidate-v0.37.0-…
kartik-579 Jun 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
266 changes: 13 additions & 253 deletions .github/workflows/pr-issue-validator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,275 +11,35 @@ on:
- 'main'
- 'release-**'
- 'develop'
- 'hotfix-v0**'
- 'hotfix-**'
# paths-ignore:
# - 'docs/**'
# - '.github/'
# - 'CHANGELOG/'
# - 'charts/'
# - 'manifests/'
# - 'sample-docker-templates/'

jobs:
validate-PR-issue:
runs-on: ubuntu-latest
permissions:
issues: write
contents: read
pull-requests: write
repository-projects: read

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0

- name: Validate Issue Reference
- name: Set up jq (for parsing JSON)
run: sudo apt-get install -y jq

- name: PR Validation Script
env:
GH_TOKEN: ${{ github.token }}
PR_BODY: ${{ github.event.pull_request.body }}
PRNUM: ${{ github.event.pull_request.number }}
TITLE: ${{ github.event.pull_request.title }}
GH_TOKEN: ${{ github.token }}
GH_PR_VALIDATOR_TOKEN: ${{ secrets.GH_PR_VALIDATOR_TOKEN }}
BASE_REPO: ${{ github.event.pull_request.base.repo.full_name }}
HEAD_REPO: ${{ github.event.pull_request.head.repo.full_name }}
run: |

echo "base or target repo : ${{ github.event.pull_request.base.repo.full_name }}"
echo "head or source repo : ${{ github.event.pull_request.head.repo.full_name }}"

if [[ ${{ github.event.pull_request.head.repo.full_name }} == ${{ github.event.pull_request.base.repo.full_name }} ]]; then
export forked=false
else
export forked=true
fi

set -x
# Skip validation for documentation or chore PRs
if [[ "$TITLE" =~ ^(doc:|docs:|chore:|misc:|Release:|release:|Sync:|sync:) ]]; then
echo "Skipping validation for docs/chore PR."
echo "PR NUMBER-: $PRNUM "
gh pr edit $PRNUM --remove-label "PR:Issue-verification-failed"
gh pr edit $PRNUM --add-label "PR:Ready-to-Review"
exit 0
fi

# Define all issue matching patterns
patterns=(
"((Fixes|Resolves) #[0-9]+)"
"((Fixes|Resolves) https://github.com/devtron-labs/devtron/issues/[0-9]+)"
"((Fixes|Resolves) devtron-labs/devtron#[0-9]+)"
"(Fixes|Resolves):?\\s+\\[#([0-9]+)\\]"
"((Fixes|Resolves):? #devtron-labs/devops-sprint/issues/[0-9]+)"
"((Fixes|Resolves):? #devtron-labs/sprint-tasks/issues/[0-9]+)"
"((Fixes|Resolves) https://github.com/devtron-labs/devops-sprint/issues/[0-9]+)"
"((Fixes|Resolves) https://github.com/devtron-labs/sprint-tasks/issues/[0-9]+)"
"((Fixes|Resolves):? #devtron-labs/sprint-tasks#[0-9]+)"
)

# Extract issue number and repo from PR body
extract_issue_number() {
local pattern="$1" # Get the pattern as the first argument to the function

# Check if PR_BODY matches the provided pattern using Bash's =~ regex operator
if [[ "$PR_BODY" =~ $pattern ]]; then
echo "matched for this pattern $pattern"

issue_num=$(echo "$PR_BODY" | grep -oE "$pattern" | grep -oE "[0-9]+")

# Extract the repository name (e.g., devtron-labs/devtron) from PR_BODY using grep
repo=$(echo "$PR_BODY" | grep -oE "devtron-labs/[a-zA-Z0-9_-]+")
echo "Extracted issue number: $issue_num from repo: $repo"

return 0 # Return success
else
echo "No match for the pattern $pattern"
fi
return 1 # Return failure if no match
}

issue_num=""
repo="devtron-labs/devtron" # Default repo
for pattern in "${patterns[@]}"; do
echo "Now checking for $pattern"
extract_issue_number "$pattern" && break
done

if [[ -z "$issue_num" ]]; then
echo "No valid issue number found."
gh pr edit $PRNUM --add-label "PR:Issue-verification-failed"
gh pr edit $PRNUM --remove-label "PR:Ready-to-Review"
exit 1
fi

# Form the issue API URL dynamically
issue_api_url="https://api.github.com/repos/$repo/issues/$issue_num"
echo "API URL: $issue_api_url"

if [[ $repo == "devtron-labs/devtron" || $repo == "devtron-labs/devtron-services" || $repo == "devtron-labs/dashboard" ]]; then
echo "No extra arguments needed: public repository detected."
response_code=$(curl -s -o /dev/null -w "%{http_code}" \
"$issue_api_url")

else
echo "Adding extra arguments for authentication: private repository detected."
response_code=$(curl -s -o /dev/null -w "%{http_code}" \
--header "authorization: Bearer ${{ secrets.GH_PR_VALIDATOR_TOKEN }}" \
"$issue_api_url")
fi

echo "Response Code: $response_code"
if [[ "$response_code" -eq 200 ]]; then
echo "Issue #$issue_num is valid and exists in $repo."

# Fetch the current state of the issue (open/closed) from the private repository.
if [[ $repo == "devtron-labs/devtron" || $repo == "devtron-labs/devtron-services" || $repo == "devtron-labs/dashboard" ]]; then
echo "No extra arguments needed: public repository detected."
issue_status=$(curl -s \
"$issue_api_url"| jq '.state'|tr -d \")
else
echo "Adding extra arguments for authentication: private repository detected."
issue_status=$(curl -s \
--header "authorization: Bearer ${{ secrets.GH_PR_VALIDATOR_TOKEN }}" \
"$issue_api_url"| jq '.state'|tr -d \")
fi
echo "Issue Number : $issue_num Status: $issue_status"
# Check if the issue is still open.
# if [[ "$issue_status" == open ]]; then
# echo "Issue #$issue_num is opened."
if [[ $forked == true ]]; then
echo "PR:Ready-to-Review, exiting gracefully"
exit 0
fi
# Remove the 'Issue-verification-failed' label (if present) and add 'Ready-to-Review'.
gh pr edit $PRNUM --remove-label "PR:Issue-verification-failed"
gh pr edit $PRNUM --add-label "PR:Ready-to-Review"
echo "PR:Ready-to-Review, exiting gracefully"
exit 0
# else
# echo "Issue #$issue_num is closed. Please link an open issue to proceed."
# if [[ $forked == true ]]; then
# echo "PR:Ready-to-Review, exiting gracefully"
# exit 0
# fi
# Add a comment to the PR indicating the issue is not linked correctly.
# gh pr comment $PRNUM --body "PR is linked to a closed issue. Please link an open issue to proceed."

# Add the 'Issue-verification-failed' label and remove 'Ready-to-Review'.
# gh pr edit $PRNUM --add-label "PR:Issue-verification-failed"
# gh pr edit $PRNUM --remove-label "PR:Ready-to-Review"
# exit 1
#fi
else
echo "Issue not found. Invalid URL or issue number."
# Add a comment to the PR indicating the issue is not linked correctly.
gh pr comment $PRNUM --body "PR is not linked to a valid issue. Please update the issue link."

# Apply 'Issue-verification-failed' label and remove 'Ready-to-Review' label.
gh pr edit $PRNUM --add-label "PR:Issue-verification-failed"
gh pr edit $PRNUM --remove-label "PR:Ready-to-Review"
exit 1
fi
- name: Check SQL file format and duplicates
shell: bash
env:
pr_no: ${{ github.event.pull_request.number }}
GH_TOKEN: ${{ github.token }}
run: |
# Fetch the latest changes from the main branch
git fetch origin main

# Get the list of changed files
git diff origin/main...HEAD --name-only > diff

# Specify the directory containing migration files
MIGRATION_DIR="scripts/sql"
ls
pwd

# Print changed files
echo "Changed files:"
cat diff

changed_files=""
while IFS= read -r file; do
if [[ $file == $MIGRATION_DIR/* && $file == *.up.sql ]]; then
changed_files+="$file\n"
fi
done < diff

# Print the filtered .up.sql files
echo "Filtered .up.sql files:"
echo -e "$changed_files"

# Check if there are any .up.sql migration files in the changed files list
if [ -z "$changed_files" ]; then
echo "No .up.sql migration files found in the changes."
else
# Extract unique migration numbers from the directory (considering only .up.sql files)
existing_migrations=$(ls $MIGRATION_DIR | grep -E "\.up\.sql$" | grep -oE "[0-9]{3}[0-9]{3}[0-9]{2}" | sort | uniq)

# Exclude migration numbers from changed files in existing_migrations
while read -r file; do
migration_number=$(basename "$file" | grep -oE "[0-9]{3}[0-9]{3}[0-9]{2}")
existing_migrations=$(echo "$existing_migrations" | grep -v "$migration_number")
done <<< "$changed_files"

# Validate each changed .up.sql migration file
is_valid=true
processed_migrations=()
while read -r file; do
# Extract migration number from the filename
migration_number=$(basename "$file" | grep -oE "[0-9]{3}[0-9]{3}[0-9]{2}")

# Check if the filename has the full XXXPPPNN format
if [[ ! $(basename "$file") =~ ^[0-9]{3}[0-9]{3}[0-9]{2}_ ]]; then
echo "Error: Migration file $file does not have the complete XXXPPPNN format."
is_valid=false
continue
fi

if [ -z "$migration_number" ]; then
echo "Warning: Could not extract migration number from $file."
continue
fi

# Check if this migration number has already been processed
if [[ " ${processed_migrations[@]} " =~ " $migration_number " ]]; then
continue
fi
processed_migrations+=("$migration_number")

# Check if the migration number is unique
if echo "$existing_migrations" | grep -q "$migration_number"; then
echo "Error: Migration number $migration_number already exists."
is_valid=false
fi

# Check if the migration number is greater than previous ones
last_migration=$(echo "$existing_migrations" | tail -n 1)
if [ "$migration_number" -le "$last_migration" ]; then
echo "Error: Migration number $migration_number is not greater than the latest ($last_migration)."
is_valid=false
fi

# Check for sequential hotfix requirement (if NN > 01, check for NN-1)
hotfix_number=$(echo "$migration_number" | grep -oE "[0-9]{2}$")
if [ "$hotfix_number" -gt "01" ]; then
previous_hotfix=$(printf "%02d" $((10#$hotfix_number - 1)))
expected_previous_number="${migration_number:0:6}$previous_hotfix"
if ! echo "$existing_migrations" | grep -q "$expected_previous_number"; then
echo "Error: Previous hotfix migration $expected_previous_number not found for $migration_number."
is_valid=false
fi
fi

done <<< "$changed_files"

if [ "$is_valid" = false ]; then
echo "Validation failed. Please fix the errors before merging."
gh pr comment $pr_no --body "The Migration files providede inside of the PR does not pass the criteria!!"
exit 1
fi

echo "All .up.sql migration file validations passed."
gh pr comment $pr_no --body "The migration files have successfully passed the criteria!!"
fi
wget https://raw.githubusercontent.com/devtron-labs/utilities/feat/central-pr-validator/.github/workflows/validateIssue.sh
chmod +x validateIssue.sh
./validateIssue.sh
5 changes: 4 additions & 1 deletion App.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ type App struct {
server *http.Server
db *pg.DB
posthogClient *posthogTelemetry.PosthogClient
userService user.UserService
// eventProcessor.CentralEventProcessor is used to register event processors
centralEventProcessor *eventProcessor.CentralEventProcessor // do not remove this.
// used for local dev only
Expand All @@ -79,6 +80,7 @@ func NewApp(router *router.MuxRouter,
pubSubClient *pubsub.PubSubClientServiceImpl,
workflowEventProcessorImpl *in.WorkflowEventProcessorImpl,
enforcerV2 *casbinv2.SyncedEnforcer,
userService user.UserService,
) *App {
//check argo connection
//todo - check argo-cd version on acd integration installation
Expand All @@ -97,6 +99,7 @@ func NewApp(router *router.MuxRouter,
centralEventProcessor: centralEventProcessor,
pubSubClient: pubSubClient,
workflowEventProcessorImpl: workflowEventProcessorImpl,
userService: userService,
}
return app
}
Expand All @@ -112,7 +115,7 @@ func (app *App) Start() {
app.MuxRouter.Init()
//authEnforcer := casbin2.Create()

server := &http.Server{Addr: fmt.Sprintf(":%d", port), Handler: authMiddleware.Authorizer(app.sessionManager2, user.WhitelistChecker, nil)(app.MuxRouter.Router)}
server := &http.Server{Addr: fmt.Sprintf(":%d", port), Handler: authMiddleware.Authorizer(app.sessionManager2, user.WhitelistChecker, app.userService.CheckUserStatusAndUpdateLoginAudit)(app.MuxRouter.Router)}
app.MuxRouter.Router.Use(app.loggingMiddleware.LoggingMiddleware)
app.MuxRouter.Router.Use(middleware.PrometheusMiddleware)
app.MuxRouter.Router.Use(middlewares.Recovery)
Expand Down
3 changes: 3 additions & 0 deletions Wire.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,9 @@ func InitializeApp() (*App, error) {
pipeline.NewCiMaterialConfigServiceImpl,
wire.Bind(new(pipeline.CiMaterialConfigService), new(*pipeline.CiMaterialConfigServiceImpl)),

app.NewDeploymentEventHandlerImpl,
wire.Bind(new(app.DeploymentEventHandler), new(*app.DeploymentEventHandlerImpl)),

pipeline.NewAppArtifactManagerImpl,
wire.Bind(new(pipeline.AppArtifactManager), new(*pipeline.AppArtifactManagerImpl)),
pipeline.NewDevtronAppCMCSServiceImpl,
Expand Down
2 changes: 2 additions & 0 deletions api/bean/AppView/AppView.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ type GenericNoteResponseBean struct {
Description string `json:"description"`
UpdatedBy string `json:"updatedBy"`
UpdatedOn time.Time `json:"updatedOn"`
CreatedBy string `json:"createdBy"`
}

type JobContainer struct {
Expand Down Expand Up @@ -100,6 +101,7 @@ type JobListingContainer struct {
LastTriggeredEnvironmentName string `sql:"last_triggered_environment_name" json:"lastTriggeredEnvironmentName"`
LastTriggeredEnvironmentId int `sql:"last_triggered_environment_id" json:"lastEnvironmentId"`
ProjectId int `sql:"team_id" json:"projectId"`
CreatedBy int32 `sql:"created_by" json:"createdBy"`
}

type CiPipelineLastSucceededTime struct {
Expand Down
2 changes: 1 addition & 1 deletion api/helm-app/gRPC/applicationClient.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func (impl *HelmAppClientImpl) getConnection() (*grpc.ClientConn, error) {
grpc.MaxCallRecvMsgSize(impl.grpcConfig.KubelinkMaxSendMsgSize*1024*1024), // GRPC Request size
grpc.MaxCallSendMsgSize(impl.grpcConfig.KubelinkMaxRecvMsgSize*1024*1024), // GRPC Response size
),
grpc.WithDefaultServiceConfig(`{"loadBalancingPolicy":"round_robin"}`),
grpc.WithDefaultServiceConfig(impl.grpcConfig.KubelinkGRPCServiceConfig),
)
endpoint := fmt.Sprintf("dns:///%s", impl.helmClientConfig.Url)
conn, err := grpc.DialContext(ctx, endpoint, opts...)
Expand Down
4 changes: 4 additions & 0 deletions api/k8s/application/k8sApplicationRestHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -1025,6 +1025,8 @@ func (handler *K8sApplicationRestHandlerImpl) CreateEphemeralContainer(w http.Re
return
}
request.UserId = userId
request.ExternalArgoAppIdentifier = resourceRequestBean.ExternalArgoAppIdentifier

err = handler.k8sApplicationService.CreatePodEphemeralContainers(&request)
if err != nil {
handler.logger.Errorw("error occurred in creating ephemeral container", "err", err, "requestPayload", request)
Expand Down Expand Up @@ -1073,6 +1075,7 @@ func (handler *K8sApplicationRestHandlerImpl) DeleteEphemeralContainer(w http.Re
return
}
request.UserId = userId
request.ExternalArgoAppIdentifier = resourceRequestBean.ExternalArgoAppIdentifier
_, err = handler.k8sApplicationService.TerminatePodEphemeralContainer(request)
if err != nil {
handler.logger.Errorw("error occurred in terminating ephemeral container", "err", err, "requestPayload", request)
Expand Down Expand Up @@ -1156,6 +1159,7 @@ func (handler *K8sApplicationRestHandlerImpl) verifyRbacForAppRequests(token str
handler.logger.Errorw("error in decoding appId", "err", err, "appId", request.AppId)
return false, err
}
request.ExternalArgoAppIdentifier = argoAppIdentifier
request.ClusterId = argoAppIdentifier.ClusterId
request.ExternalArgoApplicationName = argoAppIdentifier.AppName
valid, err := handler.argoApplicationReadService.ValidateArgoResourceRequest(r.Context(), argoAppIdentifier, request.K8sRequest)
Expand Down
Loading