diff --git a/charts/etcd-defrag/Chart.yaml b/charts/etcd-defrag/Chart.yaml index 82203763..b3e55492 100644 --- a/charts/etcd-defrag/Chart.yaml +++ b/charts/etcd-defrag/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: etcd-defrag description: A Helm chart for running a defragmentation CronJob for ETCD type: application -version: 1.0.7 +version: 1.1.0 appVersion: "3.5.12" home: https://github.com/christianknell/helm-charts icon: https://cdn.worldvectorlogo.com/logos/etcd-1.svg @@ -14,5 +14,5 @@ sources: - https://etcd.io annotations: artifacthub.io/changes: | - - kind: changed - description: bumped image version to v3.5.12 + - kind: added + description: support for running the cronjob in the host network diff --git a/charts/etcd-defrag/README.md b/charts/etcd-defrag/README.md index 74ccf029..67b199f7 100644 --- a/charts/etcd-defrag/README.md +++ b/charts/etcd-defrag/README.md @@ -89,6 +89,7 @@ The command removes all the Kubernetes components associated with the chart and | defrag.pod.restartPolicy | string | `"OnFailure"` | Restart policy for all containers within the pod. One of `Always`, `OnFailure`, `Never`. | | extraEnv | list | `[]` | additional environment variables to be added to the pods | | fullnameOverride | string | `""` | String to fully override `"etcd-defrag.fullname"` | +| hostNetwork | bool | `false` | specify if the CronJob should run on the hostNetwork | | image.pullPolicy | string | `"Always"` | image pull policy | | image.repository | string | `"bitnami/etcd"` | image repository | | image.tag | string | `"3.5.10"` | Overrides the image tag | @@ -113,4 +114,4 @@ helm install my-release -f values.yaml christianknell/etcd-defrag --- -Autogenerated from chart metadata using [helm-docs v1.11.2](https://github.com/norwoodj/helm-docs/releases/v1.11.2) +Autogenerated from chart metadata using [helm-docs v1.11.3](https://github.com/norwoodj/helm-docs/releases/v1.11.3) diff --git a/charts/etcd-defrag/templates/cronjob.yaml b/charts/etcd-defrag/templates/cronjob.yaml index a4e977db..95ebcc72 100644 --- a/charts/etcd-defrag/templates/cronjob.yaml +++ b/charts/etcd-defrag/templates/cronjob.yaml @@ -57,6 +57,9 @@ spec: securityContext: {{- toYaml . | nindent 12 }} {{- end }} + {{- with .Values.hostNetwork }} + hostNetwork: {{ . }} + {{- end }} containers: - name: {{ include "etcd-defrag.fullname" . }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" diff --git a/charts/etcd-defrag/values.schema.json b/charts/etcd-defrag/values.schema.json index d0ca5ad4..b7d9d7dc 100644 --- a/charts/etcd-defrag/values.schema.json +++ b/charts/etcd-defrag/values.schema.json @@ -159,6 +159,9 @@ "fullnameOverride": { "type": "string" }, + "hostNetwork": { + "type": "boolean" + }, "image": { "type": "object", "properties": { diff --git a/charts/etcd-defrag/values.yaml b/charts/etcd-defrag/values.yaml index e327b1bc..feb47d93 100644 --- a/charts/etcd-defrag/values.yaml +++ b/charts/etcd-defrag/values.yaml @@ -66,6 +66,9 @@ affinity: {} # -- additional environment variables to be added to the pods extraEnv: [] +# -- specify if the CronJob should run on the hostNetwork +hostNetwork: false + defrag: # -- create a CronJob for defragmentation enabled: true