[stable/clamav] Let the user choose the api version of their deployment. (#20185)

* Let the user choose the api version of their deployment.

Signed-off-by: Tom Kelley <distortedsignal@gmail.com>

* Doc vars, change name of var in kubeMeta.

Signed-off-by: Tom Kelley <distortedsignal@gmail.com>

* Changes in response to CR Comments

* Remove distortedsignal from maintainers
* Remove example from README of install behind HTTP Proxy
* Remove example from README of install on K8s version >1.8

Signed-off-by: Tom Kelley <distortedsignal@gmail.com>
This commit is contained in:
Tom Kelley
2020-01-16 10:24:23 -08:00
committed by Kubernetes Prow Robot
parent 79898bdcf5
commit adb9f3ef1e
4 changed files with 20 additions and 3 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "1.6"
description: An Open-Source antivirus engine for detecting trojans, viruses, malware & other malicious threats.
name: clamav
version: 1.0.4
version: 1.0.5
home: https://www.clamav.net
icon: https://www.clamav.net/assets/clamav-trademark.png
maintainers:
+2
View File
@@ -32,6 +32,8 @@ The command deploys ClamAV on the Kubernetes cluster in the default configuratio
> **Tip**: List all releases using `helm list`
In order to deploy this chart under Kubernetes 1.9+, the `kubeMeta.deploymentApiVersion` MUST be set to "apps/v1".
## Uninstalling the Chart
To uninstall/delete the `my-release` deployment:
+2 -2
View File
@@ -1,4 +1,4 @@
apiVersion: apps/v1beta2
apiVersion: {{ default "apps/v1beta2" .Values.kubeMeta.deploymentApiVersion }}
kind: Deployment
metadata:
name: {{ include "clamav.fullname" . }}
@@ -75,4 +75,4 @@ spec:
{{- with .Values.tolerations }}
tolerations:
{{ toYaml . | indent 8 }}
{{- end }}
{{- end }}
+15
View File
@@ -33,6 +33,16 @@ ingress:
# freshclamConfig: |
# HTTPProxyServer your-proxy.example.com
# HTTPProxyPort 8080
# DatabaseDirectory /data
# LogSyslog yes
# LogTime yes
# PidFile /run/clamav/freshclam.pid
# DatabaseOwner root
# DatabaseMirror database.clamav.net
# ScriptedUpdates yes
# NotifyClamd /etc/clamav/clamd.conf
# SafeBrowsing yes
# Bytecode yes
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
@@ -54,3 +64,8 @@ nodeSelector: {}
tolerations: []
affinity: {}
# Metadata surrounding the kubernetes distribution being deployed to.
kubeMeta:
# The api that Deployments are under.
deploymentApiVersion: apps/v1beta2