{{- if and (gt .Values.etcd.dynamicNodes 0.0) (eq .Values.pachd.storage.backend "LOCAL" | not) -}}
apiVersion: v1
kind: Service
metadata:
  labels:
    app: etcd
    suite: pachyderm
  name: etcd-headless
  namespace: {{ .Release.Namespace }}
spec:
  clusterIP: None
  ports:
  - name: peer-port
    port: 2380
  selector:
    app: etcd
{{ end -}}

{{- if eq .Values.pachd.storage.backend "LOCAL" | not -}}
apiVersion: v1
kind: Service
metadata:
  labels:
    app: etcd
    suite: pachyderm
  name: etcd-headless
  namespace: {{ .Release.Namespace }}
spec:
  clusterIP: None
  ports:
  - name: peer-port
    port: 2380
  selector:
    app: etcd
{{ end -}}

Remove check for dynamic nodes
Remove check for dynamic nodes

Because they are always > 0.
