manifests icon indicating copy to clipboard operation
manifests copied to clipboard

Redis dependency is unconditionally activated in 8.x when aliasing Helm chart

Open dchandekstark opened this issue 3 months ago • 3 comments

At least when aliasing the oauth2-proxy 8.x Helm chart for multiple instances, it consistently installs the Redis dependency, even if redis: false is set explicitly on each dependency.

This does not happen when using the chart for a single deployment.

Downgrading to 7.x alleviates the issue, but perhaps a regression was introduced in the process of removing the Bitnami dependency?

dchandekstark avatar Sep 09 '25 16:09 dchandekstark

This is related to #347

pierluigilenoci avatar Sep 10 '25 07:09 pierluigilenoci

I had the same issue.

BacLuc avatar Sep 11 '25 20:09 BacLuc

Seems we have to wait for helm v4. fix:

  • https://github.com/helm/helm/pull/9184

backport:

  • https://github.com/helm/helm/pull/30802

BacLuc avatar Oct 25 '25 18:10 BacLuc

@dchandekstark, can you please test this with Helm v4?

pierluigilenoci avatar Nov 27 '25 09:11 pierluigilenoci

I tested it with helm4, works now.

BacLuc avatar Nov 27 '25 18:11 BacLuc

@dchandekstark, can we close the ticket now?

pierluigilenoci avatar Nov 28 '25 10:11 pierluigilenoci

@dchandekstark

Downgrading to 7.x alleviates the issue, but perhaps a regression was introduced in the process of removing the Bitnami dependency?

This will most likely be due to the fact that the newly introduced dependency is called redis-ha and we added an alias named "redis". Helm v3 doesn't seem to able to deal with aliases properly

tuunit avatar Nov 29 '25 11:11 tuunit

https://github.com/oauth2-proxy/manifests/blob/ef5126e1052264106d58fce4c35e6ee0ff6fd67e/helm/oauth2-proxy/Chart.yaml#L15-L20

Removing the alias and using redis-ha.enabled as a condition would probably fix it

tuunit avatar Nov 29 '25 11:11 tuunit

Here a commit to use helm v4 in a github action: https://github.com/ecamp/ecamp3/commit/86591aaa04af62dff7c0dd1f40148238d308afd1

BacLuc avatar Nov 29 '25 14:11 BacLuc