From 810f7f922f5dae59efb16a0c17ff2b65fb85c7e9 Mon Sep 17 00:00:00 2001 From: Adam Smith Date: Wed, 29 Apr 2020 12:12:53 +0100 Subject: [PATCH] Update everything --- README.md | 6 +++++- charts/clamav/Chart.yaml | 4 ++-- charts/clamav/templates/clamav-networkpolicy.yaml | 13 +++++++++++++ charts/clamav/templates/clamav-service.yaml | 2 +- charts/clamav/values.yaml | 5 ++++- 5 files changed, 25 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 84960a3..546ecc6 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,11 @@ Clamav instance with http api. To supersede https://github.com/UKHomeOffice/dock ## Installation -Helmy helm stuff here +``` +helm install -n clamav ./charts/clamav +``` + +Clamav will be installed in the namespace and available at https://clamav/ ## Components diff --git a/charts/clamav/Chart.yaml b/charts/clamav/Chart.yaml index 1392234..1d414a7 100644 --- a/charts/clamav/Chart.yaml +++ b/charts/clamav/Chart.yaml @@ -14,8 +14,8 @@ 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. -version: 0.1.0 +version: 0.1.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. -appVersion: 0.1.0 +appVersion: 0.1.1 diff --git a/charts/clamav/templates/clamav-networkpolicy.yaml b/charts/clamav/templates/clamav-networkpolicy.yaml index e69de29..7282424 100644 --- a/charts/clamav/templates/clamav-networkpolicy.yaml +++ b/charts/clamav/templates/clamav-networkpolicy.yaml @@ -0,0 +1,13 @@ +apiVersion: networking.k8s.io/v1 +kind: NetworkPolicy +metadata: + name: allow-all +spec: + podSelector: + matchLabels: + name: {{ include "clamav.fullname" . }} + ingress: + - ports: + - protocol: TCP + port: 10443 + - from: {{ toYaml .Values.service.ingress | nindent 4 }} diff --git a/charts/clamav/templates/clamav-service.yaml b/charts/clamav/templates/clamav-service.yaml index 630042f..8198f83 100644 --- a/charts/clamav/templates/clamav-service.yaml +++ b/charts/clamav/templates/clamav-service.yaml @@ -7,7 +7,7 @@ metadata: spec: ports: - name: {{ include "clamav.fullname" . }} - port: {{ .Values.servicePort }} + port: {{ .Values.service.port }} targetPort: 10443 selector: name: {{ include "clamav.fullname" . }} diff --git a/charts/clamav/values.yaml b/charts/clamav/values.yaml index a7cc9f5..2ce0ede 100644 --- a/charts/clamav/values.yaml +++ b/charts/clamav/values.yaml @@ -5,7 +5,10 @@ nameOverride: "" fullnameOverride: "" -servicePort: 443 +service: + port: 443 + ingress: + - podSelector: {} serviceAccount: annotations: {}