Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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