Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: application exist panic when execute api call #8188

Merged
merged 9 commits into from Jan 15, 2022

Conversation

pasha-codefresh
Copy link
Member

Closes #8184

Removed generation for application , it mainly was implemented for repositories use case for better understanding why argo report that entity already exist

#2925

We can't use it for applications because isServerInferred flag that is private

@pasha-codefresh pasha-codefresh changed the title Application exixt panic fix: application exist panic when execute api call Jan 14, 2022
@codecov
Copy link

codecov bot commented Jan 15, 2022

Codecov Report

Merging #8188 (8b872a8) into master (35f5b32) will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #8188      +/-   ##
==========================================
+ Coverage   41.53%   41.54%   +0.01%     
==========================================
  Files         174      174              
  Lines       22705    22713       +8     
==========================================
+ Hits         9430     9436       +6     
- Misses      11921    11923       +2     
  Partials     1354     1354              
Impacted Files Coverage Δ
server/application/application.go 31.20% <ø> (ø)
util/helm/cmd.go 28.65% <0.00%> (ø)
util/kustomize/kustomize.go 67.80% <0.00%> (ø)
pkg/apis/application/v1alpha1/types.go 55.32% <0.00%> (ø)
reposerver/repository/repository.go 57.85% <0.00%> (+0.04%) ⬆️
cmd/util/app.go 47.10% <0.00%> (+0.16%) ⬆️
util/argo/normalizers/diff_normalizer.go 77.01% <0.00%> (+0.54%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 35f5b32...8b872a8. Read the comment docs.

@alexmt alexmt merged commit 978162f into argoproj:master Jan 15, 2022
@jannfis jannfis added the cherry-pick/2.2 Candidate for cherry picking into the 2.2 release branch label Jan 15, 2022
jannfis pushed a commit that referenced this pull request Jan 15, 2022
fix: application exist panic when execute api call (#8188)

Signed-off-by: pashavictorovich <pavel@codefresh.io>
@jannfis
Copy link
Member

jannfis commented Jan 15, 2022

Cherry-picked into release-2.2 branch: b1e3a07

cyrilix pushed a commit to cyrilix/argo-cd that referenced this pull request Feb 15, 2022
fix: application exist panic when execute api call (argoproj#8188)

Signed-off-by: pashavictorovich <pavel@codefresh.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick/2.2 Candidate for cherry picking into the 2.2 release branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Panic when trying to create an app that already exists
3 participants