Skip to content

Commit

Permalink
Merge pull request #44 from GDATASoftwareAG/add-optional-np
Browse files Browse the repository at this point in the history
Add optional np
  • Loading branch information
unglaublicherdude authored Feb 28, 2024
2 parents fb2c60f + 3196401 commit 4a61e95
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/gdscan/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ maintainers:
- name: G DATA CyberDefense AG
email: [email protected]
type: application
version: 1.7.0
version: 1.8.0
18 changes: 18 additions & 0 deletions charts/gdscan/templates/networkpolicy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{{- if .Values.networkPolicy.enabled }}
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: {{ include "gdscan.fullname" . }}
labels:
{{- include "gdscan.labels" . | nindent 4 }}
spec:
podSelector:
matchLabels:
{{- include "gdscan.selectorLabels" . | nindent 6 }}
policyTypes:
- Ingress
ingress:
- from:
ports:
- port: 8080 # Http
{{- end }}
3 changes: 3 additions & 0 deletions charts/gdscan/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ imagePullSecrets:
nameOverride: ""
fullnameOverride: ""

networkPolicy:
enabled: false

podAnnotations: {}

secret:
Expand Down

0 comments on commit 4a61e95

Please sign in to comment.