Skip to content

Commit

Permalink
Add ability to mount extra volumes (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
kgreczka9 authored Dec 22, 2022
1 parent 5195c8f commit c7ac4b4
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/nobl9-agent/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: nobl9-agent
version: 1.0.3
version: 1.0.4
description: Agent to retrieve SLI metrics from configured data sources and send the data back to the Nobl9 backend.
home: https://nobl9.com
sources:
Expand Down
2 changes: 2 additions & 0 deletions charts/nobl9-agent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ Go to the [docs.nobl9.com](https://docs.nobl9.com/Nobl9_Agent/helm-charts?_highl
| config.project | string | `nil` | Nobl9 Project name |
| deployment.annotations | object | `{}` | Custom annotations |
| deployment.extraEnvs | string | `nil` | Additional Envs |
| deployment.extraVolumeMounts | string | `nil` | Additional Volume mounts |
| deployment.extraVolumes | string | `nil` | Additional Volumes |
| deployment.image | string | `"nobl9/agent"` | Image used by chart |
| deployment.pullPolicy | string | `"Always"` | Image Pull Policy |
| deployment.version | string | `"0.53.2"` | Agent version (image tag) |
Expand Down
9 changes: 9 additions & 0 deletions charts/nobl9-agent/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,14 @@ spec:
{{- with .Values.deployment.extraEnvs }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.deployment.extraVolumeMounts }}
volumeMounts:
{{- toYaml . | nindent 12 }}
{{- end }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
{{- with .Values.deployment.extraVolumes }}
volumes:
{{- toYaml . | nindent 8 }}
{{- end }}

11 changes: 11 additions & 0 deletions charts/nobl9-agent/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,17 @@ deployment:
# secretKeyRef:
# key: client_secret
# name: my-existing-secret
# -- Additional Volumes
extraVolumes:
# - name: gcp-credentials
# secret:
# defaultMode: 420
# secretName: my-bigquery-secret-file
# -- Additional Volume mounts
extraVolumeMounts:
# - mountPath: /var/gcp
# name: gcp-credentials
# readOnly: true
# -- Custom annotations
annotations: {}
# -- Additional Labels
Expand Down

0 comments on commit c7ac4b4

Please sign in to comment.