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 panic: argoRolloutsEnabled=false #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

itsLucario
Copy link
Owner

When we set param ArgoRolloutsEnabled=false RolloutController doesn’t get instantiated.

But when Added/Updated function of GlobalTrafficHandler receiver gets called, it in turn calls GetRolloutByLabel.
And since here the controller was not instantiated and no check is done Admiral panics and crashes.

This doesn’t occur when ArgoRolloutsEnabled=true but when set to false admiral crashes when GlobalTrafficHandler receiver's Added/Updated function gets called.

This PR does a check if ArgoRolloutsEnabled param is set true or false.

@itsLucario itsLucario force-pushed the fix-ArgoRolloutsEnabled-false-panic branch from 8a0488a to 83968d9 Compare March 9, 2022 09:13
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.

1 participant