Skip to content

Commit

Permalink
Add extraPorts to the network policy when it is enabled. (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
samwho committed Jun 4, 2024
1 parent b6d55fc commit a1dfd8b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion couchdb/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 4 additions & 0 deletions couchdb/NEWS.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 4 additions & 0 deletions couchdb/templates/networkpolicy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a1dfd8b

Please sign in to comment.