Skip to content

Commit

Permalink
add networkpolicy to chart
Browse files Browse the repository at this point in the history
  • Loading branch information
eumel8 committed Jan 10, 2025
1 parent 4af17ba commit 7c9c768
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ annotations:
catalog.cattle.io/display-name: CaaS Carbon Footprint
name: caas-carbon-footprint
description: A Helm chart for carbon footprint measurement
version: "0.0.17"
version: "0.0.18"
appVersion: "0.0.15"
keywords:
- monitoring
Expand Down
Binary file removed chart/charts/kepler-0.5.7.tgz
Binary file not shown.
24 changes: 24 additions & 0 deletions chart/templates/entsoe-networkpolicy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{{ if .Values.entsoe.enabled }}
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: entsoe-{{ include "caas-carbon-footprint.fullname" . }}
labels:
app.kubernetes.io/component: entsoe
{{- include "caas-carbon-footprint.labels" . | nindent 4 }}
spec:
egress:
- {}
ingress:
- ports:
- port: 80
protocol: TCP
- port: 9091
protocol: TCP
podSelector:
matchLabels:
{{- include "caas-carbon-footprint.selectorLabels" . | nindent 4 }}
policyTypes:
- Ingress
- Egress
{{ end }}

0 comments on commit 7c9c768

Please sign in to comment.