bug: supplying podAnnotations breaks helm chart
Description
One of the recent adds to the charts accidentally duplicates pod annotations for Confluence's statefulset as seen here
Steps to reproduce
Using the default values found at chart/values.yaml
and the following test values:
podAnnotations:
traffic.sidecar.istio.io/excludeInboundPorts: 5701,8888,8081,8091
traffic.sidecar.istio.io/excludeOutboundPorts: 5701,8888,8081,8091
- git checkout 1.15.0-bb.3
- cd chart
- helm template --values values.yaml --values test-values.yaml confluence .
- see rendered StatefulSet
# Source: confluence/templates/statefulset.yaml
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: confluence
labels:
helm.sh/chart: confluence-1.15.0-bb.3
app.kubernetes.io/name: confluence
app.kubernetes.io/instance: confluence
app.kubernetes.io/version: "7.19.12"
app.kubernetes.io/managed-by: Helm
spec:
replicas: 1
serviceName: confluence
selector:
matchLabels:
app.kubernetes.io/name: confluence
app.kubernetes.io/instance: confluence
template:
metadata:
annotations:
traffic.sidecar.istio.io/excludeInboundPorts: 5701,8888,8081,8091
traffic.sidecar.istio.io/excludeOutboundPorts: 5701,8888,8081,8091
traffic.sidecar.istio.io/excludeInboundPorts: 5701,8888,8081,8091
traffic.sidecar.istio.io/excludeOutboundPorts: 5701,8888,8081,8091
checksum/config-jvm: 53b709baf5cfb25fcfba46739ecebb41319ca3fc24263ac7b45928740754e15b