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: Admiral crash when ArgoRolloutsEnabled set to false #195

Conversation

itsLucario
Copy link
Collaborator

Fixes #168

Added check before using RolloutClient to avoid nil deference when ArgoRolloutsEnabled=false, as it will not get initialized when set to false.

@aattuluri
Copy link
Contributor

@itsLucario changes lgtm, please fix unit tests and the DCO check, instructions for DCO are here

Signed-off-by: nbn01 <nandan_bn@intuit.com>
@itsLucario itsLucario force-pushed the fix-ArgoRolloutsEnabled-false-panic branch from 8a0488a to 83968d9 Compare March 9, 2022 09:13
Signed-off-by: nbn01 <nandan_bn@intuit.com>
@codecov-commenter
Copy link

Codecov Report

Merging #195 (f7e6dd9) into master (f1dc5b4) will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #195      +/-   ##
==========================================
+ Coverage   73.98%   74.00%   +0.02%     
==========================================
  Files          26       26              
  Lines        2506     2508       +2     
==========================================
+ Hits         1854     1856       +2     
  Misses        520      520              
  Partials      132      132              
Impacted Files Coverage Δ
admiral/pkg/clusters/types.go 73.58% <100.00%> (+0.25%) ⬆️

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 f1dc5b4...f7e6dd9. Read the comment docs.

@aattuluri aattuluri merged commit d3f4341 into istio-ecosystem:master Mar 9, 2022
psikka1 pushed a commit to psikka1/admiral that referenced this pull request Jun 15, 2022
…stem#195)

* fix panic: argoRolloutsEnabled=false

Signed-off-by: nbn01 <nandan_bn@intuit.com>

* Update test case with `argoRolloutsEnabled=true`

Signed-off-by: nbn01 <nandan_bn@intuit.com>

Co-authored-by: nbn01 <nandan_bn@intuit.com>
Signed-off-by: psikka1 <pankaj_sikka@intuit.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Admiral Pod suddenly CrashLoopBackOff with "invalid memory address or nil pointer dereference"
3 participants