Add extraPorts to the network policy when it is enabled. (#157)

diff --git a/couchdb/Chart.yaml b/couchdb/Chart.yaml
index 8603866..fbe0bfe 100644
--- a/couchdb/Chart.yaml
+++ b/couchdb/Chart.yaml
@@ -1,6 +1,6 @@
 apiVersion: v1
 name: couchdb
-version: 4.5.5
+version: 4.5.6
 appVersion: 3.3.3
 description: A database featuring seamless multi-master sync, that scales from
   big data to mobile, with an intuitive HTTP/JSON API and designed for
diff --git a/couchdb/NEWS.md b/couchdb/NEWS.md
index 849e06f..af0dd8a 100644
--- a/couchdb/NEWS.md
+++ b/couchdb/NEWS.md
@@ -1,5 +1,9 @@
 # NEWS
 
+## 4.5.6
+
+- Add `extraPorts` to the network policy when the network policy is enabled.
+
 ## 4.5.5
 
 - Give the default port on the CouchDB `Service` a name so that `service.extraPorts` can be used properly.
diff --git a/couchdb/templates/networkpolicy.yaml b/couchdb/templates/networkpolicy.yaml
index 2fd2926..b459981 100644
--- a/couchdb/templates/networkpolicy.yaml
+++ b/couchdb/templates/networkpolicy.yaml
@@ -21,6 +21,10 @@
         - protocol: TCP
           port: {{ .Values.prometheusPort.port }}
 {{- end }}
+{{ range .Values.extraPorts }}
+        - protocol: TCP
+          port: {{ .containerPort }} 
+{{ end }}
     - ports:
         - protocol: TCP
           port: 9100