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

charts/victoria-metrics-auth: add support of specifying extra labels #577

Merged
merged 1 commit into from
Jul 13, 2023
Merged
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
5 changes: 3 additions & 2 deletions charts/victoria-metrics-auth/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Helm Chart For Victoria Metrics Auth.

![Version: 0.2.83](https://img.shields.io/badge/Version-0.2.83-informational?style=flat-square)
![Version: 0.2.84](https://img.shields.io/badge/Version-0.2.84-informational?style=flat-square)

Victoria Metrics Auth - is a simple auth proxy and router for VictoriaMetrics.

Expand Down Expand Up @@ -108,12 +108,13 @@ Change the values according to the need of the environment in ``victoria-metrics
| extraArgs.loggerFormat | string | `"json"` | |
| extraContainers | list | `[]` | |
| extraHostPathMounts | list | `[]` | Additional hostPath mounts |
| extraLabels | object | `{}` | Labels to be added to the deployment and pods |
| extraVolumeMounts | list | `[]` | Extra Volume Mounts for the container |
| extraVolumes | list | `[]` | Extra Volumes for the pod |
| fullnameOverride | string | `""` | |
| image.pullPolicy | string | `"IfNotPresent"` | Pull policy of Docker image |
| image.repository | string | `"victoriametrics/vmauth"` | Victoria Metrics Auth Docker repository and image name |
| image.tag | string | `"v1.91.0"` | Tag of Docker image |
| image.tag | string | `"v1.91.3"` | Tag of Docker image |
| imagePullSecrets | list | `[]` | |
| ingress.annotations | object | `{}` | |
| ingress.enabled | bool | `false` | |
Expand Down
6 changes: 6 additions & 0 deletions charts/victoria-metrics-auth/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ metadata:
namespace: {{ .Release.Namespace }}
labels:
{{- include "chart.labels" . | nindent 4 }}
{{- with .Values.extraLabels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
Expand All @@ -18,6 +21,9 @@ spec:
metadata:
labels:
{{- include "chart.selectorLabels" . | nindent 8 }}
{{- with .Values.extraLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }}
{{- range $key, $value := .Values.podAnnotations }}
Expand Down
5 changes: 4 additions & 1 deletion charts/victoria-metrics-auth/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ annotations: {}
# -- Annotations to be added to pod
podAnnotations: {}

# -- Labels to be added to the deployment and pods
extraLabels: {}

# -- NodeSelector configurations. Ref: https://kubernetes.io/docs/user-guide/node-selection/
nodeSelector: {}

Expand All @@ -172,7 +175,7 @@ tolerations: []
affinity: {}

serviceMonitor:
enabled: false
enabled: false
extraLabels: {}
annotations: {}
relabelings: []
Expand Down
3 changes: 3 additions & 0 deletions hack/helm/victoria-metrics-auth.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ config:
- username: "local-single-node"
password: "ci"
url_prefix: "http://localhost:8428"

extraLabels:
some: test
3 changes: 3 additions & 0 deletions hack/vmauth-lint-hack.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
podDisruptionBudget:
enabled: true

extraLabels:
some: test
Loading