Skip to content

Commit 8021dbd

Browse files
committed
feat: update Chart.yaml and add default deny network policy to networkpolicy.yaml
1 parent 18679a6 commit 8021dbd

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

helm/Chart.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
apiVersion: v2
2-
name: transfer
2+
name: transferia
33
description: A Helm chart for running multiple TRCLI instances in a Kubernetes cluster
44
type: application
55

66
# This is the chart version. This version number should be incremented each time you make changes
77
# to the chart and its templates, including the app version.
88
# Versions are expected to follow Semantic Versioning (https://semver.org/)
9-
version: 0.4.0
9+
version: 0.5.0
1010

1111
# This is the version number of the application being deployed. This version number should be
1212
# incremented each time you make changes to the application. Versions are not expected to
1313
# follow Semantic Versioning. They should reflect the version the application is using.
1414
# It is recommended to use it with quotes.
15-
appVersion: "0.4.0"
15+
appVersion: "0.1.1"

helm/templates/networkpolicy.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,22 @@
11
{{- if .Values.networkPolicy.enabled }}
2+
---
3+
apiVersion: networking.k8s.io/v1
4+
kind: NetworkPolicy
5+
metadata:
6+
name: {{ .Release.Name }}-default-deny-network-policy
7+
namespace: {{ .Values.global.namespace }}
8+
labels:
9+
app.kubernetes.io/name: {{ .Release.Name }}
10+
app.kubernetes.io/component: network-policy
11+
spec:
12+
podSelector:
13+
matchLabels:
14+
app: transferia
15+
policyTypes:
16+
- Egress
17+
# An empty egress list means no egress is allowed by default
18+
egress: []
19+
---
220
apiVersion: networking.k8s.io/v1
321
kind: NetworkPolicy
422
metadata:

0 commit comments

Comments
 (0)