borigas opened a new issue #32:
URL: https://github.com/apache/couchdb-helm/issues/32
<!-- Thanks for filing an issue! Before hitting the button, please answer
these questions. It's helpful to search the existing GitHub issues first. It's
likely that another user has already reported the issue you're facing, or it's
a known issue that we're already aware of
Fill in as much of the template below as you can. If you leave out
information, we can't help you as well.
Be ready for followup questions, and please respond in a timely manner. If
we can't reproduce a bug or think a feature already exists, we might close your
issue. If we're wrong, PLEASE feel free to reopen it and explain why.
-->
**Describe the bug**
I get a warning `coalesce.go:160: warning: skipped value for affinity: Not a
table.` when trying to install with affinity set in my values file
**Version of Helm and Kubernetes**:
Helm: 3.2.1
Kubernetes: 1.17.5
**What happened**:
When installing, I get a warning: `coalesce.go:160: warning: skipped value
for affinity: Not a table.` Warnings cause my deployment pipeline to abort, so
I need to get this fixed
**What you expected to happen**:
The helm install should succeed without warnings
**How to reproduce it** (as minimally and precisely as possible):
Create repro.yaml:
```yaml
couchdbConfig:
couchdb:
uuid: 123
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: "app"
operator: In
values:
- couchdb
topologyKey: "kubernetes.io/hostname"
```
Then run `helm install my-name couchdb/couchdb -f repro.yaml`
**Anything else we need to know**:
It seems to be tied to having `affinity:` defined in values.yaml without any
children. If I comment out this line, the release succeeds without errors and
creates the affinity
https://github.com/apache/couchdb-helm/blob/deb055f1c11696fb847e177c14176c1f217890cd/couchdb/values.yaml#L87
I know this isn't the only place that a key is defined without children
though, so I'm trying to figure out if there's a better way.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]