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: add compute resources to init containers #305

Merged
merged 2 commits into from
May 4, 2021

Conversation

jopit
Copy link
Collaborator

@jopit jopit commented Apr 30, 2021

What type of PR is this?

/kind bug

What does this PR do / why we need it:
This PR adds compute resources to definition of several of the ArgoCD init containers. Without this, the associated pods will fail to start if ArgoCD is installed into a namespace which has resource quotas set.

Have you updated the necessary documentation?

  • Documentation update is required by this PR.
  • Documentation has been updated.

Which issue(s) this PR fixes:

Fixes #304

How to test changes / Special notes to the reviewer:

To test, define a namespace that has resource quotas set, then create an ArgoCD CR that defines compute resources for its components, and install into the namespace. All pods should start successfully.

@wtam2018
Copy link
Collaborator

Is it possible to add some unit tests?

@jopit
Copy link
Collaborator Author

jopit commented May 2, 2021

@wtam2018 I've added some unit tests.

Copy link
Collaborator

@wtam2018 wtam2018 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
thanks @jopit

@wtam2018 wtam2018 merged commit 043ecc9 into argoproj-labs:master May 4, 2021
@jopit jopit deleted the init-container-resources branch May 4, 2021 13:34
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.

Pods with init containers fail to start when installed into a namespace with resource quotas
2 participants