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

Add support for merging GO* variables when existing ones are present in the manifest. #3368

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

HackToHell
Copy link

The default GOMEMLIMIT is set to 100pc which might not work with custom extensions/contrib collector which reccomends a 80pc. This allows users to set a custom value in the manifest and still not have duplicates.

@HackToHell HackToHell requested a review from a team as a code owner October 18, 2024 05:25
Copy link

CLA Missing ID CLA Not Signed

ContainerName: naming.Container(),
skipGoMemLimit, skipGoMaxprocs := false, false
for _, v := range envVars {
if v.Name == "GOMEMLIMIT" {
Copy link
Member

Choose a reason for hiding this comment

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

What does happen when the golangFlags fg is enabled and the env variable is set in the CR?

@swiatekm
Copy link
Contributor

I think I'd rather solve this in a more generic way. That is, ensure that we don't set any env variables the user has set. You can run into the same issue as this PR tries to address if you try to set POD_NAME on your own. We should probably just deduplicate the env variables at the end, giving priority to the user's. WDYT @jaronoff97 ?

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.

3 participants