You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by wi...@apache.org on 2024/06/04 17:22:45 UTC
(couchdb-helm) branch main updated: Add extraPorts to the network policy when it is enabled. (#157)
This is an automated email from the ASF dual-hosted git repository.
willholley pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/couchdb-helm.git
The following commit(s) were added to refs/heads/main by this push:
new a1dfd8b Add extraPorts to the network policy when it is enabled. (#157)
a1dfd8b is described below
commit a1dfd8b8a7e365ae1820b7ee1d57a05ca0fd18c5
Author: Sam Rose <he...@samwho.dev>
AuthorDate: Tue Jun 4 18:22:40 2024 +0100
Add extraPorts to the network policy when it is enabled. (#157)
---
couchdb/Chart.yaml | 2 +-
couchdb/NEWS.md | 4 ++++
couchdb/templates/networkpolicy.yaml | 4 ++++
3 files changed, 9 insertions(+), 1 deletion(-)
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 @@ spec:
- protocol: TCP
port: {{ .Values.prometheusPort.port }}
{{- end }}
+{{ range .Values.extraPorts }}
+ - protocol: TCP
+ port: {{ .containerPort }}
+{{ end }}
- ports:
- protocol: TCP
port: 9100