Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(gatus): add and document existingConfigMap #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions charts/gatus/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ _See [helm uninstall](https://helm.sh/docs/helm/helm_uninstall/) for command doc
| `networkPolicy.enabled` | Enable creation of NetworkPolicy resources | `false` |
| `networkPolicy.ingress.selectors` | List of Ingress Rule selectors | `[]` |
| `config` | [Gatus configuration][gatus-config] | `{}` |
| `existingConfigMap` | Name of an existing ConfigMap resource. If set, `config` is ignored. | `""` |

_See [Customizing the Chart Before Installing](https://helm.sh/docs/intro/using_helm/#customizing-the-chart-before-installing)._

Expand Down
2 changes: 1 addition & 1 deletion charts/gatus/templates/_pod.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ containers:
volumes:
- name: {{ include "names.fullname" . }}-config
configMap:
name: {{ include "names.fullname" . }}
name: {{ .Values.existingConfigMap | default (include "names.fullname" .) }}
{{- if .Values.persistence.enabled }}
- name: {{ include "names.fullname" . }}-data
persistentVolumeClaim:
Expand Down
2 changes: 2 additions & 0 deletions charts/gatus/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{ if not .Values.existingConfigMap }}
apiVersion: v1
kind: ConfigMap
metadata:
Expand All @@ -8,3 +9,4 @@ metadata:
data:
config.yaml: |
{{- toYaml .Values.config | nindent 4 }}
{{ end }}
3 changes: 3 additions & 0 deletions charts/gatus/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -201,3 +201,6 @@ config:
conditions:
- "[STATUS] == 200"
- "[BODY] == pat(*<h1>Example Domain</h1>*)"

# Name of an existing ConfigMap resource. If set, `config` is ignored.
existingConfigMap: ""