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

Confusing Helm Chart Configs #3710

Closed
fernandonogueira opened this issue Aug 26, 2024 · 1 comment
Closed

Confusing Helm Chart Configs #3710

fernandonogueira opened this issue Aug 26, 2024 · 1 comment
Labels
question Further information is requested

Comments

@fernandonogueira
Copy link

fernandonogueira commented Aug 26, 2024

Hi! 👋🏼

I tried to change Keptn's resources, but I had some issues.
I'm using the umbrella chart (keptn) with the following values.yaml

lifecycleOperator:
  schedulingGatesEnabled: true
  allowedNamespaces:
    - "staging"
  resources:
    limits:
      cpu: 500m
      memory: 512Mi
    requests:
      cpu: 50m
      memory: 150Mi

However, lifecycle-operator's pods are still using the default resources.

Checking the helm chart, I noticed sometimes it references lifecycle-operator values via .Values.lifecycleOperator.<property>, sometimes via .Values.<property>.

Is this lifecycleOperator property duplicated for some reason, or should it be considered a bug?

I can contribute with a PR, if needed.

For now, I'll use the following values.yaml as a workaround:

lifecycleOperator:
  schedulingGatesEnabled: true
  allowedNamespaces:
    - "staging"
  lifecycleOperator:
    resources:
    limits:
      cpu: 500m
      memory: 512Mi
    requests:
      cpu: 50m
      memory: 150Mi

Thanks in advance 🙇🏼

@mowies mowies added the question Further information is requested label Aug 27, 2024
@mowies
Copy link
Member

mowies commented Aug 27, 2024

Hi! Thanks for posting this!

So, if you check the chart readme for the lifecycle operator subchart here, you'll notice that most values are prefixed either with lifecycleOperator. or scheduler.. That's because there's 2 things there that get potentially deployed and we needed to separate the value somehow.
So to set resources for the lifecycle operator from the umbrella chart, your workaround is actually the correct solution. The value should be lifecycleOperator.lifecycleOperator.resources and lifecycleOperator.scheduler.resources respectively (although I noticed. you have the schedulingGatesEnabled value which makes the scheduler values meaningless since it won't get deployed).

We have changes planned to remove the scheduler in the future, since it's already deprecated. As soon as we remove it, also the values here will get simpler.
Hope this helps :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
Archived in project
Development

No branches or pull requests

3 participants
@fernandonogueira @mowies and others