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

Empty dict in redis-ha affinity results in Helm rendering warnings #2265

Closed
steadyk opened this issue Sep 12, 2023 · 1 comment · Fixed by #2270
Closed

Empty dict in redis-ha affinity results in Helm rendering warnings #2265

steadyk opened this issue Sep 12, 2023 · 1 comment · Fixed by #2270
Labels
argo-cd bug Something isn't working

Comments

@steadyk
Copy link

steadyk commented Sep 12, 2023

Describe the bug

Hello all,

I've tried to render the Argo CD Helm chart and encounter this warnings:

helm template --release-name argocd -n argocd --include-crds --skip-tests . > /dev/null
coalesce.go:223: warning: destination for argo-cd.argo-cd.redis-ha.haproxy.affinity is a table. Ignoring non-table value ()
coalesce.go:175: warning: skipped value for argo-cd.argo-cd.redis-ha.affinity: Not a table.
coalesce.go:223: warning: destination for argo-cd.redis-ha.haproxy.affinity is a table. Ignoring non-table value ()
coalesce.go:175: warning: skipped value for argo-cd.redis-ha.affinity: Not a table.

Looks like this is related to the empty dict in the affinity settings of redis-ha:

redis-ha:
  ## Enables a HA Proxy for better LoadBalancing / Sentinel Master support. Automatically proxies to Redis master.
  haproxy:
    # -- Assign custom [affinity] rules to the haproxy pods.
    affinity: {}
  # -- Assign custom [affinity] rules to the Redis pods.
  affinity: {}

After changing this to

redis-ha:
  ## Enables a HA Proxy for better LoadBalancing / Sentinel Master support. Automatically proxies to Redis master.
  haproxy:
    # -- Assign custom [affinity] rules to the haproxy pods.
    affinity: |
  # -- Assign custom [affinity] rules to the Redis pods.
  affinity: |

based on the redis-ha sub-chart, the warnings are gone.

Does it makes sense to change it this way?

Related helm chart

argo-cd

Helm chart version

5.46.2

To Reproduce

Render Helm chart e.g. with helm template --release-name argocd -n argocd --include-crds --skip-tests . > /dev/null

Expected behavior

No Helm warnings on rendering.

Screenshots

No response

Additional context

No response

@steadyk steadyk added the bug Something isn't working label Sep 12, 2023
@christianh814
Copy link
Member

Just reporting that I ran into the same issue

2023/09/13 11:53:40 warning: destination for argo-cd.redis-ha.haproxy.affinity is a table. Ignoring non-table value ()
2023/09/13 11:53:40 warning: skipped value for argo-cd.redis-ha.affinity: Not a table.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
argo-cd bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants