Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
add ingress policy
Browse files Browse the repository at this point in the history
  • Loading branch information
fcomte committed Feb 8, 2021
1 parent 162a39f commit 3a28e6d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/neo4j/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.2.1
version: 0.2.2


# This is the version number of the application being deployed. This version number should be
Expand Down
17 changes: 17 additions & 0 deletions charts/neo4j/templates/networkpolicy-ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{{- if .Values.security.networkPolicy.enable -}}
{{- if .Values.ingress.enabled -}}
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
metadata:
name: {{ include "neo4j.fullname" . }}-2
spec:
podSelector:
matchLabels:
{{- include "neo4j.selectorLabels" . | nindent 6 }}
ingress:
- from:
{{- toYaml .Values.security.networkPolicy.from | nindent 4 }}
policyTypes:
- Ingress
{{- end }}
{{- end }}

0 comments on commit 3a28e6d

Please sign in to comment.